Re: [PHP] url exist?

2001-11-15 Thread jtjohnston
Yeah ... but you have to install the package. Thanks for the thought though. :) I'd looove to ask my admin ... but I know what his answer is/was/will be/would be :) always is. Chris Hobbs wrote: > Looks like you might be able to use the cURL extensions >

Re: [PHP] url exist?

2001-11-15 Thread jtjohnston
Thanks. Andrew Kirilenko wrote: > Hello! > > The simpliest way: > $f = @fopen("http://foobar.baz/somefile.ext";, "r"); > if ($f) > { > fclose($f); > echo "exists!" > } > else > { > echo "no exists!" > } > > Best regards, > Andrew Kirilenko. > > > -Original Message

RE: [PHP] Re: strpos

2001-11-15 Thread Andrew Kirilenko
Oops. Forgot about 0 return ;( > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 9:42 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: strpos > > > > if (!strpos(...)) > > will be better... > > Why? > > > > -- > PHP General Ma

RE: [PHP] Regular expressions?

2001-11-15 Thread Andrew Kirilenko
Hello! You should write something like this: if (preg_match("/(.*)<\/H2>/Ui", $str, $matches)) echo $matches[1]; U modufier - ungreedy match i modifier - case insentensive >Where can I start to learn reg-exp? If you want to get more abot regexp - read php manual at least.Or try to fi

Re: [PHP] Re: strpos

2001-11-15 Thread Martin Thoma
> if (!strpos(...)) > will be better... Why? -- 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]

RE: [PHP] Re: strpos

2001-11-15 Thread Andrew Kirilenko
Hello! if (!strpos(...)) will be better... Best regards, Andrew Kirilenko. > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 9:28 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: strpos > > > strpos return false if the search fails.

Re: [PHP] url exist?

2001-11-15 Thread Chris Hobbs
Looks like you might be able to use the cURL extensions - there's a function called curl_getinfo which returns an array which includes http_code - you could check the value of that to see whether the file was available (http_code == 200), not found (

[PHP] Regular expressions?

2001-11-15 Thread Martin Thoma
Hello! I need to search for strings between html-tags. For example, I need to know if the String "Searchstring" is between "" and "" (case-insensitive). How is it done? I think I need regular expressions, but I have no idea about it. I'm not getting to clever out of the php-documentaion. Where

RE: [PHP] url exist?

2001-11-15 Thread Andrew Kirilenko
Hello! The simpliest way: $f = @fopen("http://foobar.baz/somefile.ext";, "r"); if ($f) { fclose($f); echo "exists!" } else { echo "no exists!" } Best regards, Andrew Kirilenko. > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Friday, Nov

[PHP] Re: strpos

2001-11-15 Thread Martin Thoma
strpos return false if the search fails. You have therefore to test for: if (strpos(...,...) === false) or if (strpos(...,...) !== false) Martin Jtjohnston wrote: > I suppose I'm doing this right? I want to know if the user entered > "\.jpeg" or "\.jpg". If he didn't, it should error. > > I

[PHP] url exist?

2001-11-15 Thread jtjohnston
Any way of finding out if this exists? http://www.somewhere.com/image.jpg if yes {} else {}; -- 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 PROTEC

[PHP] strpos

2001-11-15 Thread jtjohnston
I suppose I'm doing this right? I want to know if the user entered "\.jpeg" or "\.jpg". If he didn't, it should error. It errors anyways? What do I have to do add slashes in my ??? :o) // if((!strpos($yourimage, "\.jpg")) || (!strpos($yourimage, "\.jpeg"))) \\ <--- tried both! if((!strpos

[PHP] Re: JPG Images from database to filename.jpg

2001-11-15 Thread Johan Holst Nielsen
> Header("Content-type: image/jpeg"); > echo $Images; > > I can't figure out how to create the header. There's lots of examples > of how to do the above, but I have yet to stumble across an example > which allows you to write the header into a file You could make a PHP script that generate

[PHP] Re: PHP versus all other languages

2001-11-15 Thread Manuel Lemos
Hello, Pat Hanna wrote: > > I'm doing my senior exit project on database languages online. I'm asking > for help from anyone who can provide any information on the comparison > between the different languages. I'm comparing languages such as PHP, ASP, > ColdFussion, perl and any others that I mi

