[PHP] saving the client's file upload location

2001-08-14 Thread Bob
i have people upload a file from their computer but if my form comes back with an error then they have to go select their file location again. is there any way of saving that location so they don't have to pick it again??? upload file [ c:/temp/picture.jpg ] input type=File name=picture

Re: [PHP] Help me please.(Running stand-alone php)

2001-08-14 Thread miguel valero
Tina, Thank you for the help Tina :-)) I getting a good experience working with PHP and HTML (forms). Because of my full time job and personal commitments, I haven't been able to spend as much of my free time as I could in my project (Free Gallery Management System). After October I hope to

[PHP] Re: saving the client's file upload location

2001-08-14 Thread Inércia Sensorial
On the form processing page, register the variable on a session. And put session_start(); on the form's page, so the value is remembered and echo()ed on the field. -- Julio Nobrega. 2B||!BB - That's the question. Bob [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] PHP Shopping Carts ??

2001-08-14 Thread Christopher Raymond
Could anyone point me in the direction of some PHP shopping cart scripts? Thanks, Christopher Raymond -- 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:

Re: [PHP] PHP_SELF

2001-08-14 Thread Chris Worth
Michael, I've got a program set up like you describe. the problem is I've noticed that my variables are NOT stable this is it in a nutshell 1) show 3 options with radio buttons for each 2) based on above query a database and show a list of the records (now it just dawned on my that I've

Re: [PHP] Classes and performance bottlenecks

2001-08-14 Thread Christian Reiniger
On Tuesday 14 August 2001 08:37, Maxim Maletsky wrote: See, there's also a time needed for the server to read the included file - an extra effort for your hard disk. If you'd put everything in one file it would work for you faster, but, of course, less portable. I disagree. Aftre the first

RE: [PHP] Classes and performance bottlenecks

2001-08-14 Thread Maxim Maletsky
See, there's also a time needed for the server to read the included file - an extra effort for your hard disk. If you'd put everything in one file it would work for you faster, but, of course, less portable. Though, I don't understand why are your performance measures THAT different. Cheers,

Re: [PHP] PHP Shopping Carts ??

2001-08-14 Thread DrWebPat
In a message dated 8/14/01 3:23:54 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: Could anyone point me in the direction of some PHP shopping cart scripts? Thanks, Christopher Raymond I'm sure they have one: http://hotscripts.com/PHP/Scripts_and_Programs/ Pat

[PHP] Arrays/forms/Loops/Persist (was Re: [PHP] UPDATE syntax)

2001-08-14 Thread Gerard Samuel
Ok, I found out why the UPDATE on the table wasn't working. I wasn't giving the command a 'fake' value for the ID column. Ok here is the senario. I have a form which dumps data to cols 1,2,3,5 in a table (thats good). I have another script which runs a loop on the data into another form where

[PHP] php upload on MAC

2001-08-14 Thread Jason Radley
I wrote a script that clients can upload files to our server and download files but there is one small problem. Mac users can't upload all of their files. I am guess there is no file extensions. Anyone have any ideas? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] php upload on MAC

2001-08-14 Thread Erik H. Mathy
Hi! Mac users can't upload all of their files. all of their files? Out of curiousity, how many files do they seem to be able to send up before the script falters? What error messages or behavior does PHP show when it does falter? Just looking for alittle additional info, - Erik -- PHP

[PHP] cURL tutorials ?

2001-08-14 Thread Brandon Orther
Hello, I am looking for tutorials for using PHP with cURL. If you know of a site please e-mail me. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com

RE: [PHP] cURL tutorials ?

2001-08-14 Thread Erik H. Mathy
http://curl.haxx.se/libcurl/php/ Enjoy! - Erik -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 3:19 PM To: PHP User Group Subject: [PHP] cURL tutorials ? Hello, I am looking for tutorials for using PHP with cURL. If you

Re: [PHP] PHP Shopping Carts ??

2001-08-14 Thread Miles Thompson
www.fishcart.org At 02:22 PM 8/14/01 -0500, Christopher Raymond wrote: Could anyone point me in the direction of some PHP shopping cart scripts? Thanks, Christopher Raymond -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] PHP Shopping Carts ??

