[PHP] Help I killed PHP on mysever...

2002-04-09 Thread Chuck \PUP\ Payne
I have done something stupid and not PHP won't work. Everytime you click on a link that is .php it wants you to download the file. What have I done and how can I fix it. Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] internal workings of PHP's functions

2002-04-09 Thread Justin French
This is related to a discussion we had today about disallowing javascript. Is there any way we can get a look inside current PHP functions, like strip_tags(), to see how they're currently working? Justin French Creative Director http://Indent.com.au

RE: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread Martin Towell
um - pray which OS and web server are you running? -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 4:33 PM To: PHP General Subject: [PHP] Help I killed PHP on mysever... I have done something stupid and not PHP won't work. Everytime

[PHP] Re: Help I killed PHP on mysever...

2002-04-09 Thread phplists
It sounds like the Apache/httpd server config info for PHP files has been lost/changed/deleted/overwritten.. If you are using Apache make sure you've got your AddType line(s) in the right place (there should already be some AddType and AddHandler lines in there.. put them in by the others) in the

Re: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread Chuck \PUP\ Payne
SuSE 7.3(linux) Apache. on 4/9/02 2:43 AM, Martin Towell at [EMAIL PROTECTED] wrote: um - pray which OS and web server are you running? -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 4:33 PM To: PHP General Subject: [PHP] Help

Re: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread Miguel Cruz
On Tue, 9 Apr 2002, Chuck PUP Payne wrote: I have done something stupid and not PHP won't work. Everytime you click on a link that is .php it wants you to download the file. What have I done and how can I fix it. Are you running Apache? Maybe you commented out or deleted this line in your

Re: [PHP] internal workings of PHP's functions

2002-04-09 Thread Miguel Cruz
On Tue, 9 Apr 2002, Justin French wrote: This is related to a discussion we had today about disallowing javascript. Is there any way we can get a look inside current PHP functions, like strip_tags(), to see how they're currently working? In the source for PHP 4.1.2, look at

Re: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread phplists
Refer to my earlier post about your AddType entries.. If they are not there, before you add them, check for a file on your system called mod_php4.conf.. If you find it, it will have the required entries in it already.. If this is the case, make sure your modules section in httpd.conf is

Re: [PHP] Re: another try...

2002-04-09 Thread Oliver Heinisch
Aeh, maybe you should make a plan, first, what to do. ;-) That´s normal if you go to the supermarket, why not on softwaredevelopment? At 08.04.2002 18:20, you wrote: Ok I have it working to a point... how can I impliment a loop to count the files in the directory, right now it only pulls the

Re: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread Chuck \PUP\ Payne
You know I can't find mod_php4.c where should that be? on 4/9/02 2:51 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: Refer to my earlier post about your AddType entries.. If they are not there, before you add them, check for a file on your system called mod_php4.conf.. If you find it, it

Re: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread Mika Tuupola
On Tue, 9 Apr 2002, Chuck PUP Payne wrote: I have done something stupid and not PHP won't work. Everytime you click on a link that is .php it wants you to download the file. What have I done and how can I fix it. This happens when you recompile and reinstall php as a module

Re: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread Chuck \PUP\ Payne
No, I have reinstall. So much I about to throw my box. PHP just wont load now everything I have work now it lost. Chuck on 4/9/02 3:28 AM, Mika Tuupola at [EMAIL PROTECTED] wrote: On Tue, 9 Apr 2002, Chuck PUP Payne wrote: I have done something stupid and not PHP won't work. Everytime you

RE: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread James Cox
Chuck, what exactly is your situation? what has happened, step by step? what OS are you on? Thanks, James -- James Cox :: [EMAIL PROTECTED] :: Landonize It! http://landonize.it/ Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/ -Original Message- From: Chuck

[PHP] file seems b0rken

2002-04-09 Thread Thomas Wentzel
Hi! $test=@file(some_non_existing_file); Can somebody explain why count($test) is 1. When $test doesn't hold any data (which ofcourse is correct). Regards Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help I killed PHP on mysever...

