Re: [PHP] setting the same value to multiple variables

2006-03-30 Thread charles stuart
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

Re: [PHP] setting the same value to multiple variables

2006-03-30 Thread Jasper Bryant-Greene
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

[PHP] setting the same value to multiple variables

2006-03-30 Thread charles stuart
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

Re: [PHP] Database connections

2006-03-30 Thread Anthony Ettinger
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

Re: [PHP] XML-RPC or SOAP

2006-03-30 Thread Anthony Ettinger
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

Re: [PHP] dynamic loading and build configurations

2006-03-30 Thread Chris
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

[PHP] dynamic loading and build configurations

2006-03-30 Thread Mike Milano
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

Re: [PHP] PHP and CakePHP

2006-03-30 Thread Mattias Thorslund
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: >

Re: [PHP] XML-RPC or SOAP

2006-03-30 Thread Russell Jones
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

Re: [PHP] Database connections

2006-03-30 Thread Chris
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

Re: [PHP] Database connections

2006-03-30 Thread Jasper Bryant-Greene
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

Re: [PHP] Database connections

2006-03-30 Thread Ryan A
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.

Re: [PHP] Database connections

2006-03-30 Thread Chris
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

Re: [PHP] Database connections

2006-03-30 Thread Robert Cummings
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

Re: [PHP] Database connections

2006-03-30 Thread Ryan A
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... *

Re: [PHP] Instalation problem

2006-03-30 Thread Chris
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

Re: [PHP] PHP and CakePHP

2006-03-30 Thread Chris
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

Re: [PHP] Database connections

2006-03-30 Thread Chris
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

Re: [PHP] Database connections

2006-03-30 Thread Philip Hallstrom
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

Re: [PHP] XML-RPC or SOAP

2006-03-30 Thread Philip Hallstrom
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

[PHP] Database connections

2006-03-30 Thread Ryan A
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

[PHP] PHP MVC

2006-03-30 Thread SLaVKa
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

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread Afan Pasalic
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

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread Chris
[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

Re: [PHP] Visa / MasterCard security compliance

2006-03-30 Thread Jasper Bryant-Greene
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

[PHP] Visa / MasterCard security compliance

2006-03-30 Thread Dan Harrington
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

Re: [PHP] HTTP status code

2006-03-30 Thread Bronislav Klucka
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

Re: [PHP] HTTP status code

2006-03-30 Thread Jasper Bryant-Greene
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

Re: [PHP] HTTP status code

2006-03-30 Thread Anthony Ettinger
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.

RE: [PHP] I have a mktime problem

2006-03-30 Thread Jim Moseby
> > > > > 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

Re: [PHP] HAXPLORER - any info?

2006-03-30 Thread Charles Kline
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

RE: [PHP] I have a mktime problem

2006-03-30 Thread Jim Moseby
> > 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

RE: [PHP] I have a mktime problem

2006-03-30 Thread Jay Blanchard
[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

Re: [PHP] I have a mktime problem

2006-03-30 Thread Bronislav Klucka
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

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread afan
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

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread afan
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

[PHP] I have a mktime problem

2006-03-30 Thread Jay Blanchard
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

Re: [PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread T.Lensselink
[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

Re: [PHP] HTTP status code

2006-03-30 Thread Jasper Bryant-Greene
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

Re: [PHP] Outputting text "

2006-03-30 Thread Jasper Bryant-Greene
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 '

RE: [PHP] HAXPLORER - any info?

2006-03-30 Thread Brady Mitchell
> -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

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jasper Bryant-Greene
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

[PHP] PHP: Fatal error: Allowed memory exhausted

2006-03-30 Thread afan
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

Re: [PHP] HTTP status code

2006-03-30 Thread Anthony Ettinger
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

Re: [PHP] HTTP status code

2006-03-30 Thread Bronislav Klucka
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 --

Re: [PHP] HTTP status code

2006-03-30 Thread Anthony Ettinger
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

[PHP] Instalation problem

2006-03-30 Thread Mauricio Masias
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

[PHP] HTTP status code

2006-03-30 Thread Bronislav Klucka
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

[PHP] HAXPLORER - any info?

2006-03-30 Thread Charles Kline
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

Re: [PHP] White label with PHP?

2006-03-30 Thread Joe Henry
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

Re: [PHP] Can "output_buffering" be set in a script?

2006-03-30 Thread Stephen Johnson
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

Re: [PHP] Can "output_buffering" be set in a script?

2006-03-30 Thread Joe Henry
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

RE: [PHP] Can "output_buffering" be set in a script?

2006-03-30 Thread Jay Blanchard
[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

RE: [PHP] Can "output_buffering" be set in a script?

2006-03-30 Thread Jim Moseby
> > 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

[PHP] Can "output_buffering" be set in a script?

2006-03-30 Thread Todd Cary
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

Re: [PHP] Can't get XSLT on PHP

2006-03-30 Thread Georgi Ivanov
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

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jochem Maas
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

Re: [PHP] webservice

2006-03-30 Thread John Wells
[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

[PHP] webservice

2006-03-30 Thread Diana Castillo
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

[PHP] Re: upgrade of PHP failed

2006-03-30 Thread Barry
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

Re: [PHP] Outputting text "

2006-03-30 Thread tedd
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

[PHP] upgrade of PHP failed

2006-03-30 Thread Merlin
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:

Re: [PHP] IP Address Filtering

2006-03-30 Thread Rahul S. Johari
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

Re: [PHP] IP Address Filtering

2006-03-30 Thread Barry
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

Re: [PHP] IP Address Filtering

2006-03-30 Thread Rahul S. Johari
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

FW: [PHP] php error reporting problem

2006-03-30 Thread Ford, Mike
-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 /

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jasper Bryant-Greene
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

[PHP] XML-RPC or SOAP

2006-03-30 Thread Merlin
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

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jochem Maas
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($

Re: [PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Jasper Bryant-Greene
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 __

[PHP] Overloading Limitation- Can Someone Confirm?

2006-03-30 Thread Chris
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

[PHP] PHP 5 and XSLT again

2006-03-30 Thread MA
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

Re: [PHP] PHP4: calling method on returned object

2006-03-30 Thread Jasper Bryant-Greene
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

Re: [PHP] PHP4: calling method on returned object

2006-03-30 Thread Petar Nedyalkov
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

[PHP] PHP4: calling method on returned object

2006-03-30 Thread Karl Glennon
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()->

Re: [PHP] How to create RSS feeds with PHP?

2006-03-30 Thread Merlin
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

Re: [PHP] PHP and CakePHP

2006-03-30 Thread Pham Huu Le Quoc Phuc
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 --

Re: [PHP] PHP and CakePHP

2006-03-30 Thread chris smith
> 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/ --

Re: [PHP] How to create RSS feeds with PHP?

2006-03-30 Thread chris smith
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

Re: [PHP] How to create RSS feeds with PHP?

2006-03-30 Thread Merlin
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

[PHP] PHP and CakePHP

2006-03-30 Thread Pham Huu Le Quoc Phuc
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

RE: [PHP] php error reporting problem

2006-03-30 Thread Ford, Mike
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

Re: [PHP] Outputting text "

2006-03-30 Thread Hugh Danaher
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

Re: [PHP] Outputting text "

2006-03-30 Thread Jasper Bryant-Greene
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

Re: [PHP] Outputting text "

2006-03-30 Thread nicolas figaro
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,

[PHP] Outputting text "

2006-03-30 Thread Merlin
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