Re: [PHP] Re: About DOM function in PHP

2007-07-08 Thread Nathan Nobbe
My appologies M. looking through the output of phpinfo() on a PHP5 install i have found a line which says dom DOM/XML enabled which would allude to an ability to disable it. also, i was looking at the XSL extension and discovered Installation PHP 5 includes the XSL extension by default

[PHP] Is There a Function to yada .... /yada to [yada] ..... [/yada]?

2007-06-21 Thread Stephen
I can't find one. Thanks Stephen

RE: [PHP] Is There a Function to yada .... /yada to [yada] ..... [/yada]?

2007-06-21 Thread Vo, Lance
str-replace? http://us.php.net/manual/en/function.str-replace.php -Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 1:17 PM To: php-general@lists.php.net Subject: [PHP] Is There a Function to yada /yada to [yada] . [/yada]? I can't find

Re: [PHP] Is There a Function to yada .... /yada to [yada] ..... [/yada]?

2007-06-21 Thread Tijnema
On 6/21/07, Stephen [EMAIL PROTECTED] wrote: I can't find one. Thanks Stephen preg_replace? http://www.php.net/preg_replace Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is There a Function to yada .... /yada to [yada] ..... [/yada]?

2007-06-21 Thread Richard Heyes
Stephen wrote: I can't find one. Thanks Stephen Ahh yes, you want the yada() function. Alternatively if you're after something to turn yada into [yada] you could try the regex functions (PCRE). -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and

RE: [PHP] Is There a Function to yada .... /yada to [yada] ..... [/yada]?

2007-06-21 Thread Stephen
Vo, Lance [EMAIL PROTECTED] wrote:str-replace? http://us.php.net/manual/en/function.str-replace.php I am hoping for something that checks for matching open and closing markup, and will leave and unchanged, otherwise. And also a function to convert back. Thanks Stephen

Re: [PHP] Is There a Function to yada .... /yada to [yada] ..... [/yada]?

2007-06-21 Thread Greg Donald
On 6/21/07, Stephen [EMAIL PROTECTED] wrote: I am hoping for something that checks for matching open and closing markup, and will leave and unchanged, otherwise. You'll get much more help by posting your own (broken) attempt at coding this than just hoping for someone to do it for you.

[PHP] call to undefined function which is defined

2007-06-11 Thread Bing Du
Hi, RHEL 4 PHP 4.3.9 Apache 2.0.52 Without knowing much about the web application we use, can anybody tell me what kind of situation could trigger the following 'call to undefined function' error? PHP Fatal error: Call to undefined function: encryptchar code() in /data/www/html/typo3_src

Re: [PHP] call to undefined function which is defined

2007-06-11 Thread Jim Lucas
Bing Du wrote: Hi, RHEL 4 PHP 4.3.9 Apache 2.0.52 Without knowing much about the web application we use, can anybody tell me what kind of situation could trigger the following 'call to undefined function' error? PHP Fatal error: Call to undefined function: encryptchar code() in /data/www

[PHP] Re: undefined GD function

2007-06-04 Thread zerof
C.R.Vegelin escreveu: Hi All, I am testing some GD functions, but I'm getting undefined function errors. I checked php.ini and changed ;extension=php_gd2.dll to extension=php_gd2.dll The php.ini file contains: extension_dir = c:/php/ext and this directory does contain php_gd2.dll (version

Re: [PHP] Re: undefined GD function

2007-06-04 Thread Robert Cummings
On Mon, 2007-06-04 at 10:16 -0300, zerof wrote: C.R.Vegelin escreveu: Hi All, I am testing some GD functions, but I'm getting undefined function errors. I checked php.ini and changed ;extension=php_gd2.dll to extension=php_gd2.dll That doesn't mean you actually have the extension

[PHP] Re: PHP Text-To-Speech Function txt2wav()

2007-05-25 Thread Daniel Brown
On 5/25/07, tedd [EMAIL PROTECTED] wrote: If you find any bugs --- and I'm sure you will --- report them on the SourceForge project page. And don't mind the cluttered code. It's also in the process of being revamped. Thanks. -- Daniel P. Brown Daniel: Your demo:

[PHP] PHP Text-To-Speech Function txt2wav()