2002-04-09 Thread Chuck \PUP\ Payne
I was install awstats on my work sever. I wanted to add a page so that the manages could see the stats. Some how my httpd.conf got zapped, I think because somehow all my virtual servers had stop working. So I took a back up and edit it. I got them all back on line but PHP has stop load, every

Re: [PHP] Safe Mode

2002-04-09 Thread Richard Lynch
On Tue, 9 Apr 2002, Richard Lynch wrote: So, what's up with this: PHP /www/herolist.com/web/categories.html: 105 2 SAFE MODE Restriction in effect. The script whose uid is 1065 is not allowed to access /www/herolist.com/web/pictures/TERISBROTHER1thum.jpg owned by uid 1056 Note that

[PHP] Re: file seems b0rken

2002-04-09 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Thomas Wentzel) wrote: $test=@file(some_non_existing_file); Can somebody explain why count($test) is 1. When $test doesn't hold any data From http://www.php.net/manual/en/function.count.php: If var is not an array, 1 will be returned When

[PHP] Soring an array

2002-04-09 Thread Vasoczki Ferenc
Hi! I am new on this list, so i welcome everybody! /sorry if my english is not too good/ My problem is: I want to sort an array. I found the array_multisort funciton in the help, but that is for multidimensional arrays, or 2 or more arrays. What i need exactly. I have 5 MySQL tables, and i

Re: [PHP] Soring an array

2002-04-09 Thread Andrey Hristov
select distinct member_id from mails_sent left join member_info using(member_id) left join stats_done using(member_id)... so select distinct number_number from table1 left join table2 using(you_foreign_key) left join table3 using(your_foreign_key2) your_foreign_key* is a field common to

[PHP] Re: mysql_fetch_array()

2002-04-09 Thread David Anton
while( $row = mysql_fetch_array( $recordset ) ) { $var1 = $row[event_id] ; $var2 = $row[event_title] ; $var3 = $row[event_date] ; } Don't forget that what you get with mysql_fetch_array() is just a array where the indexes are just the name of the columns. Un saludo Phil

RE: [PHP] Soring an array

2002-04-09 Thread Niklas Lampén
You could use these two functions: array_unique(); and sort(); Niklas -Original Message- From: Vasoczki Ferenc [mailto:[EMAIL PROTECTED]] Sent: 9. huhtikuuta 2002 11:26 To: Php Mailing List (E-mail) Subject: [PHP] Soring an array Hi! I am new on this list, so i welcome everybody!

Re: [PHP] Soring an array

2002-04-09 Thread Andrey Hristov
So you have several table for the teachers. make the join and instead of using use on so: select disctinct * from table1 left join table2 on table1.for_key12=table2.for_key21 left join table3 on table2.for_key23=table3.for_key32 Example : select disctinct * from teacher1 left join teacher2

[PHP] Re: file seems b0rken

2002-04-09 Thread Thomas Wentzel
Arhh man, that was embarrasing... Thanks! I guess I didn't get enough coffee this morning :/ T. Cc Zona wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Thomas Wentzel) wrote: $test=@file(some_non_existing_file); Can somebody explain why count($test) is 1. When $test doesn't

[PHP] PHPSESSID question

2002-04-09 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I've just moved host and I'm getting a very ugly PHPSESSID string appended to my url's I know this can be fixed but can't remember how, my ISP is not so bright so I was hoping someone could tell me what to tell them. How can I change this?

[PHP] Re: mail() says: Warning: Server Error

