On Mar 30, 2006, at 11:01 PM, Jasper Bryant-Greene wrote:
charles stuart wrote:
if ( 1 == 1 )
^^ what is the point of this?
Just cutting out the long IF statement so everyone didn't have to
look past it.
{
$goodToGo = 0; $errorArray[] = "You must declare some goals on
Activity 1
charles stuart wrote:
if ( 1 == 1 )
^^ what is the point of this?
{
$goodToGo = 0; $errorArray[] = "You must declare some goals on
Activity 1.";
// this block of code does not set each variable to "class=\"errorHere\"";
$readingGoalsEnjoymentLabelClass &&
$readingGoalsInfor
Hi,
I'm sure this is quite basic. Nonetheless I'm new to PHP so I haven't
figured it out.
I'd like to set each variable to the same value (without having to
set that value individually for each variable).
Thanks for the help.
best,
Charles
if ( 1 == 1 )
{
$goodToGo = 0; $errorArray
On 3/30/06, Chris <[EMAIL PROTECTED]> wrote:
>
> Jasper Bryant-Greene wrote:
> > Chris wrote:
> >
> >> If they're accessing the same database you don't need to
> >> disconnect/reconnect. Different db's - well, yeh you don't have a
> choice.
> >
> >
> > Of course you do. mysql_select_db() or whateve
what about WSDL?
On 3/30/06, Russell Jones <[EMAIL PROTECTED]> wrote:
>
> I would go with XML-RPC. I currently use XML-RPC to run LinkSleeve - a
> link-spam detection tool. In my opinion, I have found XML-RPC to be easier
> to use and understand. If at any point in your product you will be dealing
Mike Milano wrote:
What exactly does the --with in --with-curl mean? I've built php5.1.2
on windows, and I thought that it would compile curl into the binary.
It means compile the extension. It doesn't include it in the binary.
Is this normal behavior? The same thing happens with openssl an
What exactly does the --with in --with-curl mean? I've built php5.1.2
on windows, and I thought that it would compile curl into the binary.
It does not. I still need to declare CURL as an extension in the
php.ini file for it to work. i.e. extension=php_curl.dll
Is this normal behavior? The
Pham Huu Le Quoc Phuc wrote:
> I use CakePHP
> The folowing code do not execute:
>
> $datetime->time2str($info['Employee']['dob']) : ""?>
>
>
Are you sure that
> $info['Employee']['dob']
isn't actually empty?
To see if that's the case, you could temporarily change your code to:
>
I would go with XML-RPC. I currently use XML-RPC to run LinkSleeve - a
link-spam detection tool. In my opinion, I have found XML-RPC to be easier
to use and understand. If at any point in your product you will be dealing
with customers / vendors who will be beginners with both XML-RPC and SOAP, I
w
Jasper Bryant-Greene wrote:
Chris wrote:
If they're accessing the same database you don't need to
disconnect/reconnect. Different db's - well, yeh you don't have a choice.
Of course you do. mysql_select_db() or whatever it's called. Or just
issue a USE [databasename] query. No need to recon
Chris wrote:
If they're accessing the same database you don't need to
disconnect/reconnect. Different db's - well, yeh you don't have a choice.
Of course you do. mysql_select_db() or whatever it's called. Or just
issue a USE [databasename] query. No need to reconnect!
--
Jasper Bryant-Greene
Hey all,
Thanks for replying.
/*
If you have phpmyadmin or something installed:
show status like '%connection%';
should show something.
*/Ok, will give that a shot./*If they're accessing the same database you
don't need to
disconnect/reconnect. Different db's - well, yeh you don't have a
choice.
Ryan A wrote:
Hi Phillip/Chris,
Thanks for replying.
Other than actually asking the host and taking a chance of pissing them off
before i have even done anythingis there any way to find out the max
connections by looking at the phpinfo() ?
If you have phpmyadmin or something installed:
sh
On Thu, 2006-03-30 at 19:31, Philip Hallstrom wrote:
> > I have almost finished making a set of scripts that would communicate with
> > maybe 1k sites to start with...
> >
> > I'm sorry I cannot give you more details about the scripts but this guy is
> > really nervious and had me sign an NDA etc e
Hi Phillip/Chris,
Thanks for replying.
Other than actually asking the host and taking a chance of pissing them off
before i have even done anythingis there any way to find out the max
connections by looking at the phpinfo() ?
/*
I hope you're not connecting/disconnecting between queries...
*
Mauricio Masias wrote:
I have a problem with PHP5, I'm using Apache1.3 as web server in winXP
SP2 , y change the httpd file:
LoadModule php5_module "C:/php/php5apache.dll"
also
AddModule mod_php5.c
then
TypesConfig conf/mime.types
AddType application/x-httpd-ph
Pham Huu Le Quoc Phuc wrote:
It doesn't show any thing while $info['Employee']['dob'] isn't empty.
This is my code
add this:
$x = $datetime->time2str($info['Employee']['dob']);
echo "dob: " . $info['Employee']['dob'] . "; x: " . $x . "";
and make sure that $datetime (whatever that is doing) i
Ryan A wrote:
Hi,
I have almost finished making a set of scripts that would communicate with
maybe 1k sites to start with...
I'm sorry I cannot give you more details about the scripts but this guy is
really nervious and had me sign an NDA etc etc
but what i would like to know is; would there
I have almost finished making a set of scripts that would communicate with
maybe 1k sites to start with...
I'm sorry I cannot give you more details about the scripts but this guy is
really nervious and had me sign an NDA etc etc
but what i would like to know is; would there be a problem with con
I am at the beginning of creating a web service. As I am not very familar
with both SOAP and XML-RPC it would not make much difference in which one I
learn.
Which one would you guys recommend for a web app that has to be transformed
into a white lable solution.
I just did one using SOAP. Se
Hi,
I have almost finished making a set of scripts that would communicate with
maybe 1k sites to start with...
I'm sorry I cannot give you more details about the scripts but this guy is
really nervious and had me sign an NDA etc etc
but what i would like to know is; would there be a problem wit
Hey all, thanks for all the help upfront!
In MVC I have a controller e.g PermissionController.php for my
application which manages permissions of groups/users etc...
So a controller loads up, and assuming theres nothing passed in request
loads the default module in this case Permissions. (mod
Means not bad - if it's REALLY well controlled. But, to risky.
:)
Chris wrote:
[EMAIL PROTECTED] wrote:
ok, then. how "smart" is to do something like this? what's a bad side?
Your memory will runaway and your script could potentially take over
the server and slow everything down. Just like
[EMAIL PROTECTED] wrote:
ok, then. how "smart" is to do something like this? what's a bad side?
Your memory will runaway and your script could potentially take over the
server and slow everything down. Just like any other script could.
[EMAIL PROTECTED] wrote:
Hi,
I'm working on the sc
Dan Harrington wrote:
One of these requirements is cardholder data encryption -- is anyone aware
of a
PHP/MySQL/Linux/Apache solution for end-to-end cardholder data encryption
that satisfies the Visa / MasterCard requirements?
Apache supports SSL/TLS. Therefore the credit card data can be enc
Hello everyone,
As you may know, Visa and MasterCard have some pretty extensive security
requirements for merchants who accept a larger number of credit card
transactions
E.g.
http://usa.visa.com/business/accepting_visa/ops_risk_management/cisp_merchan
ts.html
https://sdp.mastercardintl.com/do
No,
I'm creating remote service and it's returning codes according to passed
parameters. I only wanted to test it using browsers...
I do not care about the output actually, but the status code
B.
Jasper Bryant-Greene wrote:
The default Apache error handler is not called when PHP sends a 404
The default Apache error handler is not called when PHP sends a 404
header. The code that does Apache error handling happens *before* PHP
gets in the loop, and checks to see if the script being referenced
exists, which it indeed does, whether it sends a 404 header or not.
Tested on Apache 2.2
well, you typically would redirect 404 to something like foo.com/404.html
Otherwise, it's whatever your server (apache/IIS) has as the default
404 handler...
Default is something like this:
Not Found
The requested URL /asdf was not found on this server.
>
> >
> > I'm having an weird issues with the date and mktime function thing
> > getting unexpected results, and I was wondering if y'all
> > could help clue
> > me in as to what is wrong.
> > Here's the code I'm running:
> > echo date(M, mktime(0,0,0,2)) . "\n"; Where the 2 is
> > the
Turned out to be a security hole in Mambo. He has fixed it. Thanks
for your assistance.
- Charles
On Mar 30, 2006, at 3:33 PM, Brady Mitchell wrote:
-Original Message-
Does anyone know anything about this, and if they do - have any
thoughts on how it may have gotten on the server and
>
> I'm having an weird issues with the date and mktime function thing
> getting unexpected results, and I was wondering if y'all
> could help clue
> me in as to what is wrong.
> Here's the code I'm running:
> echo date(M, mktime(0,0,0,2)) . "\n"; Where the 2 is
> the month.
> Now when I
[snip]
I think this is happening because the day is being filled in by PHP as
30. Today is March 30th.
Try these:
echo date("d M Y", mktime(0,0,0,2)) . "\n"; //02 Mar 2006
echo date("d M Y", mktime(0,0,0,3)) . "\n"; //30 Mar 2006
PHP thinks you mean Feb 30th, which doesn't exist. So it adds 2 d
Every missing argument is set to current value, so now you have
mktime(0,0,0,2,30,2006), that is March, the 2nd.
Brona
Jay Blanchard wrote:
I'm having an weird issues with the date and mktime function thing
getting unexpected results, and I was wondering if y'all could help clue
me in as to wh
hm. it looks like set_time_limit(0);
ok, then. how "smart" is to do something like this? what's a bad side?
> [EMAIL PROTECTED] wrote:
>> Hi,
>> I'm working on the script that has to read csv file (51 column an a
>> little
>> bit over 3000 rows) with products and store the info in DB.
>> Script
Spread sheet is 2M, but 12M wasn't enough.
this is the code getting data from csv:
$fp = fopen ('/var/www/html/afan.com/admin/tmp/'.$SpreadSheetFile,"r");
while ($data = fgetcsv ($fp, 5, ","))
{
$num = count ($data);
for ($c=0; $c<$num; $c++)
{
$PRODUCTS[$row
I'm having an weird issues with the date and mktime function thing
getting unexpected results, and I was wondering if y'all could help clue
me in as to what is wrong.
Here's the code I'm running:
echo date(M, mktime(0,0,0,2)) . "\n"; Where the 2 is the month.
Now when I put in the number 1
[EMAIL PROTECTED] wrote:
> Hi,
> I'm working on the script that has to read csv file (51 column an a little
> bit over 3000 rows) with products and store the info in DB.
> Script works fine while I tested on csv files up to 200 records.
> And, when I tried to upload REAL data I got this.
> PHP: Fat
In other words, if you want Firefox/Opera/etc to display something, you
have to output something. Strange, that. :P
Jasper
Anthony Ettinger wrote:
Then it's workingFireFox, et. al. show you the server 404, IE on
the otherhand has it's own 404 error page (for those newbies who don't
know wh
tedd wrote:
Merlin:
First the syntax should be:
<-- note the close /
No, that is invalid XML. The specification is available at
http://www.w3.org/TR/XML11 (and makes riveting reading! ;)
[snip]
If you want to print it to a web page, try:
EOD;
echo($a);
echo '
> -Original Message-
> Does anyone know anything about this, and if they do - have any
> thoughts on how it may have gotten on the server and how to secure
> against it in the future? Just trying to help out a friend here.
Without knowing the exact setup of the server, we can't help mu
Jochem Maas wrote:
Jasper Bryant-Greene wrote:
Jochem Maas wrote:
I think its a misunderstanding on the one side and a limitation on
the other,
you can't use overloading directly on items of an overloaded array e.g:
echo $tc->arr['a']
this is triggers a call to __get() with the $key par
Hi,
I'm working on the script that has to read csv file (51 column an a little
bit over 3000 rows) with products and store the info in DB.
Script works fine while I tested on csv files up to 200 records.
And, when I tried to upload REAL data I got this.
PHP: Fatal error: Allowed memory size of 8388
Then it's workingFireFox, et. al. show you the server 404, IE on
the otherhand has it's own 404 error page (for those newbies who don't
know what a 404 is). You can disable it under IE options.
On 3/30/06, Bronislav Klucka <[EMAIL PROTECTED]> wrote:
> Yes, I do...
> B.
>
> Anthony Ettinger wro
Yes, I do...
B.
Anthony Ettinger wrote:
Are you seeing the IE-specific 404 page? The one that looks like this:
http://redvip.homelinux.net/varios/404-ie.jpg
On 3/30/06, Bronislav Klucka <[EMAIL PROTECTED]> wrote:
Hi,
I'm using following construction to send http status code
--
Are you seeing the IE-specific 404 page? The one that looks like this:
http://redvip.homelinux.net/varios/404-ie.jpg
On 3/30/06, Bronislav Klucka <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm using following construction to send http status code
> --
> header('HTTP/1.1 404 Not Found');
> h
I have a problem with PHP5, I'm using Apache1.3 as web server in winXP SP2
, y change the httpd file:
LoadModule php5_module "C:/php/php5apache.dll"
also
AddModule mod_php5.c
then
TypesConfig conf/mime.types
AddType application/x-httpd-php .php
AddType
Hi,
I'm using following construction to send http status code
--
header('HTTP/1.1 404 Not Found');
header("Status: 404 Not Found");
exit;
--
MSIE displays "Page not found", but FireFox and Opera don't display
anything. Just blank page with no text...
full headers sent b
My buddy just called me and let me know he found this running on his
server.
I have googled it and come up with much, but it appears to be a php
script that gives the user pretty much total control of adding,
editing, deleting - files, folders, etc. As well as giving them
access to run an
On Wednesday 29 March 2006 9:52 am, Merlin wrote:
> white label solution
Can someone enlighten me as to what this means? Thanks.
--
Joe Henry
www.celebrityaccess.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://us2.php.net/ob_start
Hope this helps
http://www.ouradoptionblog.com
Join our journey of adoption
http://www.thelonecoder.com
[EMAIL PROTECTED]
continuing the struggle against bad code
*/
?>
> From: Todd Cary <[EMAIL PROTECTED]>
> Date: Thu, 30 Mar 2006 08:02:16 -0800
> To:
> Subject
On Thursday 30 March 2006 9:02 am, Todd Cary wrote:
> I do not have access to the php.ini file and I need to have
> output_buffering turned on. Can this be done within a script?
>
> Thank you
Yep.
http://us2.php.net/manual/en/function.ob-start.php
That link should get you started.
--
Joe Henr
[snip]
I do not have access to the php.ini file and I need to have
output_buffering turned on. Can this be done within a script?
[/snip]
http://www.php.net/ob_start
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
> I do not have access to the php.ini file and I need to have
> output_buffering turned on. Can this be done within a script?
If your web host allows it, you may be able to set it with ini_set().
See www.php.net/ini_set
and also
http://us2.php.net/manual/en/ref.outcontrol.php#ini.output-buff
I do not have access to the php.ini file and I need to have
output_buffering turned on. Can this be done within a script?
Thank you
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have it working with :
--with-xsl
--enable-xslt
--with-xslt-sablot
Do you have the libxslt-devel package ?
I'm not sure if it compiles it as module...
If it is module make sure it is enabled in php.ini
On Wednesday March 29 2006 22:17, MARG wrote:
> Anthony Ettinger wrote:
> > obvious one, but
Jasper Bryant-Greene wrote:
Jochem Maas wrote:
I think its a misunderstanding on the one side and a limitation on the
other,
you can't use overloading directly on items of an overloaded array e.g:
echo $tc->arr['a']
this is triggers a call to __get() with the $key parameter set to
somet
[snip]
> soap_fault Object ( [error_message_prefix] => [mode] => 1 [level] => 1024
> [code] => WSDL [message] => no operation readpackageabstract in wsdl
[/snip]
It appears as though you're attempting to invoke a method that doesn't
exist. Are you sure readPackageAbstract() is defined & registered
Does anyone know why I am getting the result below?
http://test.xtravelsystem.com/public/v1_0rc1/commonsHandler?WSDL";)
;
$res = $PerlPackageDatabase->readPackageAbstract("SOAP-Lite");
print_r($res);
?>
I GET THIS RESULT:
soap_fault Object ( [error_message_prefix] => [mode] => 1 [level] => 1024
[c
Merlin wrote:
Hi there,
I just tried to upgrade to the newest 4.x version from 4.3.11.
No trying to start apache I do get following error message:
Starting apache/usr/local/apache/bin/httpd: relocation error:
.//usr/local/lib/php/extensions/debug-non-zts-20020429/upload_progress_meter.so:
un
At 11:28 AM +0200 3/30/06, Merlin wrote:
Hi there,
I would like to output following text with php:
How can I do that? I tried to escape the ? with \? but this did
not help.
Any ideas?
Thank you for any hint,
Merlin
Merlin:
First the syntax should be:
<-- note the close /
Second, to
Hi there,
I just tried to upgrade to the newest 4.x version from 4.3.11.
No trying to start apache I do get following error message:
Starting apache/usr/local/apache/bin/httpd: relocation error:
.//usr/local/lib/php/extensions/debug-non-zts-20020429/upload_progress_meter.so:
undefined symbol:
Ave,
Curt, thanks for your response.
> Is this a common guestbook, like a 3rd party tool you got and added
> to the web site? If so, do they already have a solution in place
> with an add-on or such.
No, actually it's a script I have written myself from scratch. And
unfortunately (or fortunately
Rahul S. Johari wrote:
Ave,
I have to say I absolutely love your idea! It¹s probably a solution for my
problem, at the same time, like the other guy said, freaking hilarious!!!
:0)
I think I¹ll probably write up a script that displays everything except
records with NULL as IP for regular audien
Ave,
I have to say I absolutely love your idea! It¹s probably a solution for my
problem, at the same time, like the other guy said, freaking hilarious!!!
:0)
I think I¹ll probably write up a script that displays everything except
records with NULL as IP for regular audience... And displays all r
-Original Message-
From: ngwarai zed [mailto:[EMAIL PROTECTED]
Sent: 30 March 2006 13:36
I am using Fedora core 4. yes I stopped and restarted apache
On 3/30/06, Ford, Mike wrote:
On 29 March 2006 15:25, ngwarai zed wrote:
> phpinfo says
>
> Configuration File (php.ini) Path /
Jochem Maas wrote:
I think its a misunderstanding on the one side and a limitation on the
other,
you can't use overloading directly on items of an overloaded array e.g:
echo $tc->arr['a']
this is triggers a call to __get() with the $key parameter set to
something like
(I'm guessing) "arr
Hello there,
I am at the beginning of creating a web service. As I am not very familar with
both SOAP and XML-RPC it would not make much difference in which one I learn.
Which one would you guys recommend for a web app that has to be transformed into
a white lable solution.
Thank you for an
Chris wrote:
While playing with an unnamed framework, I think I discovered an
overloading limitation (PHP 5.1.2). Can someone please confirm this
limitation?
Example class:
class testClass
{
public $vars = array();
public function __get($key)
{
return array_key_exists($
Chris wrote:
class testClass
{
public $vars = array();
public function __get($key)
{
return array_key_exists($key, $this->vars) ? $this->vars[$key] :
null;
}
public function __set($key, $value)
{
$this->vars[$key] = $value;
}
public function __
While playing with an unnamed framework, I think I discovered an
overloading limitation (PHP 5.1.2). Can someone please confirm this
limitation?
Example class:
class testClass
{
public $vars = array();
public function __get($key)
{
return array_key_exists($key, $this->va
Hi,
I'm still trying to get PHP 5.1.2 to support XSLT, but so far, no good.
I read here
http://www.zend.com/php5/andi-book-excerpt.php
that in PHP5 is libxml2 that tak care of everything (XML, XSL, XSLT,
etc.), but i've compiled it and got no XSLT support.
Any help would be appreciated.
Warm Reg
Karl Glennon wrote:
[snip]
I expected to have the ability to get the url of a location's map with
the floowing statement:
print $this->Location->GetMap()->GetUrl();
[snip]
Is there any other syntax in PHP4 to allow me to concisely call a method
on a return object? eg. ($this->Location->GetMap
On Thursday 30 March 2006 14:05, Karl Glennon wrote:
> Hi there,
>
> I have an object structure, whereby a location object contains a method
> to return it's map object. The map object contains a method to return
> it's URL.
>
> I expected to have the ability to get the url of a location's map with
Hi there,
I have an object structure, whereby a location object contains a method
to return it's map object. The map object contains a method to return
it's URL.
I expected to have the ability to get the url of a location's map with
the floowing statement:
print $this->Location->GetMap()->
chris smith schrieb:
On 3/30/06, Merlin <[EMAIL PROTECTED]> wrote:
chris smith schrieb:
On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote:
Hi there,
I am wondering if there are already tools out there which do
create RSS feeds on the fly with the help of PHP.
My goal would be to create RSS dynami
It doesn't show any thing while $info['Employee']['dob'] isn't empty.
This is my code
">
time2str($info['Employee']['dob']) : ""?>
link("Xóa", "?url=employees/del/" .
$info['Employee']['id'])
?>
- Original Message --
> The folowing code do not execute:
>
> $datetime->time2str($info['Employee']['dob']) : ""?>
>
What do you mean? It doesn't show anything? Then
$info['Employee']['dob'] is empty.
If not, explain what you see or what happens.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
On 3/30/06, Merlin <[EMAIL PROTECTED]> wrote:
> chris smith schrieb:
> > On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote:
> >> Hi there,
> >>
> >> I am wondering if there are already tools out there which do
> >> create RSS feeds on the fly with the help of PHP.
> >>
> >> My goal would be to create RS
chris smith schrieb:
On 3/28/06, Merlin <[EMAIL PROTECTED]> wrote:
Hi there,
I am wondering if there are already tools out there which do
create RSS feeds on the fly with the help of PHP.
My goal would be to create RSS dynamicly out of a LAMP App. to
syndicate the results.
Are there any tools
I use CakePHP
The folowing code do not execute:
time2str($info['Employee']['dob']) : ""?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 29 March 2006 15:25, ngwarai zed wrote:
> phpinfo says
>
> Configuration File (php.ini) Path /etc/php.ini
>
> And the file I am editing is /etc/php.ini Is this not the
> one Iam supposed to edit?
On list please!
H'mmm -- file permissions? You've stopped and restarted Apache? Which
oper
Look up htmlentities() in the php manual and see if it'll work for you.
Hugh
- Original Message -
From: "Merlin" <[EMAIL PROTECTED]>
To:
Sent: Thursday, March 30, 2006 1:28 AM
Subject: [PHP] Outputting text "
Hi there,
I would like to output following text with php:
How can I do that
Merlin wrote:
Hi there,
I would like to output following text with php:
How can I do that? I tried to escape the ? with \? but this did
not help.
Either:
1. Turn off short tags (good idea if you plan on distributing your code).
2. Just echo or print that text. Like:
' . "\n";
?>
--
Jaspe
Merlin a écrit :
Hi there,
I would like to output following text with php:
How can I do that? I tried to escape the ? with \? but this did
not help.
htmlentities perhaps ?
N F
Any ideas?
Thank you for any hint,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi there,
I would like to output following text with php:
How can I do that? I tried to escape the ? with \? but this did
not help.
Any ideas?
Thank you for any hint,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
86 matches
Mail list logo