Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread David Johansen
I'm doing exactly what you said and here's what it says when I call $PHP_SELF in the include file: http://12.254.227.149/brbWarning/b:%20%20Undefined%20variable:%20%20PH P_SELF%20in%20bc:/inetpub/wwwroot/pages.inc/b%20on%20line%20b35/bbr ?page=questions Lars Torben Wilson [EMAIL PROTECTED]

Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread David Johansen
Here's the chunk of code in the include file that gave me that. I should have put it with the original post: ?php function questions() { ? font face=Times New Roman size=5 color=#003399U/font/bfont face=Times New Roman size=2 /fontfont face=Times New Roman size=4b a href=?php echo

Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread Lars Torben Wilson
On Tue, 2002-03-12 at 15:13, David Johansen wrote: I'm doing exactly what you said and here's what it says when I call $PHP_SELF in the include file: http://12.254.227.149/brbWarning/b:%20%20Undefined%20variable:%20%20PH P_SELF%20in%20bc:/inetpub/wwwroot/pages.inc/b%20on%20line%20b35/bbr

RE: [PHP] $PHP_SELF in include files

2002-03-12 Thread Jason Murray
?php function questions() { [snip] a href=?php echo $PHP_SELF??page=questionsfont [snip] } ? $PHP_SELF is unknown to the function questions(). You'll need to add global $PHP_SELF at the top of the function. Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT Work

Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, David Johansen wrote: you might try global $PHP_SELF; in that function... Here's the chunk of code in the include file that gave me that. I should have put it with the original post: ?php function questions() { ? font face=Times New Roman size=5

[PHP] Pache .htpasswd Encryption

2002-03-12 Thread Chris Burwell
I am trying to make a script that adds users to a Apache .htpasswd file. I was wonderering how I would encrypt a password the same way Apache does, but using PHP. I should also mention that I am using PHP 4.1.1 and Apache 1.3.X under windows XP Pro. -- PHP General Mailing List

[PHP] \n Seems not to work fine

2002-03-12 Thread Anton
I cannot get a breakline or line appart with \n with printf or print, I've to use always BR. \n shows only a space. I've installed latest stable version of php and apache bath under Linux and W2k. Anybody knows something about? Thanks in advance. -- PHP General Mailing List

Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread Lars Torben Wilson
On Tue, 2002-03-12 at 15:17, David Johansen wrote: Here's the chunk of code in the include file that gave me that. I should have put it with the original post: Ach. Well, $PHP_SELF is in the global scope, so you will either need to use 'global $PHP_SELF;' at the beginning of your function, or

RE: [PHP] \n Seems not to work fine

2002-03-12 Thread Jason Murray
I cannot get a breakline or line appart with \n with printf or print, I've to use always BR. \n shows only a space. HTML does not break lines on newlines in the source code. That's why BR is there. If you look at the source code, you'll see there is a newline in the source. Remember that

[PHP] Dynamic Webpage AGAIN!

2002-03-12 Thread Omland Christopher m
Anyone have a good link to a tutorial on creating dynamic web pages in PHP, mainly I'm interested in loading navigation bars and that kind of thing. If you have code you can send that would help too. Thanks. -Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] deleting records in mysql

