Re: [PHP] Trouble with PHP server script

2008-02-14 Thread Stut
Richard Lynch wrote: On Sun, February 10, 2008 9:09 pm, Robert Cox wrote: Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a URL forwarded site? I am trying to find the authorised user id so that I can access an SQL database with it. Anyone got some ideas? If you do a Loc

Re: [PHP] Trouble with PHP server script

2008-02-14 Thread Richard Lynch
On Sun, February 10, 2008 9:09 pm, Robert Cox wrote: > Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a > URL > forwarded site? I am trying to find the authorised user id so that I > can > access an SQL database with it. Anyone got some ideas? If you do a Location: with a

Re: [PHP] Trouble with PHP server script

2008-02-11 Thread Daniel Brown
On Feb 10, 2008 10:09 PM, Robert Cox <[EMAIL PROTECTED]> wrote: > Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a URL > forwarded site? I am trying to find the authorised user id so that I can > access an SQL database with it. Anyone got some ideas? Once again I'll defe

Re: [PHP] Trouble with PHP server script

2008-02-10 Thread Jim Lucas
Robert Cox wrote: Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a URL forwarded site? I am trying to find the authorised user id so that I can access an SQL database with it. Anyone got some ideas? PHP looks like this //Get User $user = $_SERVER['PHP_AUTH_USER

Re: [PHP] Trouble with PHP server script

2008-02-10 Thread Nirmalya Lahiri
--- Robert Cox <[EMAIL PROTECTED]> wrote: > Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in > a URL > forwarded site? I am trying to find the authorised user id so that > I can > access an SQL database with it. Anyone got some ideas? > > PHP looks like this > >//G

Re: [PHP] trouble with function openssl_csr_new()

2007-03-23 Thread Richard Lynch
On Wed, March 21, 2007 5:05 am, Albert Kopka wrote: > > Hi ... > > I want to generate certificate for smardcard login (MS Win-XP) > and for do that the subject of certificate should contain same key > (in key:value of $dn) multiple times for example ... > > cert generated by ca suplied with W-2

Re: [PHP] trouble with file upload page using PHP

2005-07-06 Thread Richard Davey
Hello Bruce, Thursday, July 7, 2005, 12:10:30 AM, you wrote: BG> I get an error stating: BG> "Warning: BG> copy(/hsphere/local/home/bruceg/inspired-evolution.com/LOR-BRUCE.pdf): BG> failed to open stream: Permission denied in BG> /hsphere/local/home/bruceg/inspired-evolution.com/Uploader.php on

Re: [PHP] Trouble with Apache 2.0, PHP and MySQL

2005-01-17 Thread Jason Barnett
Greg Donald wrote: On Fri, 14 Jan 2005 12:34:53 -0800, Phillip S. Baker <[EMAIL PROTECTED]> wrote: Any help here would be appreciated. Simple.. your PHP doesn't have MySQL support. Rebuild it or install the rpm or package or whatever. What kind of 'Linux box' is it? Greg is right. Also it's imp

Re: [PHP] Trouble with Apache 2.0, PHP and MySQL

2005-01-17 Thread Greg Donald
On Fri, 14 Jan 2005 12:34:53 -0800, Phillip S. Baker <[EMAIL PROTECTED]> wrote: > Any help here would be appreciated. Simple.. your PHP doesn't have MySQL support. Rebuild it or install the rpm or package or whatever. What kind of 'Linux box' is it? -- Greg Donald Zend Certified Engineer http:

Re: [PHP] Trouble with Apache 2.0, PHP and MySQL

