Re: [PHP] Parse error with simple script

2001-05-17 Thread Mohamed LRHAZI
Hi again, Ok, I wasnt that tired after all :) and had the belliant idea of loading my script in vi and lo and behold here is what I saw: $user| =| 'root' ; Nice, huh? This was generated by this cute editor called BlueFish.. no more bluefish for me. Mohamed~ Mohamed LRHAZI wrote: > > Hel

Re: [PHP] Netscape problem with $PHP_SELF?do_something

2001-05-17 Thread elias
dunno...never had problems with phpself actually try $PHP_SELF instrad of $php_self... -elias ""Jaeggi David"" <[EMAIL PROTECTED]> wrote in message D1F288E2CBFAD411B5480008C7281B9908B23A@lnminf0a">news:D1F288E2CBFAD411B5480008C7281B9908B23A@lnminf0a... > Hello everybody! > > I have a problem

Re: [PHP] Chained Selectors

2001-05-17 Thread Joseph Blythe
For an example of the speed of this in a semi-production enviroment checkout: http://www.secure.binarylogic.com.au/~chained Let me know your thoughts etc... Oh and also check out the unknown error on line 12 hmm suspect... Thanks, Joseph -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Netscape problem with $PHP_SELF?do_something

2001-05-17 Thread Jaeggi David
gracias!! it was exactly the problem to write the it with capitals. i thought first the var is parsed by php so it makes no difference what browser you use but as proved it makes. Dave > -Original Message- > From: elias [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 17, 2001 7:36 PM >

Re: [PHP] Chained Selectors

2001-05-17 Thread Joseph Blythe
Joseph Blythe wrote: > For an example of the speed of this in a semi-production enviroment > checkout: > > http://www.secure.binarylogic.com.au/~chained > > Let me know your thoughts etc... > > Oh and also check out the unknown error on line 12 hmm suspect... > > Thanks, > > Joseph Doh!

Re: [PHP] Parse error with simple script

2001-05-17 Thread elias
hehe;) "Mohamed LRHAZI" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi again, > > Ok, I wasnt that tired after all :) and had the belliant idea of loading > my script in vi and lo and behold here is what I saw: > > $user| =| 'root' ; > > Nice, huh? This was

Re: [PHP] Uptime script?

2001-05-17 Thread Felix Kronlage
On Wed, May 16, 2001 at 06:35:32PM -0700, Ryan Christensen wrote: > Take a machine down, knowing it's uptime? (I.e., it's easier to hack a box > that's been up for 5 months.. as opposed to one that hasn't been??) By knowing the uptime and the version of the OS (e.g. kernel-version) you know to

[PHP] Re: Known problem without solution

2001-05-17 Thread Daniel BI
Yes you are right. You need to do a chgrp or chown on the directory where the tables are located. Did you run the mysql_install_db script in the /scripts directory? Are you compiling mysql to run as the mysql user? ( --with-mysqld-user=mysql ) Is mysql a valid user in the passwd file? Answering

[PHP] include + path

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

[PHP] Limit & hyperlinking

2001-05-17 Thread Greg Wright
Hello al, Another question, if retrieving records from a database, I can use LIMIT tolimit the records, however does someone have some examples on sites or otherwise that would show clearly how I could limit the records per page and dynamically produce a hyperling in the HTML result that would a

Re: [PHP] Links as a query point instead of form drop down box

2001-05-17 Thread James Holloway
Hi Laurie, If the data to be displayed was in a database, and each row of data corresponded to an auto incrementing id, you could reference by id number, which is a much better way of doing things via the GET method than messing around with long names. Assuming that you have two tables, one that

[PHP] group comparision

2001-05-17 Thread charles
i have a php script that has three variables that could be set to "1" depending on the values of a form being sent to the .php file. $add $remove $view i need to do some error control in my script to make certain that one and only one of these is set to "1". i am coming up with a very long contr

RE: [PHP] Help! OCIFetchInto does not work at all

