Re: [PHP] How to generate an broun & white JPG with GD

2002-03-03 Thread Tom Rogers
Hi Here is a small php script to create sepia images from a jpeg, put it in the same place as your images and call it sepia.php. Uselike this: img src="/images/sepia.php/filename.jpg" Probably will only work with php-4+ and gd 2+ Tom At 02:42 AM 3/3/02, Andy wrote: >Hi there, > >I was rec

[PHP] Re: Each() behaving different with PHP 4.1.2

2002-03-03 Thread Yasuo Ohgaki
Greg Breland wrote: > I recently upgraded my site from PHP 4.0.6 to PHP 4.1.2. The following > bit of code quit working: > > static $navigationLinks = array ( > "index.php3" => "News", > "download.php3" => "Download", > "links.php3" => "Links", >

php-general Digest 3 Mar 2002 09:24:55 -0000 Issue 1204

2002-03-03 Thread php-general-digest-help
php-general Digest 3 Mar 2002 09:24:55 - Issue 1204 Topics (messages 86918 through 86964): Re: Where can I learn? 86918 by: Boaz Yahav Re: BBEdit 86919 by: Boaz Yahav Re: regex 86920 by: Boaz Yahav Returning error code from a function 86921 by: Anas Mughal

Re: [PHP] Bizarre mail() problem

2002-03-03 Thread andy thomas
On Sun, 3 Mar 2002, andy thomas wrote: > > > On Sat, 2 Mar 2002, Andrey Hristov wrote: > > > check you php.ini if you need to change sendmail -t -i to something other. > > We are still having problems with this. Doing another mailshot, the script > crawled at 1 message every 75 seconds. After s

[PHP] Re: Ok Gurus Shake your nudels !!!

2002-03-03 Thread Jon Feldhammer
Olev Rumm wrote: > Mime problem. > I have my web form here www.toolmecindustries.com/submform.php > > Now my email recieves all the contens thruogh [EMAIL PROTECTED] (fields > what customer filles out) > but attachment (picture fail) is shown like encrypted > here: > > rewfg/wr;tlkmbwsl/kw;relkt

[PHP] header generation problem

2002-03-03 Thread Jon Feldhammer
I'm trying to create a single dynamic header for a wide range of web pages which I'll just include as I need it. There are a few things that change per web page in the header, but I've settled all the issues except a good way of how to modify a single image that changes based on the web page

[PHP] comparing string values, etc

2002-03-03 Thread Tim Martens
Hi - I'm a major newbie. - I have a file that pulls an include into a for a user to edit - before pulling the include, I'd like to open it and check it's value - if the include's value is exactly equal to the string: Hello World then I want to overwrite that string with nothing; close the inc

Re: [PHP] comparing string values, etc

2002-03-03 Thread DL Neil
Hi Tim, > I'm a major newbie. I was in the navy so never made it to major!? I'm only going to comment on your syntax and ignore the wide/Unix-related issues: > $noting = ""; > $checkval = "Hello > World"; > $filename = "thefile.inc"; > > $fd = fopen ($filename, "w"); > $contents = fread ($fd, f

[PHP] Apache+PHP 4.1.2+mod_ssl segfaults on HTTPS protocol

2002-03-03 Thread Noor Dawod
Hi, I'm contacting you because I'm encountering a bug in recent Apache 1.3.23 and relevant mod_ssl version when compiled with PHP 4.1.2. This might be connected directly to PHP (or to MySQL too), but maybe it is. I've compiled Apache, mod_ssl and PHP 4.1.2 two days ago, and since then the error

[PHP] levenshtein

2002-03-03 Thread adder
is it possible to use levenshtein as part of a mysql select ? i have been experimenting but seem to return no results I would like to be able to select a row based on how near my search text is to the contents i.e if the table is mysql_mail and it's fields are 'to' 'sender' 'subject' and 'body'

Re: [PHP] Sending a file with fpassthru() or readfile(), causes IE to hang.

2002-03-03 Thread John Chronakis
After your reply I did some more tests with the following conclusions. 1. I was wrong about perl. IE behaves the same with the perl equivalent script, but requires the user to cancel 2 times. After the second time, you cannot try anymore. 2. The source of the problem seems to be Internet Explore

Re: [PHP] Sending a file with fpassthru() or readfile(), causes IE to hang.

2002-03-03 Thread John Chronakis
And the answer came from Mircrosoft which describes this situation as a bug in the article Q266305 - BUG: Canceling Multiple File Downloads on Large File Causes Internet Explorer to Stop Responding. John Chronakis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] exit status

2002-03-03 Thread David Apthorpe
I'm using PHP on the command line. Is there any way to exit, whilst setting the exit status, without having it print out? For example, exit(2) will print "2". Thanks in advance, David Apthorpe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] Re: cursor focus

2002-03-03 Thread Ralph Jarvis
I am not running Javascript, just PHP/HTML... THe particular script I am having problems with has several decision points and includes which I think is confusing the placement of the cursor "Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > This is not a php question

[PHP] Re: cursor focus

2002-03-03 Thread Thomas Seifert
yeah, but what you want to do can only be accomplished with JavaScript. PHP is a serverside language and you need a clientside-lang like JS. Thomas Ralph Jarvis wrote: > I am not running Javascript, just PHP/HTML... > THe particular script I am having problems with has several decision points >

Re: [PHP] Web Cam Support

2002-03-03 Thread karthikeyan
Hi Rasmus and Others, Thanks for your info I will look into those link you have provided. How do you think yahoo is able to do it so beautifully. When i click web cam in Yahoo Chat it opens a pop up window and says connecting to the server and then it shows up web cam picture and it is pret

[PHP] Form value retrieval

2002-03-03 Thread karthikeyan
Hi Everybody, In my somename.cgi file there are few hidden fields like this with the tag: Now in my php file (somename.php) i somehow need to get that hidden name and value and put it inside my php form like this : Note : I cannot change

[PHP] Re: cursor focus

2002-03-03 Thread Gaylen Fraley
Well, unless you've disabled JavaScript in your browser, you are running it. -- Gaylen PHP KISGB v4.0.1 Guest Book http://www.gaylenandmargie.com/phpwebsite/ "Ralph Jarvis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > I am not running Javascript, just PHP/HTML... > THe particu

[PHP] Form value retrieval

2002-03-03 Thread karthikeyan
Hi Everybody, In my somename.cgi file there are few hidden fields like this with the tag: Now in my php file (somename.php) i somehow need to get that hidden name and value and put it inside my php form like this : Note : I cannot change

Re: [PHP] Apache & PHPMyAdmin

2002-03-03 Thread Greg Donald
On Sun, 3 Mar 2002, jtjohnston wrote: >No one seems to be home at my favourite apache newsgroup :) so I'll ask >here. >I'm trying to reconfigure my PHPMyAdmin. > >What do I add to my conf file so as in http://phpmyadmin.somehere.com/ >points >to a specific directory on my (windows) drive? > >For