2005-01-17 Thread Marek Kilimajer
Phillip S. Baker wrote: Greetings all, I am runnign into a strange problem. I am working on a Linux box. Running PHP 4.2.2 Apache 2.0 And it has MySQl installed on it (not sure of the version. I ran a quick script to check to make sure the connection to the DB is working fine as this is a very secu

Re: [PHP] Trouble with do..while

2004-12-06 Thread Greg Donald
On Mon, 6 Dec 2004 14:23:51 +0100, Salvatore <[EMAIL PROTECTED]> wrote: > I have that script in php that should print on a page the result of lot of > pages defined in this way: > > This is the address: www.mysite.com/mypage.php?idx=1&lines=50 Sounds to me like you want basic pagination. I'd use

Re: [PHP] Trouble with do..while

2004-12-06 Thread denys
Salvatore a écrit : If I understand correctly, have you tried this instead of the above code : while( !feof($f) ) { $stream = fread($f, 8192); $data .= $stream; } fclose($f); i found it. max_execution_time = 30 is too few for more than 3000 files:) Ooops... Sorry for leaving PHP thr

Re: [PHP] Trouble with Apache, PHP, pear

2004-07-24 Thread Marek Kilimajer
Ron King wrote: At 06:28 AM 7/23/2004, you wrote: You need php-cli rpm, it's not an extension, it's command line binary. And it won't hurt anything to have both cli and extension installed? -- Ron No -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Trouble with Apache, PHP, pear

2004-07-23 Thread Ron King
At 06:28 AM 7/23/2004, you wrote: You need php-cli rpm, it's not an extension, it's command line binary. And it won't hurt anything to have both cli and extension installed? -- Ron Ron King wrote: When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could se

Re: [PHP] Trouble with Apache, PHP, pear

2004-07-23 Thread Marek Kilimajer
You need php-cli rpm, it's not an extension, it's command line binary. Ron King wrote: When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could serve web pages, MySQL worked, and when I tried the phpinfo() function, I got a page that looked OK. I could c

Re: [PHP] Trouble with sin()

2004-07-22 Thread Jonathan Haddad
as in 20 degrees? float *sin* ( float arg) *sin()* returns the sine of the arg parameter. The arg parameter is in radians. RADIANS. |sin(deg2rad(20)); | Jon Marcus Strube wrote: Hi, i'm working with PHP 5.0.0 (Linux) and have some trouble using function sin(). In PHPs opinion sin(20) is 0

Re: [PHP] Trouble with sin()

2004-07-22 Thread Marcus Strube
Thanks a lot. I've overseen a word in the manual. Now i got it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trouble with sin()