2001-08-14 Thread Evan Nemerson
http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/Shopping_Carts/ On Tuesday 14 August 2001 12:39, you wrote: In a message dated 8/14/01 3:23:54 PM Eastern Daylight Time, [EMAIL PROTECTED] writes: Could anyone point me in the direction of some PHP shopping cart scripts?

[PHP] POST from the script

2001-08-14 Thread Marc Hanlon
I was wondering if anyone knows how to make a script that is capable of doing it's own POST to a page without needing a form to be filled in. Basically it needs to perform the same sort of action as: www.anyplace.com/script.php?action=saytext=hello Unfortunately I cant change the script at the

[PHP] Loop though email list

2001-08-14 Thread Erich Kolb
I am a total newbie, so please forgive the simplicity! I have a huge list of email addresses in a text file and also in a MySQL DB that I would like to use PHP to loop through and send an email to each one of them. How do I loop through a text file using each email in the txt file as a seperate

Re: [PHP] Loop though email list

2001-08-14 Thread Tyler Longren
With mysql: $connection = mysql_connect(host,user,pass); $db = mysql_select_db(db_to_use, $connection); $sql = mysql_query(SELECT * FROM table ORDER BY email ASC); while ($row = mysql_fetch_array($sql)) { $email = $row[email]; $name = $row[name];

Re: [PHP] Loop though email list

2001-08-14 Thread Daniel Adams
for a file i would do something like this: ? $file = file (addressfile.txt); foreach ($file as $address) mail ($address, subject, message, From: [EMAIL PROTECTED]); ? for the mysql db it would be something like this (this is probably a little off): ? $mysql = mysql_pconnect ($server,

[PHP] Virtual Servers (apache) and php

2001-08-14 Thread Jay Paulson
Hello- I'm using the virutal hosting in Apache 1.3.19 and I was wondering how to I load php as a module in apache for each virutal web site? anyone have a good link telling you how to do this.. ie a tutorial on the topic? i've read the docs on apache.org and it doesn't really say much at all

RE: [PHP] php upload on MAC

2001-08-14 Thread Jason Radley
Hey Erik, well I checked the userfile_type and if it was a word document I added the .doc extension to it. The other mac programs that add the extension to the filename work fine. If you were to make a photo shop file and upload it it fail. Warning: Unable to open none for reading. No such

RE: [PHP] session security issue

2001-08-14 Thread David Price
Sean, That is a very interesting suggestion. How would you call that using PHP? Thanks, David Price -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sean C. McCarthy Sent: Tuesday, August 14, 2001 6:12 AM To: Christian Dechery Cc: [EMAIL PROTECTED]

[PHP] qwestion about %E6%E2%E0%F7%EA%E0

2001-08-14 Thread BRACK
Hi thanx to everyone I solved the problem by updating my php and inserting upper() in queries. Now I can insert whatever case in search field and get case insensitive result. Youri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Session problems...

2001-08-14 Thread Dana Holt
I just added sessions to a web site that I am developing, and now the browser keeps saying page expired when I hit back on several pages. For example, I have a search page that displays results, user clicks on a result to view, and when the user hits back to go back to the search list they get

[PHP] php and java

2001-08-14 Thread Gaylen Fraley
I'm trying to get java support working with php and the jvm loads the first time and then I have to start and stop the server to get it to load again. In other words it's erring out and saying it can't load the jvm. I have followed the instructions at www.phpbuilder.com exactly and can't seem to

[PHP] Foreach loop syntax

2001-08-14 Thread Keith Devens
Ok, I asked a similar question more than a year ago, so I apologize for being a little redundant :) Why was PHP's foreach loop syntax chosen to be foreach($dogs as $dog){} instead of something more common (Python, Javascript, can't think what else right now) and, to me, more intuitive, like

Re: [PHP] Virtual Servers (apache) and php

2001-08-14 Thread CGI GUY
Wouldn't it be just to add, say, AddType application/x-httpd-php .php .php3 AddType application/x-httpd-php-source .phps or approximation within the Directory/Directory tags? I think (fingers crossed here) that should do it... --- Jay Paulson [EMAIL PROTECTED] wrote: Hello- I'm