[PHP] Re: PHP versus all other languages

2001-11-15 Thread Manuel Lemos
Hello, Pat Hanna wrote: > > I'm doing my senior exit project on database languages online. I'm asking > for help from anyone who can provide any information on the comparison > between the different languages. I'm comparing languages such as PHP, ASP, > ColdFussion, perl and any others that I mi

[PHP] JPG Images from database to filename.jpg

2001-11-15 Thread Mike Gifford
Hello, I've got a number of images in a database.. Ultimately what I would like to do is be able to resize the image that is already in the database and then insert that image into another field. Uploading the files generally inserts these both at the same time, however I need to create a nu

[PHP] test

2001-11-15 Thread Mike Gifford
Sorry, I've been having troulbe sending messages to newsgroups.. -- 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] SESSION &

2001-11-15 Thread jtjohnston
HTH. I have solved the problem with this code: "; } elseif($submit=="Send") { echo" "; } elseif($submit=="Display") { if($name) { header("Content-type: image/png"); $image = imagecreate(100, 100); $white = ImageColorAllocate ($image, 255, 255, 255);//Set this first as the backgr

[PHP] Re: Books for PHP and MySQL Class

2001-11-15 Thread Fred
I agree with Chris and Richard, "PHP and MySQL Web Development" by Welling and Thomson, from SAMS. ISBN 0-672-31784-2 is a great book which contains primers for both PHP and MYSQL and then many chapters on how to use them together in real world environments. Chris Lott <[EMAIL PROTECTED]> wrote

Re: [PHP] Re: HTTP_POST_VARS and eval?

2001-11-15 Thread Henrik Hudson
Thanks for the help on this. The file it's reading in: - An example form has been submitted. Name: ]name[ Email: ]email[ The user made the following comments: ]comments[ Just in case we forget, the users name is ]name[ and their email is ]email[

[PHP] Re: Including declare statements that contain variables