2002-03-12 Thread Michael P. Carel
There were no error message for both of the interface,the field records just remain the same and still in the table upon deletion. This happen intermittently(sometimes it deletes and sometimes it does'nt). The php scripts that i've created checked the records of the table and if it's still exists

[PHP] PHP 4.12 Locally, Deploy to Multiple Versions

2002-03-12 Thread John Steele
Hello, I develop locally on win9x, and deploy to everything from 3.0.18 to 4.1.2 remotely (Linux/*nix/Raq/Solaris/FreeBSD). So I need to keep register_globals true on this development machine. But, I've found since 4.0.5 and up, that $PHP_SELF is set, but *EMPTY*. I just deleted the

[PHP] auto redirection

2002-03-12 Thread Michael P. Carel
Hi to all, Is there anyone who could help me in redirecting the page outside the Frame page once a certain line of php scripts(or whatever) is executed or echoed out. My page redirection are appearing in the Frame page which it should not be. Please help. Regards, Mike -- PHP General

[PHP] Persistent Links help needed

2002-03-12 Thread WG4- Cook, Janet
Hi All, I have multiple PHP pages and make my connection to the MySQl db in one of these pages. When I go to the next one any mysql commands seem not to work - it look like the connection to the DB is lost! I have a feeling this is to do with persistent connections so here is the relevant

Re: [PHP] auto redirection

2002-03-12 Thread Analysis Solutions
On Wed, Mar 13, 2002 at 08:41:38AM +0800, Michael P. Carel wrote: Is there anyone who could help me in redirecting the page outside the Frame page once a certain line of php scripts(or whatever) is executed or echoed out. My page redirection are appearing in the Frame page which it should

[PHP] mysql problems

2002-03-12 Thread Maarten Weyn
Hi on this code: $link = mysql_connect(localhost, login, passwd); mysql_select_db(table); $result = mysql_query(select * from table); while ($row = mysql_fetch_object($result)) { echo $row-ID; echo $row-Drank; } mysql_free_result($result); mysql_close($link); It resulst in Warning:

Re: [PHP] mysql problems

2002-03-12 Thread hugh danaher
Maarten, Perhaps table isn't the name of the table you want. If mysql can't find the table (in line 13?), your $result variable is empty and this causes (line 17?) to fail also. Hope this helps, Hugh - Original Message - From: Maarten Weyn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

RE: [PHP] Re: Can't display PNG images

2002-03-12 Thread Narvaez, Teresa
Thank you so much for your responses. Thanks for any response! I now the GD libraries with PNG support. However, the image is still broken. I looked at the apache server error log and this is what showed up when I run zero.php(See below): libpng warning: Application was compiled with png.h

Re: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Faisal Abdullah
Try date(d/m/Y h:m A); On Tuesday 12 March 2002 18:29, Balaji Ankem wrote: Hi, I have stored the date and time in mysql table with DATETIME type. I want to change it in to DD/MM/ HH:MM AM or PM. How can I do this? Thanks in advance Balaji -- PHP General Mailing

RE: [PHP] mysql problems

2002-03-12 Thread Narvaez, Teresa
I agree with Hugh. I think it is always a good idea to check for return values of any function call. So, I'd replace this line: $result = mysql_query(select * from table); with $result = mysql_query(select * from table); or die(Unable to connect to SQL server: .

Re: [PHP] newbie: using sessions

2002-03-12 Thread Faisal Abdullah
Don't you have to assign the login value to the session variable first? session_start(); $login = $HTTP_POST_VARS(login); session_register(login); How are you using you're session? Are you registering the variable for later use? session_start(); session_register(login); $login =

[PHP] md5() different from md5sum on Linux

2002-03-12 Thread Mikhail Avrekh
Hello, Don't know if this is a question of (mis)configuration; I'm posting this just in case someone had run into this before: PHP's native md5() appears to return a different value from Linux's md5sum command: [mavrekh ~]$ echo blah | md5sum 0d599f0ec05c3bda8c3b8a68c32a1b47 - [mavrekh ~]$

RE: [PHP] Re: Can't display PNG images

2002-03-12 Thread Tom Rogers
Hi You will probably have to recompile gd as well. Tom At 11:33 AM 13/03/2002, Narvaez, Teresa wrote: Thank you so much for your responses. Thanks for any response! I now the GD libraries with PNG support. However, the image is still broken. I looked at the apache server error log and this

Re: [PHP] md5() different from md5sum on Linux

2002-03-12 Thread David Ford
hehehyou forgot something :) echo blah is actually blah\n # echo -n blah |md5sum 6f1ed002ab5595859014ebf0951522d9 stdin -d Mikhail Avrekh wrote: Hello, Don't know if this is a question of (mis)configuration; I'm posting this just in case someone had run into this before: PHP's native

[PHP] How to get the FULL address of a certin page???

2002-03-12 Thread eric.coleman
I have a url like this: http://192.168.1.2/site/add_article.php?sid=5234a0f5acea9aa245dbe9846f6ace1c And I need to be able to RETURN the FULL url, how would i do this? I don't think there is any one function/variable to do this.. I tried __FILE__ but that just returns the path.. Thanks, Eric

RE: [PHP] Hi How to convert the time from mysql(DATETIME) table to the format DD/MM/YYYY HH:MM AM or PM in PHP?

2002-03-12 Thread Balaji Ankem
Hi, I already have the date in mysql (DATETIME)format in variable called $start_date. I would like to convert that in to the form DD/MM/ HH:MM AM or PM. Thanks in advance. -Balaji -Original Message- From: Faisal Abdullah [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

[PHP] php-4.1.2 gd-2.0.1 and freetype-2.0.8 SOLUTION

2002-03-12 Thread Richard Archer
There was recently a thread on this list discussing the installation of php 4.1.x with gd-2.0.1 and freetype-2.0.8. The conclusion of this discussion was that php-4.1.x requires gd-2.0.2 which has not yet been released. I have obtained a copy of a patch to gd written by Wez Furlong (who also

Re: [PHP] How to get the FULL address of a certin page???

2002-03-12 Thread Analysis Solutions
On Tue, Mar 12, 2002 at 10:32:38PM -0500, [EMAIL PROTECTED] wrote: I have a url like this: http://192.168.1.2/site/add_article.php?sid=5234a0f5acea9aa245dbe9846f6ace1c And I need to be able to RETURN the FULL url, how would i do this? I don't think there is any one function/variable to

[PHP] Random number Question

2002-03-12 Thread Jennifer Downey
Hi all, I having a hard time understanding why this won't work. I have a form which is suppose to pass the guess to the script. Here it is: the form is guess.php: form action=number.php method=post The computer has picked a number between 1 and 10. Guess the number and you win!BR Enter your

RE: [PHP] Random number Question

2002-03-12 Thread Balaji Ankem
Try Now: form action=number.php method=post The computer has picked a number between 1 and 10. Guess the number and you win!BR Enter your guess: input type=text name=guess value= size=3 INPUT TYPE=submit VALUE=Submit my number NAME=submit /form -Original Message- From: Jennifer Downey

Re: [PHP] Random number Question

2002-03-12 Thread Jason Wong
On Saturday 13 March 2010 11:54, Jennifer Downey wrote: Hi all, I having a hard time understanding why this won't work. I have a form which is suppose to pass the guess to the script. Here it is: It's no good just telling us it doesn't work. You need to tell us what happens when you run it.

[PHP] Re: Selective seeing =)

2002-03-12 Thread Nico Vrouwe
not tested :) $lines = file( 'http://www.cow.net/cows/' ); print $lines[ rand()%sizeof($lines) ]; /nico Liam [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 12/03/2002 11:20:18 PM Hey all, I'm looking to write a PHP script that will cut all content out of a

[PHP] Humorous PHP code for t-shirts

2002-03-12 Thread jhj hjhjhj
Hey people, I was asking myself if anybody of you guys have any humorous code in PHP to be used in personal t-shirts. Thanks! Jhon. _ Do You Yahoo!? La emoción e intensidad del deporte en Yahoo! Deportes. http://deportes.yahoo.com.mx --

[PHP] problems creating php extension

2002-03-12 Thread Cristóvão B. B. Dalla Costa
Hi I'm currently working on a proprietary application server being used within my company. It uses a proprietary protocol over TCP/IP to interface to remote clients and we currently use an extension I made for PHP 4.0.6. The problems came when we upgraded to PHP 4.1.x. We could compile our

[PHP] PHP and permissions

2002-03-12 Thread Don
Hi, I have a question about how PHP runs. I have a file on my FreeBSD server that is owned by another user but is the same group as myself. The file has read/write permissions for the user only. Therefore, when I log onto the server I cannot read or write to the file. In fact, I can not

[PHP] setcookie problem: Cannot add header information - headers already sent by

2002-03-12 Thread bob
here is the example: ?php // Beginning php // Saving the page header in the variable $head. $head = ENDH !DOCTYPE HTML PUBLIC -//IETF//DTD HTML//EN html head titleFeedback form/title /head body bgcolor=white h1 align=centerFeedback form/h1 ENDH; // End of page header // Saving

Re: [PHP] PHP regular expression

2002-03-12 Thread S.Murali Krishna
Here is it $html = preg_replace('/?Email:\s+\w.*\.[\w.]*?/',,$html); I tested it and its working. On Tue, 12 Mar 2002, Rodrigo Peres wrote: Hi list, I have a huge text file with many text on it. I'd like to know if someone can help in construct a regular expression to delete everything

Re: [PHP] Help in PHPDoc

2002-03-12 Thread S.Murali Krishna
Hi Andrey Thanks for your kind response first. I did the way you told but still after executing index.php, there is nothing in my doc directory just see the following snap of my code. I want to create documentation for ./xPage/xPagedoc.inc file and want the documentation to be in

Re: [PHP] Help in PHPDoc

2002-03-12 Thread Andrey Hristov
From PhpdocSetupHandler.php * * By default only files with the suffix .php are recognized as * php source code files and parsed. If you used other * suffixes such as .inc you have to tell phpdoc to parse * them. $doc-setSourceFileSuffix( array (php, inc) ); in index.php Regards, Andrey

[PHP] Solution: ImagePng: No PNG support in this PHP build

2002-03-12 Thread Josep Raurell
Quoting Jason Wong [EMAIL PROTECTED]: - Whenever I recompile PHP, I always start with a clean extract from the source tarball. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Ok this is solve the problem. I did a make clean, but is not very clean :-(. The answer is

[PHP] Using phpMyAdmin in the SSL

2002-03-12 Thread Geoff Caplan
Hi I am setting up phpMyAdmin to administer a remote db, and as I don't fancy sending passwords in clear text, I have placed the whole phpMyAdmin directory in the SSL. The welcome page comes up fine, but when I select a db, I get a browser warning that the page is sending both secure and

Re: [PHP] PHP and permissions

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Don wrote: use phpinfo() to find that out... Hi, I have a question about how PHP runs. I have a file on my FreeBSD server that is owned by another user but is the same group as myself. The file has read/write permissions for the user only. Therefore, when I log

<    1   2