Re: [PHP] A link

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Martin Towell blurted > [link snipped] > > Don't click the above link. or this one http://www.areyouondrugsorwhat.com/ - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP S

Re: [PHP] Newbie Still Looking for a Mentor

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then P. Westover blurted > I'm looking for someone who has some extra time, who will answer my > questions and guide me in the right direction with a project I'd like to > create. I would like to work with one person, because everyone has

[PHP] Re: encrypting passwords, how to decrypt?

2002-01-24 Thread Chris Seymour
[EMAIL PROTECTED] (Hawk) wrote in <[EMAIL PROTECTED]>: Hi Hawk, Here is a snippet of what I use: if (isset( $txtUsername )) { $sql = "Select a.* from admins a where "; $sql .= "adm_name = '$txtUsername' "; $sql .= "and adm_pwd = PASSWORD('$txtPassword')"; $resultID = mysql_query( $

[PHP] FTP ISSUE --- PLEEZ READ!

2002-01-24 Thread Conrad Strydom
Please help. i'm trying to access a remote ftp server , with my script. it all works nicely , i can log in , i can list folders , make folders, delete stuff, but NOT COPY FILES!! it gives this warning and no error. Warning: ftp_put: "/capetown" is current directory. in /home/www/cticc/incubat

Re: [PHP] Uploading a file

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 13:20, Ronald Tezuka wrote: > To keep this arguement from going on indefinately one thing I know that I > haven't seen anyone commenting on is the fact that even if MAX_FILE_SIZE is > optional, the HIDDEN element is not optional. Somewhere on those PHP pages > it says th

Re: [PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread michael kimsal
Robert J. Cissell wrote: > Just out of curiosity, has anyone ever compiled an extensive point-by-point > comparison of the advantages of LAMP vs. the other alternatives? If not, > I'd be interested in starting something along those lines. That would be > helpful to many people I think, so anyon

Re: [PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread Robert J. Cissell
Just out of curiosity, has anyone ever compiled an extensive point-by-point comparison of the advantages of LAMP vs. the other alternatives? If not, I'd be interested in starting something along those lines. That would be helpful to many people I think, so anyone who has ideas on what specifical

Re: [PHP] Uploading a file

2002-01-24 Thread Ronald Tezuka
To keep this arguement from going on indefinately one thing I know that I haven't seen anyone commenting on is the fact that even if MAX_FILE_SIZE is optional, the HIDDEN element is not optional. Somewhere on those PHP pages it says that you need to have one hidden element. MAX_FILE_SIZE is t

[PHP] Re: DAMN IT - apologies!

2002-01-24 Thread michael kimsal
Oh - that's classic. That's the last time I try to answer phones and email someone else about it too late at night!!! Obviously I sent this to the wrong address (php.general) instead of an internal account. Still - take lemons and make lemonade: Someone had called regarding our upcoming PHP

[PHP] DAMN IT

2002-01-24 Thread Michael Kimsal
Someone called earlier asking for you about the PHP course. He was a bit abrupt, and when I said $2500 (he asked the price) he pretty much said 'thanks, I'll ask my boss, goodbye' and hung up before I could say anything. I got his phone number, but no name. ? I don't know if that'll he

RE: [PHP] array[] and Javascript.

2002-01-24 Thread Martin Towell
syntax: document.forms["form_name"].elements["element_name"] so: document.forms["fname"].elements["array[]"].somethingelse -Original Message- From: Rodolfo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:55 PM To: [EMAIL PROTECTED] Subject: [PHP] array[] and Javascri

[PHP] Newbie Still Looking for a Mentor

2002-01-24 Thread P. Westover
Hi All, I'm new to PHP, but not new to web site design. I'm looking for someone who has some extra time, who will answer my questions and guide me in the right direction with a project I'd like to create. I would like to work with one person, because everyone has their own way of doing things.

[PHP] array[] and Javascript.

2002-01-24 Thread Rodolfo Gonzalez
Hi list, I have a little problem here. I need data from a HTML multiple select box passed to PHP. Ok, that's really easy, just put name="array[]" like this: Alabama ... But then, I *need* to access that select and its elements and properties with Javascript (something like document.forma.arra

Re: [PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread John Steele
Mike, While I sure hope you are right, could you please try to send the message to this list only once (i.e. check your To: to make sure you aren't doubling up on the list address). I might add to your comments the recent security problems with almost every one of M$ internet products - n

[PHP] re: copying files

2002-01-24 Thread John Deer
I posted a message earlier about copying files and it was asked why I need to copy them. I need to copy files because I am building a content management system in which the base template files need to be copied to instantiate a new page. Its completely web-based and built towards the typical web

Re: [PHP] Re: Resalution Dection

2002-01-24 Thread Jeff Sheltren
Yes, you can use javascript to get the user's resolution: screen.width screen.colorDepth are two variables that you can access through javascript, which you might find helpful. Jeff > Try Javascript. I dont recall offhand but there are some properties you can > use in Javascript to detect thi

[PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread Mike Frazer
We're all in a good position right now. The economy is beginning a strong rebound, the pretenders have been weeded out, and a lot of companies are now beginning to see both the technical AND financial benefits of open-source technology. No buying licenses for server systems that provide less sta

Re: [PHP] Need opinion On sessions - Cookies mandatory?

2002-01-24 Thread Yasuo Ohgaki
AND don't forget about X-FORWARDED-FOR. (ie load balanced cache servers) X-FORWARDED-FOR can be faked. -- Yasuo Ohgaki Compman86 wrote: > If there are two people behind a NAT, then the site would check for a > session ID and the IP. If a session ID is introduced AND their IP > matches the sessio

[PHP] Re: Resalution Dection

2002-01-24 Thread Mike Frazer
Try Javascript. I dont recall offhand but there are some properties you can use in Javascript to detect this sort of thing. PHP is all done server-side and can't collect system properties from the user. Mike Frazer "Philip J. Newman" <[EMAIL PROTECTED]> wrote in message 00b201c1a549$39daf0d0

RE: [PHP] Outreaching (announcement)

2002-01-24 Thread Florian Clever
This sounds pretty nice. Is there a place to look at some screen shots or even a live demo, etc.? Florian http://fc.clever-soft.com/ > -Original Message- > From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 24, 2002 7:14 PM > To: [EMAIL PROTECTED] > Subject: [PH

[PHP] Outreaching (announcement)

2002-01-24 Thread Bogdan Stancescu
Hi all! As posted some time ago, the company I'm working for developed a GPL system for project development (basically keeping in touch with the customers while developing a project). I think this project may be of some interest for some of you (well, hopefully, for may of you), so here's the

Re: [PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread Ben Turner
I am actually an ASP developer who is trying to take my current company in the LAMP direction. I have been working on ASP/Win32/Just about everything else Microsoft can throw out, and now I am really realizing the benifits of a LAMP environment. I think during the gold rush, a lot of small busin

Re: [PHP] Archive of this is. Is there a URL?

2002-01-24 Thread Jeff Sheltren
Yes there is. http://marc.theaimsgroup.com/?l=php-general - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 24, 2002 6:38 PM Subject: [PHP] Archive of this is. Is there a URL? > Please advise. > > Thanks, Robin > > > -- > PHP General M

[PHP] detecting extension (XSLT) Version

2002-01-24 Thread Florian Clever
I am wondering if there is a way to detect the version of the underlaying library used in an extension. For example: Determine the version of the slabtron library invoked by your PHP script. Is it Version 0.81 or 0.70? I could see this being extremly usefull. I remember reading a while back that

Re: [PHP] Uploading a file

2002-01-24 Thread Todd Cary
I am not well versed in Apache. Is there so parameter that I may not have sett correctly? Something that would cause the problen I am having? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: [PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread Michael Geier
I had previously been hired by a CBS affiliate/sporting news provider and 80% of the reason was my knowledge of PHP. Although I am no longer with that job, I found it to be extremely valuable for my resume. While you won't find PHP on their main website (they use Vignette Story Server and Ora

[PHP] Archive of this is. Is there a URL?

2002-01-24 Thread Robinbythebrook
Please advise. Thanks, Robin -- 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] Resalution Dection

2002-01-24 Thread Philip J. Newman
I'm trying to display an image only if the user has a hi resolution? can anyone help? Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012

[PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread Michael Kimsal
Vincent Stoessel wrote: > On another list that I am on someone made this very bold > statement: > > "I've seen a lot of jobs for ColdFusion & Oracle or MS SQL server > experience combinations. Don't let anyone fool you, PHP/MySQL is not > going to land you a job [;)] " > > now, as someone tha

Re: [PHP] HOT!!! PHP4.1.x - Step by Step Installation manual

2002-01-24 Thread Austin Gonyou
It'd make more people happy I'll bet if you also included apache for said platform. You might even like it. :) On Thu, 2002-01-24 at 19:16, Andre Amaral wrote: > Hi all. Here is my first attempt to make easy Step by Step installation > manual for PHP4.1.x on Windows 2000 based systems running II

[PHP] Re: RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Robert Ames
Mike- If you're a LAMP user, then this vi mapping might help you out ;^) :imap ~P $GLOBALS['HTTP_POST_VARS']['']hi ...and I believe I have addressed most of your points in my previous posting on the subject. Forgive me if you've already read it, or if it doesn't explain my position fully.

[PHP] Re: [PHP-DEV] Re: RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Pierre-Alain Joye
On Thu, 24 Jan 2002 15:45:34 -0800 Mike Eheler <[EMAIL PROTECTED]> wrote: > I disagree based simply on two points: > > a) Ideally, the $HTTP_POST/GET and $_POST/$_GET vars should be treated > as "read only". I tell more : MUST be treated as readonly, as for every env/server or whatever you want

[PHP] Re: HOT!!! PHP4.1.x - Step by Step Installation manual

2002-01-24 Thread Andre Amaral
"Andre Amaral" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all. Here is my first attempt to make easy Step by Step installation > manual for PHP4.1.x on Windows 2000 based systems running IIS5 using CGI or > ISAPI. Here is the link that will ake a lot of

[PHP] HOT!!! PHP4.1.x - Step by Step Installation manual

2002-01-24 Thread Andre Amaral
Hi all. Here is my first attempt to make easy Step by Step installation manual for PHP4.1.x on Windows 2000 based systems running IIS5 using CGI or ISAPI. Here is the link that will ake a lot of people happy. :) http://www.experttek.com/php/installation.txt Fell free to contact me. Contacts are i

Re: [PHP] Help with regular expressions

2002-01-24 Thread Jeff Sheltren
Sorry, I forgot the newline at the end... your reg ex should look like: //.*\n making your command be: ereg_replace("//.*\n","",$string) Try that ;) Jeff > I think your problem is you are not including whitespace. Also, remember > that . (dot) means any character except newline, so why not

[PHP] Re: NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-24 Thread Andre Amaral
Go to http://www.experttek.com/php/installation.php Step by Step installatio on Win2k running IIS5 "Mark" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I apologize if the title of this post sounds overly aggresive, but I have > followed the instructions to

[PHP] Re: Arrays as pointers?

2002-01-24 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > A friend of mine showed me this code recently. > > function firstLogin_string() { > mt_srand(make_seed()); > $pool = "AaBbCcDdEeFfGgHhIiJjKkLlM"; > $length = 26; > for($i=0; $i < $length; $i++) { >

Re: [PHP] Help with regular expressions

2002-01-24 Thread Jeff Sheltren
I think your problem is you are not including whitespace. Also, remember that . (dot) means any character except newline, so why not try this as your reg ex: //.* Hope that helps. -Jeff - Original Message - From: "José Daniel Ramos Wey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: [PHP] MySQL query question

2002-01-24 Thread Matt
If you're trying to be able to keep reference to the order the records are added to the table, simply add a date/time field and populate it with the date/time now() when you insert. You can then sort on that as needed later. - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]>

Re: [PHP] A link

2002-01-24 Thread Bogdan Stancescu
Don't be so rough - we all tried this at some time - remember, just before it became an old joke? :-) And I didn't click on it either... Bogdan On Friday 25 January 2002 02:34 am, Martin Towell wrote: > ok, i wont!! not trying to do reverse psychology are you? > > -Original Message- > F

[PHP] Re: wierd function behavior within classes.. Bug?

2002-01-24 Thread Mike Frazer
Remember, You *can* make certain values in a function optional. Place them on the right side of the arg list and give them a default value, like: function myFunction(arg1, arg2, arg3 = "foo", arg4 = "bar") { ... function guts ... } Hope that helps. Mike Frazer "Mike Eheler" <[EMAIL PROT

[PHP] Help with regular expressions

2002-01-24 Thread José Daniel Ramos Wey
Hi! I´m new to regular expressions, and it seems to be an art to make it work as expected. I´m trying to remove all "single-line" comments from an string - that´s everything after "//" to the end of a line. I expected that this would do the job: ereg_replace("//[[:alnum:]]*\n","",$string), bu

RE: [PHP] set_time_limit() in a loop

2002-01-24 Thread Martin Towell
no, that shouldn't affect it - ignore_user_abort() keeps the script going even if the user aborts (I'm assuming you already knew that...) so the only thing that I can think of that's keeping the script going it the while loop - check the exit condition to make sure it does actually end... Martin

RE: [PHP] set_time_limit() in a loop

2002-01-24 Thread Matthew Delmarter
I should also mention that the loop is sending mail using mail(). Is it possible that this is the problem somehow? -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:16 PM To: 'Matthew Delmarter'; PHP Mailing List Subject: RE: [PHP] set_tim

RE: [PHP] set_time_limit() in a loop

2002-01-24 Thread Matthew Delmarter
Thanks for your reply Martin. Any ideas why ignore_user_abort would cause this problem? -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:16 PM To: 'Matthew Delmarter'; PHP Mailing List Subject: RE: [PHP] set_time_limit() in a loop your

RE: [PHP] A link

2002-01-24 Thread Martin Towell
ok, i wont!! not trying to do reverse psychology are you? -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 11:34 AM To: [EMAIL PROTECTED] Subject: [PHP] A link [link snipped] Don't click the above link.

[PHP] A link

2002-01-24 Thread Philip J. Newman
http://fusion.wha.la/~fusion Don't click the above link.

[PHP] fsockopen

2002-01-24 Thread Andy Etemadi
I'm having trouble making a GET request using fsockopen.  I'm using the sample code from the www.php.net website (the first example on fsockopen's function page).  I get this error: no socket: (0) Here's the code I'm using: $domain = "ww4.mrgres.com"; $fp = fsockopen($domain, 80, $errno, $errstr,

RE: [PHP] set_time_limit() in a loop

2002-01-24 Thread Martin Towell
your first thought was correct - it sets it to 1800, it's NOT accumulative. it would have something to do with ignore_user_abort(true); and also is your while loop's exit check working? Martin -Original Message- From: Matthew Delmarter [mailto:[EMAIL PROTECTED]] Sent: Friday, January

Re: [PHP] wierd function behavior within classes.. Bug?

2002-01-24 Thread Marc Swanson
> PHP does not support having multiple methods with the same name. Write a > single method and check the number of args in that. surprising that I've never come across this limitation even after writing php for quite some time. Sorry for the wasted bandwidth! -- - Ma

[PHP] Re: wierd function behavior within classes.. Bug?

2002-01-24 Thread Mike Eheler
PHP doesn't support that. Dunno if it plans to, either. There are workarounds.. can't remember exactly how it's done, but I think I saw it on phpbuilder.com in a tutorial somewhere. Mike Marc Swanson wrote: > I'm not sure if this is a known feature in php.. but the following code will > gene

Re: [PHP] insert & select image in mySQL

2002-01-24 Thread Stephane Pinel
> Try this code. It assumes you are already connected to the database. > Usually, I put that script in something like database.inc and just do an > include. > > mysql_connect ("mysql_server", "username", "password"); > mysql_select_db("database_name"); > $sql = mysql_query("SELECT image, type FR

[PHP] Re: Speed test: mysql query vs. file_exists()

2002-01-24 Thread Mike Eheler
That would probably give you more control over the data.. however is not really an ideal solution. Also, if you want speed.. go with the file method. That's how I'd do it, anyhow. Mike Qartis wrote: > I'm running a logs system where log entries are .log files with filenames > like 03012002.log

[PHP] Re: RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Mike Eheler
Just a correction on that. It started as two points, then grew into 4.. I should proof read more often ;) Mike Mike Eheler wrote: > I disagree based simply on two points: > > a) Ideally, the $HTTP_POST/GET and $_POST/$_GET vars should be treated > as "read only". > > b) There is no good reas

Re: [PHP] wierd function behavior within classes.. Bug?

2002-01-24 Thread Rasmus Lerdorf
PHP does not support having multiple methods with the same name. Write a single method and check the number of args in that. -Rasmus On Thu, 24 Jan 2002, Marc Swanson wrote: > I'm not sure if this is a known feature in php.. but the following code will > generate this warning: Warning: Missin

Re: [PHP] MySQL query question

2002-01-24 Thread Erik Price
If you are using a table with AUTO_INCREMENT set for one of the fields, the default is for MySQL to assign any new row an AUTO_INCREMENT value that is one higher than the currently highest value in that column. In other words, MySQL by default does exactly what you say you are trying to do.

[PHP] wierd function behavior within classes.. Bug?

2002-01-24 Thread Marc Swanson
I'm not sure if this is a known feature in php.. but the following code will generate this warning: Warning: Missing argument 2 for foo() in /raid/htdocs/test.php on line 7 - \n"; } function Foo($bar,$baz) { // one argument constructor

[PHP] set_time_limit() in a loop

2002-01-24 Thread Matthew Delmarter
Just wondering about set_time_limit() in a loop. The current code looks something like this: Does this reset the timeout to 1800 seconds every time it loops? Or does it accumulate so that the timeout has 1800 seconds added to it every time? The reason I ask is that my ISP informs me that the

[PHP] Speed test: mysql query vs. file_exists()

2002-01-24 Thread qartis
I'm running a logs system where log entries are .log files with filenames like 03012002.log for January 3rd, 2002. You can view when logs have been posted with a calendar, which will make the particular day a link if that day's log file exists. I'm thinking of storing the log entries in a mysql da

[PHP] Re: MySQL query question

2002-01-24 Thread Mike Eheler
Let's say you have this table, pseudo-coded: TABLE table tableid int auto_increment, value text ; You could run this query on it: insert into table values ('','value'); And the id will be auto generated. Same would apply with: inert into table (value) values ('value'); Mike Phil Schw

[PHP] Re: RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Mike Eheler
I disagree based simply on two points: a) Ideally, the $HTTP_POST/GET and $_POST/$_GET vars should be treated as "read only". b) There is no good reason to mix the two. Consistancy is the ideal. If you are working on an existing project, and you have the implied need to assign values to keys

[PHP] MySQL query question

2002-01-24 Thread Phil Schwarzmann
Okay, so when I INSERT a row of information into a MySQL database, I don't want it to place it at the first empty row it findsI want it to put it after the very last exsisting row. One of the fields of the database is an AUTO_INCREMENT type, so Im assuming Im gonna use that in the query. How

[PHP] Re: getting a LAMP job in this economy

2002-01-24 Thread Mike Frazer
Just got a job as a PHP Programmer, actually. Kinda rare in this area, I guess it was a matter of being in the right place at the right time with the right skills. I've been hired twice in the past based at least in part on my PHP skills, as well. Mike "Vincent Stoessel" <[EMAIL PROTECTED]>

Re: [PHP] directory structure list

2002-01-24 Thread Mike Frazer
Anyone who wants to see the directory and filesystem fiunctions in action together can go to http://www.invertedmind.com/baby/ (pardon the images, they're of my nephew, I originally wrote the script because directory listings are turned off on the server). If you want a copy of the script you can

Re: [PHP] Uploading a file

2002-01-24 Thread JSheble
the MAX_FILE_SIZE field is OPTIONAL, so just because you didn't see it in his code does not mean that's where it was broken at. At 04:42 PM 1/24/2002 -0600, you wrote: >If you READ, under the first example posted on the URL I referenced, >you would see mention of MAX_FILE_SIZE field... which I

[PHP] Reading config files

2002-01-24 Thread Mike Eheler
Hiya, Just looking for some tips on reading formatted config files. The config file is pretty strictly formatted.. here's an example: # this is a comment. any text on a line after a # should be ignored section "section1" { option "value"; option-array { "value 1"; 12

Re: [PHP] Arrays as pointers?

2002-01-24 Thread Erik Price
I could be wrong about this, but here goes: Strings are in fact arrays. An array of characters. The code your friend gave you manipulates this array in the same way that it would any "normal" array. The only problem (not really a problem even) is that when dealing with character-based arra

Re: [PHP] getting a LAMP job in this economy

2002-01-24 Thread Erik Price
In the face of tough economics, it's difficult to hold onto one's ethics... Not to start a flame war, but I really hope that the day doesn't come that I'm forced to use a non-Unix platform for my development. For now I have this luxury. Erik On Thursday, January 24, 2002, at 04:51 PM, Vin

[PHP] search for a string inside another one....

2002-01-24 Thread Sabbath
I'm trying to find this string [url]http://www.php.net[/url]. I only know the tag [url]and[/url]...I need to find this string and send http://www.php.net to a new var or anything that is between url's tags... I dont want to replace this string with another one... TIA Sabbath -- PHP General

Re: [PHP] directory structure list

2002-01-24 Thread Erik Price
Hmm... I'm not familiar with the directory functions yet. But perhaps you can use `ls -F` somehow -- this prints the name of each file in the directory with a special character to denote its type. For directories, this is a forwardslash. I.e: localhost:~/Documents/Media Lab$ ls -F (admin)ind

[PHP] Re: [PHP-DEV] Re: RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Andi Gutmans
PHP 5 per-class constants can already except static arrays such as array(1, 2, 3) as their value. I'll put the issue of global constants on my TODO and believe PHP 5 will also support these for global constants. However, you won't be able to create a constant with a non-constant value such as $_GE

Re: [PHP] Uploading a file

2002-01-24 Thread daniel
If you READ, under the first example posted on the URL I referenced, you would see mention of MAX_FILE_SIZE field... which I do not see in your HTML code. Additionally, if you look in the HTML posted in the example on the URL I referenced you would see the actual syntax needed for the MAX_FILE_SIZ

RE: [PHP] Using the fsockopen ()-function

2002-01-24 Thread Matt Schroebel
>-Original Message- >From: Björne [mailto:[EMAIL PROTECTED]] >Subject: [PHP] Using the fsockopen ()-function >- >$sp = fsockopen ( "www.php.net", 80, &$errno, &$errstr, 25 ); if ( !$sp ) { > die ( $errno . ": " . $errstr ); >} >else { > fputs ( $sp, "POST /page.php HTT

Re: [PHP] Arrays as pointers?

2002-01-24 Thread Mike Frazer
The Zend Engine is programmed in C, if I remember correctly. Strings in C are really just pointers to character arrays, which is what you see here. Because PHP is a wrapper of sorts, it is basically covering up the fact that strings are character arrays. The good programmers were nice enough to

Re: [PHP] Increment help..please

2002-01-24 Thread Erik Price
I just learned about a cool function -- "mysql_insert_id()". You can read about it in the manual, but it sounds like it could be used to get the AUTO_INCREMENT number from the database and you can then append that number to your uploaded image file name. Erik On Thursday, January 24, 2002, a

Re: [PHP] Uploading a file

2002-01-24 Thread Todd Cary
I though I had followed the example in the manual. Are you saying that there is something I missed? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: [PHP] Arrays as pointers?

2002-01-24 Thread DL Neil
v0idnull, [surely you don't think of yourself as a nonentity twice over?] > A friend of mine showed me this code recently. > > function firstLogin_string() { > mt_srand(make_seed()); > $pool = "AaBbCcDdEeFfGgHhIiJjKkLlM"; > $length = 26; > for($i=0; $i < $length; $i++) { > $key .= $pool[mt_ran

[PHP] Re: RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Robert Ames
Thanks for your responses (again), it is an unfortunate situation that $HTTP_*_VARS must be retained for backwards compatibility until at least the hypothetical PHPv5.0 mark. Having also read in this group that define() does not support complicated constants, I'm guessing that it's not currently

Re: [PHP] Re: [PHP-DEV] Re: [PHP] RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Erik Price
On Thursday, January 24, 2002, at 05:01 PM, Lars Torben Wilson wrote: > Robert, the $HTTP_*_VARS have, indeed, been deprecated, and this is > noted in the manual. Then it is safe to say that using $_* variables and -never- using $HTTP_*_VARS variables is safe practice for forward-compatibili

RE: [PHP] Arrays as pointers?

2002-01-24 Thread Martin Towell
it's treating a string as a character array - it's documented somewhere in the manual, can't remember where though :( - not long ago someone was saying that the new way it to use curly-brackets, but square brackets still work for backwark compatibility. -Original Message- From: v0idnull

Re: [PHP] Increment help..please

2002-01-24 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I did that with this script and it works fine, but the reason I am doing it > is so I can then give the image which is uploaded the story ID. But for some > reason I can't get it to work... here is the auto_increment script any ideas > o

[PHP] Re: problems with system()

2002-01-24 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > > Hello, > I am in a bit of a pickle and would greatly appreciate any help. I > have code which writes inputs to a txt file. These inputs are used as inputs > to a c program. What I am trying to do is use the redirect command

Re: [PHP] Uploading a file

2002-01-24 Thread daniel
> For some reason, I cannot get the following code to work - the file is > not sent to the server. Is there something obviously wrong? I am using > Apache on Linux (RH 7.2). At least LOOK in the manual: http://www.php.net/manual/en/features.file-upload.php It's right there. First example. Pay

RE: [PHP] Re: Warning: Failed opening '....' for inclusion (.....) in Unknown on line 0

2002-01-24 Thread Martin Towell
"error on line 0", maybe it's the auto-prepend file is not there? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 3:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Warning: Failed opening '' for inclusion (.) in Unknown on line 0

[PHP] Uploading a file

2002-01-24 Thread Todd Cary
For some reason, I cannot get the following code to work - the file is not sent to the server. Is there something obviously wrong? I am using Apache on Linux (RH 7.2). Todd Submit this file: -- Todd Cary Ariste Software [EMAIL P

[PHP] Re: Using the fsockopen ()-function

2002-01-24 Thread Jim Winstead
Bj?rne <[EMAIL PROTECTED]> wrote: > When I'm using the code below, the page that is returned is all white. What > to do? Am I doing anything wrong? the page you are requesting from www.php.net (/page.php) does not exist, and will cause a redirect to the search page. so all you should be getting

[PHP] nearly there...just one more

2002-01-24 Thread will hives
I have managed to set the file upload to change the name of the file when uploading, but when the file is uploaded it takes the original file name not the renamed one image upload box is named 'picture' how do I get it to call the new file name Thank you for your help so far everyone...

[PHP] Using the fsockopen ()-function

2002-01-24 Thread Björne
Hi! I'm having trouble with the fsockopen ()-funcion. When I'm using the code below, the page that is returned is all white. What to do? Am I doing anything wrong? - $sp = fsockopen ( "www.php.net", 80, &$errno, &$errstr, 25 ); if ( !$sp ) { die ( $errno . ": " . $errstr ); } else

[PHP] Re: [PHP-DEV] Re: [PHP] RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Lars Torben Wilson
On Thu, 2002-01-24 at 13:42, Rasmus Lerdorf wrote: > I think the real answer here is to treat these as read-only arrays. ie. > never use them on the left side of the '=' and you will never run into > problems. Or if you do, be consistent and use the same array all the > time. You are writing yo

[PHP] Arrays as pointers?

2002-01-24 Thread v0idnull
A friend of mine showed me this code recently. function firstLogin_string() { mt_srand(make_seed()); $pool = "AaBbCcDdEeFfGgHhIiJjKkLlM"; $length = 26; for($i=0; $i < $length; $i++) { $key .= $pool[mt_rand(0,strlen($pool)-1)]; } retu

Re: [PHP] getting a LAMP job in this economy

2002-01-24 Thread Ben Sinclair
You could switch to Java. At least with Java you will learn something that doesn't depend on Windows, but is still needed by Windows users. Not that there is a huge market for Java developers right now either... -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: "Vincent Stoess

Re: [PHP] getting a LAMP job in this economy

2002-01-24 Thread Richard Crawford
Heh. I got my first web development job back when pretty much anyone could hang a shingle outside their door and call themselves a web developer. My company worked in a Linux/PHP/Perl/Oracle environment. While there I learned quite a bit about Perl and PHP and connecting both of them to Orac

Re: [PHP] RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Mike Frazer
Good practice is to never assign to predefined variables, PERIOD. If you need to alter the data, copy what you need to a new variable and operate on that one. Not only does it circumvent these problems, it also maintains the original data throughout the entire script in case you find you need it

[PHP] getting a LAMP job in this economy

2002-01-24 Thread Vincent Stoessel
On another list that I am on someone made this very bold statement: "I've seen a lot of jobs for ColdFusion & Oracle or MS SQL server experience combinations. Don't let anyone fool you, PHP/MySQL is not going to land you a job [;)] " now, as someone that was making avery good living doing Linu

Re: [PHP] session problem Warning: open(/tmp\sess_..., O_RDWR) failed: m (2)

2002-01-24 Thread Freddy
Seems that I had a few php.ini files finally found the right one and changed the path in it and deleted the others. Thanks Nick Wilson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > * and then Freddy blurted > > I am getting the folloing error whenever I try to open a sess

Re: [PHP] Form Problem

2002-01-24 Thread Mike Frazer
Here's a sidenote to the whole script: save your server a little load by removing the print statements. PHP is an embedded language; if you need to print something just break from PHP processing with a ?> tag and use standard HTML. You can embed to print individual variables. If you are using

Re: [PHP] RFE: $HTTP_POST_VARS =& $_POST;

2002-01-24 Thread Rasmus Lerdorf
I think the real answer here is to treat these as read-only arrays. ie. never use them on the left side of the '=' and you will never run into problems. Or if you do, be consistent and use the same array all the time. You are writing your code with the assumption that these two arrays are the s

RE: [PHP] directory structure list

2002-01-24 Thread sean
Sorry for the posting, I hadn't looked hard enough. If any of you need something along the same lines go: http://www.php.net/manual/en/class.dir.php Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

[PHP] Re: seems easy...

2002-01-24 Thread Mike Frazer
Line 4 & 5 combined: $text = substr($text, 0, $limit) . " ... your additional text here"; Mike Frazer "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Really simple, but can't see which funtion to use in the manual. > > I want to take a

[PHP] Re: CGI PHP processing .shtml

2002-01-24 Thread Mike Frazer
Did you remove the "AddType server-parsed" entry for .shtml that is usually there by default? You may be better served asking this on an Apache newsgroup. Mike Frazer "Christian Cresante" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >i want to have php

  1   2   3   >