2001-11-15 Thread Fred
> Well you have an interestingly different approach! Glad I could entertain you! > Personally I kind of like either having the SQL statements in-line with the rest > of the code or functions that retrieve data for that particular query e.g. > function get_students($class) { The problem with

[PHP] Re: Reading a web page as a text string

2001-11-15 Thread Gaylen Fraley
You could do something like this: $ip = "10.030.88.24"; //example $url = "http://www.arin.net/cgi-bin/whois.pl?queryinput=$ip";; $fp = @fopen($url, 'r') or die("Cannot Open"); Then, parse the $fp with fgets, or something to find the string you are after. -- Gaylen [EMAIL PROTECTED] Home http:

[PHP] FREE Non Surgical Face Lift in A Bottle

2001-11-15 Thread creatingwealth_
Removal Instructions are at the end of this letter. Thank you. FREE Non-Surgical "Face Lift in a Bottle!" You Can Look 5-10 Years Younger with One 30 Minute Application in the Comfort of Your Own Home! AND YOU CAN... Become Rich through Giving Away Free Samples of Our Life Enhancing Non-Surg

[PHP] Re: Fatal error: Call to undefined function: imagecreate()

2001-11-15 Thread Johan Holst Nielsen
> I know it's probabally overkill but in the configure messages, it says > yes for everything gd, jpeg, png, and zlib. Any suggestions? If anybody > wants to see the configure messages let me know. What do PHP tells you about the GD lib extension. Try making a phpinfo() file and send the output

Re: [PHP] Reading a web page as a text string

2001-11-15 Thread Richard Baskett
Well a person could do something like this: http://www.php.net/support.php";; $fcontents = htmlspecialchars(implode('', file ("$file"))); echo "$fcontents"; ?> All this will do is return the webpage as text so that you can read it in your browser. Rick > HI Folks, > > How can I read a ht

[PHP] Reading a web page as a text string

2001-11-15 Thread Michael J. Seely
HI Folks, How can I read a html page as a text file? I saw a demo of someone doing this on a Mac using AppleScript. The example sent a zip code as a variable attached to the remote site url. This resulted in a web page being sent back with the city and state info included. He then read the

[PHP] Re: HTTP_POST_VARS and eval?

2001-11-15 Thread Richard Lynch
Henrik Hudson wrote: > So, its having problems doing an eval on the HTTP_POST? If I replace the > HTTP_POST stuff with just$\\1 and then define $string = > $HTTP_POST_VARS["string"] it works just fine, but I can't do this since I > don't know what string is going to be, just that it is betwe

Re: [PHP] Newsgroup?

2001-11-15 Thread Christopher Raymond
Hmm: It must be my client then. Christopher Raymond -- O A S I S N E T W O R K S -- INTERACTIVE FLASH MEDIA PRODUCTION HTML, JAVASCRIPT, PHP & E-COMMERCE DEVELOPMENT

[PHP] HTTP_POST_VARS and eval?

2001-11-15 Thread Henrik Hudson
Hey List- Working on a program and I seem to have run into a problem with HTTP_POST_VARS. Are the HTTP_VARS considered "special"? Here is what I am doing, reading in from a file into an array and then grabbing each line and looking for ]string[ and replacing that with $HTTP_POST_VARS["stri

[PHP] Sybase Segfault

2001-11-15 Thread Richard Lynch
Any Sybase/Mandrake gurus want to help me out?... http://bugs.php.net/?id=14074 -- Like Music? http://l-i-e.com/artists.htm -- 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 adm

[PHP] Fatal error: Call to undefined function: imagecreate()

2001-11-15 Thread Jeff Bearer
I'm getting this error with my php installation, I first assumed that it was because I didn't have GD and friends installed. So I configured and installed PHP with these options and I'm still getting the same error. ./configure --enable-apc --with-mysql --with-apache=../apache_1.3.22 --enable-i

RE: [PHP] PEAR Syntax

2001-11-15 Thread Richard Heyes
> I'm just exploring PEAR a bit, and am confused. > > Many examples cite calling functions such as: > > RFC822_Mail::parseAddressList(...); > > But when I call the function like that, I get a parse error. Any ideas > anyone? Well you need to be using php4, :: won't work in php3. Oh and it's Mail_

Re: [PHP] EREG_REPLACE?

2001-11-15 Thread Mark
On Thu, 15 Nov 2001 20:09:08 +0100, Oosten, Sjoerd van wrote: > >> Hello, ive got a problem >> >> I want to replace this string: >> this must also be variable >> >> by: >> >> this must also be variable try: ereg_replace("(.*)", "\\1",$string); >> So the two tags should be placed before and after

Re: [PHP] What version did $PHP_SELF still work?

2001-11-15 Thread Mike Eheler
Hrm. Well if you want quick fix: $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; Mike John Steele wrote: >Hi Mike and Jim, > > From my earlier message [Re: PHP 4.0.6 $PHP_SELF empty?]: > >> No, I updated my php.ini manually (just to change the zend optimizer and >>add the DBG debugger. These two

RE: [PHP] What version did $PHP_SELF still work?

2001-11-15 Thread Johnson, Kirk
Have you looked at what is in $HTTP_SERVER_VARS['PHP_SELF']? Does this array element even exist? I am wondering if there is an Apache setting that affects this, but I sure don't know. Kirk > -Original Message- > From: John Steele [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15,

Re: [PHP] What version did $PHP_SELF still work?

2001-11-15 Thread John Steele
Hi Mike and Jim, From my earlier message [Re: PHP 4.0.6 $PHP_SELF empty?]: > No, I updated my php.ini manually (just to change the zend optimizer and >add the DBG debugger. These two lines from php.ini haven't changed for sure: > >variables_order = "EGPCS"; >register_globals = On; > Accord

[PHP] 5760 Melt away extra5891 pounds and inches today! 4372028

2001-11-15 Thread 2843720weigh_out
My name is Linda Gillie. I am 31 years old. A mother of three, a wife of 13 years to a wonderful man, Michael My heart told me to share my story with you, so you don't give up hope. I have found a weight loss product that really works. It gets rid of fat fast and keeps it off, FOR GOOD! T

[PHP] PEAR Syntax

2001-11-15 Thread Mike Eheler
Hi There, I'm just exploring PEAR a bit, and am confused. Many examples cite calling functions such as: RFC822_Mail::parseAddressList(...); But when I call the function like that, I get a parse error. Any ideas anyone? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] What version did $PHP_SELF still work?

2001-11-15 Thread Jim Lucas
try using $GLOBALS[PHP_SELF] no matter where you are at (ie out of a function, in a function, in an array(), etc... ), you will get the correct value Jim - Original Message - From: "John Steele" <[EMAIL PROTECTED]> To: "PHP General List" <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2

Re: [PHP] Re: Supplied argument is not a valid MySQL result

2001-11-15 Thread Dan McCullough
Got it to work. I had made a change that deleted something, not sure what, but when I went back a revision it worked, and I just added back in the html that I needed to use, but I was more careful. --- Richard Lynch <[EMAIL PROTECTED]> wrote: > Dan McCullough wrote: > > > Warning: Supplied arg

Re: [PHP] Re: Books for PHP and MySQL Class

2001-11-15 Thread John Steele
Hi Richard, _PHP4 A Beginner's Guide_ is geared especially to first-time programmers... John >Chris Lott wrote: > >> I'll be teaching a web development class in the Spring in which I plan to >> focus on PHP and MySQL as primary tools. These will be students who have >> experience with HTML An

[PHP] What version did $PHP_SELF still work?

2001-11-15 Thread John Steele
Hello, I'm trying this again with a different header. After installing PHP4.0.6 $PHP_SELF is set (empty), and this is breaking many scripts of mine (and others). I can't seem to find any mention of this in the commented manual, or anywhere else for that matter. I can try and install an e

Re: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Chris Lott
On 15 Nov 2001, [EMAIL PROTECTED] (The Big Roach) spake thusly: >I think a better strategy would be to introduce them to the basics of >databases in general as opposed to trying to "teach" MySQL to them. A >good primer on DB's would be "Databases for mere mortals" by ... ? some >guy! But the cov

Re: [PHP] Re: executing another php.script

2001-11-15 Thread Andrew Brampton
How about you do readfile('http://server.com/yourPHP.php'); That just opens that file, ie the same as clicking it... Andrew - Original Message - From: "David Tod Sigafoos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 8:42 PM Subject: [PHP] Re: executi

[PHP] Re: executing another php.script

2001-11-15 Thread Richard Lynch
David Tod Sigafoos wrote: >>> From one script I wish to 'execute' another script. How is this done? >>> >>> Setting a link and clicking is not the answer .. one script loops >>> through all the 'selected' rows and I want to 'execute' another script >>> for each row .. can this be done? >From wh

RE: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Mark Saunders
That would be by Michael Hernandez -Original Message- From: The Big Roach [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 4:32 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Books for PHP and MySQL Class I think a better strategy would be to introduce them to the basics of dat

Re: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread The Big Roach
I think a better strategy would be to introduce them to the basics of databases in general as opposed to trying to "teach" MySQL to them. A good primer on DB's would be "Databases for mere mortals" by ... ? some guy! But the cover is orange/brown and not very thick. Can't find it here... where did

[PHP] Re: Supplied argument is not a valid MySQL result

2001-11-15 Thread Richard Lynch
Dan McCullough wrote: > Warning: Supplied argument is not a valid MySQL result resource in > /home/sites/projects.heathermccullough.com/web/copeland/product.php on > line 61 > > Here is the code, I fixed it once, and I cant figure out why it keeps > returning. > > if ($submit) { > $sql = ("SELE

[PHP] Re: executing another php.script

2001-11-15 Thread David Tod Sigafoos
Mike .. thanks for trying .. but that simply is not useful. On Mon, 12 Nov 2001 10:18:34 -0500, [EMAIL PROTECTED] (Mike Harvey) wrote: >Just "include(script2.inc)" in your loop. >"David Tod Sigafoos" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> I am sur

Re: [PHP] Supplied argument is not a valid MySQL result

2001-11-15 Thread Mike Eheler
Because you are enclosing your $sql string within () brackets, $sql is being set a boolean value, not the value of the string. Change it to $sql = "SELECT * ... '$group_id'"; -Mike Dan McCullough wrote: >Warning: Supplied argument is not a valid MySQL result resource in >/home/sites/projects.

[PHP] Re: executing another php.script

2001-11-15 Thread David Tod Sigafoos
Steve, Thanks for the reply .. but you miss the point (which i probably did not explain well). I already have a script called x.php. IT gets called from links with all the info needed. I have an instance where there will be no interaction between a user so no 'clicking' of the link will happ

[PHP] Re: Image Upload, renaming question

2001-11-15 Thread Joe Van Meer
Thx Richard, I would like the files to all be dumped into one directory, each with a unique name. Then I will create a path and store that in the db. Thx for the ideas, I will check them out and get back to youvia this thread. Cheers Joe:) "Richard Lynch" <[EMAIL PROTECTED]> wrote in message [E

[PHP] Re: require or include

2001-11-15 Thread Richard Lynch
Sjoerd Van Oosten wrote: > I'm just wandering what's better, require or include. Neither is "better" Now that PHP is being compiled to byte-code before execution, I don't *THINK* there's any real difference... If there *IS* a difference, it's about *WHEN* the code gets evaluated: require wou

[PHP] Supplied argument is not a valid MySQL result

2001-11-15 Thread Dan McCullough
Warning: Supplied argument is not a valid MySQL result resource in /home/sites/projects.heathermccullough.com/web/copeland/product.php on line 61 Here is the code, I fixed it once, and I cant figure out why it keeps returning. if ($submit) { $sql = ("SELECT * FROM store WHERE state = '$State' AN

[PHP] Re: Image Upload, renaming question

2001-11-15 Thread Richard Lynch
Joe Van Meer wrote: > Hi there, I have an upload form on my website that works great, however I > have come to a roadblock...how the heck do I rename the copied file? > Everytime I upload an image it overwrites the old one with the new. The > code below uploads the file and displays the following

[PHP] Re: Books for PHP and MySQL Class

2001-11-15 Thread Richard Lynch
Chris Lott wrote: > I'll be teaching a web development class in the Spring in which I plan to > focus on PHP and MySQL as primary tools. These will be students who have > experience with HTML And web design, but most will have no experience with > programming at all. > > I need recommendations f

Re: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Clint Tredway
I also have the PHP & MySQL Web Development book and I used it to learn PHP and MySQL. I think it is one of the better books. my opinion.. Clint -- Original Message -- From: [EMAIL PROTECTED] (Chris Lott) Date: 15 Nov 2001 19:41:18 - I'll be teachin

Re: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Richard Baskett
So far the best books that I have found for PHP and MySQL are: PHP: Developer's Cookbook by Sterlings Hughes (SAMS) MySQL/PHP Database Applications by Jay Greenspan & Brad Bulger (M&T books) I believe another person on our mailing list is putting out a book soon... hopefully maybe he'll rear hi

RE: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Chris Bailey
"PHP and MySQL Web Development" by Welling and Thomson, from SAMS. ISBN 0-672-31784-2. An easy read, but covers everything you'd need. I'm a little biased as a reviewer for your particular needs, since I've been coding for many years, and thus skipped a bunch of the intro PHP language chapters,

[PHP] Image Upload, renaming question

2001-11-15 Thread Joe Van Meer
Hi there, I have an upload form on my website that works great, however I have come to a roadblock...how the heck do I rename the copied file? Everytime I upload an image it overwrites the old one with the new. The code below uploads the file and displays the following: Your photo has been upload

[PHP] Books for PHP and MySQL Class

2001-11-15 Thread Chris Lott
I'll be teaching a web development class in the Spring in which I plan to focus on PHP and MySQL as primary tools. These will be students who have experience with HTML And web design, but most will have no experience with programming at all. I need recommendations for book(s) that will serve

Re: [PHP] require or include

2001-11-15 Thread Mike Eheler
It all depends on the purpose. With require, the script will die on the spot if the file is not found. Also, the code will always be included in the file.. so take this example: file.php: requiretest.php: The run script would be: Of course that code would never be executed, but the requi

[PHP] require or include

2001-11-15 Thread Oosten, Sjoerd van
Hello list, I'm just wandering what's better, require or include. Greetings, Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 75

[PHP] Re: Including declare statements that contain variables

2001-11-15 Thread George Whiffen
Well you have an interestingly different approach! Personally I kind of like either having the SQL statements in-line with the rest of the code or functions that retrieve data for that particular query e.g. function get_students($class) { Anyway based on your approach: 1. You could still s

[PHP] EREG_REPLACE?

2001-11-15 Thread Oosten, Sjoerd van
> Hello, ive got a problem > > I want to replace this string: > this must also be variable > > by: > > this must also be variable > > So the two tags should be placed before and after the link when a link is > in my $pagecontent > > I know it's easier to use another class, but for the moment

Re: [PHP] Another POST case?

2001-11-15 Thread Mike Eheler
0 && is_array($toppings)) { $strtoppings = implode(', ',$toppings); $msg = "The customer wants: $strtoppings."; } ?> Mike Raymond wrote: >Hi! > >I have this using postmethod: > > > > > > > >Then I'm trying to mail the result with the mail() function. > > >/* recipie

[PHP] Another POST case?

2001-11-15 Thread Raymond
Hi! I have this using postmethod: Then I'm trying to mail the result with the mail() function. /* recipients */ $to = [EMAIL PROTECTED] ; /* subject */ $subject = "Order"; /* message */ $message = "$customer want to order:\n $cheese, $ham , $peppernoi" ; /* To send HTML mail, you c

Re: [PHP] The url of the last site?

2001-11-15 Thread Miles Thompson
Brandon, Go to Juli Meloni's thickbook page, there is a tutorial there on PHP forms which display error message. With a bit of tweaking it's exactly what you want. http://www.thickbook.com Miles Thompson At 09:55 AM 11/15/01 -0800, Brandon Orther wrote: >Hello, > >I am trying to have a scrip

[PHP] Re: Newsgroup?

2001-11-15 Thread Henrik Hansen
[EMAIL PROTECTED] (Richard Lynch) wrote: > Christopher Raymond wrote: > >> What's the deal with the newsgroup version of this list? I'm using >> news.php.net as the news server address, but all I get are error messages. > > What error messages are you getting? > > You can't *POST* through the

[PHP] Re: apache don´t understand php!!----¡¡apache no entiende php!!

2001-11-15 Thread Richard Lynch
Alejandro wrote: > I have a problem:I have a php page wich runs well when I run it, but when > I run a html page and links the php file, the source code is seen on the > screen. It´s like apache wouldn't understand php!!. Any ideas? Thanks If the file ends in .html, and you have not used AddType

[PHP] Re: The url of the last site?

2001-11-15 Thread Richard Lynch
Brandon Orther wrote: > I am trying to have a script that process a form and then sends the > person back to the form they were on if there are errors. > > Does anyone know how I can get the url of the form that someone submit > to the script from? $HTTP_REFERER In the future, the answer to s

RE: [PHP] The url of the last site?

2001-11-15 Thread Jon Haworth
It's in the $HTTP_REFERER variable (speeling mistake intentional) Be warned, though - not every browser supplies this in every circumstance. Cheers Jon -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: 15 November 2001 17:55 To: 'PHP User Group' Subject: [PHP] Th

RE: [PHP] The url of the last site?

2001-11-15 Thread Oosten, Sjoerd van
You could process the form in the same file form action : and in the header of the page if ($Submit){ // YOUR ACTION HERE } Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (07

[PHP] Re: How to compile my own PHP extension in Windows?

2001-11-15 Thread Richard Lynch
Gri wrote: > Does anyone know how to compile a php extension in windows.. in linux it > is simple.. just to install php source and compile the extension. it > doesn´t work in windows. You'll need MSVC++ 6.x or higher, and a whole lot of patience... There's some configuration file or other somew

Re: [PHP] PHP & FRAMES Question

2001-11-15 Thread Miles Thompson
Richard, Thanks. I missed that completely. Miles At 09:47 AM 11/15/01 -0800, Richard S. Crawford wrote: >Try: > >printf("target=\"sub_detl\">%s\n",$target_url, >$myrow["member_id"],$myrow["member_id"]); > >The target attribute must be outside of the quotes which contain the URL >string, as su

[PHP] The url of the last site?

2001-11-15 Thread Brandon Orther
Hello, I am trying to have a script that process a form and then sends the person back to the form they were on if there are errors. Does anyone know how I can get the url of the form that someone submit to the script from? Thanks Brandon

[PHP] How to compile PHP with cygwin?

2001-11-15 Thread GRI
Hi I wonder if anyone have managed to compile PHP with cygwin. I get several errors when doing this. I also wonder if I intend to make a dll to extend PHP for windows, should I then compile PHP with cygwin or with MS Visual C++? Thanks -- PHP General Mailing List (http://www.php.net/) To un

[PHP] apache don´t understand php!!----¡¡apache no entiende php!!

2001-11-15 Thread Alejandro
I have a problem:I have a php page wich runs well when I run it, but when I run a html page and links the php file, the source code is seen on the screen. It´s like apache wouldn't understand php!!. Any ideas? Thanks Hola!.tengo un problema y es que tengo una página .php que, cuando la llamo por

Re: [PHP] PHP & FRAMES Question

2001-11-15 Thread Sam Masiello
In your printf statement, you are targetting "sub_detl" whereas in your frameset you name the frame "sub_dtl". Naturally, these values should match. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From: "Miles Th

[PHP] PHP & FRAMES Question

2001-11-15 Thread Miles Thompson
This has probably been dealt with before, but I'm unable to get my link to open in the target frame, it always opens in the same frame. This line of code: printf(" %s \n", $target_url, $myrow["member_id"], $myrow["member_id"]); typically expands, when the mouse pointer is placed over it, to

[PHP] Re: apache+php overloading when user clicks many times on the same link

2001-11-15 Thread Richard Lynch
Peter Frlicka wrote: > Hello. > > What does apache + php do if the user refreshes a page 10 times in a while > before the scripts finishes? do all 10 .php scripts finish or do the first > 9 get aborted? how can i solve the problem that when someone clicks a lot > on a link (always the same link)

[PHP] Re: waiting a long time for a XML file

2001-11-15 Thread Richard Lynch
Eric Trezza wrote: > I need some help regarding the creation of a text file which is a XML > file. Actually, PHP creates the file without any problem and the XML > format is fine. My only trouble is that it take on average 3 or 4 minutes > to perform the task. > Do you have any idea why it takes

[PHP] Re: FTP Clients

2001-11-15 Thread The Big Roach
WS-FTP LE works for me. I've used it for years now. You can find it at Download.com Bunch of stuff there. "Rudi Ahlers" <[EMAIL PROTECTED]> wrote in message 012e01c16d53$5b582120$0c00a8c0@camelot">news:012e01c16d53$5b582120$0c00a8c0@camelot... > Sorry for the totally OT question, but can anyone

[PHP] Re: Newsgroup?

2001-11-15 Thread Richard Lynch
Christopher Raymond wrote: > What's the deal with the newsgroup version of this list? I'm using > news.php.net as the news server address, but all I get are error messages. What error messages are you getting? You can't *POST* through the newsgroup -- Reply via email to [EMAIL PROTECTED], and

[PHP] Re: First CGI, then PHP

2001-11-15 Thread Richard Lynch
Berthold wrote: > Is it possible to add PHP-code into the html-templates of ht://dig? > > The problem is the execution after or before the CGI-prog has run. > Of course I need 'after'. But how can I do that? No. Actually, Apache 2.0 was *SUPPOSED* to have "stacked handlers" so that CGI (Perl)

RE: [PHP] Session

2001-11-15 Thread Rudolf Visagie
Yep, 'variables_order'. -Original Message- From: George Whiffen [mailto:[EMAIL PROTECTED]] Sent: 15 November 2001 06:30 To: [EMAIL PROTECTED] Subject: Re: [PHP] Session For the record: You can control the order of precedence of variable reading through a php.ini setting, variable_order

[PHP] Re: Quick question about no result

2001-11-15 Thread Richard Lynch
Dan McCullough wrote: > I want to show a default piece of information if my query returns no > result, and what I mean by no result is the query for a store in a certain > state doesnt exist. http://php.net/mysql_num_rows (Or sybase_num_rows, or odbc_num_rows, or whatever your database is.) If

RE: [PHP] First CGI, then PHP

2001-11-15 Thread Mark Roedel
> -Original Message- > From: Berthold [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 9:11 AM > To: PHP General > Subject: [PHP] First CGI, then PHP > > > Is it possible to add PHP-code into the html-templates of > ht://dig? > > The problem is the execution after or befo

[PHP] Re: Check if ip is with a network block

2001-11-15 Thread Richard Lynch
Paul Wolstenholme wrote: > Greetings, > > I'd like to check to see if an ip is within an ip cidr style network > block (192.75.242.157 with 192.75.242.0/23). Initially, I started off > with some code derived from some perl code that I found (code below). > However, the bitmask calcution did not

[PHP] Re: gd-lib and libjpeg issues

2001-11-15 Thread Richard Lynch
Bill Brennick wrote: > ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.22 > --with-xml --with-zlib --with-gd=/usr/lib --with-jpeg-dir=/usr/lib > --with-png-dir=/usr/lib For better or worse, configure does *NOT* crap out if you specify --with-xxx-dir and it can't find it.

[PHP] Crash Apache load php module DSO

2001-11-15 Thread Lloret Romero Marcos
hi, i have installed php406 over nt(sp6) with apache1.3.9. Apache crashes when i try to loadmodule php. it says something about DSO module. thanks, marcos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

[PHP] Re: Login/Security Problem

2001-11-15 Thread Richard Lynch
Joe Van Meer wrote: > This seems to work, however, if I close out my browser and say type in > main.php (this page has the above code) in the address bar I can still > access the page. How can I fix this? Is there something else I could be > doing to improve the functionality? > Any insights woul

[PHP] Re: Sending mail without using mai() ?

2001-11-15 Thread Richard Lynch
Jaime Iniesta Aleman wrote: > Hi, is it possible to send SMTP mail if the server where are my pages > hosted forbids the use of the mail() function ? I mean, by opening a > sockets connection to an external SMTP server and writing the commands > there directly... Yes, *IF*: The ISP was not smar

[PHP] Re: Time out for file()?

2001-11-15 Thread Richard Lynch
Jean-Arthur Silve wrote: > Hi ! > > I use the file function for accessing to pages on another server. > > It works perfectly. > > But if the server does not respond or is too long to send datas, the file > function wait too long.. > > Is there a way to tune the time out ?? I would like that i

[PHP] Re: High-Volume Newsletter Techniques?

2001-11-15 Thread Richard Lynch
Sondra Russell wrote: > Yes, I saw the discussion a few days earlier on this topic, but I'm But did you check the archives for the same discussion last month, the month before, the month before that, ... :-) > wondering if there is still some unmined wisdom out there about > building a script

Re: [PHP] Re: silly question

2001-11-15 Thread Rodrigo Peres
First, thak's all for the answers. I didn't understood what's happend, but I've solved the problem using a Header("location: ".$PHP_SELF."?celebID=".$ID) after the update command, passing the same ID I used to update on it. I don't know if it is the best way, but now I have the "refresh" of the pa

Re: [PHP] Anyone ever done this - sort a multi-dimensional array

2001-11-15 Thread Steve Cayford
You can roll your own fairly easily: function mycmp($a,$b) { return strcmp($a[1],$b[1]); } usort($array, 'mycmp'); ...something like that at any rate. -Steve On Thursday, November 15, 2001, at 10:07 AM, Richard S. Crawford wrote: > Of the type... > > $array[0][0] = "!row of c's"

[PHP] Re: Array problrem!

2001-11-15 Thread Richard Lynch
De Necker Henri wrote: > Hi there. > I have an array like this : 1.2 , 0.3 , 0.5 , 1.6 , 0.3 > I output like this: > > while($data_array[$j]){ > echo "$data[$j]" ; > $j++ ; > } > > My output is like this : 1 , 0 , 0 , 1 , 0 > The values in the db are floats and are read correctly

[PHP] apache+php overloading when user clicks many times on the same link

2001-11-15 Thread Peter.Frlicka
Hello. What does apache + php do if the user refreshes a page 10 times in a while before the scripts finishes? do all 10 .php scripts finish or do the first 9 get aborted? how can i solve the problem that when someone clicks a lot on a link (always the same link) the server gets overloaded (becau

[PHP] Re: Newbie question pleeze help

2001-11-15 Thread Richard Lynch
Rvb Pixels wrote: > Hi, > > I'm new to the list and I have a problem with PHPNUKE 5.2 and W98. > > After installing some categories and links in the Web Links section, and > then clicking on one of the links created I keep getting the following > message error in W98SE. > > "PHP caused an inva

  1   2   >