2001-05-17 Thread Sebastian Stadtlich
please try this : OCIFetchInto ($stmt, $row, OCI_ASSOC); usually i also use a second modifier OCI_ASSOC+OCI_RETURN_NULLS sebastian > I'm tryibg to execute a simple query on Oracle: > $cn=OCILogon($DB_USER, $DB_PASSWORD, $DB_NAME); > $stmt=OCIParse($cn,"select *

Re: [PHP] include + path

2001-05-17 Thread elias
Easy, ... Use JavaScript or simple HTML... javascript: Now you've just been called from another server! Now from within your script you can get lots of informations like: $HTTP_REFERER ... -elias http://www.eassoft.cjb.net ""Greg Wright"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

RE: [PHP] group comparision

2001-05-17 Thread Taylor, Stewart
How about if (($add + $remove + $view) > 1) { //error } -Stewart -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 17 May 2001 09:45 To: php-gen Subject: [PHP] group comparision i have a php script that has three variables that could be set to "1" dependi

Re: [PHP] group comparision

2001-05-17 Thread elias
I understand that you want to check if: > i need to do some error control in my script to make certain that one and > only one of these is set to "1". i am coming up with a very long > control structure: "One and Only One" okay, ... if ($add == "1") { // do the add job } elseif ($remove == "1") {

[PHP] UGH

2001-05-17 Thread chris herring
This is really bugging me. I don't see any reason why it shouldn't work, yet it doesn't. SCHOOL'S OUT FOR SUMMER!!! *guitar ballad*"; } else { echo "Only $math days until school's out!!! w00p w00p!"; } ?> any help is appreciated

[PHP] Testing if variable was set

2001-05-17 Thread Jordan Elver
Hi, If I want to test if a variable exists (or has been passed) then I just do: if($var) { // variable is here } But I've noticed that a lot of people do: if(isset($var)) { // variable is here } What's the difference and which is the best way? TIA, Jord -- Jordan Elver whi

RE: [PHP] UGH

2001-05-17 Thread Taylor, Stewart
SCHOOL'S OUT FOR SUMMER!!! *guitar ballad*"; } else { echo "Only $math days until school's out!!! w00p w00p!"; } ?> -Original Message- From: chris herring [mailto:[EMAIL PROTECTED]] Sent: 17 May 2001 09:56 To: [EMAIL PROTECTED] Subject: [PHP] UGH This is really bugging me. I don't

Re: [PHP] group comparision

2001-05-17 Thread Mohamed LRHAZI
You might also want to check the xor logical op: http://www.php.net/manual/en/language.operators.logical.php Mohamed~ [EMAIL PROTECTED] wrote: > > i have a php script that has three variables that could be set to "1" > depending on the values of a form being sent to the .php file. > > $add >

Re: [PHP] group comparision

2001-05-17 Thread charles
I don't think this is quite what I am looking for because I am hoping to issue an error message if more than one variable has a value of one. Sorry for not including this as a stipulation. Thanks -Charles On Thu, 17 May 2001, elias wrote: > I understand that you want to check if: > > i need t

Re: [PHP] Testing if variable was set

2001-05-17 Thread Mohamed LRHAZI
Jordan, http://www.php.net/manual/en/function.isset.php When you do: if ($var) you are saying if $var is boolean true which is not what you say you want: > Hi, > If I want to test if a variable exists (or has been passed) then I just do: > Mohamed~ Jordan Elver wrote: > > Hi, > If I want t

Re: [PHP] Testing if variable was set

2001-05-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jordan Elver) wrote: > if($var) { > // variable is here > } > > But I've noticed that a lot of people do: > > if(isset($var)) { > // variable is here > } > > What's the difference and which is the best way? Turn up error reporti

[PHP] HTTP Authentication with PHP

2001-05-17 Thread Chris
I have configured mod_auth_pam for Apache and secured a directory with an .htaccess file: AuthType Basic AuthName "Secure Area" require group staff require user chris Now, I would like to control the local browser window's authentication cache via PHP. For example, how do I clear the cac

[PHP] *IF* it was that simple

2001-05-17 Thread Tarrant Costelloe
Ok here is a simple IF statement I am messing around with, yet the parser is sending back an error message of which I cannot see the cause: Code: Error: Parse error: parse error in C:\locahost\parser.php on line 16 Line 16 being the line which contains "else" (line 6). -- PHP Ge

[PHP] STRINGS

2001-05-17 Thread Manuel Román
Hi, How I can save the below string??? I try concatenate, but when I try with echo or print not display nothing. Best Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

[PHP] Re: STRINGS

2001-05-17 Thread Manuel Román
sorry, this is the string... And this not function: $str = '' . "\r" . '' . "\r" . '' . "\r" . ''; echo $str; "Manuel Román" <[EMAIL PROTECTED]> wrote in message news:... > Hi, > > How I can save the below string??? > > I try concatenate, but when I try with echo or print n

Re: [PHP] *IF* it was that simple

2001-05-17 Thread Jeroen van Wolffelaar
Loose the ; after the if Jeroen "Tarrant Costelloe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok here is a simple IF statement I am messing around with, yet the parser is > sending back an error message of which I cannot see the cause: > > Code: > >

Re: AW: [PHP] Kill a cookie....

2001-05-17 Thread Tristan . Pretty
Thanks to all who replied. I am really confused as to why, at teh very top of my page, I have told the cookie to set to null. and then in the last part of my php, just before my head tag, I re-set teh cookie. but the old value still remains. What am I doing wrong??? Thanks you guys, I'll get th

[PHP] parsing variables

2001-05-17 Thread Tarrant Costelloe
How exactly is it that you parse variables from one page to another without using a form. I have heard you can do it by using the URL? Taz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] pg_close -1 displayed with Win32 binaries

2001-05-17 Thread DevilKin
Hello, I've got a little problem - which I frankly don't get. When using the win32 binaries for PHP (yeah - i know - unix is better) and do a pg_close on a postgres database, it always displays the following in the output, even before any headers are sent: pg_close -1 followed by the header

AW: AW: [PHP] Kill a cookie....

2001-05-17 Thread Sebastian Stadtlich
LOOK at the manual!!! a cookie new cookie value is just accessible on the next page sebastian > -Ursprungliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Gesendet: Donnerstag, 17. Mai 2001 11:56 > An: [EMAIL PROTECTED] > Betreff: Re: AW: [PHP] Kill a cookie.

RE: [PHP] parsing variables

2001-05-17 Thread Maxim Maletsky
here's a tip: page1: page2: try to guess the answer :-) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Tarrant Costelloe [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: AW: [PHP] Kill a cookie....

2001-05-17 Thread Maxim Maletsky
Cookie is a file sent by a browser to the server. If you set a cookie, you will be still unable to read it on your page, unless you give the browser a chance to resend it to you. To do so you'll need the user to hit or refresh a page on your site. Then, and only then the browser will be sending t

Re: [PHP] UGH

2001-05-17 Thread James Holloway
Neither will work. Think about it.. If you did 17 - 3 (17th May - 3rd June) - you get 14. But if you add 14 days from today, you get 31st May, which is clearly wrong. What if there are 30 days in the month instead of 31? Or 28? Or even more obscurely 29? You cannot rely on this method at

[PHP] Fatal error: out of dynamic memory in yy_create_buffer() in Unknown on line 0

2001-05-17 Thread Matthias Winkelmann
Hi! Could anybody explain to me what the error Fatal error: out of dynamic memory in yy_create_buffer() in Unknown on line 0 means, and how i should deal with it? Thanks in advance, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] I have a problem with phpMySqlAdmin

2001-05-17 Thread Kath
Do you have extension=mysql.so in your php.ini? - Kath - Original Message - From: "John Monfort" <[EMAIL PROTECTED]> To: "Enrique Ivorra Gómez" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 9:05 AM Subject: Re: [PHP] I have a problem with phpMySqlAdmin I

Re: [PHP] UGH

2001-05-17 Thread James Holloway
In addition - if you did 3rd June as the end date - 17th May as today, 3 - 17, the original $days_to_go would be a minus number (What I meant to say in the first place Also, this would be better: if ($date_today > $school_out) { echo "We're already on holiday!"; $new_difference = $da

[PHP] ASP's Application("asdf") = "hello world"

2001-05-17 Thread elias
Hello! What's the PHP equivalent to this: Application.Lock Application("key") = "value"; Application.UnLock -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-ma

Re: [PHP] Netscape problem with $PHP_SELF?do_something

2001-05-17 Thread Paul R. Jackson
Yeh i have noticed this before. If for example a variable (in your case $PHP_SELF) is not set and the url just becomes ?blah... instead of index.html?blah... (for example) ie will work fine but netscape spits the dummy. Its one of those probs that I recognise straight away now but the first time I

[PHP] function login

2001-05-17 Thread Greg K
I am creating a function called login, I have a main file called index.php .. which has my login form , it calls a login.php file, and in that login.php there is file include statement which calls config.php and that is where the function lie. This is my function , now if i don't set this as a fun

[PHP] Script timeout with set_time_limit(0);

2001-05-17 Thread JFL
When I start a script like this : $fp = fsockopen($host, $port, $errno, $errstr, 30); if ($fp) { $fputs_str = "GET ".$path." HTTP/1.1\r\n"; $fputs_str .= "Host: ".$host."\r\n"; $fputs_str .= "\r\n"; fputs($fp, $fputs_str); fclose($fp); } The script will run for some time

[PHP] Problem with outputting date and time

2001-05-17 Thread Good Fella
Hi All, I need help with a small problem. My website has many users from around the world, and they need to submit a form at a certain time (UK Time). Because of this, I need to display the UK Time on my website. I do this by putting this code: There is nothing wrong with this code, except

[PHP] Limit & hyperlinking

2001-05-17 Thread Greg Wright
Hello all, Another question, if retrieving records from a database, I can use LIMIT tolimit the records, however does someone have some examples on sites or otherwise that would show clearly how I could limit the records per page and dynamically produce a hyperling in the HTML result that would

[PHP] include + path

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

RE: [PHP] Problem with outputting date and time

2001-05-17 Thread Sandeep Hundal
what you could do is something like get the unix time, and add an hour to that, and then use the date function to output the date. $today = (time() + 3600); $output = date("F jS Y, h:ia", $today); hope that helps! /sunny -Original Message- From: Good Fella [mailto:[EMAIL PROTECTED]] Se

Re: [PHP] Limit & hyperlinking

2001-05-17 Thread Martin Cabrera Diaubalick
Hello Greg, Try http://www.knowledgeisland.com/inet/php/php.php Look for Rod Kreisler in the PHP& Databases section HTH Regards - Original Message - From: "Greg Wright" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 17, 2001 1:20 PM Subject: [PHP] Limit & hyperlinki

[PHP] webmaster volunteer

2001-05-17 Thread Alex Tretjakov
Hello all. Forgive for offtopic, but somebody can knows where it is possible to find work for volunteer. I well know and I have experience of work with PHP, SQL, but I have not the projects except for amateur and consequently it would be desirable to work free-of-charge. Beforehand thank.

[PHP] set_error_handler scope problems?

2001-05-17 Thread Dean Hall
I'm trying to use set_error_handler with a function name (in the global scope -- not a class method), and I'm getting a seg-fault in PHP. I'm wondering if it's a scope problem. Here's an abbreviation of what I have: (Main.php) include_once('Error.php'); class Main { function main() { Main

Re: [PHP] running a stand-alone PHP program

2001-05-17 Thread elias
you can also run like: php -q myfile.php -elias "midget2000x" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I apologize if this has already been covered...I can't seem to find it in the > archives... > > can PHP be coded and run as a stand-alone program? I

[PHP] Barcode in PDF.

2001-05-17 Thread Keith Ng
Hi, Does anyone know how to go about drawing a barcode in PDFLIB? Regards, Keith Ng ___ Co-founder K-Designs Incorporated [EMAIL PROTECTED] http://www.k-designs.com.sg/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] ASP's Application("asdf") = "hello world"

2001-05-17 Thread John Lim
Sorry, PHP doesn't support application variables natively. You can get classes that emulate this behaviour at http://0x00.org/ or use shared memory or a database. ""elias"" <[EMAIL PROTECTED]> wrote in message 9e0aqb$8vv$[EMAIL PROTECTED]">news:9e0aqb$8vv$[EMAIL PROTECTED]... > Hello! > What's th

[PHP] while loops [ newbie ]

2001-05-17 Thread charles
be forewarned that a bash fan is writing this message with little to no perl/c++ experience. i have a file $file that is full of usernames and descriptions, one per line. i have another variable $username that i would like to compare against each line in the file and remove the line that matches

Re: [PHP] ASP's Application("asdf") = "hello world"

2001-05-17 Thread elias
The Shared Memory functions doesn't work somehow on win32 ? ""John Lim"" <[EMAIL PROTECTED]> wrote in message 9e0e2j$o33$[EMAIL PROTECTED]">news:9e0e2j$o33$[EMAIL PROTECTED]... > Sorry, PHP doesn't support application variables natively. You can get > classes that emulate this behaviour at http:/

Re: [PHP] set_error_handler scope problems?

2001-05-17 Thread Dean Hall
Eek. Nevermind. The problem, for anyone who is interested, is that you cannot specify that any parameters in the error-handler function to be passed by reference. Dean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] parsing variables

2001-05-17 Thread John Monfort
Sending variables in url: newpage.php?variable1=value&&variable2=value2&&variable3=value __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+_

Re: [PHP] parsing variables

2001-05-17 Thread John Monfort
*oops!* Sorry about the double ampersands... newpage.php?variable1=value1&variable2=value2... __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com "The world is waiting, are you ready?" -+_

Re: [PHP] while loops [ newbie ]

2001-05-17 Thread Christian Reiniger
On Thursday 17 May 2001 13:58, [EMAIL PROTECTED] wrote: > i would think that a while loop could do this and possibly write the > output, minus the line i want to take away to a temp file and then copy > it over. in bash i would use a statement like: > > while read i; do > < blah > > done < $fil

Re: [PHP] webmaster volunteer

2001-05-17 Thread Steve Werby
"Alex Tretjakov" <[EMAIL PROTECTED]> wrote: > Hello all. Forgive for offtopic, but somebody can knows where it is > possible to find work for volunteer. I well know and I have experience of work > with PHP, SQL, but I have not the projects except for amateur and > consequently it would be desirabl

Re: [PHP] while loops [ newbie ]

2001-05-17 Thread Steve Werby
<[EMAIL PROTECTED]> wrote: > i have a file $file that is full of usernames and descriptions, one per > line. i have another variable $username that i would like to compare against > each line in the file and remove the line that matches the > username field identically. > > $filename > > charles r

Re: [PHP] Problem with outputting date and time

2001-05-17 Thread James Holloway
Hi There, I had a similar problem because of BST (British Sumer Time). Have a look on Yahoo / Google etc for a site about Greenwich Mean Time, and find out the dates that the schemes take effect - I think it is March 25th to beginning or end of October. Then use a simple if statement. 3) && (

[PHP] ?PHP 4.0.5 and ftp_pwd

2001-05-17 Thread Gunter Ohrner
Hi! ftp_pwd does always return "1" (That is, True?) ?!? What am I doing wrong? ,[ This Code outputs '1'... ] | $Stream = ftp_connect($Server, $Port); | ftp_login($Stream, $Nutzer, $Passwort) || die("Fehler beim Einloggen auf |dem FTP-Server!\n

Re: [PHP] ASP's Application("asdf") = "hello world"

2001-05-17 Thread John Lim
Sadly no, shm isn't available on Win32. Sorry if you had posted in php.windows, I would have realized that you meant windows immediately. ""elias"" <[EMAIL PROTECTED]> wrote in message 9e0ela$tdt$[EMAIL PROTECTED]">news:9e0ela$tdt$[EMAIL PROTECTED]... > The Shared Memory functions doesn't work s

[PHP] include + path & how to invoke a remote PHP script

2001-05-17 Thread Greg Wright
Hello All, I have a app that is used to track stats, it was designed to be used on the smae server that the website being tracked is, it uses an include and a path statement to register a hit in the page being displayed. Does anyone know of a method where I could get the remote website to invoke

[PHP] If (!$submit)

2001-05-17 Thread Tarrant Costelloe
When using: ? I get an error on line one, due to it at first not recognising the variable $submit. If I ignore this and continue to fill in the form, on the clicking the submit button I am then delivered to the same page of which it shows the results. So the only problem being, is when you firs

[PHP] Refresh problems

2001-05-17 Thread Andrew Kirilenko
Hello! Sorry for offtopic. I'm developing PHP page for the displaying some kind of statistic. It displays graphics for the selected user. Pictures updates every 5 minutes by external program. I've form with submit button. If I press this button with different user selected, everything is OK. But

Re: [PHP] If (!$submit)

2001-05-17 Thread bill
Two suggestions: Use if (!isset($submit)) OR change the order around kind regards, bill hollett Tarrant Costelloe wrote: > When using: > > { > // First html page containing login form > } > else > { > // Results of login form, including login failed or successful print() > } > >? > > I

[PHP] Compiling .. or Re-Compiling.

2001-05-17 Thread Angerer, Chad
Hello, I have a question about recompiling PHP to add some options. I am a newbie to linux and compiling. Let give a background on my processes. I compiled MySQL -- got it working. I compiled isntalled Openssl Configured PHP 4.0.5 Installed Apache with SSL and PHP. Everything was up and and r

Re: [PHP] STRINGS

2001-05-17 Thread Plutarck
Take out that first bit with the wrote in message 9e06qr$pmq$[EMAIL PROTECTED]">news:9e06qr$pmq$[EMAIL PROTECTED]... > Hi, > > How I can save the below string??? > > I try concatenate, but when I try with echo or print not display > nothing. > > > Best Regards > > > > -- > PHP General Mai

Re: [PHP] If (!$submit)

2001-05-17 Thread Plutarck
The reason you're getting the undefined variable warning level is because your error reporting level which is set in php.ini or explicitly in your code is set to spit out warning, so you'll want to change that before doing anything other than just testing. Plutarck "Tarrant Costelloe" <[EMAIL P

Re: [PHP] function login

2001-05-17 Thread Plutarck
Define how index.php "calls" the login.php file. I assume you mean index.php include() login.php, which has include() on config.php? If so, be sure that the path to config.php as included in login.php is right. Use the fully qualified path to ensure it works right. Other than that, as long as the

Re: [PHP] Refresh problems

2001-05-17 Thread Pavel Jartsev
Andrew Kirilenko wrote: > > Hello! > > Sorry for offtopic. > > I'm developing PHP page for the displaying some kind of statistic. > It displays graphics for the selected user. Pictures updates every 5 minutes > by external program. I've form with submit button. If I press this button > with dif

[PHP] Problem with the MAIL command

2001-05-17 Thread sexygeek
Hi I have a simple mail command which I can see my SMTP (IIS5) server is picking up but its not sending the email out anywhere - So thought my server was configured wrong - I spent several hours playing with it and got nowhere so I installed a different SMTP server (mercury) onto the same mac

Re: [PHP] Barcode in PDF.

2001-05-17 Thread Chris Lee
this exact question was talked about yesterday. 'barcode font' in google comes up with a hole list of fonts to use. use them in conjunction with pdflib to make barcodes. -- Chris Lee [EMAIL PROTECTED] "Keith Ng" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

Re: [PHP] HTTP Authentication with PHP

2001-05-17 Thread Chris Lee
this seems to make my browsers not cache. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); then add header("WWW-Authenticate: Basic realm='$

Re: [PHP] Compiling .. or Re-Compiling.

2001-05-17 Thread Michel 'ZioBudda' Morelli
On Thu, 17 May 2001, Angerer, Chad wrote: >I compiled MySQL -- got it working. >I compiled isntalled Openssl >Configured PHP 4.0.5 >Installed Apache with SSL and PHP. > >Everything was up and and running. > >Now I want to add gd support and a few other options to PHP. Can I just >recompile PHP an

[PHP] removing PHP

2001-05-17 Thread Joseph Bannon
How do I remove PHP from my server? I need to do a fresh install. Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Reseting PHP_AUTH_USER or REMOTE_USER

2001-05-17 Thread Michael Findley
I have tried to reset the $PHP_AUTH_USER and/or $REMOTE_USER from within my php scrips to force a user re-login to apache's ht authentication, but I cant seem to set it from inside a php script I've tried putenv($REMOTE_USER = ''); and $PHP_AUTH_USER = ""; and several other variations of the two

Re: [PHP] Reseting PHP_AUTH_USER or REMOTE_USER

2001-05-17 Thread Rasmus Lerdorf
> I have tried to reset the $PHP_AUTH_USER and/or $REMOTE_USER from within my > php scrips to force a user re-login to apache's ht authentication, but I cant > seem to set it from inside a php script > I've tried putenv($REMOTE_USER = ''); > and > $PHP_AUTH_USER = ""; > and several other variation

Re: [PHP] removing PHP

2001-05-17 Thread Michel 'ZioBudda' Morelli
On Thu, 17 May 2001, Joseph Bannon wrote: >How do I remove PHP from my server? I need to do a fresh install. What server? Debian ? RH? Win ? packet (e.g. rpm) ? source+compile (tgz)? Fresh install of what? OS ? Apache ? Win? bye -- FERMI TUTTI: E' UNA RAPINA! NON GLI CREDONO E LO PICCHIANO. (

Re: [PHP] removing PHP

2001-05-17 Thread Wieger Uffink
maybe you could be a bit more specific about what kind of server your referring to. Wieger Joseph Bannon wrote: > > How do I remove PHP from my server? I need to do a fresh install. > > Joseph > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] help with header/cookies ..

2001-05-17 Thread Chad Day
I'm submitting a form to a search page that performs different searches based on what engine was selected. One of these searches is restricted, and runs a function that checks for a cookie. If the user has no cookie, they are redirected to a login page. I've used echo tests to make sure the fun

[PHP] Re: removing PHP

2001-05-17 Thread Joseph Bannon
I'm using Red Hat. I installed the source. I want to do a fresh install of PHP becaue no one will tell me how to upgrade 4.0.4 to 4.0.5 -lol. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: [PHP] Problem with the MAIL command

2001-05-17 Thread Mike
Its OK gang I have solved it - It was a mail-relay problem ! Mike "@toye.php.net sexygeek )" wrote in message 9e0mtb$pqn$[EMAIL PROTECTED]">news:9e0mtb$pqn$[EMAIL PROTECTED]... Hi I have a simple mail command which I can see my SMTP (IIS5) server is picking up but its not sending the email ou

Re: [PHP] Re: removing PHP

2001-05-17 Thread Michel 'ZioBudda' Morelli
On Thu, 17 May 2001, Joseph Bannon wrote: > >I'm using Red Hat. I installed the source. I want to do a fresh install of >PHP becaue no one will tell me how to upgrade 4.0.4 to 4.0.5 -lol. Do you have installed for apache (--with-apxs or --with-apache) or for "exec cgi" (without --with-apxs or wi

RE: [PHP] Re: removing PHP

2001-05-17 Thread Joseph Bannon
I did --with-apache. For some reason, when I install 4.0.5, it doesn't catch. It still says 4.0.4. Is there a main file(s) I can remove to make sure 4.0.5 catches? T, Joseph -Original Message- From: Michel 'ZioBudda' Morelli [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 12:24 P

[PHP] Encrypt Password for Session

2001-05-17 Thread Troy Moreland
All, I am currently using sessions to store a user's ID, password and current login status. All works fine. The only issue is that the session file on the server is storing the password in plain text. How do I encrypt that password and how to I decrypt it for comparing? Thanks in advance!! T

Re: [PHP] Encrypt Password for Session

2001-05-17 Thread Kurth Bemis
look in the manual for "md5" ~kurth On Thu, 17 May 2001, Troy Moreland wrote: > All, > > I am currently using sessions to store a user's ID, password and current > login status. All works fine. The only issue is that the session file on > the server is storing the password in plain text. Ho

Re: [PHP] Script timeout with set_time_limit(0);

2001-05-17 Thread Plutarck
Try setting the timeout to some high setting, beyond how long you need it to run. Often PHP just won't run for a really long time, for reasons I don't know. It just occassionally decides it's done, but I know it can go for longer than 3 days (phpIRC often lives that long and longer) so that proba

[PHP] PHP Pros/Cons, Case Examples, PHP vs Servlets

2001-05-17 Thread Scott A Winkle
Hi, Im currently running many scripts myself and other staff members wrote in PHP for the university. Certain others want to eliminate PHP and make everything Java based. It is now in the 'debate meeting' stage, so I need some help. I have done a handful of research already, but im looking for

[PHP] Performance issue

2001-05-17 Thread Richard Heyes
Can anyone advise on a performance issue: which is gonna take longer, gzcompress()ing a html page (eg phpinfo output) and writing to disk or writing the uncompressed version to disk? Thanks! -- Richard Heyes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

Re: [PHP] Encrypt Password for Session

2001-05-17 Thread Ethan Schroeder
What I do is md5() encrypt the password and store it in the text file or database. Md5 is a one way algorithm, though, so you can never decrpyt the password. What you do, is when you want to authenticate a user, you md5 encrypt the text they typed in and compare that to the md5 hash in your file

[PHP] Mail with Win2K

2001-05-17 Thread Brandon Orther
Hello, I usually use Linux as my OS so I am not to familure with Windows as a web server. The problem I am facing now is the mail function in windows. It doesn't seem to work. Does anyone know what I need to do to use the mail() function on a Win2k advanced server box? PHP 4.0.5 Thanks Bran

RE: [PHP] help with header/cookies ..

2001-05-17 Thread Johnson, Kirk
Add an exit(); immediately following all the header() calls. Hitting a header() does not end execution of the script, so without the exit() the last header() that gets called is the one that actually occurs. Kirk > -Original Message- > From: Chad Day [mailto:[EMAIL PROTECTED]] > Sent: Th

RE: [PHP] Re-directing

2001-05-17 Thread scott [gts]
ohhh... i thought he wanted to know how to do a simple redirect... not how to make 'start.php' the index... i agree it's an odd request. why not just name it 'index.php', or specify 'start.php' with apache? > -Original Message- > From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]] > Sent

[PHP] Help: 'php in free(): warning: recursive call'

2001-05-17 Thread William Bailey
Hi, I just created a script that imports data from one data base, reformats it and then saves the data to csv files. Now when i run the script it sometimes outputs the following error: php in free(): warning: recursive call I tried searching the php web site but have had no luck in fin

RE: [PHP] help with header/cookies ..

2001-05-17 Thread Chad Day
Sweet, thanks! Fixed it .. learn something new every day .. Chad -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 12:19 PM To: Php-General@Lists. Php. Net Subject: RE: [PHP] help with header/cookies .. Add an exit(); immediately following

Re: [PHP] Re: removing PHP

2001-05-17 Thread Christian Reiniger
On Thursday 17 May 2001 17:25, Joseph Bannon wrote: > I did --with-apache. For some reason, when I install 4.0.5, it doesn't > catch. It still says 4.0.4. Is there a main file(s) I can remove to > make sure 4.0.5 catches? if you use --with-apache, you also have to recompile&reinstall apache. Did

Re: [PHP] Performance issue

2001-05-17 Thread Christian Reiniger
On Thursday 17 May 2001 17:54, Richard Heyes wrote: > Can anyone advise on a performance issue: which is gonna take longer, > gzcompress()ing a html page (eg phpinfo output) and writing to disk or > writing the uncompressed version to disk? Why don't you benchmark it? That varies greatly from set

[PHP] sessions / cookies / header("Location...

2001-05-17 Thread Christian Dechery
I have a page that does a login... right after the login is successfull it registers a session var called 'userid'... and does a header("Location: newpage.php") which checks for the existance of this var... if it exists it will show, otherwise it goes back to the login page... the weird thing

  1   2   3   >