Re: [PHP] POST from the script

2001-08-14 Thread Meir Kriheli
On Tuesday 14 August 2001 23:52, Marc Hanlon wrote: I was wondering if anyone knows how to make a script that is capable of doing it's own POST to a page without needing a form to be filled in. Basically it needs to perform the same sort of action as:

[PHP] Loop error?

2001-08-14 Thread PHP List
Hi, Can anyone tell me why this is a never ending loop? $i=0; $count = 1; while ($count $i); { echo $i br; $i++; } Chris

RE: [PHP] Loop error?

2001-08-14 Thread Andrew Braund
-Original Message- From: PHP List [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 15 August 2001 09:20 To: php Subject: [PHP] Loop error? Hi, Can anyone tell me why this is a never ending loop? $i=0; $count = 1; while ($count $i); ^ { echo $i br;

Re: [PHP] Re: inserting a remote html file

2001-08-14 Thread CGI GUY
As long as you have sendmail configured on your server, and you're working with a standard php install, it should be working properly. mail() needs to see things happen in this fashion and order: mail([EMAIL PROTECTED], subject, body, headers) The headers are optional, and you can concatenate

Re: [PHP] PUT method support

2001-08-14 Thread David Robley
On Tue, 14 Aug 2001 18:43, Rukhiya wrote: Hi! How do I use a PUT method support to upload files from the client to the WEB server? Can anyone pls. help me out to find a solution to these problems. It's very urgent regards Rukhiya

[PHP] Re: Earn $235 - $760 Or More Weekly At Home.

2001-08-14 Thread R.A.
Earn $235 - $760 Or More Weekly Hundreds of Companies Are Hiring People Like You to Work from Home. *Set Your Own Hours *Work PT or FT *Stay At Home *Make the Extra Money You Want Imagine spending a quite evening at home with your family watching TV and earning money at the same time. It's

[PHP] something like SSI ?

2001-08-14 Thread Martin
Ok, this may seem like a dumb newbie question... Is there an function like ASP's Server Side Include in PHP ? Or what is best to use instead, fread ? /marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] PHP Mail() Problem

2001-08-14 Thread Mahmoud Kassem
When I send an email using mail() I can the emails from nobody (using outlook) and in some programs like AOL from Unknown and in Web Based Emails like Yahoo I get it Correct and in Outlook Express also correct How can I fix this problem ? After some tests I found out Nobody nobody@servername

Re: [PHP] something like SSI ?

2001-08-14 Thread Philip Murray
Quoting Martin [EMAIL PROTECTED]: Ok, this may seem like a dumb newbie question... Is there an function like ASP's Server Side Include in PHP ? Or what is best to use instead, fread ? Check out include(); require(); include_once(); require_once(); It's all in the manual --

Re: [PHP] Re: session security issue

2001-08-14 Thread Christian Dechery
I guess it is... but read the replys to my email, the solution is quite simple and effective. At 16:49 14/8/2001 +0100, you wrote: what about registering a var called loggedin with the session and then testing on each script to see if it's set to 1 or something ? then base the access on that ?

[PHP] javascript reference (slightly ot)

2001-08-14 Thread Christian Dechery
Sorry for the OT but, but I'm struggling to get my forms to have a good validation in JavaScript. Does anyone know a complete reference to JavaScript, like, with all objects, it's functions, parameters and etc... that would help a lot.. Thanks... . Christian

[PHP] searching arrays

2001-08-14 Thread Raphael Pirker
Hi, Is there a possibility to search arrays in PHP? For example I'd like to find out the index-number of $countries[singapore]; but only if that country exists in the array. TIA, Raphael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Re: searching arrays

2001-08-14 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Raphael Pirker) wrote: Is there a possibility to search arrays in PHP? Yes, and you'll never guess what it's called! (Hint: see http://php.net/manual/en/function.array-search.php). -- CC -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: searching arrays

2001-08-14 Thread Inércia Sensorial
in_array(); -- Julio Nobrega. 2B||!BB - That's the question. Raphael Pirker [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Is there a possibility to search arrays in PHP? For example I'd like to find out the index-number of $countries[singapore];

RE: [PHP] Regarding file upload using php

2001-08-14 Thread Maxim Maletsky
If HTML would work this way then people would never stop guessing the other's files to steal as you visit web pages. answer: no. I'm curious now: perhaps, you can have a value attribute in it? But neither that should be allowed. Never tried myself. Cheers, Maxim Maletsky -Original

[PHP] Re: searching arrays

2001-08-14 Thread Raphael Pirker
hehe, oops! :) thanks by the way,it worked! :)) -- 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] Segmentation fault (11) : mcrypt

