Re: [PHP] content type header for downloading files

2003-01-29 Thread Ernest E Vogelsinger
At 03:27 29.01.2003, Dara Dowd said: [snip] >I have the following headers in download.php which forces a download dialog >box to be opened when a user clicks on a desired file: > >header("Content-type: application/octet"); >header("Content-Length: $filelengt

Re: [PHP] php and sql problem with mysql_query and insert

2003-01-29 Thread Ernest E Vogelsinger
At 05:17 29.01.2003, Sunfire said: [snip] >hi ... > >im having a little problem with mysql_query("insert into members >('$company', '$name1', '$name2', '$address1', '$address2', ''$ac1', '$ext2', >'$num1', '$ac2', '$ext2', '$num2', '$city', '$state', '$zip',

[PHP] using custom "button" instead of standard "submit" form element

2003-01-29 Thread Durwood Gafford
I can't figure out how to tell which button was pressed by a user when i'm using a "button" instead of a standard "submit" form element. This works: $parent will equal "foo" This doesn't work: $parent will equal " NOT "foo" How do I get the value of "foo" to be returned in $parent and still

[PHP] Using custom "button" form element instead of standard "submit"?

2003-01-29 Thread Durwood Gafford
I can't figure out how to tell which button was pressed by a user when i'm using a "button" instead of a standard "submit" form element. This works: $parent will equal "foo" This doesn't work: $parent will equal " NOT "foo" How do I get the value of "foo" to be returned in $parent and still

[PHP] [ANN] TemplateTamer - release candidate

2003-01-29 Thread rush
TemplateTamer is a tool for creating and maintaining a template based dynamic PHP web applications, with clearly and completely separated code from the html design. As such it is a great tool for complex dynamic sites, especially where Designers and Programmers work together on the creation of the

Re: [PHP] using custom "button" instead of standard "submit" formelement

2003-01-29 Thread Justin French
The W3.org site is down at the moment, so I can't confirm this, but I'm pretty sure... ... is correct, but I've never done it :) I think the page you want to look at is: http://www.w3.org/TR/html401/interact/forms.html#edef-INPUT Cheers, Justin on 27/01/03 1:02 PM, Durwood Gafford ([EMAIL P

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-29 Thread Alexander Skwar
So sprach 1LT John W. Holmes am 2003-01-27 um 15:49:33 -0500 : > Actually, "08" is equal to 8 in PHP. PHP will convert the string to an No, that's not true: if ("08" == 8){ echo "equal"; } if ("08" === 8){ echo "more equal"; } This will only print "equal" and not "more equal". Alexander Skwar -

Re: [PHP] using custom "button" instead of standard "submit" form element

2003-01-29 Thread Ernest E Vogelsinger
At 10:08 29.01.2003, Justin French said: [snip] >The W3.org site is down at the moment, so I can't confirm this, but I'm >pretty sure... > > AFAIR -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP

Re: [PHP] Masive mail Advice

2003-01-29 Thread Alexander Skwar
So sprach Maciek Ruckgaber Bielecki am 2003-01-25 um 23:17:14 -0500 : > mail() function is not a good option for this purpose. (the amount of mail > to be sent may vary from 50 to 800 messages). I have considered using some Have a look at the PHPMailer classes. It's supposed to be ultra fast. Al

[PHP] Last error: how to get?

2003-01-29 Thread Jean-Christian Imbeault
Is there a simple way for me to programmatically know if an error has occurred during my script? (besides from writing a custom error handler?) I want to be able to know at the end of my script if any errors where thrown and then show a simple message. I know that if the error is fatal my scrip

php-general Digest 29 Jan 2003 10:07:34 -0000 Issue 1851

2003-01-29 Thread php-general-digest-help
php-general Digest 29 Jan 2003 10:07:34 - Issue 1851 Topics (messages 133445 through 133473): Re: register_globals 133445 by: Mike.Kent.indystar.com 133450 by: Justin French Re: Get command line output 133446 by: Jeff Warrington Re: Good XML/XSLT mailing list?

[PHP] test

2003-01-29 Thread Sol
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Accessing $php_errmsg give an error ...

2003-01-29 Thread Jean-Christian Imbeault
I am trying to access the last error message using the superglobal $php_errmsg. But trying to acess that var gives a "not defined" error ... Running this script gives me: ini_set("track_errors", true); error_reporting (E_ALL); $a = $php_errmsg; die; ?> Notice: Undefined variable: php_errmsg i

[PHP] Re: Accessing $php_errmsg give an error ...

2003-01-29 Thread Jean-Christian Imbeault
My mistake, spelling sold be php_error,sg. Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Last error: how to get?

2003-01-29 Thread Jean-Christian Imbeault
Found it, if track_errors is set then the last error is in $php_errormsg. However be careful as the variable is initially not set and doing a if ($php_errormsg != "") will resultin an error. Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Accessing $php_errmsg give an error ...

2003-01-29 Thread Ernest E Vogelsinger
At 11:28 29.01.2003, Jean-Christian Imbeault said: [snip] >I am trying to access the last error message using the superglobal >$php_errmsg. But trying to acess that var gives a "not defined" error ... > >Running this script gives me: > >ini_set("track_errors

Re: [PHP] using custom "button" instead of standard "submit" form element

2003-01-29 Thread 1LT John W. Holmes
> Note that when submitted, this will make a variable $parent_x and $parent_y with register_globals ON and $_POST['parent_x'] and $_POST['parent_y'] with it off (or $_GET or $_REQUEST, whatever you use). ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Remembering which option in a SELECT tag the user had chosen

2003-01-29 Thread 1LT John W. Holmes
> Hi, > I have a SELECT on a web form. > > > Friday August 22, 04:00 PM - 06:00 PM > Friday August 22, 06:00 PM - 08:00 PM > Friday August 22, 08:00 PM - 10:00 PM > Friday August 22, 10:00 PM - 12:00 AM > Saturday August 23, 12:00 AM - 02:00 AM > Saturday August 23, 12:00 PM - 02:00 PM > Saturday

Re: [PHP] php and sql problem with mysql_query and insert

2003-01-29 Thread 1LT John W. Holmes
> im having a little problem with mysql_query("insert into members > ('$company', '$name1', '$name2', '$address1', '$address2', ''$ac1', '$ext2', > '$num1', '$ac2', '$ext2', '$num2', '$city', '$state', '$zip', '$desc', > '$flags')"); > > for some reason those variables are empty by the time they ge

RE: [PHP] php and sql problem with mysql_query and insert

2003-01-29 Thread Bryan Brannigan
Have you tried echo'ing out the variable before and after the mysql_query? > -Original Message- > From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 29, 2003 6:20 AM > To: Sunfire; [EMAIL PROTECTED] > Subject: Re: [PHP] php and sql problem with mysql_query and i

[PHP] Re: Remembering which option in a SELECT tag the user had chosen

2003-01-29 Thread ng
hi smarty ( and pear ? ) provide some interresant function http://smarty.php.net/manual/en/language.function.html.options.php on my own scripts i have somthing like : exemple : >a >b >c or : %1\$s\n",$value,bool($_POST['foo'],$value,'s')); } ?> ( sorry for the long code )

[PHP] domxml memberfunction not dom compliant??

2003-01-29 Thread Øyvind Vestavik
I might be wrong here but, here it goes: I'm trying to make a recursive function that traverses a dom tree. (The purpuse is eventually to insert it into a relational database using the "edge table approach") When doing so I make extensive use of "array DomNode->child_nodes ( void)" The returned

[PHP] hopefully easy

2003-01-29 Thread Didier McGillis
I need to parse an HTML file for certain information. Like the text between . So if the html was ... The page Lots of code . I would just like the "The page" text. _ Add photos to your e-mail with MSN 8.

Re: [PHP] hopefully easy

2003-01-29 Thread 1LT John W. Holmes
> I need to parse an HTML file for certain information. Like the text between > . > > So if the html was ... > > > > The page > > > > > Lots of code . > > > > > I would just like the "The page" text. preg_match("!(.*)!si",$html,$match); echo $match[1]; That will account fo

Re: [PHP] Advice on uploaded files

2003-01-29 Thread Vladimir Galkov
Me too. I add tracks to DB only and store images as independent files. My experiments with storing images in DB shows large memory use wich slow down other processes (especialy if I need to choose several images from DB). But if pictures unnumerous and small (smaler 30-40kb) my advice - insert t

Re: [PHP] best way to save form data on user side

2003-01-29 Thread Maxim Maletsky
Isn't it simplier to just do like when you purchase something? You also need a prove then that you have paid and are expecting the merchandise to be shipped. That is simply solved with mailing a copy plus a registration number for future reference. Should be more than enough. -- Maxim Maletsky [

Re: [PHP] register_globals

2003-01-29 Thread Maxim Maletsky
three solutions: 1. turn register_globals off for compatibility purposes via .htaccess file in the script's directory 2. create a auto_prepend file with the following: extract($_GET), this should do the trick 3. rewrite the whole code to make any user-input (form) variable to be $_REQUEST or $_

Re: [PHP] Advice on uploaded files

2003-01-29 Thread Maxim Maletsky
Two problems for filesystem: 1. You cannot store over a tot number of images on some systems. Thus, storing them in DB will be headechless. Unless, you know that there will be at most some hundred pics or so. 2. Storing them in filesystem gives more trouble as you need to make sure it is - writab

Re: [PHP] ayuda help

2003-01-29 Thread Maxim Maletsky
you used a wrong password -- Maxim Maletsky [EMAIL PROTECTED] Rot Alvarez <[EMAIL PROTECTED]> wrote... : > > Tengo este herros y no se de q esWarning: MySQL Connection Failed: Access denied for >user: 'fullweb@localhost' (Using password: YES) in >/home/sites/site22/web/45/connect_database.

Re: [PHP] php and sql problem with mysql_query and insert

2003-01-29 Thread Maxim Maletsky
Guess what? add this on top of the file: error_reporting(E_ALL); this will probably tell you these variables are unset :) Why? Register global... wrong logic... etc... What php 4 is exactly installed there? -- Maxim Maletsky [EMAIL PROTECTED] "Sunfire" <[EMAIL PROTECTED]> wrote... : > hi

Re: [PHP] test

2003-01-29 Thread Maxim Maletsky
worked -- Maxim Maletsky [EMAIL PROTECTED] "Sol" <[EMAIL PROTECTED]> wrote... : > test > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] using NETpbm in PHP script.

2003-01-29 Thread Marco Alting
Does anyone have experience in how to use NETpbm functions in a PHP script on a server that is in Safe Mode? I want to resize images as they are uploaded. I'm almost there, but I get a safe mode restriction error, which tells me about a security conflict between the script-user-ID and then image-us

Re: [PHP] test

2003-01-29 Thread Vladimir Galkov
> worked will be a flame I feel ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] hopefully easy