Re: [PHP] header generation problem

2002-03-03 Thread Greg Donald
On Sun, 3 Mar 2002, Jon Feldhammer wrote: >I'm trying to create a single dynamic header for a wide range of web >pages which I'll just include as I need it. There are a few things that >change per web page in the header, but I've settled all the issues >except a good way of how to modify a singl

Re: [PHP] CheckBoxes....

2002-03-03 Thread bvr
Yes, well, PHP supports that a little bit differently. If you append '[]' to the name, an array will be returned after submit with the values of the checked checkboxes. (submit..) $test now contains array("1","3"); bvr. Ben Turner wrote: >Don't checkboxes, if you name them all the sa

[PHP] ignore_user_abort

2002-03-03 Thread Paul Roberts
hi I have a host with ignore_user_abort turned off in php ini. the man says int ignore_user_abort ( [int setting]) so far i have tried 1 and true for the int setting but nothing changed, it still aborted. I want it so the script finishes even the browser conection is lost. anyone know what

[PHP] Re:Re:Re:[PHP] compile php with GD2

2002-03-03 Thread Hendrik
hm, well i allready tried it, but it didnt work, so i chose to add it as a module. ...but the problem is, that i cannot "make" php. I allways get this error: php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static gd.c:92: conflicting types for `gdIOCtx' /usr/include

Re: [PHP] inspiration needed on problem s

2002-03-03 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Steven Walker declared > Nick, > > If I understand the problem correctly, the form reset button doesn't > work when the form is prefilled with POST data. > > To overcome this, I created reset button of type='submit' value='Reset'. >

[PHP] Translation help needed...

2002-03-03 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone. I've been working on a program to help me (and others) knock out contact forms quickly. I'm looking for some help translating a few error msg's and field titles into different languages. Currently I have English and Danish. If you're in

Re: [PHP] header generation problem

2002-03-03 Thread Jon Feldhammer
Greg Donald wrote: > On Sun, 3 Mar 2002, Jon Feldhammer wrote: > > >>I'm trying to create a single dynamic header for a wide range of web >>pages which I'll just include as I need it. There are a few things that >>change per web page in the header, but I've settled all the issues >>except a goo

Re: [PHP] ignore_user_abort

2002-03-03 Thread Rasmus Lerdorf
Which version of PHP? I just tested it and it works just fine for me. How exactly do you know the script is not finishing? Try a test like this: \n"; flush(); fputs($fp,"Line $i\n"); fflush($fp); sleep(1); } ?> Load up this file. You should see it start wri

[PHP] Sessions Help

2002-03-03 Thread Ramesh Nagendra Pillai
Hai I am very new to PHP develope Can any one please help me to use session variables. I am able to register an variable. My probelm is how to get the values of that registered variable in the successive pages? Thanx __ Do You Yahoo!? Yahoo!

Re: [PHP] inspiration needed on problem s

2002-03-03 Thread Steven Walker
I have often looked at problems and immediately thought that PHP is not capable of the solution, but then some discovery sheds light and suddenly many new things are possible. This fell into that category for me too :) Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On

Re: [PHP] Sessions Help

2002-03-03 Thread Greg Donald
On Sun, 3 Mar 2002, Ramesh Nagendra Pillai wrote: >I am very new to PHP develope Can any one please help >me to use session variables. >I am able to register an variable. >My probelm is how to get the values of that registered >variable in the successive pages? You probably need to pass the sess

Re: [PHP] Sessions Help

2002-03-03 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Ramesh Nagendra Pillai declared > I am very new to PHP develope Can any one please help > me to use session variables. > I am able to register an variable. > My probelm is how to get the values of that registered > variable in the suc

[PHP] Re: Hosts with PHP support

2002-03-03 Thread Tom
To all who responded: Thank You! I realized something after I posted the message- I did a little research to clarify what I really need, and it boils down to this: I need a php installation that supports the GIF and JPEG-related functions (like ImageCreateFromGif), and it would also be nice if

Re: [PHP] Re: Non printable page

2002-03-03 Thread Lars Torben Wilson
On Fri, 2002-03-01 at 20:03, michael kimsal wrote: > Diana Castillo wrote: > > Is there any way tomake a page that cannot be printed?? > > > > > GZIP the page and force the end user to use Netscape. ??? No, still wouldn't work. If the data ever gets displayed, then it is present on the viewer

Re: [PHP] exit status

2002-03-03 Thread Lars Torben Wilson
On Sun, 2002-03-03 at 04:16, David Apthorpe wrote: > I'm using PHP on the command line. Is there any way to exit, whilst setting > the exit status, without having it print out? For example, exit(2) will > print "2". > > Thanks in advance, > > David Apthorpe This will be in PHP 4.2.0. -- T

[PHP] Re: cursor focus

2002-03-03 Thread Markas
Hi, PHP will do NOTHING with cursor position in your page, because it's running on server. Perhaps what you've read is generating some Javascript (which actually places the cursor) with PHP... Hmmm, if you are not running Javascript, maybe an attribute TABINDEX, which almost every html tag has, w

Re: [PHP] Checking how many users are logged in?

2002-03-03 Thread Markas
This jaust what I wanted to say... but while reading this I got to question: Is it possible to count active sessions, if the one uses php's sessions without writing any handler functions, just what php4 provides by default? > > >I have a site with logins, etc. I was wondering if there's any way

[PHP] CURL and multiple sites at once

2002-03-03 Thread Stefan Rusterholz
Hi I'm looking for the fastest way to fetch multiple pages from php. Currently I'm trying the curl-lib and it works fine - I just don't understand how to use curl that it stores multiple requests in multiple files. I'll try to explain my problem more detailed: Somewhere are the pages http://fo

Re: [PHP] A Small Bug Giving Me A Big Headache

2002-03-03 Thread Markas
$SQLString = "INSERT INTO Movies (Title, Actors, Review, Reviewer, Short) VALUES ('$Title','$Actors','$Review','$Reviewer','$Short')"; As the manual says: Note: Unlike the two other syntaxes, variables will not be expanded when they occur in single quoted strings. ... So maybe some your fiel

Re: [PHP] Re: Non printable page

2002-03-03 Thread Michael Kimsal
Lars Torben Wilson wrote: > On Fri, 2002-03-01 at 20:03, michael kimsal wrote: > >>Diana Castillo wrote: >> >>>Is there any way tomake a page that cannot be printed?? >>> >>> >> >>GZIP the page and force the end user to use Netscape. ??? >> > > No, still wouldn't work. If the data ever gets di

[PHP] Changing file permissions - Help!

2002-03-03 Thread mojo jojo
Hi First, thanks for reading my post...I tried to post this yesterday but it disappeared - so if you've seen this before, please ignore it... I am needing to change the permissions on a folder that is owned by 'usr'. However, as I am trying to do this from a browser through php, I am browsing as

[PHP] phpAdsNew

2002-03-03 Thread Georgie Casey
I'm getting loads of "undefined variable" errors with this script. any1 know why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Radio Button

2002-03-03 Thread Chiew, Richard
Hi there, i created 3 tables in mysql, which is college.students, college.classes, and college,student_in_class. After that, I made a web form (page) that lists all the current students, and lists all the current classes (each with a radio button). As a user, you can click on a student radio butt

php-general Digest 3 Mar 2002 21:33:10 -0000 Issue 1205

2002-03-03 Thread php-general-digest-help
php-general Digest 3 Mar 2002 21:33:10 - Issue 1205 Topics (messages 86965 through 87004): Re: Bizarre mail() problem 86965 by: andy thomas Re: Ok Gurus Shake your nudels !!! 86966 by: Jon Feldhammer header generation problem 86967 by: Jon Feldhammer 86982

[PHP] phpAdsNEW HELP!!!!

2002-03-03 Thread Georgie Casey
I just download the 6.1 beta of phpAdsNew off sourceforge and installed it on my localhost. I set everything right but when I login to admin I get a "undefined variable, $zoneid" error from config.inc So I just added a "global $zoneid;" line and I half got into the admin page. But I'm still getti

Re: [PHP] phpAdsNew

2002-03-03 Thread DL Neil
Georgie, > I'm getting loads of "undefined variable" errors with this script. any1 know > why? You're using a recent release of PHP aren't you? Check out http://www.php.net/manual/en/security.registerglobals.php for an explanation of changes in 4.1.n. Regards, =dn -- PHP General Mailing Lis

Re: [PHP] Re: cursor focus

2002-03-03 Thread Steven Walker
If you -could- use Javascript, it looks something like this: document.formName.textfieldName.focus() Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Sunday, March 3, 2002, at 12:55 PM, Markas wrote: > Hi, PHP will do NOTHING with cursor position in your page,

[PHP] % character in sprintf

2002-03-03 Thread Job Miller
how do i escape the % character to appear in a sprintf statement? it doesn't mention that in the sprintf php manual page. job __ Do You Yahoo!? Yahoo! Sports - sign up for Fantasy Baseball http://sports.yahoo.com -- PHP General Mailing List

RE: [PHP] % character in sprintf

2002-03-03 Thread Martin Towell
try %% -Original Message- From: Job Miller [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 10:20 AM To: [EMAIL PROTECTED] Subject: [PHP] % character in sprintf how do i escape the % character to appear in a sprintf statement? it doesn't mention that in the sprintf php manual

Re: [PHP] % character in sprintf

2002-03-03 Thread Lars Torben Wilson
Job Miller writes: > > how do i escape the % character to appear in a sprintf > statement? > > it doesn't mention that in the sprintf php manual > page. > > > > job Yeah it does--it's the first item in the list. :) -- Torben Wilson <[EMAIL PROTECTED]> http://www.thebuttlesschaps.com ht

[PHP] Using php as a backend bridge between smtp and mysql

2002-03-03 Thread Ken Tossell
Hi, I need to have php called from sendmail. I have set up an address to be aliased to "|/usr/local/bin/proc-mail" but I get an error saying "service unavailable". All permissions correct. See php code below. This is just a test mechanism, right now, to send the email to a mysql database for a fr

[PHP] Using php as a backend bridge between smtp and mysql

2002-03-03 Thread Ken Tossell
Hi, I need to have php called from sendmail. I have set up an address to be aliased to "|/usr/local/bin/proc-mail" but I get an error saying "service unavailable". All permissions correct. See php code below. This is just a test mechanism, right now, to send the email to a mysql database for a fr

Re: [PHP] phpAdsNew

2002-03-03 Thread Georgie Casey
no, registerglobals has nothing to do with it "Dl Neil" <[EMAIL PROTECTED]> wrote in message 158e01c1c2fc$57b0db80$c200a8c0@jrbrown...">news:158e01c1c2fc$57b0db80$c200a8c0@jrbrown...; > Georgie, > > > I'm getting loads of "undefined variable" errors with this script. > any1 know > > why? > > > You

RE: [PHP] HTTP Post to another server

2002-03-03 Thread Johnson, Kirk
Search the archive on "PostToHost", or see this link: http://www.zend.com/zend/spotlight/mimocsumissions.php#Heading6 Kirk > -Original Message- > From: Quentin Bennett [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 01, 2002 3:19 PM > To: [EMAIL PROTECTED] > Subject: [PHP] HTTP Post to

[PHP] using remote code

2002-03-03 Thread Ximon Eighteen
Ignoring the issues of executing untrustworthy code can someone tell me why this won't work and how I can achieve this? Basically there is a remote php file on another web server that has a function in it. I want to execute this function in my own code... I'm guessing this probably won't work bu

RE: [PHP] using remote code

2002-03-03 Thread Dan Vande More
I don't think this will work, because if it is configured correctly, that file will be parsed by PHP before(as) apache gets it, meaning the only part apache gives you is the result of all the code executing in that page. Exactly like a web browser, php sees and then gives it to apache saying Hel

[PHP] Convert Word Doc Header to Bold Tag

2002-03-03 Thread WANDA HANSEN
Hello, Is there a way to convert Bold text in word to Bold text in HTML using PHP? Thank you, Julian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: CURL and multiple sites at once

2002-03-03 Thread Phillip Oertel
> curl_setopt($ch, CURLOPT_URL, "http://foo.bar.com/page1.html";); > curl_setopt($ch, CURLOPT_FILE, $fh1); > curl_exec($ch); //exec1 > curl_setopt($ch, CURLOPT_URL, "http://foo.bar.com/page2.html";); > curl_setopt($ch, CURLOPT_FILE, $fh2); > curl_exec($ch); //exec2 > curl_setopt($ch, CURLOP

[PHP] Need help with a PHP script

2002-03-03 Thread PHP
http://infinitep.t35.com/countmein/control.phtml\";>"; echo ""; echo ""; echo "Username:"; echo ""; echo "Password:"; echo " "; echo ""; } ?> I can't determine what's wrong. It prints T, but nothing else! -- - Roy W. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] Need help with a PHP script

2002-03-03 Thread Douglas Maclaine-cross
echo "T".$username.$password; is PHP 2 and earlier proper syntax for PHP 3+ is echo "T"+$username+$password; or echo "T$username$password"; Doug

[PHP] Re: Need help with a PHP script

2002-03-03 Thread Jim Winstead
Php <[EMAIL PROTECTED]> wrote: > function Authorize() { global $HTTP_POST_VARS; > $username = $HTTP_POST_VARS['username']; > $password = $HTTP_POST_VARS['password']; > echo "T".$username.$password; > } (insert the line above.) jim -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] IMAP, POP3 and NNTP functions - questions..

2002-03-03 Thread topside
I have a question or two regarding the IMAP, POP3 and NNTP functions. Is there *any* way to use imap_fetchstructure() using an actually message string instead of an imap_stream and messgae number. Basicly, I am storing mail onto a MySQL DB. I want to be able to parse out the attatchments and data

[PHP] Need help with a PHP script

2002-03-03 Thread PHP
http://infinitep.t35.com/countmein/control.phtml\";>"; echo ""; echo ""; echo "Username:"; echo ""; echo "Password:"; echo " "; echo ""; } ?> I can't determine what's wrong. It prints T, but nothing else! -- - Roy W. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] Multiple Forms

2002-03-03 Thread Ramesh Nagendra Pillai
Hai I am having two forms in one php page I want to submit it to second page. My query is 1) Is it possible to submit 2 forms using single submit button 2) If so, how to get both form details in the secon page? Thanx __ Do You Yahoo!? Yahoo! S

RE: [PHP] Multiple Forms

2002-03-03 Thread Martin Towell
1) not unless you have them opening up a new window for each form 2) combine them into one form Martin -Original Message- From: Ramesh Nagendra Pillai [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 2:27 PM To: Php Mailing list Subject: [PHP] Multiple Forms Hai I am having two

RE: [PHP] Multiple Forms

2002-03-03 Thread Zak Greant
On Sun, 2002-03-03 at 20:31, Martin Towell wrote: > 1) not unless you have them opening up a new window for each form > 2) combine them into one form Also, this topic is covered quite often on this list. Check the list archives for the various solutions people have used. http://php.net/sup

[PHP] Pipe

2002-03-03 Thread Ken Tossell
What var is the piped data placed in? Php 4.1 executable rhlinux 2.4.17 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pipe

2002-03-03 Thread Lars Torben Wilson
On Sun, 2002-03-03 at 19:32, Ken Tossell wrote: > What var is the piped data placed in? > > Php 4.1 executable rhlinux 2.4.17 I'm gonna assume that you mean that you're doing something like this: % cat somefile.txt | script.php In which case, you'd need to fopen() the file 'php://stdin' and re

RE: [PHP] Need help with a PHP script

2002-03-03 Thread Douglas Maclaine-cross
I can't believe I just sent this. For those who care it's the other way around. -Original Message- From: Douglas Maclaine-cross Sent: Monday, March 04, 2002 14:08 To: 'PHP'; [EMAIL PROTECTED] Subject: RE: [PHP] Need help with a PHP script echo "T".$username.$password; is PHP 2 and ear

RE: [PHP] Need help with a PHP script

2002-03-03 Thread Martin Towell
instead of $HTTP_POST_VARS, try $_POST -Original Message- From: PHP [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: [PHP] Need help with a PHP script http://infinitep.t35.com/countmein/control.phtml\";>"; echo ""; echo ""; echo "Use

[PHP] Storing Script information in MySQL

2002-03-03 Thread David Redmond
Is it possible to store the contents of a PHP file within a field in a MySQL table? When the contents are retrieved, can they be executed by the PHP parser as if it were part of the actual PHP file? ie: have the following stored in the DB; -- snip -- \n"; ?> -- snip -- Then run a PHP script to

RE: [PHP] Storing Script information in MySQL

2002-03-03 Thread Martin Towell
store it as text when you get it back, do an exec() on it -Original Message- From: David Redmond [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 3:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Storing Script information in MySQL Is it possible to store the contents of a PHP file wi

[PHP] remove everything

2002-03-03 Thread Websitecd
What is the code to remove everything but numbers and letters from a string? $output = str_replace("","",$output); Regards, Joseph A. Bannon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] remove everything

2002-03-03 Thread Martin Towell
$output = ereg_replace("[^a-zA-Z0-9]", "", $output); (not tested - but should work) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 4:04 PM To: [EMAIL PROTECTED] Subject: [PHP] remove everything What is the code to remove everything but

RE: [PHP] Storing Script information in MySQL

2002-03-03 Thread David Redmond
I couldn't seem to get this working. Contents of the "Text" field in the DB are; -- snip -- \n"; } ?> -- snip -- contents of the field are being stored in a variable, $strTest, running below produces nothing; -- snip -- -- snip -- I've removed the PHP delimetrs within the field and changed t

[PHP] How do I make the PHP script for fdisc?

2002-03-03 Thread GENESiS DESiGNS
Hello, I have a web form that allows someone to fdisc there drive C:\ but how to I make the PHP script to run that? By the way, I'm not using this to make someone real mad, I'm just curious and I will NOT put this script on the net, just on my local machine. Thanks, -GENESiS DESiGNS -Sean Ke

RE: [PHP] Storing Script information in MySQL

2002-03-03 Thread Martin Towell
sorry - it's eval() -Original Message- From: David Redmond [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 4:09 PM To: 'Martin Towell'; [EMAIL PROTECTED] Subject: RE: [PHP] Storing Script information in MySQL I couldn't seem to get this working. Contents of the "Text" field in

Re: [PHP] How to generate an broun & white JPG with GD

2002-03-03 Thread Tom Rogers
Hi Here is a better script to create sepia images from a jpeg, put it in the same place as your images and call it sepia.php. Uselike this: img src="/images/sepia.php/filename.jpg" 255) $red = 255; $blue = intval($x / ($start_blue - ($x * $blue_scale)));

[PHP] .htaccess settings

2002-03-03 Thread Ashley M. Kirchner
Under PHP3 I was able to do the following within an .htaccess file: php3_magic_quotes_runtime off php3_magic_quotes_gpc on How do I achieve the same thing under PHP4? -- H | "Life is the art of drawing without an eraser." - John Gardner +--

[PHP] Displaying Number values

2002-03-03 Thread Phillip S. Baker
Hey All, I want PHP to print out the value of a number in a variable as something like 01. However whenever I try to I only get 1. Is there a way around this? Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ID variable alsways set

2002-03-03 Thread Chris N
Ive just found a rather weird bug that im experiencing. Im running PHP 4.1.2 with Apache 1.3.23 on Linux Redhat 7. When ever I try and use variable $id it always has a value of 1 no matter what. It only does it if its in a get, think a post too. I can hard code it in a script and itll have a corre

RE: [PHP] Displaying Number values

2002-03-03 Thread Martin Towell
printf("%02i", $num); should work -Original Message- From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 4:39 PM To: PHP Email List Subject: [PHP] Displaying Number values Hey All, I want PHP to print out the value of a number in a variable as something lik

[PHP] convert to lowercase

2002-03-03 Thread Websitecd
What is the code to make a string into lower case? Regards, Joseph A. Bannon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] convert to lowercase

2002-03-03 Thread Martin Towell
strtolower() -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 4:55 PM To: [EMAIL PROTECTED] Subject: [PHP] convert to lowercase What is the code to make a string into lower case? Regards, Joseph A. Bannon -- PHP General Mail

RE: [PHP] convert to lowercase

2002-03-03 Thread Jason Murray
> What is the code to make a string into lower case? Could you please check the manual before you ask like this? It's strToLower(). http://www.php.net/strtolower Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" -- PHP General Mailing List (http:/

[PHP] PHP 4.1.2 and Segmentation Fault

2002-03-03 Thread Samantha Savvakis
Hi, I recently upgraded my development web server from PHP 4.0.6 to PHP 4.1.2 in the wake of the security alert. Details: SCO Openserver 5.0.6 Apache 1.3.20 with SSL PHP 4.1.2 Libxml 2.4.16 Mysql 3.23.48 PHP configure: ./configure \ --with-apache=/u/apps/apache_1.3.20_wssl \ --with-mysql=/usr

[PHP] Re: Displaying Number values

2002-03-03 Thread Samantha Savvakis
Hi, You can achieve this by using the printf or sprintf statements. This will print "01" If numberval = 20 - it will only print "20". The %02d is the key. %02 means - print 2 characters with leading zero's if there aren't 2 characters. %03 - 3 characters with leading zero's etc etc Hope I'

Re: [PHP] convert to lowercase

2002-03-03 Thread Websitecd
I'm sorry boss, I didn't know it was added to the manual. Regards, Joseph A. Bannon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP 4.1.2 and Segmentation Fault

2002-03-03 Thread Samantha Savvakis
Another backtrace that gives a bit more information : #gdb /usr/local/bin/php core GNU gdb 5.0 Copyright 2000 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. T

[PHP] ips and mysql table.

2002-03-03 Thread Kunal Jhunjhunwala
Hey, I came across this interesting problem somebody was having. I couldnt find a solution. Hope one of you can : I have a mysql table which stores the IP Address of my site visitors. When I try to sort these Ip address in the ascending or descending order the order is completely out of order. I

Re: [PHP] ID variable alsways set

2002-03-03 Thread Rasmus Lerdorf
Do a phpinfo() and check to see if you perhaps have a cookie with the name "id" set with the value "1". If your look at variables_order in your php.ini file, you will see that cookie data will override get-method data. To force a read from the GET data, use $_GET['id'] instead of $id. -Rasmus

[PHP] How to run a script leaving screen output of previous script

2002-03-03 Thread Alex Vargas
Hi. I want to run a php script without leaving the php that calls that script. Let's say I have a script called mypage.php which displays html. There is a link to link.php, which makes some database maintenance and has no output. I want to be able to run link.php from mypage.php, but don't want t