2001-08-14 Thread Robert Mena
Hi, I've trying to use mcrypt and php (4.06 or 4.07-dev) with no luck. Everytime I use I got a [notice] child pid 16630 exit signal Segmentation fault (11) in my apache's error.log. I am using the latest libmcrypt-2.4.15 and php (a hour ago cvs update). Is this a known bug ? './configure'

Re: [PHP] javascript reference (slightly ot)

2001-08-14 Thread Evan Nemerson
I used Netscape's javascript reference when I started, but I also found that looking at source code (javascripts.com used to be good) helped alot. http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm On Tuesday 14 August 2001 18:58, you wrote: Sorry for the OT but, but

Re: [PHP] searching arrays

2001-08-14 Thread Evan Nemerson
Try something like this if(isset($countries[singapore])) { do something... }; or, alternatively, if(!isset($countries[singapore])) { echo Not a country }; On Tuesday 14 August 2001 19:12, you wrote: Hi, Is there a possibility to search arrays in PHP? For example I'd like to find out

Re: [PHP] Loop error?

2001-08-14 Thread Daniel Adams
because you have a semicolon after while ($count $i) so that it never increments $i. :-) oops On Tue, 14 Aug 2001, PHP List wrote: Hi, Can anyone tell me why this is a never ending loop? $i=0; $count = 1; while ($count $i); { echo $i br; $i++; } Chris -- -- PHP

Re: [PHP] something like SSI ?

2001-08-14 Thread Daniel Adams
check out the require, include, and require_once functions in the manual on php.net - Dan :-) On Wed, 15 Aug 2001, Martin wrote: Ok, this may seem like a dumb newbie question... Is there an function like ASP's Server Side Include in PHP ? Or what is best to use instead, fread ?

Re: [PHP] something like SSI ?

2001-08-14 Thread Michael Kimsal
I didn't see this was answered yet, so: SSI and ASP are different things that happen to live on the same server. The ASP designers thought it would be easier to simply use the SSI engine rather than write that functionality into ASP itself (to let VBScript and others 'hook' into it). You notice

[PHP] to include php file into html file

2001-08-14 Thread Jack
Hi people I have tried to include php file into html page using the syntax below and it said syntax error at this part when the page is loaded. What is wrong with calling php file this way? Or is there any other way to call php file from html page? *** html body script

[PHP] Replace custom INCLUDE template tag with contents of a file

2001-08-14 Thread Obi Nwosu
I am writing code to read in a template and parse it's values. One of the values is an Include tag of the following form:- !-- INCLUDE : /relative/path/to/file.txt -- I want this to be replaced with the content of /relative/path/to/file.txt This tag will appear in multiple places in the

[PHP] Re: saving the client's file upload location

2001-08-14 Thread Bob
But what is the name of the variable when you are uploading a file -- On the form processing page, register the variable on a session. And put session_start(); on the form's page, so the value is remembered and echo()ed on the field. -- Julio Nobrega. 2B||!BB - That's the question.

RE: [PHP] to include php file into html file

2001-08-14 Thread Lawrence . Sheed
Try ?php include /include/adjs.php; ? in your html file to include some php code in there [1]Javascript is a rather sh*tty client side language, it doesn't parse php very well. [2]script language='JavaScript' src='/include/adjs.php/script

[PHP] Re: searching arrays

2001-08-14 Thread Raphael Pirker
is there also a way to search for, let's say '*china*' because in my array it would say Republic of China and when searching for china I get no result from the array... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] to include php file into html file