2002-04-09 Thread Yuri Petro
If you use PHP on Windows you need to configure SMTP settings in php.ini file. -- Kind regards, Yuri. www.AceHoster.com Quality web hosting Genesis Designs [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Evert time I run a mail

[PHP] Re: MySQL persistent links

2002-04-09 Thread Yuri Petro
Hello, You can just put disable_functions=mysql_pconnect in php.ini file. -- Kind regards, Yuri. www.AceHoster.com Quality web hosting Robert Abbate [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi. I'm trying to disable persistent

[PHP] Re: asking about .exe file

2002-04-09 Thread Yuri Petro
Yes. system() - Execute an external program and display output. -- Kind regards, Yuri. www.AceHoster.com Quality web hosting Wong [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can php execute .exe file under dos and view result on the

[PHP] Re: mail() says: Warning: Server Error

2002-04-09 Thread Declan Kenny
do you have a mail server set up on your computer? I had the same problem, and I downloaded Hamster http://www.tglsoft.de/misc/hamster_en.htm Its does the job fine Genesis Designs [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Evert time I run a mail

[PHP] PHP Email Form

2002-04-09 Thread Declan Kenny
Hi I have an online email form but I can't get the text layout the same as the layout someone types in the text Area, here is the final bit of code: $message = stripslashes($message); $message = htmlentities($message); $message = nl2br($message); $from=From: $email; $to= [EMAIL PROTECTED];

[PHP] Downloading files

2002-04-09 Thread Declan Kenny
Hi folks, Ok I am trying to make a download area for files (including word files). How do I force a download of a word document rather than have it opening in IE? Declan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Email Form

2002-04-09 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi I have an online email form but I can't get the text layout the same as the layout someone types in the text Area, here is the final bit of code: $message = stripslashes($message); $message = htmlentities($message); $message =

[PHP] Formatting timestamp date in MySQL

2002-04-09 Thread nyon
Hi, I need to recall a date data in a MySQL database. The column is set as date timestamp(8). A sample of date is 20020409 I use the PHP Date function to format it back to say 9th April 2002. $date_formated = date($date, 'S M Y' ); However, it's still doesn't appear as formatted. Anyone mind

[PHP] mysql

2002-04-09 Thread Roman Duriancik
I have problem with backup and restore database in mysql. When I backup or restore some table in mysql with command backup table table_name to '/var/lib/_backup/' system send me error message : ERROR 1064: You have an error in your SQL syntax near 'backup table table_name to '/var/lib/_backup/''

[PHP] How to cope with too long words which make the table to wide?

2002-04-09 Thread andy
Hi there, I am wondering what to do with a word that is to long for a table field. What I have is an application, where users can upload pics and give a caption. so if the caption contains to long words like aaa the whole site looks mixed up, because the table get to

Re: [PHP] Formatting timestamp date in MySQL

2002-04-09 Thread ayukawa
Hello, The column is set as date timestamp(8). A sample of date is 20020409 I use the PHP Date function to format it back to say 9th April 2002. $date_formated = date($date, 'S M Y' ); How about this; $date_formatted=date(jS M Y,mktime(0,0,0,substr($date,4,2),substr ($date,6,2),substr($date

[PHP] Getting values

2002-04-09 Thread Gordon Stewart
http://kwister.dns2go.com/php/4.php?action=tablesdatabase=mysqltable=user http://kwister.dns2go.com/php/4.txt Hi - I'm online for next few hours (I'll upload to a non PHP server when i go offline) basically ive had help, fixed my script to show 4 rows of 17 columns each (Instead of 1 row of

[PHP] Re: mysql

2002-04-09 Thread Cirstoiu Aurel Sorin
You used first single quote and then double quote. Replace backup table table_name to '/var/lib/_backup/'' with backup table table_name to '/var/lib/_backup/' This should work. Please let me know if that helped you. -- - Cirstoiu Aurel Sorin Interakt Online Support

[PHP] Outputting Array Values

2002-04-09 Thread Martin Clifford
Hello everyone! I'm fairly new to PHP, but I do know JavaScript, which is both a blessing and a hinderance, as there are many syntax similarities, but a subtle amount of difference which means I usually screw something trivial up in my PHP code. Can someone explain to me why the following

Re: [PHP] Getting values

2002-04-09 Thread ayukawa
Hello, See the manual of mysql_fetch_row(). Good luck! Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Downloading files

2002-04-09 Thread Matt Williams
On Tuesday 09 April 2002 11:20, Declan Kenny wrote: Hi folks, Ok I am trying to make a download area for files (including word files). How do I force a download of a word document rather than have it opening in IE? Declan You don't. This option is set in windows exploror. as part of the

Re: [PHP] Outputting Array Values

2002-04-09 Thread heinisch
At 09.04.2002 08:33, you wrote: That´s an easy on ;-) Hello everyone! I'm fairly new to PHP, but I do know JavaScript, which is both a blessing and a hinderance, as there are many syntax similarities, but a subtle amount of difference which means I usually screw something trivial up in my

Re: [PHP] How to cope with too long words which make the table to wide?

2002-04-09 Thread heinisch
At 09.04.2002 14:15, you wrote: Hi there, I am wondering what to do with a word that is to long for a table field. What I have is an application, where users can upload pics and give a caption. so if the caption contains to long words like aaa the whole site looks mixed

RE: [PHP] Re: mysql

2002-04-09 Thread Roman Duriancik
version of mysql is : 3.23.36 on linux redhat 7.0 -Original Message- From: Cirstoiu Aurel Sorin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 2:50 PM To: Roman Duriancik Subject: Re: [PHP] Re: mysql What MySQL version do you have installed? -

[PHP] cookie sharing between asp and php

2002-04-09 Thread Scott St. John
I have developed a security application for our intranet that handles a user login. It writes values to a cookie and uses that to verify them on the intranet sites until the sessions expire. Since we have not totally moved over to PHP I have some ASP applications I need to protect as well.

[PHP] automatic check if MySQL is running

2002-04-09 Thread Manu Verhaegen
How can i check of MySQL is running, i want to do this with cronn. If MySQL is not running then i want to start it automatic. Greeting, Manu

[PHP] Thanks away...

2002-04-09 Thread Chuck \PUP\ Payne
I want to thanks all those that help at 2~4am this morning (EST). I got it fixed, but I had to reinstall Apache and PHP, lucky it easy with SuSE Linux. But I still have no clue to why it wasn't working, but I wanted to thank any everyone that has help me on this sleepless night. It's great to

[PHP] Re: cookie sharing between asp and php

2002-04-09 Thread Gordon Stewart
Scott St. John [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have developed a security application for our intranet that handles a user login. It writes values to a cookie and uses that to verify them on the intranet sites until the sessions expire.

Re: [PHP] Formatting timestamp date in MySQL

2002-04-09 Thread Justin French
There is a difference between MySQL's timestamp, and a UNIX timestamp. strtotime(); is a really valuable tool -- converting almost any English date description -- check out the manual for more info. Anyway, in this case, it is able to convert your MySQL date of 20020409 into a unix timestamp

Re: [PHP] automatic check if MySQL is running

2002-04-09 Thread Tyler Longren
If you're on a unix box, you could: ps -aux | grep mysql do that from an exec() or system() function. Tyler - Original Message - From: Manu Verhaegen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 8:08 AM Subject: [PHP] automatic check if MySQL is running How

[PHP] Sub groups ? - Programming structure...

2002-04-09 Thread Gordon Stewart
Hello, - I'm used (in years gone by) to the Qbasic programme, where i can create 'sub' routines, view each routine on its own - Without reference / Viewing the other code.. (I think its good like that..).. I know in CGI/Perl - you can use sub-routines etc... 1) Does PHP allow sub-routines, eg

Re: [PHP] Formatting timestamp date in MySQL

2002-04-09 Thread Alex
nverting almost any English date description -- check out the manual for more info. Anyway, in this case, it is able to convert your MySQL date of 20020409 into a unix timestamp, which is the required format for date() formatting. In clear code: ? $date = 20020409; $date_unix = strtoti

Re: [PHP] Sub groups ? - Programming structure...

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 09:47 AM, Gordon Stewart wrote: Hello, - I'm used (in years gone by) to the Qbasic programme, where i can create 'sub' routines, view each routine on its own - Without reference / Viewing the other code.. (I think its good like that..).. I know in

[PHP] file locks

2002-04-09 Thread rarmin
Is there a way for a script to tell if the file it's trying to access is locked by other script (via flock()) or not. I need to make script wait untill other script running in a parallel thread releases the lock on the file. Tnx in advance. Armin -- PHP General Mailing List

Re: [PHP] Array elements missing

2002-04-09 Thread Joshua E Minnie
Thanks for the suggestion. I did get it to work prior to your posting, but this does help slim up my code quite a bit. -- Joshua E Minnie CIO [EMAIL PROTECTED] Don't work for recognition, but always do work worthy of recognition. Jason Wong [EMAIL PROTECTED] wrote: On Monday 08 April 2002

[PHP] Function stored in a database

2002-04-09 Thread Anzak Wolf
I have a question about storing functions. I have some security mode stuff I'm working on and what I'm thinking is that as part of the security mode table I would store a function that could be called if the security mode is called. Something like this. Select s.function from s Security g

Re: [PHP] file locks

2002-04-09 Thread Liam Gibbs
Is there a way for a script to tell if the file it's trying to access is locked by other script (via flock()) or not. I need to make script wait untill other script running in a parallel thread releases the lock on the file. Without testing, would this work? Just a suggestion (read: shot in the

Re: [PHP] Function stored in a database

2002-04-09 Thread Miguel Cruz
On Tue, 9 Apr 2002, Anzak Wolf wrote: I have a question about storing functions. I have some security mode stuff I'm working on and what I'm thinking is that as part of the security mode table I would store a function that could be called if the security mode is called. Something like

Re: [PHP] Outputting Array Values

2002-04-09 Thread Miguel Cruz
On Tue, 9 Apr 2002, Martin Clifford wrote: echo trtdItem . ($n + 1) . is $List[$n]./td/tr; It successfully prints out the following: Item Number 1 is . I just don't understand why it doesn't print out each value in the array... any help would be VERY appreciated! Also, please CC me

[PHP] Re: Downloading files

2002-04-09 Thread Yuri Petro
When you serve a document from a Web server, you might want to immediately prompt the user to save the file directly to the user's disk, without opening it in the browser. However, for known MIME (Multipurpose Internet Mail Extensions) types such as Microsoft Word (application/ms-word), the

[PHP] Re: string reverse ??

2002-04-09 Thread Yuri Petro
strrev -- Reverse a string http://www.php.net/manual/en/function.strrev.php -- Kind regards, Yuri. www.AceHoster.com Quality web hosting Scott Fletcher [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:[EMAIL PROTECTED]... Hi! Is there a PHP code or function that would

[PHP] order of evaluation

2002-04-09 Thread Erik Price
A quick question about evaluation: I have the following line in the middle of a large if/elseif/else statement: elseif (!empty($_POST['newpassword']) !$user-set_password($_POST['newpassword'])) I am simply wondering whether or not the set_password() method will be processed if the first

Re: [PHP] string reverse ??

2002-04-09 Thread ayukawa
Hello, try this; ? function revstr($str){ for($i=strlen($str)-1;$i-1;$i--){ $ans.=$str[$i]; } return $ans; } $a=Good morning!; print revstr($a); ? Regards, Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php -- PHP General

RE: [PHP] XML HELP

2002-04-09 Thread Crane, Christopher
I got it to work with the following code. Thank you so much for your help. The problem is now back to the beginning, I can not get the $Line value, which is the data I want to be pushed into an array. I did not get an error with the code below, but I did not get any information when printing the

Re: [PHP] Re: cookie sharing between asp and php

2002-04-09 Thread Scott St. John
On Wed, 10 Apr 2002, Gordon Stewart wrote: As far as I know - ALL cookies set by a particular server - can be read re-set by any programme / process on the same server / website.. So your ASP script could read your PHP cookies vice-versa.. I'm just learning PHP, dont know cookies as yet (I

[PHP] Re: order of evaluation

2002-04-09 Thread Yuri Petro
I think that set_password() will not be processed. -- Kind regards, Yuri. www.AceHoster.com Quality web hosting Erik Price [EMAIL PROTECTED] ???/ ? ?: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... A quick question about evaluation: I have the following line in

Re: [PHP] XML HELP

2002-04-09 Thread Analysis Solutions
Christopher: On Tue, Apr 09, 2002 at 09:25:07AM -0400, Crane, Christopher wrote: The problem is now back to the beginning, I can not get the $Line value, which is the data I want to be pushed into an array. I did not get an error with the code below, but I did not get any information when

Re: [PHP] Downloading files

2002-04-09 Thread Scott Houseman
Try this: ?php // Open the file to send. $sFilePath = /home/scott/public_html/TEST.doc; $iFilePointer = fopen( $sFilePath, r ); // Get file content. $sContents = fread( $iFilePointer, filesize( $sFilePath ) ); // Close the file. fclose( $iFilePointer ); // Send HTTP headers. header( Expires: 0

[PHP] need help with your code?

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 11:50 AM, Analysis Solutions wrote: Allow me to nit pick. That's hard to read. This, on the other hand, is clearer: function StartHandler($Parser, $ElementName, $Attr='') { print b$ElementName:/b ; } Of course, you can do what you want, but

[PHP] Re: MySQL persistent links

2002-04-09 Thread Robert Abbate
Excellent Man! Worked great. Yuri Petro [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, You can just put disable_functions=mysql_pconnect in php.ini file. -- Kind regards, Yuri. www.AceHoster.com Quality web hosting Robert Abbate [EMAIL

Re: [PHP] order of evaluation

2002-04-09 Thread Analysis Solutions
Yo Erik: On Tue, Apr 09, 2002 at 11:39:31AM -0400, Erik Price wrote: elseif (!empty($_POST['newpassword']) !$user-set_password($_POST['newpassword'])) Your order of evaluation is correct. But, considering the password length is evaluated in the set_password() function, checking empty()

Re: [PHP] Function stored in a database

2002-04-09 Thread Robert Cummings
Anzak Wolf wrote: I have a question about storing functions. I have some security mode stuff I'm working on and what I'm thinking is that as part of the security mode table I would store a function that could be called if the security mode is called. Something like this. Select

Re: [PHP] string reverse ??

2002-04-09 Thread Jason Wong
On Tuesday 09 April 2002 23:33, Miguel Cruz wrote: On Tue, 9 Apr 2002, Scott Fletcher wrote: Is there a PHP code or function that would reverse the data in the string? Oh come on. Is it really THAT hard to look at the manual? There was a guy on this list a while back, when asked this

[PHP] Php/Pdf application

2002-04-09 Thread Geoff Hankerson
I am wondering if one or more of you can point me in the right direction on this one. Our company has intellectual property (legal forms) that is in the form of a pdf. We want to sell this over the Web but a regular pdf is not secure and it would allow users to make unlimited copies and have

Re: [PHP] Sub groups ? - Programming structure...

2002-04-09 Thread Jason Wong
On Tuesday 09 April 2002 21:50, Erik Price wrote: [snip] Note that some might consider this a perversion of functions, since functions are intended to operate on input and return a value -- but this is a convenient way of modularizing your display code, and I use it a lot. Not really.

[PHP] Rebooting

2002-04-09 Thread Dave Raven
Hello all I need to reboot a FreeBSD 4.5-STABLE computer using php + apache. I have a small wrapper which runs the reboot command as root, but it freezes half way through and the box hangs. I'm thinking that the reboot process is killing apache, and in effect

Re: [PHP] Re: mysql

2002-04-09 Thread Jason Wong
On Tuesday 09 April 2002 20:23, Cirstoiu Aurel Sorin wrote: You used first single quote and then double quote. Replace backup table table_name to '/var/lib/_backup/'' with backup table table_name to '/var/lib/_backup/' This should work. Please let me know if that helped you. This has

[PHP] printing and ?

2002-04-09 Thread Hawk
I have a clan database, and some clans use in their tags, my problem right now it how the best way to print these as characters, and not code.. any easy suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Redirecting to an external file and an internal url at the same time?

2002-04-09 Thread Hawk
I have a function that should count the amount of times a file is being downloaded first I want to have a redirect to the file in some way, and then for the browser to go back to the local files page, it goes back to the files page, but the file doesn't download... Håkan -- PHP General

Re: [PHP] PHPSESSID question

2002-04-09 Thread Jason Wong
On Tuesday 09 April 2002 17:20, Nick Wilson wrote: Hi all I've just moved host and I'm getting a very ugly PHPSESSID string appended to my url's This happens when php is compiled with the --enable-trans-sid option. I know this can be fixed but can't remember how, my ISP is not so bright

Re: [PHP] printing and ?

2002-04-09 Thread Andrey Hristov
htmlspecialchars() Andrey - Original Message - From: Hawk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 8:33 PM Subject: [PHP] printing and ? I have a clan database, and some clans use in their tags, my problem right now it how the best way to print these

[PHP] sockets and flush()

2002-04-09 Thread dietrich
i have a script that makes a socket connection about halfway through the page. nothing on the page prints until the socket operation is finished, even if i call flush() prior to the socket operation. does anyone now of a way to force PHP to output the buffer prior to executing the socket code?

Re: [PHP] printing and ?

2002-04-09 Thread Adam Voigt
A less elegant solution would be to do a string replace on insert for the equivalent, for instance, acute; works fine in displaying a single quote, but doens't throw off database querys with real single quotes in them, so as long as you don't mind have that in your db, you could use the

Re: [PHP] Rebooting

2002-04-09 Thread Eugene Lee
On Tue, Apr 09, 2002 at 07:19:44PM +0200, Dave Raven wrote: : : I need to reboot a FreeBSD 4.5-STABLE : computer using php + apache. I have a : small wrapper which runs the reboot : command as root, but it freezes half way : through and the box hangs. : : I'm thinking

Re: [PHP] Sub groups ? - Programming structure...

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 01:19 PM, Jason Wong wrote: Note that some might consider this a perversion of functions, since functions are intended to operate on input and return a value -- but this is a convenient way of modularizing your display code, and I use it a lot. Not really.

Re: [PHP] sockets and flush()

2002-04-09 Thread Robert Cummings
dietrich wrote: i have a script that makes a socket connection about halfway through the page. nothing on the page prints until the socket operation is finished, even if i call flush() prior to the socket operation. does anyone now of a way to force PHP to output the buffer prior to

RE: [PHP] AS/400 data access

2002-04-09 Thread Collins, Robert
I am also trying to access data on an AS/400 have you gotten it to work, if so can you send an example? Thanks in advance. Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message- From: Rance Hall

Re: [PHP] Build static with Apache 2.0.35

2002-04-09 Thread bvr
I don't know an answer to your first question, but I 'm currently running PHP under Apache 2.0.35 and I could only get it work through apxs2 and only with the very latest PHP version (4.3.0-cvs). Tried with 4.1.2, 4.2.0RC12 but the Apache 2 programming interface apparently has changed (a lot)

[PHP] sablotron XMl XSLT

2002-04-09 Thread Matthew Luchak
PHP 4.1.2 SunOS web-unix1 5.7 apache_1.3.22 I'm trying to parse XML/XSL on a shared box and I'm using : $xslthandler = xslt_create() or die("Can't create XSLT handle!"); to test for sablotron. Unfortunately I just get a "Call to undefined function" error which I guess means no - there's

RE: [PHP] sablotron XMl XSLT

2002-04-09 Thread Hunter, Ray
You need to check if you have sablotron compiled in with php. If you need the rpms you can get them from here: http://www.gingerall.com/charlie/ga/xml/d_sab.xml http://www.gingerall.com/charlie/ga/xml/d_sab.xml Sablotron also needs javascript engine to run, you can get that here:

RE: [PHP] sockets and flush()

2002-04-09 Thread Dietrich Ayala
no tables. my test script prints a single string prior to the sockets code. thx, dietrich -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 11:12 AM To: dietrich Cc: [EMAIL PROTECTED] Subject: Re: [PHP] sockets and flush()

[PHP] Anyone out there ever tried this?

2002-04-09 Thread Nick Richardson
I'm trying to bind a script to a machine. So, esentially, the script will only be able to run on a system that it's told it can run on. The information for this will be stored in some for of license file as data encrypted by mcrypt and will have to be fairly easy to retrieve/create. Can anyone

[PHP] Re: php+myslq+IDE

2002-04-09 Thread Joel Colombo
go download.com get EditPlus the trial runs up and still works without limit. very cool program Javier [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there any free app. for php coding? I tried komodo but I can't get it to work in debug mode. Also tried

[PHP] flock and unix/apache

2002-04-09 Thread Matthew Luchak
PHP 4.1.2 SunOS web-unix1 5.7 apache_1.3.22 I'm porting from WIN2000 to Apache/Unix and having problems with the flock() function. The following : $fd = fopen ($file, "r");if (flock($fd, 2)) { ...} "if" statement never returns true... any ideas?

[PHP] mailing address regexp

2002-04-09 Thread JSheble
I ask this here because PHP developers are notoriously famous for knowing RegExp... the project in question isn't for PHP, but perhaps you can still be a bit of a help? I need help in formulating a RegExp that'll detect PO Box addresses... the problem is the many different ways a PO Box can

RE: [PHP] sablotron XMl XSLT

2002-04-09 Thread Matthew Luchak
Thanks Ray but what I need to know is if there is indeed a better way than what I've tried to test if sablotron has been complied or not. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Hunter, Ray [mailto:[EMAIL

[PHP] Re: sablotron XMl XSLT

2002-04-09 Thread Michael Kimsal
Matthew Luchak wrote: PHP 4.1.2 SunOS web-unix1 5.7 apache_1.3.22 I'm trying to parse XML/XSL on a shared box and I'm using : $xslthandler = xslt_create() or die(Can't create XSLT handle!); to test for sablotron. Unfortunately I just get a Call to undefined function error

RE: [PHP] Re: php+myslq+IDE

2002-04-09 Thread Brian Drexler
I'm a big Edit Plus fan as well. Really though, it's just a fancy text editor with color coding and autocompleting, and IMHO the autocompleting can get annoying fast. However I have yet to find anything better. Anyone know of anything worth while? -Original Message- From: Joel Colombo

Re: [PHP] mailing address regexp

2002-04-09 Thread Erik Price
On Tuesday, April 9, 2002, at 02:44 PM, JSheble wrote: I ask this here because PHP developers are notoriously famous for knowing RegExp... the project in question isn't for PHP, but perhaps you can still be a bit of a help? I need help in formulating a RegExp that'll detect PO Box

RE: [PHP] sockets and flush()

2002-04-09 Thread Matthew Luchak
Are you using ob_start () and ob_end_flush() ? If not then declaring ob_start () as the very first ? ob_start (ob_gzhandler); function call and ob_end_flush() where you want the string to output should do the trick. Matthew Luchak Webmaster Kaydara Inc.

RE: [PHP] Re: sablotron XMl XSLT

2002-04-09 Thread Matthew Luchak
thanks. did the trick. no sablotron. :( Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] You could use function_exists() to test if xslt_create() is a defined function. If not, then error out. If so, carry on. It's not limited to sablotron checking

  1   2   >