2007-05-23 Thread Daniel Brown
I'm cross-posting this on the PHP-VOX and PHP General lists for those of you who were on my old php-vox list on isawit.com and may not have been migrated over. The PHP-VOX project has advanced from alpha to beta status as of today's release of version 0.6.4-18. If anyone on here wants to

[PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Jason Paschal
I use this setup locally for testing/playing. I recently installed the latest and greatest of the AMP collection. Apache 2.2.4 PHP 5.2.2 MySQL 5.0.37 Apache and PHP work fine together, but I wanted to hook it up to a local test database, so I installed MySQL. In php.ini, i have: ; Directory

Re: [PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Davi
Em Segunda 07 Maio 2007 08:12, Jason Paschal escreveu: I use this setup locally for testing/playing. I recently installed the latest and greatest of the AMP collection. Apache 2.2.4 PHP 5.2.2 MySQL 5.0.37 Apache and PHP work fine together, but I wanted to hook it up to a local test

Re: [PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Davi
Em Segunda 07 Maio 2007 09:03, Jason Paschal escreveu: thank you for responding. phpinfo shows that it is finding the correct file: Loaded Configuration File: C:\PHP\php.ini that is the correct file with the correct settings. i renamed it and phpinfo showed (none). i set it back to the

Re: [PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Davi
Em Segunda 07 Maio 2007 09:37, você escreveu: I FOUND THE SOLUTION: i copied libmysql.dll and php_mysql.dll to my c:\windows\ folder suddenly my script connects. that's all it took. thank you for taking the time to help. maybe this info can help you or someone you know. Sure! =]

Re: [PHP] PHP 5.2.2 - Undefined Function mysql_connect()

2007-05-07 Thread Richard Lynch
Compare what ?php phpinfo();? says is REALLY your extension dir with what you think is your extension dir... On Mon, May 7, 2007 6:12 am, Jason Paschal wrote: I use this setup locally for testing/playing. I recently installed the latest and greatest of the AMP collection. Apache 2.2.4 PHP

[PHP] Solution For Undefined Function mysql_connect()

2007-05-07 Thread Jason Paschal
SOLUTION FOUND! i copied libmysql.dll and php_mysql.dll to my c:\windows\ folder suddenly my script connects. that's all it took. my extension directory is set to C:\PHP in php.ini, but for some reason, placing the dlls in the windows folder did the trick. i searched httpd.conf and php.ini

Re: [PHP] Populating array with function

2007-02-27 Thread Brad Bonkoski
Dotan Cohen wrote: I need to populate an array with the contents of a directory. The following code does not populate the $thumbnailFiles array like I expect that it would: ?php function listFiles ($directory) { $files=array(); $dir = dir($directory); while ($entry = $dir-read

Re: [PHP] Populating array with function

2007-02-27 Thread Arpad Ray
Brad Bonkoski wrote: $files[] = $entry; perhaps look into the array_push() function http://www.php.net/array_push $files[] = $entry; is perfectly fine. $thumbnailFiles=listFiles($thumbnailsDirectory); printpre; print_r($thumbnailsFiles); print/pre; The code is fine, spot the

Re: [PHP] Populating array with function

2007-02-27 Thread Dotan Cohen
On 27/02/07, Brad Bonkoski [EMAIL PROTECTED] wrote: perhaps look into the array_push() function http://www.php.net/array_push Thanks, but I cannot use array_push() as I don't know the name of the array that I'll be pushing to. There are four calls to the listFiles function, and each will

Re: [PHP] Populating array with function

2007-02-27 Thread Dave Goodchild
You have a typo in your code...

Re: [PHP] Populating array with function

2007-02-27 Thread Dotan Cohen
On 27/02/07, Jochem Maas [EMAIL PROTECTED] wrote: Dotan Cohen wrote: On 27/02/07, Brad Bonkoski [EMAIL PROTECTED] wrote: perhaps look into the array_push() function http://www.php.net/array_push Thanks, but I cannot use array_push() as I don't know the name of the array that I'll be

Re: [PHP] Populating array with function

2007-02-27 Thread Al
A good php editor, with code completion, will help prevent this. I like phpEdit. It even has a built-in syntax checker, which would have caught your error immediately. Dotan Cohen wrote: On 27/02/07, Jochem Maas [EMAIL PROTECTED] wrote: Dotan Cohen wrote: On 27/02/07, Brad Bonkoski [EMAIL

Re: [PHP] Populating array with function

2007-02-27 Thread Robert Cummings
On Tue, 2007-02-27 at 09:05 -0500, Al wrote: A good php editor, with code completion, will help prevent this. A decent brain with ample memory will suffice also. Upgrade packages not available (yet) :) Cheers, Rob. I like phpEdit. It even has a built-in syntax checker, which would have

Re: [PHP] Populating array with function

2007-02-27 Thread Al
I always wondered if anyone had a perfect brain. Us ordinary mortals require help. Robert Cummings wrote: On Tue, 2007-02-27 at 09:05 -0500, Al wrote: A good php editor, with code completion, will help prevent this. A decent brain with ample memory will suffice also. Upgrade packages not

Re: [PHP] Populating array with function

2007-02-27 Thread Richard Lynch
Or just turning on E_NOTICE, which you should do anyway. On Tue, February 27, 2007 8:05 am, Al wrote: A good php editor, with code completion, will help prevent this. I like phpEdit. It even has a built-in syntax checker, which would have caught your error immediately. Dotan Cohen wrote:

Re: [PHP] Populating array with function

2007-02-27 Thread Dotan Cohen
On 27/02/07, Al [EMAIL PROTECTED] wrote: A good php editor, with code completion, will help prevent this. I like phpEdit. It even has a built-in syntax checker, which would have caught your error immediately. As soon as the Linux version comes out I'll be sure to give it a whirl. Thanks.

Re: [PHP] Populating array with function

2007-02-27 Thread Richard Lynch
On Tue, February 27, 2007 3:47 pm, Dotan Cohen wrote: On 27/02/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-02-27 at 09:05 -0500, Al wrote: A good php editor, with code completion, will help prevent this. A decent brain with ample memory will suffice also. Upgrade packages not

Re: [PHP] Populating array with function

2007-02-27 Thread Dotan Cohen
On 28/02/07, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, February 27, 2007 3:47 pm, Dotan Cohen wrote: On 27/02/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-02-27 at 09:05 -0500, Al wrote: A good php editor, with code completion, will help prevent this. A decent brain with

[PHP] question about str_replace function

2007-01-08 Thread Kencana
Hi all, I got a doubt about the str_replace function. ?php $string=avenue 1, ave 1; $words=str_replace (ave,avenue, $string); echo $words; ? the php code above will return me avenuenue 1, avenue 1. i expect the result will be avenue 1, avenue 1. any idea of how can i get such result? Thank

RE: [PHP] question about str_replace function

2007-01-08 Thread Dick Jiang
I think you'd better use regular expression to replace the word Regards, Dick -Original Message- From: Kencana [mailto:[EMAIL PROTECTED] Sent: Monday, January 08, 2007 5:12 PM To: php-general@lists.php.net Subject: [PHP] question about str_replace function Hi all, I got a doubt about

Re: [PHP] question about str_replace function

2007-01-08 Thread Jochem Maas
)#, avenue, $string); Regards, Dick -Original Message- From: Kencana [mailto:[EMAIL PROTECTED] Sent: Monday, January 08, 2007 5:12 PM To: php-general@lists.php.net Subject: [PHP] question about str_replace function Hi all, I got a doubt about the str_replace function

Re: [PHP] question about str_replace function

2007-01-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-08 11:35:06 +0100: Dick Jiang wrote: I think you'd better use regular expression to replace the word agreed - only it a serious dive in the deep end of regexps - the OP may have to use a negative lookahead assertion, something like: $string=avenue 1, ave 1

Re: [PHP] question about str_replace function

2007-01-08 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-08 11:35:06 +0100: Dick Jiang wrote: I think you'd better use regular expression to replace the word agreed - only it a serious dive in the deep end of regexps - the OP may have to use a negative lookahead assertion, something like:

[PHP] Problem with copy() function

2007-01-05 Thread R B
Hi, I'm trying to copy a file like this: copy(home/xxx/public_html/yyy/zzz/index.php, home/xxx/public_html/yyy/www/index.php) and have this error: *Warning*: Wrong parameter count for copy() in */home/.* Someone can help me please? Thanks,

Re: [PHP] Problem with copy() function

2007-01-05 Thread Jochem Maas
R B wrote: Hi, I'm trying to copy a file like this: copy(home/xxx/public_html/yyy/zzz/index.php, home/xxx/public_html/yyy/www/index.php) ^ -- your missing a slash (although that shouldn't be the problem) and have this error: *Warning*: Wrong parameter count for copy() in

Re: [PHP] Problem with copy() function

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 5:01 pm, R B wrote: I'm trying to copy a file like this: copy(home/xxx/public_html/yyy/zzz/index.php, home/xxx/public_html/yyy/www/index.php) and have this error: *Warning*: Wrong parameter count for copy() in */home/.* Someone can help me please? You are

Re: [PHP] scripting process doesn't function

2006-12-27 Thread Jochem Maas
Geert T wrote: Hi, I have made some script that process the users input, and validates the input and sends it back. But it doesn't work very well, in fact it doesn't work at all. I am only able to see and input my name and such in the html form, but the php part doesn't do it's job. what

Re: [PHP] scripting process doesn't function

2006-12-27 Thread tedd
leave the 'action' blank to have it post to the current URL (regardless of what it is. Duh? This is the new thing I learned today. I've been messing around with _SERVER[SCRIPT_NAME] and _SERVER[PHP_SELF] just to make sure the code is portable -- and then you point out something I've been

[PHP] scripting process doesn't function

2006-12-25 Thread Geert T
Hi, I have made some script that process the users input, and validates the input and sends it back. But it doesn't work very well, in fact it doesn't work at all. I am only able to see and input my name and such in the html form, but the php part doesn't do it's job. I have looked over the

Re: [PHP] scripting process doesn't function

2006-12-25 Thread Sancar Saran
On Monday 25 December 2006 13:35, Geert T wrote: Hi, I have made some script that process the users input, and validates the input and sends it back. But it doesn't work very well, in fact it doesn't work at all. I am only able to see and input my name and such in the html form, but the php

Re: [PHP] problem using imagejpeg function all

2006-11-22 Thread Richard Lynch
On Tue, November 21, 2006 10:31 pm, Tom wrote: I’m trying to use the imagejpeg function call in a php script and I can’t quite seem to get it working properly. Can you clarify working properly into something a bit more concrete? Right now, we're left guessing from the most likely scenario

[PHP] problem using imagejpeg function all

2006-11-21 Thread Tom
Hello, I’m trying to use the imagejpeg function call in a php script and I can’t quite seem to get it working properly. Here is my gd dump. 'GD Version' = 'bundled (2.0.28 compatible)' (length=27) 'FreeType Support' = true 'FreeType Linkage' = 'with freetype' (length=13

Re: [PHP] problem using imagejpeg function all

2006-11-21 Thread Robert Cummings
On Tue, 2006-11-21 at 23:31 -0500, Tom wrote: ?php $image = imagecreate(200, 200); $colorRed = imagecolorallocate($image, 255, 0, 0); imagefill($image, 0, 0, $colorRed); //send image //header(Content-type: image/jpeg); imagejpeg($image); ? Works for me with the header line

RE: [PHP] problem using imagejpeg function all

2006-11-21 Thread Tom
To: Tom Cc: php-general@lists.php.net Subject: Re: [PHP] problem using imagejpeg function all On Tue, 2006-11-21 at 23:31 -0500, Tom wrote: ?php $image = imagecreate(200, 200); $colorRed = imagecolorallocate($image, 255, 0, 0); imagefill($image, 0, 0, $colorRed); //send image //header

RE: [PHP] problem using imagejpeg function all

2006-11-21 Thread Robert Cummings
On Tue, 2006-11-21 at 23:42 -0500, Tom wrote: Can you show me what your gd dump looks like? ?php var_dump(gd_info()); ? Is that way I got mine. Also, what php version are you using? I'm using 5.1.6. PHP 4.4.4 and PHP 5.2.0 both compiled from source. This is my PHP 5.2.0

[PHP] Call to undefined function

2006-11-14 Thread Tom Chubb
I have just encountered a fatal error using file_put_contents() on a PHP4 box. After a bit of research I found a simple function within the php.net user comments. I just wanted to know what happens if I then tried to run this script on a PHP 5 box, whereby I'd be defining a function that already

[PHP] Is there a function can decrypt md5 ??

2006-10-24 Thread Brad Chow
Dear all: Is there a function can decrypt md5 ?? I don't have any bad ideas. I just want to know whether md5 can be decrypted or not. Thank you! -- Brad

Re: [PHP] Is there a function can decrypt md5 ??

2006-10-24 Thread Chris
Brad Chow wrote: Dear all: Is there a function can decrypt md5 ?? I don't have any bad ideas. I just want to know whether md5 can be decrypted or not. It can't be decrypted (you can't get the original value back) but it can have collisions in which two items will have the same md5 sum.

Re: [PHP] Is there a function can decrypt md5 ??

2006-10-24 Thread tg-php
There is no practical way to 'decrypt' an MD5 hash. It is meant to be a one-way encoding of data to produce a (mostly) unique ID. It does a lot better job than some of it's predecessors like CRC32, in producing a unique ID, but apparently it still has a very slim possibility of generating the

[PHP] Problems with mail function

2006-10-24 Thread Ricardo Ríos
Hi wizards, I 'm trying to use mail function in PHP, but this function don't send the email , I have a server with postfix. Does somebody know how to send an email with php and postfix. Thanks in advance.

Re: [PHP] Problems with mail function

2006-10-24 Thread John Nichel
Ricardo Ríos wrote: Hi wizards, I 'm trying to use mail function in PHP, but this function don't send the email , I have a server with postfix. Does somebody know how to send an email with php and postfix. Thanks in advance. Does your install of postfix have a sendmail wrapper

Re: [PHP] Problems with mail function

2006-10-24 Thread Jochem Maas
John Nichel wrote: Ricardo Ríos wrote: Hi wizards, I 'm trying to use mail function in PHP, but this function don't send the email , I have a server with postfix. Does somebody know how to send an email with php and postfix. Thanks in advance. Does your install of postfix have a sendmail

Re: [PHP] Problems with mail function

2006-10-24 Thread Chris
Ricardo Ríos wrote: Hi wizards, I 'm trying to use mail function in PHP, but this function don't send the email , I have a server with postfix. Does somebody know how to send an email with php and postfix. Thanks in advance. Create a phpinfo page and make sure the 'sendmail_path' is set

Re: [PHP] tod help (copy function)

2006-10-18 Thread Richard Lynch
On Tue, October 17, 2006 11:30 pm, [EMAIL PROTECTED] wrote: results with: dir created error: Warning: copy(music/index.php): failed to open stream: Permission denied in /home/username/public_html/leaders/tod/index.php on line 27 result with: dir created page blank or page copied

[PHP] tod help (copy function)

2006-10-17 Thread todtot87
I am having an issue with the copy function. When I use the php.net specifications with the URLs being relative URLs I get a permission error but all files and folders are set to 777. See Code 1. If I use an ftp url it works for a few times but eventually I start copying blank pages. See Code

[PHP] Help with OpenSSL Function

2006-09-11 Thread Shanon Swafford
Hi guys, I am trying to use Apache, PHP 4.3, and PHP's Openssl functions to encrypt a variable. Currently, I can successfully use the following command to encrypt an existing file and create a new one: openssl aes-256-cbc -e -in plain_file.xml -out encrypt_file.xml -k 1234123412341234 Is it

[PHP] Variable of current function call?

2006-09-08 Thread Brent Meshier
While I'm inside a function call, is it possible to know what function is currently being called? Brent

Re: [PHP] Variable of current function call?

2006-09-08 Thread Robert Cummings
On Fri, 2006-09-08 at 14:54 -0400, Brent Meshier wrote: While I'm inside a function call, is it possible to know what function is currently being called? RTFM: http://www.php.net/manual/en/language.constants.predefined.php Cheers, Rob. --

RE: [PHP] Variable of current function call?

2006-09-08 Thread KermodeBear
While I'm inside a function call, is it possible to know what function is currently being called? Yes. http://us2.php.net/debug_backtrace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: User defined function problem

2006-07-19 Thread Stephen Lake
Thanx Jon and Jochem for the reminders, they were much appreciated. :) Best Regards, Steve Stephen Lake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey Guys and Gals, I am having a small problem with a user defined function, I placed it in a config file and it works as

Re: [PHP] PROBLEM WITH MAIL FUNCTION

2006-07-09 Thread Ligaya Turmelle
Juanjo Pascual wrote: Hello, I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail([EMAIL PROTECTED], 'Consulta Señalítica desde la página

Re: [PHP] PROBLEM WITH MAIL FUNCTION

2006-07-09 Thread Manuel Lemos
Hello, Juanjo Pascual wrote: I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail([EMAIL PROTECTED], 'Consulta Señalítica desde la página

[PHP] PROBLEM WITH MAIL FUNCTION

2006-07-06 Thread Juanjo Pascual
Hello, I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail([EMAIL PROTECTED], 'Consulta Señalítica desde la página web', 'strongHola, esto

Re: [PHP] PROBLEM WITH MAIL FUNCTION

2006-07-06 Thread Martin Marques
On Thu, 6 Jul 2006, Juanjo Pascual wrote: Hello, I have a problem with the mail function when I send a mail with acents or Ñ in the subject. When I receive the mail this caracters have been replaced by X. I'm using the mail function in this way: mail([EMAIL PROTECTED], 'Consulta

Re: [PHP] Slow query-building function

2006-05-26 Thread Rabin Vincent
you create the and? If so, why do you need to strtolower() it? [stripped rest of code] For the rest of the code, the same changes as above apply. For info the strim() function combines ltrim() and rtrim(). Why? PHP has its own function to do that. php.net/trim. -- Rabin Vincent http://rab.in

[PHP] Slow query-building function

2006-05-25 Thread George Pitcher
Hi, Last year I switched from using FileMaker Pro to MySQL. One of FileMaker's quirks was that if, in a text field, you searched for say, 'free ass boo', it would find any records with those three substrings in that field (in this example, its 'Free Association Books'). I want to have this

[PHP] Help using a function within a function, both within a class

2006-04-19 Thread Adele Botes
To anyone who can help, I would like to know why or how I can execute a function within a function used within this class. I want to redirect if the results of a insert query was successful, so i made a simple redirect function for later use, once I've build onto the class. The problem is that i

Re: [PHP] Help using a function within a function, both within a class

2006-04-19 Thread chris smith
On 4/19/06, Adele Botes [EMAIL PROTECTED] wrote: To anyone who can help, I would like to know why or how I can execute a function within a function used within this class. I want to redirect if the results of a insert query was successful, so i made a simple redirect function for later use,

Re: [PHP] Help using a function within a function, both within a class

2006-04-19 Thread Adele Botes
chris smith wrote: On 4/19/06, Adele Botes [EMAIL PROTECTED] wrote: To anyone who can help, I would like to know why or how I can execute a function within a function used within this class. I want to redirect if the results of a insert query was successful, so i made a simple redirect

[PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Alain Roger
Hi, i wrote a simple testing page. it should test if it can connect to MySQL db. however, i have an error message as followed : *Fatal error*: Call to undefined function mysql_connect() in *F:\Mes documents\Development\Website\Immense\checklogin.php* on line *23 *on line 23, i have the

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Jochem Maas
Alain Roger wrote: Hi, i wrote a simple testing page. it should test if it can connect to MySQL db. however, i have an error message as followed : *Fatal error*: Call to undefined function mysql_connect() in *F:\Mes documents\Development\Website\Immense\checklogin.php* on line *23 *on line

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Alain Roger
i've seen that non of extension are activated...neither mysql.dll nor mysqli.dll after uncommenting them and restarting Apache, it still does not work :-( On 4/5/06, Jochem Maas [EMAIL PROTECTED] wrote: Alain Roger wrote: Hi, i wrote a simple testing page. it should test if it can

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Brad Bonkoski
Create a page like this: ?php phpinfo(); ? and see what the output tells you about mysql...might shed some light on it. -B Alain Roger wrote: i've seen that non of extension are activated...neither mysql.dll nor mysqli.dll after uncommenting them and restarting Apache, it still does not

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Alain Roger
nothing about MySQL...only what is in my path variable :-( 1. i stopped apache server 2. i uncomment -- extension=php_mysql.dll and extension=php_mysqli.dll in my php.ini file 3. i updated my extension_dir like that -- extension_dir = F:\WebServer\PHP511\ext 4. i restarted apache 5. phpinfo still

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread John Nichel
Alain Roger wrote: nothing about MySQL...only what is in my path variable :-( 1. i stopped apache server 2. i uncomment -- extension=php_mysql.dll and extension=php_mysqli.dll in my php.ini file 3. i updated my extension_dir like that -- extension_dir = F:\WebServer\PHP511\ext 4. i restarted

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Brad Bonkoski
One alternative is to try this: http://www.en.wampserver.com Otherwise, make sure the php.ini file you are editing is the one pointed to by the line: Configuration File (php.ini) Path from the phpinfo generated file Also, you could check any Apache log files to see if they output any

Re: [PHP] problem using mysql_connect function under windows XP

2006-04-05 Thread Alain Roger
thanks a lot Brad... i was updating the php.ini from PHP installation folder and not the one that apache was reading. so i replace the php.ini in my C:\Windows folder and in my Phpinfo page i have a new part regarding MySQL. it's ok now. thanks a lot, Alain On 4/5/06, Brad Bonkoski [EMAIL

[PHP] Re: mysql_fecth_array() and function call as parameter

2006-04-03 Thread Jon Drukman
Paul Goepfert wrote: function determineDay () { $return = ; $query1 = mysql_query(SELECT months FROM Month WHERE m_id = month(curdate())); $query2 = mysql_query(SELECT dayNum FROM Days WHERE dayNum = day(curdate()));

[PHP] Re: mysql_fecth_array() and function call as parameter

2006-04-03 Thread Paul Goepfert
I included the or die function on the end of my query statement. When I tested this on my web page I got the following error Query2 Failed: You have an error in your SQL syntax near '(curdate())' at line 1 When this code executed: $query2 = mysql_query(SELECT dayNum FROM Days WHERE dayNum =

Re: [PHP] Re: mysql_fecth_array() and function call as parameter

2006-04-03 Thread Joe Wollard
Paul, Try TO_DAYS(curdate()) instead - if not you can't say we didn't try! ;-) If that doesn't work you may want to try a MySQL list. - Joe On 4/3/06, Paul Goepfert [EMAIL PROTECTED] wrote: I included the or die function on the end of my query statement. When I tested this on my web page

RE: [PHP] Re: mysql_fecth_array() and function call as parameter

2006-04-03 Thread Chrome
@lists.php.net Subject: Re: [PHP] Re: mysql_fecth_array() and function call as parameter Paul, Try TO_DAYS(curdate()) instead - if not you can't say we didn't try! ;-) If that doesn't work you may want to try a MySQL list. - Joe On 4/3/06, Paul Goepfert [EMAIL PROTECTED] wrote: I included the or die

[PHP] Re: mysql_fecth_array() and function call as parameter

2006-04-03 Thread Jon Drukman
Paul Goepfert wrote: I included the or die function on the end of my query statement. When I tested this on my web page I got the following error Query2 Failed: You have an error in your SQL syntax near '(curdate())' at line 1 When this code executed: $query2 = mysql_query(SELECT dayNum

[PHP] PERL Caller equivalent function

2006-03-20 Thread sgsweb
of the function and package that called this function. Is there such a function for PHP? Please let me know. thanks, sgs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PERL Caller equivalent function

2006-03-20 Thread Chris
, such as the name of the function and package that called this function. Is there such a function for PHP? debug_backtrace returns an array of how the function got called (ie the complete path that was taken from the start to get to this function). http://www.php.net/debug_backtrace -- Postgresql php

Re: [PHP] Different results in function on PHP 4 and PHP 5

2006-02-28 Thread Chris
this is working perfectly however my client has PHP 5, and the function is only outputting the first eshop for each category. How can I get this working properly in PHP 5? Below is the function in question: function getAllCategories($mysql,$region) { $cat_list = SELECT * FROM ilp_category_zone

[PHP] Re: $_POST to function?

2006-02-24 Thread Jason Gerfen
Tanoor Dieng wrote: Hi, are there some variables in your post array(aka are you sure that $_POST is not empty)? Normally this should works. Tanoor. 2006/2/24, Jason Gerfen [EMAIL PROTECTED]: I am not sure why this is not working. Aren't $_POST vars superglobals? I am trying to pass the

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Vidyut Luther
Since $_POST is a superglobal, it should not lose scope inside a function() call. I could be wrong though. Also, curious if $args is empty.. what is $num and $message. ? Also.. you're calling a function in your return statement ? On 2/24/06, Jason Gerfen [EMAIL PROTECTED] wrote: Tanoor Dieng

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Jason Gerfen
Vidyut Luther wrote: Since $_POST is a superglobal, it should not lose scope inside a function() call. I could be wrong though. Also, curious if $args is empty.. what is $num and $message. ? Also.. you're calling a function in your return statement ? On 2/24/06, Jason Gerfen [EMAIL

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Christopher Taylor
I am not as familiar with php as I am c++ but I wonder if you need to pass by reference? Does this make sense in the context of php? One other thing I would try is setting $temp = $_Post and then passing $temp. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Jason Gerfen
Christopher Taylor wrote: I am not as familiar with php as I am c++ but I wonder if you need to pass by reference? Does this make sense in the context of php? One other thing I would try is setting $temp = $_Post and then passing $temp. Chris Yeah, I actually tried that as well. --

Re: [PHP] Re: $_POST to function?

2006-02-24 Thread Vidyut Luther
just for fun, I tried to do what you're doing. http://www.phpcult.com/jason.phps http://www.phpcult.com/jason.php to run it.. it seems to be working.. the problem is in your code.. but not PHP properly.. On 2/24/06, Jason Gerfen [EMAIL PROTECTED] wrote: Christopher Taylor wrote: I am not

[PHP] doubt in mail function

2006-02-13 Thread suresh kumar
hello everybody, i am having one doubt in sending mail in php.in my company our mail server is in windows,but my php code for mail function in linux,i set the code as if(@mail('[EMAIL PROTECTED]','hi suresh','this is test','From:[EMAIL PROTECTED]')): both from

Re: [PHP] doubt in mail function

2006-02-13 Thread Paul Scott
On Mon, 2006-02-13 at 10:05 +, suresh kumar wrote: both from and to address are valid but mail is not receiving to [EMAIL PROTECTED], The PHP mail() function will use sendmail/postfix/etc (your hosts MTA), if you plan on using a mail relay i.e. an SMTP server to send mail, you

Re: [PHP] doubt in mail function

2006-02-13 Thread Jochem Maas
mailing your question to this list in php.in my company our mail server is in windows,but my php code for mail function in linux,i set the code as if(@mail('[EMAIL PROTECTED]','hi suresh','this is ^ \ \ do you know what this does? try removing it. test','From:[EMAIL PROTECTED

RE: [PHP] vaidation and mail function question

2006-02-10 Thread Weber Sites LTD
://www.webertrivia.com -Original Message- From: Paul Goepfert [mailto:[EMAIL PROTECTED] Sent: Friday, February 10, 2006 9:49 AM To: php-general@lists.php.net Subject: [PHP] vaidation and mail function question I am beginnging to do vaidation on my web form and I know of a few functions to do

[PHP] vaidation and mail function question

2006-02-09 Thread Paul Goepfert
I am beginnging to do vaidation on my web form and I know of a few functions to do this with. For example the empty fuction and the is_ functions. Ok to give you a picture of what I am vaildating its just your basic form, Name, Address, Email. I am obviously going to check for empty fields.

[PHP] problem with Mail function

2006-02-05 Thread Tariq Dalvi
Hello everyone, I m using php mail function it dose everyting fine besides it prints message twise in the email body can someone please have a look what i m doing wrong the code is as follows : $to = $email; $subject = someting goes here \n\n; $headers = From: [EMAIL PROTECTED] . X-Mailer

<    1   2   3   4   5   6   7   8   9   >