2004-07-22 Thread Ashwin Purohit
If you want it in degrees, use sin(deg2rad(20); > On Thu, 22 Jul 2004 12:17:19 -0400, Ashwin Purohit <[EMAIL PROTECTED]> wrote: > > It's giving you sin(20) in radians, not in degrees (which is what you > > seem to want). It's not a bug. >> > > On Thu, 22 Jul 2004 17:40:21 +0200, Marcus Strube <[EM

Re: [PHP] Trouble with sin()

2004-07-22 Thread Ashwin Purohit
It's giving you sin(20) in radians, not in degrees (which is what you seem to want). It's not a bug. On Thu, 22 Jul 2004 12:17:19 -0400, Ashwin Purohit <[EMAIL PROTECTED]> wrote: > It's giving you sin(20) in radians, not in degrees (which is what you > seem to want). It's not a bug. > > > > On

Re: [PHP] Trouble with arrays from within MySQL results where clause

2004-07-12 Thread Jason Wong
On Tuesday 13 July 2004 00:05, Eric Boerner wrote: > I am having trouble setting array data from within a MySQL results > query. I have modified data from the result and wish to enter it into > it's own array ($data). That then is used to generate a graph. The > following code basically gives me a

Re: [PHP] Trouble with arrays from within MySQL results where clause

2004-07-12 Thread John W. Holmes
Eric Boerner wrote: Hello all, I am having trouble setting array data from within a MySQL results query. I have modified data from the result and wish to enter it into it's own array ($data). That then is used to generate a graph. The following code basically gives me an empty array... I doubt the

RE: [PHP] Trouble with arrays from within MySQL results where clause

2004-07-12 Thread Eric Boerner
Nevermind, I figured it out. Simple case of duh... $data[] = array('$time' => '$time','$aval' => 'aval'); Should have been: $data[] = array('$time' => "$time" ,'$aval' => "aval"); Thanks. :) -Original Message- From: Eric Boerner [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: [PHP] Trouble with using isset and form posting

2004-05-13 Thread Jay Blanchard
[snip] A simplified version of the code is shown below and is posting to itself. Any idea what I'm doing wrong? Untitled Document Please Enter [/snip] I tried this (navigated directly to the page) and it worked. You probably want to set the GET array thingie though...like this

Re: [PHP] Trouble with ftp_get function

2004-03-11 Thread Raditha Dissanayake
If you are using double quotes teh file name should be c:\\thefile.txt Benjamin wrote: I'm sorry if this has already been asked before... I am trying to make a small ftp app using this line to download files: if( !ftp_get( $conn_id , "C:\thefile.txt" , $HTTP_GET_VARS['file'] , FTP_BINARY ) ) $

Re: [PHP] Trouble with Session var

2003-08-02 Thread Curt Zirzow
* Thus wrote James Johnson ([EMAIL PROTECTED]): > Hello, hello james. > > Is there a limit or something to the number of Session vars that can be > used? I've even tried setting a Session var called "foo" and that doesn't > work. None that php enforces, only the operating system's filesystem an

RE: [PHP] Trouble with Session var

2003-08-02 Thread James Johnson
DOH! Nevermind, I mis-spelled session_start(). :( -Original Message- From: James Johnson [mailto:[EMAIL PROTECTED] Sent: Saturday, August 02, 2003 4:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Trouble with Session var Hello, This one has me stumped. I'm setting a session var to a value

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Adam Voigt wrote: > I think what you want is: > > move_uploaded_file($_FILES['imagefile']['tmp_name'],$ftpdir . > $_FILES['imagefile']['name']); > > (Apologies if it wraps, that should be all one line.) > > > > On Wed, 2003-05-28 at 12:58, Adnan wrote: >> Adam Voigt wrote: >> >> > Hmm, what'

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adam Voigt
I think what you want is: move_uploaded_file($_FILES['imagefile']['tmp_name'],$ftpdir . $_FILES['imagefile']['name']); (Apologies if it wraps, that should be all one line.) On Wed, 2003-05-28 at 12:58, Adnan wrote: > Adam Voigt wrote: > > > Hmm, what's the exact error message you get? > > >

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Adam Voigt wrote: > Hmm, what's the exact error message you get? > > > On Wed, 2003-05-28 at 12:43, Adnan wrote: >> Adam Voigt wrote: >> >> > If your running under linux/unix, do: >> > >> > chown webuser:webuser /tmp/php >> > >> > Supplement /tmp/php with whatever upload path you have >> > se

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adam Voigt
Call me an optimist but if you don't get any error's, that usually means it worked. You do know that the uploaded file is erased when the page ends right? You have to use a call to move_uploaded_file to actually put it somewhere on the file system. On Wed, 2003-05-28 at 12:53, Adnan wrote: > Ada

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Adam Voigt wrote: > Hmm, what's the exact error message you get? > > > On Wed, 2003-05-28 at 12:43, Adnan wrote: >> Adam Voigt wrote: >> >> > If your running under linux/unix, do: >> > >> > chown webuser:webuser /tmp/php >> > >> > Supplement /tmp/php with whatever upload path you have >> > se

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adam Voigt
Hmm, what's the exact error message you get? On Wed, 2003-05-28 at 12:43, Adnan wrote: > Adam Voigt wrote: > > > If your running under linux/unix, do: > > > > chown webuser:webuser /tmp/php > > > > Supplement /tmp/php with whatever upload path you have > > set in your php.ini, and webuser with

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Adam Voigt wrote: > If your running under linux/unix, do: > > chown webuser:webuser /tmp/php > > Supplement /tmp/php with whatever upload path you have > set in your php.ini, and webuser with whatever user your > webserver runs as. > > > > On Wed, 2003-05-28 at 12:33, Adnan wrote: >> Jason Wo

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adam Voigt
If your running under linux/unix, do: chown webuser:webuser /tmp/php Supplement /tmp/php with whatever upload path you have set in your php.ini, and webuser with whatever user your webserver runs as. On Wed, 2003-05-28 at 12:33, Adnan wrote: > Jason Wong wrote: > > > On Wednesday 28 May 2003

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Adnan
Jason Wong wrote: > On Wednesday 28 May 2003 20:11, Adnan wrote: > >> i have been having trouble working out how to upload an image, the most >> progress ive made is putting a blank file on the server, but thats it, >> any suggestions anyone?? > > If you're wanting to do HTTP uploads then manual

Re: [PHP] Trouble With FTP_PUT Please Help!

2003-05-29 Thread Jason Wong
On Wednesday 28 May 2003 20:11, Adnan wrote: > i have been having trouble working out how to upload an image, the most > progress ive made is putting a blank file on the server, but thats it, any > suggestions anyone?? If you're wanting to do HTTP uploads then manual > Handling file uploads tells

Re: [PHP] Trouble with resizing image!!

2003-02-10 Thread Geckodeep
thanks Marek, it never crossed my mind about time, i was using it to have a unque name to the uploaded file. I'll try the script without the time and see. Thanks "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At first glance I noticed you use

Re: [PHP] Trouble with resizing image!!

2003-02-10 Thread Marek Kilimajer
At first glance I noticed you use time() all over your script and expect it to be always the same. But the function returns current time, so it changes! Use $n_image1 = time().$_FILES['image1']['name']; and remove all time() functions Geckodeep wrote: I am having trouble in resizing the im

Re: [PHP] trouble with update from php 3 to php 4.2.3

2002-12-04 Thread Philip Olson
If you want to do relative includes, you must have a . in your include_path. Maybe this is what you are meaning to do. Please reread this: http://www.php.net/configuration.directives.php#ini.include-path And if you still have problems after adjusting it and restarting the web server, tell us

Re: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-06 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nope... same error. Patch worked perfectly, LDFLAGS=-lstdc++ did too. End result: same error. Any other ideas??? On Wednesday 06 November 2002 09:09 am, you wrote: > Hi, > > Wednesday, November 6, 2002, 2:50:42 PM, you wrote: > EN> -BEGIN PGP SI

Re: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-06 Thread Tom Rogers
Hi, Wednesday, November 6, 2002, 2:50:42 PM, you wrote: EN> -BEGIN PGP SIGNED MESSAGE- EN> Hash: SHA1 EN> I'm trying to get XSLT working with PHP, and after slowly working my way EN> through several other problems, I've found one that I can't figure out. EN> Software: EN> PHP 4.2.3 EN>

Re: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-05 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nope. Same error. Good idea, though... - -Evan On Tuesday 05 November 2002 01:56 pm, .: B i g D o g :. wrote: > Try specifying the sablot installation directory in the configuration > > --with-xslt-sablot=/some/dir > > On Wed, 2002-11-06 at 04:50,

Re: [PHP] Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96

2002-11-05 Thread .: B i g D o g :.
Try specifying the sablot installation directory in the configuration --with-xslt-sablot=/some/dir On Wed, 2002-11-06 at 04:50, Evan Nemerson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I'm trying to get XSLT working with PHP, and after slowly working my way > through several

Re: [PHP] trouble with maximum_execution_time and file upload

2002-11-04 Thread Marek Kilimajer
If you are running in safe mode, setting time limit has no effect Eduardo M. Bragatto wrote: I've send an e-mail with a doubt related with the "maximum_execution_time" variable but it has no answers, so, I'm submiting it again... I'm using a single php script to send files named upload.

RE: [PHP] Trouble with switch statements

2002-10-27 Thread Gareth Hastings
Edward, Try Case "1": . Break; -Original Message- From: Edward Kehoe [mailto:emkehoe@;learn.senecac.on.ca] Sent: Friday, October 25, 2002 6:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Trouble with switch statements Ok...I just recently installed Apache1 and PHP 4.2.3 on m

Re: [PHP] Trouble with switch statements

2002-10-27 Thread @ Edwin
Hello, "eNetwizard Developers Team" <[EMAIL PROTECTED]> wrote: > > Use $_GET["select"] for the switch statement > > Some of the people on this list would even recommend you make another > variable first, such as $userselect = $_GET["select"] and use > $userselect as your switch statement, thoug

Re: [PHP] Trouble with switch statements

2002-10-26 Thread eNetwizard Developers Team
Use $_GET["select"] for the switch statement Some of the people on this list would even recommend you make another variable first, such as $userselect = $_GET["select"] and use $userselect as your switch statement, though I think it pointless. Or turn register_globals on in the php.ini file (not

RE: [PHP] Trouble with switch statements

2002-10-26 Thread Thoenen, Peter Mr. EPS
switch($_GET['select']){ case 1: .. -Peter > -Original Message- > From: Edward Kehoe [mailto:emkehoe@;learn.senecac.on.ca] > Sent: Friday, October 25, 2002 19:47 > To: [EMAIL PROTECTED] > Subject: [PHP] Trouble with switch statements > > > Ok...I just recently installed Apa

Re: [PHP] Trouble with \\ and form

2002-10-16 Thread Marek Kilimajer
Easy way is stripslashes(), just watch out you don't put stripslashed field input into the database Christian Ista wrote: >Hello, > >I'm trying the example1 give in xml_parse_into_struct section here : >http://www.php.net/manual/en/function.xml-parse-into-struct.php > >works fine. > >But know I

RE: [PHP] Trouble with understanding arrays

2002-10-02 Thread Andy Crain
It looks like your problem is simply in the debug line, where you echo print_r(array_values($TickersCurrent)); You shouldn't call array_values() before print_r(), since array_values generates an indexed array of only the values (quotes), not the keys (tickers), of the supplied array, essentially t

Re: [PHP] trouble with function

2002-08-25 Thread Justin French
Thanks for all your help :) Justin on 26/08/02 1:55 AM, Michael Sims ([EMAIL PROTECTED]) wrote: > On Sun, 25 Aug 2002 10:49:00 -0500, you wrote: > >> static $myrow; >> if($myrow = mysql_fetch_array($result)) { > [...] > > Oops. We want to remember the position of the result set, so it's > $r

Re: [PHP] trouble with function

2002-08-25 Thread Michael Sims
On Sun, 25 Aug 2002 10:49:00 -0500, you wrote: >static $myrow; >if($myrow = mysql_fetch_array($result)) { [...] Oops. We want to remember the position of the result set, so it's $result that should be static, not $myrow. In addition, you'll have to put a check at the top of the function to see

Re: [PHP] trouble with function

2002-08-25 Thread Michael Sims
On Mon, 26 Aug 2002 01:12:56 +1000, you wrote: >However, I was hoping to use it in a similar way that I use mysql in the >above code... something like: >while($song = getSongByArtist(4)) >{ >echo song['title']; >echo song['writers']; >echo song['video']; >echo song['artist_id'

Re: [PHP] trouble with function

2002-08-25 Thread Matt
Everytime you call the function, it re-runs the sql, and gives you the same list. The only time it wouldn't do that was if the id wasn't found. You could probably change the function to a class, where the constuctor ran the sql, and then you had another method to get the next entry. - Origi

RE: [PHP] Trouble with \

2002-07-24 Thread John Holmes
> > Try this function: > > http://www.php.net/manual/en/function.stripslashes.php > > Oddly enough, as I told John, I did that as well and it doesn't work. Are the \ there to escape anything, like ' or " or are they just in there by themselves..as a delimiter or something. If the \ is by itself,

Re: [PHP] Trouble with \

2002-07-24 Thread Justin French
on 25/07/02 8:30 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Anyway, with asides to the snooty "RTFM" reply I got, I thought I'd share. No, I agree with the RTFM statement. A simple search for "remove slashes" on php.net would have resulted in links to all the slashes functions, includin

RE: [PHP] Trouble with \

2002-07-24 Thread skeller
> If the "\" are showing up in form posted data just do this: > > $newtext = stripslashes($oldtext); That's what I'm doing now before they're written to the file. > The slashes are put before any single or double quote by a > nifty little php feature called "magic quotes". By escaping > quotes i

RE: [PHP] Trouble with \

2002-07-24 Thread skeller
> It's extremely important as to where you put the function within your > script. Understood, and as I said before, I'm fairly new to PHP, so I'm bound to make the boneheaded mistakes. But I did try and solve it myself before begging for help :) Basically, the user enteres some text into a form,

Re: [PHP] Trouble with \

2002-07-24 Thread Tech Support
If the "\" are showing up in form posted data just do this: $newtext = stripslashes($oldtext); The slashes are put before any single or double quote by a nifty little php feature called "magic quotes". By escaping quotes in form posted data you greatly reduce the risk of sql injections and other

Re: [PHP] Trouble with \

2002-07-24 Thread Richard Baskett
n blend passion, reason and courage in a personal commitment to the great enterprises and ideals of American society." - Robert F. Kennedy > From: <[EMAIL PROTECTED]> > Date: Wed, 24 Jul 2002 14:48:07 -0800 > To: "PHP List \(E-mail\)" <[EMAIL PROTECTED]> > Sub

RE: [PHP] Trouble with \

2002-07-24 Thread skeller
> Try this function: > http://www.php.net/manual/en/function.stripslashes.php Oddly enough, as I told John, I did that as well and it doesn't work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trouble with \

2002-07-24 Thread Richard Baskett
Try this function: http://www.php.net/manual/en/function.stripslashes.php Rick "And God shall wipe away all tears from their eyes; and there shall be no more death, neither sorrow, nor crying, neither shall there be any more pain: for the former things are passed away." - Revelation 21:4 > Fr

Re: [PHP] Trouble with recocnizing jpeg files. Some work, some do not

2002-05-19 Thread andy
I thought this is a secure way to find out if the file is a jpeg or not. So you are suggesting to passit to the unix command file? How does that work. Maybe you can make a small example or give a small hint on what to look for on google. Sound interesting! I tryed to to perform a createfromjpeg c

Re: [PHP] Trouble with recocnizing jpeg files. Some work, some donot

2002-05-19 Thread Miguel Cruz
On Sun, 19 May 2002, andy wrote: > I do have trouble with finding out if a file is a jpeg or not. This is the > command I am using: > > $_FILES[picture_location][type] > > works fine exept in one case: With Photoshop 6.0 I do open the jpeg (which > workes fine) an save as jpeg as another file

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-24 Thread Jim Hankins
No, the @ was in the right place (if memory serves me the book said this suppresses the error output.) The problem was my sock file was not in the default location so I had to specify it. If you check the thread the answer is there on how to find where your sock is located. Best Regards, Jim Ha

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Gerard Samuel
Is that supposed to be -> $db = @mysql_pconnect("localhost", "bookorama", "bookorama123"); Jim Hankins wrote: > I'm doing a simple database connection using the follow syntax: > > > > Book-O-Rama Search Results > > > Book-O-Rama Search Results >if (!$searchtype || !$searchterm) > { >

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Jim Hankins
never mind got it "localhost:/pathto/mysql.sock" duh? :) Thanks a million, I'm up and running. - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Jim Hankins" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Jim Hankins
Can you give me a syntax example. I've found my sock file but seem to be having trouble getting it right on the mysql_pconnect line, my sock is /var/lib/mysql/mysql.sock Thanks in advance! So close but yet so far. :) My first MySql project. "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in messa

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Rasmus Lerdorf
Figure out where your mysql.sock file is and provide the path right in your mysql_connect() call. "mysqladmin version" tells you the path. -Rasmus On Sat, 23 Mar 2002, Jim Hankins wrote: > I'm doing a simple database connection using the follow syntax: > > > > Book-O-Rama Search Results >

Re: [PHP] trouble with deleting files on unix

2002-03-14 Thread Jason Wong
On Thursday 14 March 2002 20:01, andy wrote: > Hi there, > > I know this is not a unix board, but maybe someone had to cope with the > same problem. > > I have a couple of wired filenames matching all this pattern .jpeg: > > How can I delete all files matching this pattern recursive in all > dire

RE: [PHP] trouble with telnet.

2002-03-01 Thread Vlad Kulchitski
Actually there's a nice bash command: $ which mysql that is supposed to show you the folder where binary is... I mean my understanding is if there's 'mysql' binary that means mysql is installed. alternatively you can do this also: $ find / mysql*// what this one will do is it will sta

Re: [PHP] trouble with telnet.

2002-03-01 Thread Andrey Hristov
locate mysqld whereis mysql Regards, Andrey - Original Message - From: "Sean Kennedy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 01, 2002 7:05 PM Subject: [PHP] trouble with telnet. Hello, I telneted to my web server and I would like to see if they have MySQL. Is

Re: [PHP] Trouble with Sessions

2002-02-21 Thread Todor Stoyanov
nt to give out bad advice :) Rick "The old law about "an eye for an eye" leaves everybody blind." - Dr. Martin Luther King, Jr. > From: Steven Walker <[EMAIL PROTECTED]> > Date: Wed, 20 Feb 2002 19:57:48 -0800 > To: "Phillip S. Baker" <[EMAIL PROTE

Re: [PHP] Trouble with Sessions

2002-02-20 Thread Richard Baskett
er King, Jr. > From: Steven Walker <[EMAIL PROTECTED]> > Date: Wed, 20 Feb 2002 19:57:48 -0800 > To: "Phillip S. Baker" <[EMAIL PROTECTED]> > Cc: PHP Email List <[EMAIL PROTECTED]> > Subject: Re: [PHP] Trouble with Sessions > > Phillip, &

Re: [PHP] Trouble with Sessions

2002-02-20 Thread Steven Walker
Phillip, I had the same problem. It's even worse in IE5 since no error was displayed, just an empty form. To circumvent this, I put PHP controls for navigating. To go back, a button called 'modify' resubmits the data to the form page. On my site, if the user clicks the back button, they get h

Re: [PHP] trouble with headers

2002-02-14 Thread Erik Price
On Wednesday, February 13, 2002, at 05:18 PM, Rick Emery wrote: > Next time you go to the PHP Manual (dated 19-09-2001) for answers, go > to the > title page and count down 5 names... Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing

RE: [PHP] trouble with headers

2002-02-13 Thread Rick Emery
mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 3:59 PM To: Lars Torben Wilson Cc: PHP Subject: Re: [PHP] trouble with headers On Wednesday, February 13, 2002, at 04:12 PM, Lars Torben Wilson wrote: > Well, PHP isn't an HTML parser and has no concept of a DOM, or the > SGM

Re: [PHP] trouble with headers

2002-02-13 Thread Erik Price
On Wednesday, February 13, 2002, at 04:12 PM, Lars Torben Wilson wrote: > Well, PHP isn't an HTML parser and has no concept of a DOM, or the > SGML-based nature of HTML, or anything like that (although there are > extensions which do this). Essentially, PHP generates a series of bytes, > which

Re: [PHP] trouble with headers

2002-02-13 Thread Lars Torben Wilson
On Tue, 2002-02-12 at 17:57, Erik Price wrote: > Sorry, I debugged it myself. > > Don't add extra whitespace lines after you jump out of PHP mode (for > instance, at the end of an include file, don't have any extra lines > after the '?> PHP-jump-out mark'. The extra lines at the bottom of the

Re: [PHP] trouble with headers

2002-02-13 Thread Erik Price
On Tuesday, February 12, 2002, at 09:10 PM, Miles Thompson wrote: > You're right Erik. Subtle, ain't it? > > On the other hand, look how accepting browsers are of malformed HTML. > I'm inclined to think that today they see the tag and 'think': > "So, we assumed HTML anyway." True! I supp

Re: [PHP] trouble with headers

2002-02-12 Thread Miles Thompson
You're right Erik. Subtle, ain't it? On the other hand, look how accepting browsers are of malformed HTML. I'm inclined to think that today they see the tag and 'think': "So, we assumed HTML anyway." Cheers - Miles Thompson At 08:57 PM 2/12/2002 -0500, Erik Price wrote: >Sorry, I debugged

Re: [PHP] trouble with headers

2002-02-12 Thread Erik Price
Sorry, I debugged it myself. Don't add extra whitespace lines after you jump out of PHP mode (for instance, at the end of an include file, don't have any extra lines after the '?> PHP-jump-out mark'. The extra lines at the bottom of the functions include file was being interpreted as the end

RE: [PHP] Trouble with PNGs

2001-11-03 Thread Daniel Reichenbach
> I'm using PHP 4.0.6 with GD-2.0.1 and Freetype 2 compiled in. After > playing a while with gd, I found that i can generate blank images > with TTF text on it and can put text with imagestring on a png, > but writing with ImageTTFText fails. Okay, I've tried it with PNG and JPEG, nut nothing work

Re: [PHP] Trouble with php generated images

2001-10-30 Thread Jason G.
Give ImagePNG a try... -Jason Garber At 10:22 PM 10/29/2001 -0800, costa wrote: >The text printed on this image looks sloppy and grainy. (This image is being >generated on a linux server RH 7.1, Apache 1.3.19, with GD 1.8) I remember >seeing something about adjusting the quality of the image, bu

Re: [PHP] Trouble with php generated images

2001-10-29 Thread speedboy
> The text printed on this image looks sloppy and grainy. (This image is being > generated on a linux server RH 7.1, Apache 1.3.19, with GD 1.8) It looks fine on GD 2.0.1 using arial.ttf. Maybe you could try another font? > My question is this, is there a > way to generate a quality image or i

RE: [PHP] Trouble with getimagesize

2001-07-24 Thread Kurt Lieber
What does $UPLOADFILE resolve to? getImageSize() didn't support URLs until 4.0.5, so if you're trying to use a URL in PHP3, it won't work. --kurt > -Original Message- > From: Patrick J. Militzer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 9:39 AM > To: Php3 > Subject: [PH

Re: [PHP] Trouble with php 4.06 and Apache

2001-07-11 Thread Tyler Longren
I would also like to know what's going on with that error. I have gotten that while compiling on FreeBSD. Tyler - Original Message - From: "Heiko Maiwald" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 3:06 PM Subject: [PHP] Trouble with php 4.06 and Apache

Re: [PHP] trouble with reading session variables: BUG?

2001-02-03 Thread Richard Lynch
> When using Cookies for session management everything works fine (the > authentication part). But not passing the values of the session variables. > In the example below the existence of '$ident' is verified. But no chance to > get its value: no 'echo' prints out anything! Even isset() denies the

Re: [PHP] trouble with odbc

2001-02-01 Thread Remco Chang
hi michael, if you read the PHP manual, i think it says something like "odbc_num_rows" might or might not return the correct number of rows after a "SELECT" statement. in the case of easysoft odbc driver (which is what we're using as well), odbc_num_rows always returns -1 on a SELECT statement (

Re: [PHP] trouble with a query object

2001-01-30 Thread Richard Lynch
> $nameArray = array("Last", "Suffix", "Prefix", "First", "Middle"); > while (list($key, $value) = each ($nameArray)){ > if ($infoObject->$value != ""){ > echo "$infoObject->$value";#this is the problem line... > } > } > > > If I take out the "$infoObject->" on th

Re: [PHP] trouble with updating the id numbers

2001-01-26 Thread Richard Lynch
> Hi all. In the project I'm working on, I've got a table with ids that are > written based on how many records are in the table. i.e., the first record > has an ID of 1, the 50th is 50, etc. When a row gets deleted (I created a > web interface, I don't want all these members using phpMyAdmin),