2001-08-14 Thread Jack
I also tried ?php include myphp.php;? into my html page, and it appears that nothing happen at all,. Looks like the html page does not recognize the php tag. Is there any other way that one can include a php file into a html file? Jack [EMAIL PROTECTED] Love your enemies, it will drive them nuts

Re: [PHP] to include php file into html file

2001-08-14 Thread Raphael Pirker
Yes, but you've got to trick your HTTP-software into believing that a .html (or .htm respecitvely) is actually a PHP file. I can't quite remember the tag to do so, but you should find it at www.apache.org somewhere. It's called file mapping. -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] to include php file into html file

2001-08-14 Thread Lawrence . Sheed
Well, It seems your web server is setup not to parse .html files as php If you are running apache, then add configure it to correctly parse the ?php in all files. php.net has ample doc's about that, as does apache. If you are running IIS or PWS, then get any of the millions of people with root

Re: [PHP] to include php file into html file

2001-08-14 Thread Alnisa Allgood
At 10:20 AM -0500 8/15/01, Jack wrote: I also tried ?php include myphp.php;? into my html page, and it appears that nothing happen at all,. Looks like the html page does not recognize the php tag. Is there any other way that one can include a php file into a html file? Jack set html as a php

Re: [PHP] Classes and performance bottlenecks

2001-08-14 Thread Richard Lynch
?php require_once(Smarty.class.php); require_once(DB.php); ? I used to think that require_once() was quite slow, and that doing your own: if (!defined('smarty_class')){ define('smarty_class'); class Smarty{ ... } } was way more better. It might depend on how *MANY* things you've

Re: [PHP] The secrecy of PHP code