2003-01-29 Thread Steven Balthazor
I have some code out of my own library which kind of does this; you probably need to play with it to do exactly what you want: preg_match_all("|<{$tag}[\s]*?>(.*?)|si",$text,$matches); print_r($matches); Where: $tag is the tag you are looking for $text is the text string you are searching throu

Re: [PHP] test

2003-01-29 Thread Ernest E Vogelsinger
At 11:13 29.01.2003, Sol spoke out and said: [snip] >test [snip] testback please provide detailed information how you received this mail so the it can be shared with the list :) -- >O Ernest E. Vogelsinger (\

Re: [PHP] hopefully easy

2003-01-29 Thread Didier McGillis
cool thanks From: "1LT John W. Holmes" <[EMAIL PROTECTED]> Reply-To: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Didier McGillis" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: Re: [PHP] hopefully easy Date: Wed, 29 Jan 2003 08:58:50 -0500 > I need to parse an HTML file for certain inf

[PHP] Multiple Emails

2003-01-29 Thread 1LT John W. Holmes
Is anyone else getting multiple emails from this list? I'm about to jump on people for asking the same question 3 or 4 times, but maybe it's just me getting copies of the same message. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

RE: [PHP] Multiple Emails

2003-01-29 Thread Bryan Brannigan
are all your email duplicated? if people are replying to a message you sent you are probably getting one copy from them and one from the list. > -Original Message- > From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 29, 2003 9:31 AM > To: [EMAIL PROTECTED] > S

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-29 Thread Chris Shiflett
--- Alexander Skwar <[EMAIL PROTECTED]> wrote: > So sprach 1LT John W. Holmes am 2003-01-27 um 15:49:33 > -0500 : > > Actually, "08" is equal to 8 in PHP. PHP will convert > > the string to an > > No, that's not true: > > if ("08" == 8){ echo "equal"; } > if ("08" === 8){ echo "more equal"; } >

Re: [PHP] Multiple Emails

2003-01-29 Thread 1LT John W. Holmes
> are all your email duplicated? if people are replying to a message you sent > you are probably getting one copy from them and one from the list. No, it's not that. I'm talking about just regular questions that are send only to the list. Hours later I will receive another copy of the message for

[PHP] A way to break up the string????

2003-01-29 Thread Scott Fletcher
Just curious, is there a PHP function that will break up the string for us? Here's the example --clip-- //Original $name = "Jennifer B Cuff"; //Whatever is to be end result of the original $first_name = "Jennifer"; $middle_name = "B"; $last_name = "Cuff"; --clip-- It is a mind challenging game

Re: [PHP] content type header for downloading files

2003-01-29 Thread Chris Shiflett
--- Dara Dowd <[EMAIL PROTECTED]> wrote: > I have the following headers in download.php which forces > a download dialog box to be opened when a user clicks on > a desired file: > > header("Content-type: application/octet"); > header("Content-Length: $filelength"); > header("Content-Disposition: a

[PHP] MySQL Madness

2003-01-29 Thread Gibbs, Liam - SXIA
First off, when executing this command: $connection = mysql_connect("localhost", "root", ""); I get this error msg: Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'root@localhost' (Using password: NO) in /home/superpage/public_html/index.php on line 49 I've gone and

RE: [PHP] A way to break up the string????

2003-01-29 Thread Jon Haworth
Hi Scott, > Just curious, is there a PHP function that will break up the > string for us? http://php.net/explode Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL Madness

2003-01-29 Thread Bryan Brannigan
put your password in the mysql_connect. mysql_connect("localhost", "root", "yourpassword"); or create a new user in mysql that has no password and minimal permissions. > -Original Message- > From: Gibbs, Liam - SXIA [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 29, 2003 9:46 AM >

[PHP] new

2003-01-29 Thread Ysrael Guzmán
Warning: Failed opening 'cliente.php' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Warning: Failed opening

2003-01-29 Thread Ysrael Guzmán
This is my problem? Warning: Failed opening 'index.php' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0 Any IDEA? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A way to break up the string????

2003-01-29 Thread Scott Fletcher
Wow!! A lot easier. I think I can do the counting to find out if which go which. For example, "Jennifer B Cuff" as oppose to "Jennifer Cuff". Say, I find 3 words instead of 2 then do something to it. If 2 then do something to it. Etc. I do realize that it is possible for there to be a logic

Re: [PHP] MySQL Madness

2003-01-29 Thread Rick Emery
If you're using root, then you must use the root password in mysql_connect(). - Original Message - From: "Gibbs, Liam - SXIA" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 8:45 AM Subject: [PHP] MySQL Madness First off, when executing this command: $conn

Re: [PHP] A way to break up the string????

2003-01-29 Thread Chris Hayes
At 15:52 29-1-03, you wrote: Just curious, is there a PHP function that will break up the string for us? Here's the example --clip-- //Original $name = "Jennifer B Cuff"; //Whatever is to be end result of the original $first_name = "Jennifer"; $middle_name = "B"; $last_name = "Cuff"; --clip--

Re: [PHP] A way to break up the string????

2003-01-29 Thread R'twick Niceorgaw
how about $name_array = explode(" ",$name); $first_name = $name_array[0]; $last_name = $name_array[count($name_array) - 1]; unset($name_array[0]); unset ($name_array[count($name_array)]); $middle_name = implode(" " ,$name_array); -R'twick -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] A way to break up the string????

2003-01-29 Thread Adam Voigt
Don't forget, if you just want to look for word break's (spaces), instead of exploding the data then doing a count, you could just: $wordcount = (substr_count($name," ")+1); On Wed, 2003-01-29 at 10:03, Scott Fletcher wrote: Wow!! A lot easier. I think I can do the counting to

[PHP] Installation & Configuration Question

2003-01-29 Thread Mike At Spy
Has anyone ever had an issue where PHP, for whatever reason, stopped .htaccess files from working? Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A way to break up the string????

2003-01-29 Thread Scott Fletcher
> * if there is something inbetween it's probably all middle names (allow for > several middle names for catholic dutch people that tend to have names such > as Wilhemus Antonius Johannes Maria den Braber) > Curse those people with double back names, like 'den Braber' here. Or > spaced first names.

Re: [PHP] MySQL Madness

2003-01-29 Thread Mike Vanecek
If MySQL is configured on your system correctly, you need a password in your script. I'm curious, though, why you're accessing it as root? Usually I create a user account in mysql and grant only the priviledges needed for that account. It may be a mute point, but if a bug were to crop up and yo

Re: [PHP] A way to break up the string????

2003-01-29 Thread Øyvind Vestavik
check out the explode function vennlig hilsen Øyvind On Wed, 29 Jan 2003, Scott Fletcher wrote: > Just curious, is there a PHP function that will break up the string for us? > > Here's the example > > --clip-- > //Original > $name = "Jennifer B Cuff"; > > //Whatever is to be end result of the o

Re: [PHP] Warning: Failed opening

2003-01-29 Thread Rick Emery
index.php is not in your include path; that is, not in working directory nor c:\hp4\pear. Where is it? - Original Message - From: "Ysrael Guzmán" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 8:54 AM Subject: [PHP] Warning: Failed opening This is my prob

Re: [PHP] Multiple Emails

2003-01-29 Thread Ernest E Vogelsinger
At 15:47 29.01.2003, 1LT John W. Holmes spoke out and said: [snip] >> are all your email duplicated? if people are replying to a message you >sent >> you are probably getting one copy from them and one from the list. > >No, it's not that. I'm talking about j

Re: [PHP] new

2003-01-29 Thread Ernest E Vogelsinger
At 15:51 29.01.2003, Ysrael Guzmán spoke out and said: [snip] >Warning: Failed opening 'cliente.php' for inclusion >(include_path='.;c:\php4\pear') in Unknown on line 0 [snip] and? -- >O Ernest E. Vogelsinger

[PHP] audio file upload and php versions

2003-01-29 Thread Kendal
Hi, I put together a simple file upload example that functions on my site; however, a user recently pointed out that it was not working in their PHP environment. The problem was that the uploaded files were not showing up in their "uploads" directory. I believe the user had file/directory read/w

Re: [PHP] Advice on uploaded files

2003-01-29 Thread Ernest E Vogelsinger
At 15:54 29.01.2003, Vladimir Galkov spoke out and said: [snip] > Me too. I add tracks to DB only and store images as independent files. My >experiments with storing images in DB shows large memory use wich slow down >other processes (especialy if I need to c

[PHP] PHP Crashing on iPlanet 6sp4 Enterprise, Solaris 8, PHP 4.3.0

2003-01-29 Thread Dilts, John
I get this error after php executes a script a few times. This doesn't seem to reproduce under any certain conditions, typically within a few hits though. Warning: Unknown(/local/home/cxadmin/content/Sites/Site01/DocumentRoot/phpinfo.php): failed to create stream: Too many open files in Unknown o

Re: [PHP] Multiple Emails

2003-01-29 Thread Davy Obdam
Hi John, Same thing here, sometimes i think havent i read this before??.. Best regards, Davy Obdam 1LT John W. Holmes wrote: Is anyone else getting multiple emails from this list? I'm about to jump on people for asking the same question 3 or 4 times, but maybe it's just me getting co

[PHP] fsockopen(); Connection closed, when an endless loop triggers maxexecutiontime before fclose()?

2003-01-29 Thread jochen schultz
Hi, i used the function fsockopen() in a script and produced an endless loop with an output of error messages, when i tried to evaluate the returnvalues of a request. What happens to the open socketconnection now? What happens to the loop, does it stop after 30 seconds time_limit or does the ser

Re: [PHP] new

2003-01-29 Thread Maxim Maletsky
and the question is -- Maxim Maletsky [EMAIL PROTECTED] Ysrael Guzmán <[EMAIL PROTECTED]> wrote... : > Warning: Failed opening 'cliente.php' for inclusion > (include_path='.;c:\php4\pear') in Unknown on line 0 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, v

Re: [PHP] Multiple Emails

2003-01-29 Thread David T-G
John, et al -- ...and then 1LT John W. Holmes said... % % Is anyone else getting multiple emails from this list? I'm about to jump on % people for asking the same question 3 or 4 times, but maybe it's just me % getting copies of the same message. Check the Message-ID: to see if it's really the s

Re: [PHP] PHP Crashing on iPlanet 6sp4 Enterprise, Solaris 8, PHP 4.3.0

2003-01-29 Thread Maxim Maletsky
why don't you check the bug database at bugs.php.net and investigate whether there is anything similar to this? If not, test well, combine your information together (specs, code, system, trace/logs etc) and submit it as a bug. Unless, this is not a bug :) -- Maxim Maletsky [EMAIL PROTECTED] "

Re: [PHP] Remembering which option in a SELECT tag the user had chosen

2003-01-29 Thread Webapprentice
Hi John, I was thinking of inserting a check on each option, but I thought there had to be a different way. I've received ideas of storing the option values in an array and creating a function to generate that dropdown by grabbing values out of the array, so I want to go with that because that i

[PHP] Lots of Variables

2003-01-29 Thread César Aracena
Hi all, I'm about to make a site and I need all the help I can to get started. This can be a long e-mail so please be patient and read all of it :-) I will create an "intelligent" PHP script that will guide the visitors through several questions, which will lead to different options, depending on

RE: [PHP] Remembering which option in a SELECT tag the user had chosen

2003-01-29 Thread John W. Holmes
> I was thinking of inserting a check on each option, but I thought there > had to be a different way. > I've received ideas of storing the option values in an array and > creating a function to generate that dropdown by grabbing values out of > the array, so I want to go with that because that is

Re: [PHP] MySQL Madness

2003-01-29 Thread Sunfire
hi.. i came across the same problem before and it was well lets say i probably dont have any hair left (from pulling it out) hehe.. anyways you need to go into the grant tables and look to see what is set up for users.. most likely you dont have a root@localhost user because as far as i understand

[PHP] Tutorial needed

2003-01-29 Thread Alberto Brea
Does anybody know of an online tutorial explaining how to access ODBC databases with PHP? Thanks Alberto

[PHP] Problem with Date (2003-03-30)

2003-01-29 Thread Gareth Mulholland
I'm having problems with mktime and Midnight on 30th March 2003. The code I'm using is: echo mktime(0,0,1,'03','29','2003'); echo mktime(0,0,1,'03','30','2003'); echo mktime(0,0,1,'03','31','2003'); but the result is: 1048896001 -3661 1049065201 Therefore date is giving

Re: [PHP] MySQL Madness

2003-01-29 Thread Adam Voigt
MySQL infact perfectly understands what localhost is, example: GRANT ALL PRIVILEGES ON dbname.* TO bob@localhost IDENTIFIED BY 'password'; The above will work fine, and aslong as you connect in your PHP with the username "bob", and host "localhost" with pass "password" you'll be fine.

[PHP] Thank you!!!

2003-01-29 Thread Sabina Alejandr Schneider
Hello to everybody!!! this time I'm writing to you to thank you all for the help you have iven to me this last days. I'm very satisffied with this language and with the group of persons that are working here. Thank you once more for your time and help! :-) Sabina Alejandra Schneider [EMAIL PRO

RE: [PHP] Problem with Date (2003-03-30)

2003-01-29 Thread Johnson, Kirk
> -Original Message- > From: Gareth Mulholland [mailto:[EMAIL PROTECTED]] > > I'm having problems with mktime and Midnight on 30th March 2003. > > The code I'm using is: > > echo mktime(0,0,1,'03','29','2003'); > echo mktime(0,0,1,'03','30','2003'); > echo mktime(0,0,1,'03',

[PHP] Re: Lots of Variables

2003-01-29 Thread Ben
Cesar, the first thing you need to work out is a data structure. Start with your database design. I would envisage something along the lines of : TABLE : Questions FIELDS : question_id, question_text TABLE : AnswerOptions FIELDS : answer_id, question_id, answer_text TABLE: QALink FIELDS: answer_

Re: [PHP] Problem with Date (2003-03-30)

2003-01-29 Thread Dale Schell
All parameters whould be integers. Unquote them and use intval to strip the leading zeros. On 1/29/03 11:51, "Gareth Mulholland" <[EMAIL PROTECTED]> wrote: > I'm having problems with mktime and Midnight on 30th March 2003. > > The code I'm using is: > > echo mktime(0,0,1,'03','29','2003'); >

[PHP] Email being blocked

2003-01-29 Thread Ben
Hi, I have a very frustrating problem that I hope someone can give me an answer to. I'm trying to send out emails from a script, using the mail() function. This works, but only for email addresses that are in the same domain as the website ! So, if the website domain that the script is running wi

[PHP] PLEASEEE HEEEELP! CAN'T WRITE ON A FILE

2003-01-29 Thread phplam
Hello ! I'm in a mess. Please help me. Every time I tried to write with fwrite or fputs in a file, I get an error on windows nt sp6 , ie6 from "Doc. Watson" saying that Apache.exe makes an application access error . Filesystem functions: is_readable, is_writable,fopen,fclose are ok . I can create,

[PHP] GNU Readline 4 Win32

2003-01-29 Thread OjMyStEr
Hi, Is there any way I can get the 'GNU Readline' libruary on my Windows 2000 installation of PHP4? As far as I can see its only available for *NIX OSs and BSD. Is is available on win32? Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: GNU Readline 4 Win32

2003-01-29 Thread White Wolf
"Ojmyster" wrote: > Hi, > Is there any way I can get the 'GNU Readline' libruary on my Windows 2000 > installation of PHP4? As far as I can see its only available for *NIX OSs > and BSD. Is is available on win32? http://ftp.unicamp.br/pub/gnu-win32/release/readline/ 3rd hit on Google... WW --

[PHP] chat rooms

2003-01-29 Thread Edward Peloke
Does anyone have any suggestions for a good small FREe chat room to add to a family site? A friend here at work is hosting a site from home and is looking to add a chat room. Some of his site is php so if it is php based, that would be great. We even talked today about creating our own. Thanks

Re: [PHP] chat rooms

2003-01-29 Thread 1LT John W. Holmes
> Does anyone have any suggestions for a good small FREe chat room to add to a > family site? A friend here at work is hosting a site from home and is > looking to add a chat room. Some of his site is php so if it is php based, > that would be great. We even talked today about creating our own.

Re: [PHP] chat rooms

2003-01-29 Thread V Dub
Go to Hotscripts.com>PHP>ScriptsandPrograms>Groupware and download PhProjekt - chat and a whole lot more Could be too much, I dunno! VW Quoting Edward Peloke <[EMAIL PROTECTED]>: ### Does anyone have any suggestions for a good small FREe chat room to add to ### a ### family site? A friend here

Re: [PHP] chat rooms

2003-01-29 Thread Chris Hayes
At 20:33 29-1-03, you wrote: Does anyone have any suggestions for a good small FREe chat room to add to a family site? A friend here at work is hosting a site from home and is looking to add a chat room. Some of his site is php so if it is php based, that would be great. We even talked today a

Re: [PHP] Email being blocked

2003-01-29 Thread Lowell Allen
> From: "Ben" <[EMAIL PROTECTED]> > [snip] > > I'm trying to send out emails from a script, using the mail() function. This > works, but only for email addresses that are in the same domain as the > website ! > > So, if the website domain that the script is running within is > www.mysite.com, t

Re: [PHP] Tutorial needed

2003-01-29 Thread salamander
Hi Alberto, There are HOWTO's on this at www.iodbc.org Best regards, Andrew Hill On Wednesday, January 29, 2003, at 12:53 PM, Alberto Brea wrote: Does anybody know of an online tutorial explaining how to access ODBC databases with PHP? Thanks Alberto -- PHP General Mailing List (http://www

[PHP] HMAC funtion other than mhash()

2003-01-29 Thread speedphreak
Ok. I know I can use the mhash() function, but my service provider doesn't have it enabled. I'm attempting to write an HMAC function for MD5. I have a good understanding of the process, but seeing as I'm a coding newb there are a couple things that are stumping me. If you need more info on what HMA

RE: [PHP] Using custom "button" form element instead of standard "submit"?

2003-01-29 Thread Don Read
On 27-Jan-2003 Durwood Gafford wrote: > I can't figure out how to tell which button was pressed by a user when i'm > using a "button" instead of a standard "submit" form element. > > This works: > > > $parent will equal "foo" > > This doesn't work: > > src="icon.gif"> > $parent will equal "

Re: [PHP] MySQL Madness

2003-01-29 Thread Sunfire
ok sorry to repeat everything already said - Original Message - From: Adam Voigt To: Sunfire Cc: Gibbs, Liam - SXIA ; [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 1:00 PM Subject: Re: [PHP] MySQL Madness MySQL infact perfectly understands what localhost is, exampl

[PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread CF High
Hey all. This driving me nuts: I've got Apache, MySql, and Windows 2000 running on my local machine. In order to get passed php variables evaluated, whether via a url query string, or through a form post, I have to use this syntax: $_REQUEST[$my_passed_variable] I have no such problem with

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Leif K-Brooks
RTFM! Your problem is register_globals. CF High wrote: Hey all. This driving me nuts: I've got Apache, MySql, and Windows 2000 running on my local machine. In order to get passed php variables evaluated, whether via a url query string, or through a form post, I have to use this syntax: $_

RE: [PHP] A way to break up the string????

2003-01-29 Thread David Freeman
G'day Scott > Just curious, is there a PHP function that will break up the > string for us? I'm not specifically having a go at you but more observing that some people use this list as a first line of question rather than doing some work themselves. Assuming that I didn't already know what fu

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Leif K-Brooks
Mind giving a code snippet? Noah wrote: Thanks for the pleasant acronym, Leif. However, setting register_globals on or off makes no difference. The variables are still not getting evaluated BTW works fine on my laptop (Apache, MySql, Linux) --Noah - Original Message - From:

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Philip Olson
One too many $'s in your code, use: $_REQUEST['my_passed_variable'] This is how all arrays work, autoglobals are the same. See also: http://www.php.net/variables.external http://www.php.net/variables.predefined Regards, Philip On Wed, 29 Jan 2003, CF High wrote: > Hey all. > > T

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Ernest E Vogelsinger
At 01:36 30.01.2003, CF High said: [snip] >However, setting register_globals on or off makes no difference. The >variables are still not getting evaluated [snip] I _BET_ it's register_globals. Did you restart

[PHP] PHP 4.1.2 session problem

2003-01-29 Thread Alex Shi
Hi, I am sure at least I was not a newbie in the topic I am talking about. But this problem made crazy. I was hoping for a bit of help please. The problem is: you have to make double correct logins to get into the session protected area. Here is the situation: 1. server configuration: PHP 4.1.2

[PHP] strange behaviour with 4.3.0 : warning of an unspecified open_basedir

2003-01-29 Thread Robert Mena
Hi, I've upgraded the php version from 4.2.2 to 4.3.0 yesterday and some of my users started complaining about errors in php scripts. The errors do not occur all the times and the messages shown are weird (for me at least) ! The user is accessing a php file located under /var/www/html/site.com/p

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
Yup. Restarted Apache. PHP's still not evaluating the passed form vars whether register globals is set to On or Off --Noah - Original Message - From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]> To: "CF High" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 29,

  1   2   >