2001-08-14 Thread Richard Lynch
Of course the absolute safest way besides encryting your PHP is to just store your state secrets in files outside the web server's document tree. i.e. if your web server's document root is /var/www ?php require(/var/super-secret/super-functions.php); if ($theanswer == 42) { echo

[PHP] Re: Mail() not setting MIME TYPE

2001-08-14 Thread Richard Lynch
$mail = mail($address, $subject, $body, $headers \nContent-Type: This line break isn't in the actual source, is it?... That would do what you describe... text/html; charset=iso-8859-1\nContent-Transfer-Encoding: 64bit ); ? Email was not originally designed for sending anything but text.

[PHP] Re: Sessions in older browsers

2001-08-14 Thread Richard Lynch
Show us source code. Test your site in IE 4.0 and set preferences to notify me before accepting cookies See what you get for cookies, and what IE stores, and what comes back to your PHP code. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me

[PHP] Re: Regular Expression Problem and PHP 4 (urgent)

2001-08-14 Thread Richard Lynch
blah blah blah blah blah Link blah blah blah blah Link I think I need to use eregi_replace to make the line look like this: blah blah blah blah blah a href='#'Link/a blah blah blah blah a href='#'Link/a Depending on how accurately you have stated the problem, this may work: $text = 'blah

[PHP] Re: SQL script ---------any help

2001-08-14 Thread Richard Lynch
In MS SQL server, table data can be uploaded on webserver by using the Enterprise Manager by using the export option. Is there any feature in Mysql to upload the data on webserver? http://mysql.com Search for LOAD DATA INFILE I'm also willing to bet the MySQL FAQ has something about importing

[PHP] Re: nav buttons not working correctly

2001-08-14 Thread Richard Lynch
I have a book- MySQL/PHP Database Applications by Greenspan Bulger - I think I've seen that book before :-) (some lines will undoubtedly wrap and make it all look real ugly) We're used to that :-) function authenticate ($realm=Secure Area,$errmsg=Please enter a usename and password) {

[PHP] Re: PHP or SSI -- What's faster?

2001-08-14 Thread Richard Lynch
Depends on too many things. Try it on your system and see... Wild Guess: PHP as a Module probably beats out SSI, but SSI probably beats out PHP as CGI. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: How dynamically create objects

2001-08-14 Thread Richard Lynch
$foo-bar = 42; Whether bar is defined or not, it will work, last I heard. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

[PHP] Re: could i get a clue?

2001-08-14 Thread Richard Lynch
ok a basic question. perhaps I dont know enough about javascript but anyway.. I want to call a php script from javascript. Anybody have any hints for me? A link to a useful website would work as well. thanks mates You first need to realize that this will *require* opening up a whole new

[PHP] Big Words (RE: [PHP] Classes and performance bottlenecks)

2001-08-14 Thread Jason Murray
Zend cache will ameliorate this to a great extent -- as the file is loaded once into RAM and left there. ^^ Wow, not often I see a new word like *that* around :) And for those of us who don't know: http://www.dictionary.com/wordoftheday/archive/1999/07/16.html ;)

[PHP] Comparing Variables

2001-08-14 Thread Mindblender
I'm sure that this is a simple fix, but I can't figure it out. I am trying to setup a sign-up screen that requires the user to type in their password twice to verify that they typed it in correctly. My problem is, how do I compare the two entries? In my HTML form I have two fields, password and

[PHP] Re: Comparing Variables

2001-08-14 Thread Mindblender
Disregard the previous message. I found the problem, I was overwriting the variable later in my script. Thanks anyway Jeff Mindblender [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm sure that this is a simple fix, but I can't figure it out. I am

[PHP] cURL and XML?

2001-08-14 Thread Petras Virzintas
Hi, has anyone successfully posted an XML data file to a https URL using the PHP cURL functions? If so, could you please send an example of the curl_setopt function names used. Thanks in advance Petras

[PHP] Re: popen returns true whether script exists or not?

2001-08-14 Thread Richard Lynch
It may be returning a negative number which is an error code rather than a process pointer... What is $p really? If it's 0, use 'man errno' to see what it means. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD:

[PHP] Re: array intersection problem

2001-08-14 Thread Richard Lynch
$invalid = array(1,3,9); $questions = array(1,2,3,4,5,6,7,8,9); $new_questions = array(font color=red1/font, 2, font color=red3/font, 4,5,6,7,8, font color=red4/font); There's no one-line built-in

[PHP] Re: insertion question

2001-08-14 Thread Richard Lynch
I have to store a whole lot of text files into a database, each one containing 3 columns containing numbers and about 2500 lines. I was wondering if anyone knew which would be the best way to store these files, having one big table with each row containing the contents of the files, or

[PHP] Re: Web page authentications

2001-08-14 Thread Richard Lynch
I am new to PHP and am confused on HTTP authentications. I have read that section in the manual and still have questions. Where does PHP look to see if the user is valid or if the passward matches the user. You can set it up to look where-ever you see fit. Most users probably create a table

[PHP] Re: saving the client's file upload location

2001-08-14 Thread Richard Lynch
i have people upload a file from their computer but if my form comes back with an error then they have to go select their file location again. is there any way of saving that location so they don't have to pick it again??? upload file [ c:/temp/picture.jpg ] Not really. As a measure

Re: [PHP] php upload on MAC

2001-08-14 Thread Richard Lynch
none means they didn't pick a file to upload at all... Or that it was too large for your size limit. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time:

[PHP] Re: PHP Shopping Carts ??

2001-08-14 Thread Richard Lynch
http://l-i-e.com/compare/ -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Christopher

[PHP] Re: Code works fine on Apache, but not on PWS.

2001-08-14 Thread Richard Lynch
http://www.phpbuilder.com/columns/bealers2904.php3?page=1 if (!ereg(^4,phpversion())) { function in_array($needle,$haystack) { # we have this function in PHP4, so for you PHP3 people for ($i=0; $i count($haystack); $i++) { if ($haystack[$i] == $needle)

[PHP] Re: Foreach loop syntax

2001-08-14 Thread Richard Lynch
Ok, I asked a similar question more than a year ago, so I apologize for being a little redundant :) Why was PHP's foreach loop syntax chosen to be foreach($dogs as $dog){} instead of something more common (Python, Javascript, can't think what else right now) and, to me, more intuitive,

[PHP] Re: searching arrays

2001-08-14 Thread Richard Lynch
is there also a way to search for, let's say '*china*' because in my array it would say Republic of China and when searching for china I get no result from the array... You'd have to walk through the array and use strstr or ereg for that. You could maybe use PHP's array_walk function, but

[PHP] Re: something like SSI ?

2001-08-14 Thread Richard Lynch
Ok, this may seem like a dumb newbie question... Is there an function like ASP's Server Side Include in PHP ? Or what is best to use instead, fread ? If it has PHP code in it, or might some day, use http://php.net/include or one of its See Also's If not, use http://php.net/passthru or one of

Re: [PHP] Loop error?

2001-08-14 Thread Gyozo Papp
Hi, clear that semicolon(;) after the while statement! this makes the trick - Original Message - From: PHP List [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: 2001. augusztus 15. 01:49 Subject: [PHP] Loop error? Hi, Can anyone tell me why this is a never ending loop? $i=0; $count

Re: [PHP] Loop error?

2001-08-14 Thread PHP List
Oops, well, that is just mental. Must be getting tired or something, yes, that's it :) Thanks. - Original Message - From: Gyozo Papp [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, August 14, 2001 4:58 PM Subject: Re: [PHP] Loop error? Hi,

Re: [PHP] [PHP-WIN] Re: installation on windows

2001-08-14 Thread Phil Driscoll
On Tuesday 14 August 2001 19:23, Phil Driscoll wrote: as long as phpts.dll is in the same directory as the main php executable or but should have written as long as php4ts.dll is in the same directory as the main php executable or Sorry! -- Phil Driscoll -- PHP General Mailing List

[PHP] Re: installation on windows

2001-08-14 Thread Andrew Stopford
Hi, Just to add to Arjen and Phils advice you need to the following. From your C:\PHP directory you need to copy the files from the dlls directory to the C:\windows\system directory . Also from your C:\PHP directory you will need to copy the php4ts.dll to your C:\windows\system directory I

Re: [PHP] Using Sockets to connect to an SSL site?

2001-08-14 Thread Gyozo Papp
Hello, I think you need cURL extension for PHP. visit this page to know more about cURL: http://curl.haxx.se - Original Message - From: Brandon Orther [EMAIL PROTECTED] To: PHP User Group [EMAIL PROTECTED] Sent: 2001. augusztus 14. 19:17 Subject: [PHP] Using Sockets to connect to an

RE: [PHP] location bar

2001-08-14 Thread Maxim Maletsky
if you're asking on how to show where you are, then this is what you could do: Create an array of page names: ie: $page_name = Array( '/' = 'Home', '/page1' = 'Page One' ); ... and so on Then just do echo $page_name[strtolower($PHP_SELF)]; This is only appropriate

RE: [PHP] Put value directly into form?

2001-08-14 Thread Maxim Maletsky
again, a simple HTML/PHP is enough. page 1: form page 2 the same form and in the input fields use value attributes. i.e: input type=text name=title size=20 value=?=$title? if the form was not submitted then $title will be empty and will show nothing, while if Title was submitted it will

RE: [PHP] stop a batch of mail during send

2001-08-14 Thread Maxim Maletsky
try to learn about register_shut_down (whatever the actual name of it was) function. let me see, here: http://www.php.net/manual/en/function.register-shutdown-function.php this could be of some help to you. Cheers, Maxim Maletsky -Original Message- From: Matthew Delmarter

Re: [PHP] [PHP-WIN] Re: installation on windows

2001-08-14 Thread Phil Driscoll
I agree with Angie's sentiments. There is no need at all to put the dlls in your system directory (although php will still work if you do) as long as phpts.dll is in the same directory as the main php executable or dll. This means php.exe for cgi, php4apache.dll for Apache module etc. I

Re: [PHP] Q: array intersection problem

2001-08-14 Thread Gyozo Papp
Hi, play with array_intersect or array_diff and some other array functions. http://www.php.net/manual/en/function.array-intersect.php (PHP 4 = 4.0.1) http://www.php.net/manual/en/function.array-diff.php (PHP 4 = 4.0.1) - Original Message - From: Joe Rice [EMAIL PROTECTED] To: [EMAIL

[PHP] [PHP-WIN] Re: installation on windows

2001-08-14 Thread Angie Tollerson
Acutally, I spoke with the main developer of the windows binary at the PHP conference in San Diego.he suggested that it is a better practice to put those dll's in the same folder that php.exe is sitting in. He explained that php should still be able to find them there and it's not good

<    1   2