[PHP] Scroll through values sent from a form
Hi, Is it possible to scroll through values posted from a form using PHP? Here is my problem: I have a form on a page which is created dynamically from the number of fields in a particular table, so when I POST the data how do I create the INSERT statement? I feel this will be awkward due to the construction of the INSERT statement and I would be very grateful for anyone's input. The form names are the same as the field alues in the table... It will need to be something like $query = "INSERT INTO $_GET[table_name] (" while (more Form Fields){ $query = $query + "'form fieldname'"; } $query = $query + ") VALUES ("; while (more POST Values){ $query = $query + "POST Value"; } $query = $query + ")"; I hope this makes sense to the reader! Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Scroll through values sent from a form
thanks for your reply but it doesn't work, i get the following output: INSERT INTO Table (Object, Object, Object, Object, ) Values (, , , , ) any ideas? "Bobby Patel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $fields=''; > $values=''; > > foreach ($_POST as $field -> $value) { > $fields .= $field.", "; > $values .=$value.", "; > } > $fields = substr ($fields, -2); // strip off last comma and space > $values = substr ($values , -2); // strip off last comma and space > > $query = "INSERT INTO $_GET[table_name] (".$fields.") Values (".$values.")"; > > > "St" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > Is it possible to scroll through values posted from a form using PHP? Here > > is my problem: I have a form on a page which is created dynamically from > the > > number of fields in a particular table, so when I POST the data how do I > > create the INSERT statement? I feel this will be awkward due to the > > construction of the INSERT statement and I would be very grateful for > > anyone's input. The form names are the same as the field alues in the > > table... > > > > It will need to be something like > > > > $query = " > > > > while (more Form Fields){ > > $query = $query + "'form fieldname'"; > > } > > > > $query = $query + ") VALUES ("; > > > > while (more POST Values){ > > $query = $query + "POST Value"; > > } > > > > $query = $query + ")"; > > > > I hope this makes sense to the reader! > > > > Thanks > > > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Looking for Calender System
I am looking to implement a calender for a multi-user system. I came across one called webcalendar on sourceforge http://webcalendar.sourceforge.net/ Can anyone recommend any others? It has to be multiuser and hopefully it can fit into the rest of my existing system -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP with gd support
I had php working with the RPMs in RedHat, but I followed the instructions from this site: http://www.e-gineer.com/instructions/index.phtml (BTW;excellent site) and now I'm working with php-4.1.1 and apache_1.3.14. But now when browse the my PHP webpage with pics on it, I get: Sorry, but this script requires that your copy of PHP has been compiled with support for images. configure --with-gd ... My question is: if i configure with gd support, do i have to do the 'make' and 'make install'(I think do) and will it mess up the other arguements i put in from the instruction site? or do I do the configure with all the other arguements AND --with-gd and then do the 'make' and 'make install'? Thanks for the help Gary __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Javascript
Usually you would have the actual page between the () so it would be: echo " -Scott At 04:10 PM 2/25/2003 -0800, Todd Barr wrote: I have tried this 3 different ways and none of them worked... I am trying to get javascript to generate a popup, with a variable passed along in the url. echo""; this doesn't work, neither does stopping PHP and then restarting... Blah, any advice on how to embed javascript? --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RedHat
John- This would best be asked on a Red Hat list, but I can tell you that if you are using Red Hat 7.3 I would not really count on getting them to release PHP 4.3 as once a major Red Hat release is out they usually only provide security updates - NOT feature updates. Red Hat also modifies the version numbers to reflect the security updates so if you have PHP 4.1 on Red Hat 7.3 it might be PHP 4.1.25 which is the Red Hat number. You can look around on www.rpmfind.net or www.freshrpms.net for an updated PHP, but it may not be compatible with the Red Hat version you are running. In the future if you want to count on program feature updates you would be best to install Apache, PHP and MySQL from source. -Scott On Sat, 5 Apr 2003, John Taylor-Johnston wrote: > Where would I go on the redHat site to ask when they are going to upgrade to PHP 4.3 > and MySQL 4.x (now in production). Our CS dept. won't install them for me until > RedHat bundles it. I'm using RH 7.3. > > http://www.netcraft.com/?host=compcanlit.usherbrooke.ca&position=limited > > Suggestions where to ask, to give them a nudge :) ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Unix passwd file
At 04:54 AM 10/4/2002 -0600, Peter Janett wrote: >You can just put the username and password in the MySQL database as normal >text, then build your applications that are reading them to check the >passwords with the UNIX Crypt function. Basically that is what I am trying to do. I just converted a BSDI passwd file to Linux to move the users to a new server. Now I want to move the user accounts to a MySQL table that Postfix, Radius and Apache/PHP can share to authenticate the users. >In other words, just as your passwords are stored in a plain text file, >store them in plain text in the db. Then to confirm them, take the first 2 >characters of the crypted password, use them as the salt to crypt the >password the user entered, and compare the results. If that are the same, >they entered a valid password. So this would validate the user? What about if the user wants to change their password? In PHP can I crypt backwards and still be compatible with the Linux passwd file? I am trying to avoid manually typing in over 5,000 usernames and passwords. -Scott --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Unix passwd file
At 01:54 PM 10/4/2002 +0200, lallous wrote: >Peter, I think he's stuck with the parsing part? >you can file() the /etc/passwd file then explode() it and add the >username,passhash parts and/or more values into the mysql table. I can parse the file just fine, what I am trying to do is actually make use of the data coming out of the passwd file. In other words if you set up a simple table: UserID Username Password And then populate the table using a PHP script that parses the /etc/passwd file and then write your app to verify the user on that data can it be done? Username is no problem, the Unix encrypted password is the one I am trying to work out. If the user has a password of: phprocks and in /etc/passwd that encrypted password works out to be: !#@KJCKMSD@, then I validate the user, they enter the correct username and password, will PHP be able to validate that the password they entered matches the encrypted password. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP to get mail headers
I run a small ISP and am looking at ways to automate grabbing the headers from email. I currently copy all email to a BSD box, then use Pine in header mode to get the IP addresses from which I build my spam filters. A search did not yield much in what I am trying to do: 1)Open the mailbox and extract the Received, From and Subject headers. 2)Drop those into a database that I can manage from the browser. Sounds simple enough and I am sure I am making it harder than it really is, but if you know of a project please let me know. Thanks! -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] removing characters
I have just started with php a few days ago but in the book that I am reading it uses a foreach loop that is specifically for arrays. foreach($Area as $key=>$value) { your concatination string here } Rick At 04:45 PM 3/6/01 +1030, you wrote: >On Tue, 6 Mar 2001 15:50, [EMAIL PROTECTED] wrote: > > A problem of inexperience... > > > > I am trying to store an array in mysql. I obtain the array like so-- > > > > $partcount = count($Area); > > reset($Area); > > for ($i = 0; $i < $partcount; $i++){ > >$key = key($Area); > >$val = $Area[$key]; > > $string1 .= $val . "\') or (Area=\'"; > >next($Area); > > } > > > > This results, with a bit of coaxing, in an array like this one -- > > > > +-+ > > > > | Area| > > > > +-+ > > > > | (Area='1') or (Area='2') or (Area='3') or (Area='') | > > > > +-+ > > > > Everything is falling into place, *except* these last thirteen > > characters -- > > > > or (Area='') > > > > And that's what I'd like to eradicate. > > > > Tips, suggestions, especially outright code greatly appreciate. > > > > Thanks, > > Robert > > p.s.-- I have ordered the Friedl book on Regular Expressions. Hoping it > > will enlighten me for the future > >My suggestion would be to not create the empty reference in the firast >place :-) > >Before starting your loop (but after checking there is something to work >with) use the first element of the arra to create the (Area='1') then you >can loop through the rest of the array, starting with $i = 1 and create > > or (Area='$val') > >-- >David Robley| WEBMASTER & Mail List Admin >RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ >AusEinet | http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] is_uploaded_file false if file too big
ok ... I have been doing some more reading... the file uploads are limited by a directive in php.ini, upload_max_filesize.. and it defaults to 2 meg. If it is large it will act like nothing was uploaded. At 03:46 PM 3/6/01 +1030, Tyson Lloyd Thwaites wrote: >Funny, because I can upload stuff that is close to 2mb (ie 1.99) but >not over. > >I think it must be something to do with the default file limit, even >though I have explicitly set itlarger, and also set the max size >field >in the form larger. > >My main gripe is that is_uploaded_file doesn't recognise it as an >upload. > >Cheers > > > > -Original Message- > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 06, 2001 3:43 PM > > To: Tyson Lloyd Thwaites > > Subject: Re: [PHP] is_uploaded_file false if file too big > > > > > > In some recent development that we had done at work, we > > found that IIS has a > > heap limitation of 1MB.You would have to hack IIS to > > allow the heap to > > grow greater than that. > > > > Rick. > > > > > > At 03:26 PM 3/6/01 +1030, you wrote: > > >Hi, > > > > > >I am having a problem with is_uploaded file returning false if the > > >file > > >uploaded is over a certain size. > > > > > >I have used ini_set("upload_max_filesize", "8M"), as well > > as setting > > >MAX_FILE_SIZE like this: > > > > > >(ie real big :) > > > > > >Still, if I try to upload a file over about 2mb, is_uploaded_file > > >returns false and the $userfile var is empty. Shouldn't > > it report an > > >uploaded file even if it is too large? > > > > > >This is quite annoying as my script uses is_uploaded_file > > to check if > > >a > > >file has been uploaded, and if not it shows an upload > > form. If I try > > >to upload a +2Mb file, after a short wait I get the upload form > > >again. > > > > > >Any help in fixing this would be appreciated. Here is my setup: > > > > > >PHP-4.0.5-dev CGI > > >IIS4/NT4 SP4 > > > > > > > > >Regards, > > > > > >Tyson Lloyd Thwaites > > >IT&e Limited > > >e-Commerce Division > > >Adelaide > > >(08) 8346 3888 > > > > > > > > >-- > > >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] > > > > ## > > # Rick St Jean, > > # [EMAIL PROTECTED] > > # President of Design Shark, > > # http://www.designshark.com/ > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > # Tel: 905-684-2952 > > ## > > > > ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Almost working Regex
Did you try escaping it with the \? At 04:51 PM 3/6/01 +1000, Murray Shields wrote: >For data validation, I am using the following regex: > >$Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, >$List)); > >This works perfectly for the moment. However, I need to add both square >brackets [] to the list of allowed characters above. > >But when I add the closinjg bracket ], the regex stops working. There are no >errors, but it accepts any and all characters as valid. > >How can I add these additional characters to the regex and avoid this >problem? > >Thanks. > >== >Murray Shields Email: [EMAIL PROTECTED] >MU Systems Pty Ltd Phone: +61 7 3351 6677 >Global Catalogs Pty Ltd Phone: +61 7 3351 4777 > > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] bug tracking software
Many people recommend bugzilla from netscape. Rick At 10:49 AM 3/6/01 +, Peter Van Dijck wrote: >I've looked into bug tracking software at hotscripts: mantis >http://mantisbt.sourceforge.net/mantis/main_page.php3 >is promising but has too many bugs itself still (I fixed three in the past >20 minutes of playing with it, it's still in beta, but I can't afford the >estimated x days of debugging it right now). >I need something stable to start working with straight away. And >preferably something easy to use. >Which one should I use? >Peter >~~ >http://liga1.com: building multiple language/culture websites > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] dymanic forms
Use a for loop with "); } ?> Or you can use a while loop with a counter... same thing. At 12:17 PM 3/6/01 +, you wrote: >I am trying to build a form which can be geberated dynamically >by the user selecting the number of fields up to a max of 10. > >just now i am using >if ($fields ==1){ > >echo ""; >} > elseif ($fields ==2){ > >echo ""; >echo ""; >} > > elseif ($fields ==3){ >echo ""; >echo ""; >echo ""; >} > >there must be a better way to do this > >TIA > >george > > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Rounding to strange results
You can write a function that get the %(mod) of 1000 then subtracts it from the number. Rick At 08:43 AM 3/6/01 -0700, Johnson, Kirk wrote: >Is there a comma in one thousand, e.g., 1,000.00? round() will truncate >everything to the right of a comma. > >Kirk > >-Original Message- >From: Martin E. Koss [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, March 06, 2001 7:45 AM >To: [EMAIL PROTECTED] >Subject: [PHP] Rounding to strange results > > >Hi, >I use a product database for 2 sites, one of which adds sales tax and rounds >to the nearest .10 and on the other site there is no tax and also no >rounding. > >I am unable to figure out why a price of 1000.00 is being displayed as 1.00 >and any price over 1000 does the same thing. 100.00 works fine, as does all >other prices, this is the same with and without rounding. > >Anything I should look for to solve this problem? > >Martin. > > >-- >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 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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] How to tell if client has cookies turned off?
Something else to consider is that if someone is kinda smart they can place the variable into the url. So, if it is important you may want to put a checksum or token in there. Rick At 08:52 AM 3/6/01 -0800, you wrote: >On 6 Mar 2001 07:53:46 -0800, kevin1 <[EMAIL PROTECTED]> wrote: > >How can I tell reliably if someone has cookies turned off? > >Set a cookie on your site (perhaps the homepage?) and use code like this: > > if (!empty($UserHasCookies)) { > echo 'Whew - you do have cookies'; > } > >The idea is to set your code to assume that cookie support is disabled unless >it finds a cookie saying otherwise. That way it'll fail safely if someone >either doesn't have a cookie or their browser discards the cookie halfway >through. This may seem silly, but some people get *really* paranoid about >cookies. Combined with the increasingly good cookie management in modern >browsers and just about anything is possible - this is in fact the major >shortcoming to code like the above - it's possible for someone to accept one >cookie and deny another, so just being able to set a cookie once does not mean >that you will be able to set another. > >Chris > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] How to tell if client has cookies turned off?
you can check the HTTP_COOKIE_VARS array after setting a cookie to see if anything is placed in there. Rick At 08:52 AM 3/6/01 -0800, Chris Adams wrote: >On 6 Mar 2001 07:53:46 -0800, kevin1 <[EMAIL PROTECTED]> wrote: > >How can I tell reliably if someone has cookies turned off? > >Set a cookie on your site (perhaps the homepage?) and use code like this: > > if (!empty($UserHasCookies)) { > echo 'Whew - you do have cookies'; > } > >The idea is to set your code to assume that cookie support is disabled unless >it finds a cookie saying otherwise. That way it'll fail safely if someone >either doesn't have a cookie or their browser discards the cookie halfway >through. This may seem silly, but some people get *really* paranoid about >cookies. Combined with the increasingly good cookie management in modern >browsers and just about anything is possible - this is in fact the major >shortcoming to code like the above - it's possible for someone to accept one >cookie and deny another, so just being able to set a cookie once does not mean >that you will be able to set another. > >Chris > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] removing and item out of a string
I really suck with Regular expression but what if you did a replacement on 1, and replaced it with 1 2, and replaced it with 2 3, and replaced it with 3 Kind of a cheap workaround. ?? Rick At 01:07 PM 3/6/01 -0500, Brian C. Doyle wrote: >Hello all, > >I need to remove a comma from inside of 2 quotes ie "1,234.56" I need to >change that to "1234.56" >Unfortunatly I can not do reg_replace(",","","1,234.56"); >This is inside a csv file. > > > >Brian C. Doyle >Coach Team Force >Earthlink Technical Support >[EMAIL PROTECTED] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Please Help!!!! - Really BASIC stuff!
This will allow you to have more control over what pages get edited... but you can use something a little easier like... At 09:02 PM 3/6/01 +, you wrote: >Hi Martin, > >It's important to know that "Stuff" in the Url like this are just >variables. For example : > > foo.php?fruit=apples&dog=snoopy&others=huh&more=yep > >Now with foo.php we can do this (a few exceptions) : > > echo "$dog would like to each some $fruit"; > >And in your case, you have $page so let's compare your $page variable >and include files accordingly. We'll be using an if statement which can >be read about here : > > http://www.php.net/manual/en/control-structures.php > >This will do the job : > > > if ($page == 'visual') { > > echo 'Visual Stuff is Good!'; > include 'visual.txt'; > > } elseif ($page == 'audio') { > >echo 'Welcome to Musical Section!'; >include 'audio.inc'; > > } else { > >echo 'Welcome to my site!'; >include 'default.php'; > > } > ?> > >Yes there are other ways but this is the simplest and you should (and >will!) learn to use if/elseif/else which will be useful in the future. > >Regards, > >Philip Olson >http://www.cornado.com/ > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] mailing list.
Does this mailing list run off PHP? Does anyone find it a pain to have to cut and paste the url of the list into the to bar again and again? I am using Eudora, and I am just wondering if it is me. What mail server are they using? qmail or sendmail? Rick ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] mailing list.
I am using 4 but there is no reply to in the headers. They should have it where you click reply and it replys to the list... not the person that wrote the email. That is what mine is doing. It may be that there are so many posts that this keeps the post numbers down. I was just wondering. Rick At 03:17 PM 3/6/01 -0600, Brig C. McCoy wrote: >At 04:19 PM 3/6/01 -0500, you wrote: > >Does this mailing list run off PHP? Does anyone find it a pain to have to > >cut and paste the url of the > >list into the to bar again and again? I am using Eudora, and I am just > >wondering if it is me. What > >mail server are they using? qmail or sendmail? >Which version of Eudora are you using? With the latest version, everything >that's a URL lights up as blue and connects to my browser when I click on it. > >...brig >-- >Brig C. McCoy Head, Systems Office >Linda Hall Library of Science, Engineering and Technology >5109 Cherry 816 926-8749 >Kansas City, MO 64110 ###### # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] passing a variable
George you are doing this backwards. Someone posted the code to do this the right way last night. I would use the concatination of a third variable. $field = "blah"; $loops = 10; for ($i=0; $i < $loops; $i++) { $displayField = $field . $i; echo "\n"; } Rick At 11:31 PM 3/6/01 +, george wrote: >I am trying to build a dynamic form, and I am using the code below to let >the user ,name the fields that are generated,but i want to give the user the >option of changing individual field sizes but I cant get it to work. > >TIA >george > >for ($i=0; $i < $fields; $i++) >{ $fieldName = "field$i"; > > echo " value=\"${$fieldName}\">\n"; > >} > > echo " value=\"$fields\">\n"; > > > > > > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Developer certifications
Developer Certifications only mean something if you are trying to get a government job. I have only been asked for sites that I have done and been asked once for a sample of code. I would go to another recruiter if I were you. Every place I have applied looked at urls and code functionality. I would never ever hire someone who had an MCSE. I look at skills that someone has, and coding style. I know high school students who program better than people in our nation's top computer courses. IMHO certifications are garbage. I would rather hire someone who can learn then someone who was spoon fed and just managed to take a stupid course that doesn't teach you what you need to know. BTW the microsoft certifications are worth nothing now, even to microsoft. Rick At 02:58 PM 3/8/01 -0500, Krznaric Michael wrote: > OK now I'm pissed. I consider myself to be an above average >programmer with extensive skill in PHP (amongst other things). > > NOW... I am not going to go jumping through hoops just because some >ignorant/illiterate HR Recruiter/IS Head thinks that if you're not PHP >certified by some company (eg. brainbench) you're not worth consideration. >I REFUSE to do it. I WOULD NOT on my life take the MCSE of MCwhatever, >however I may take the Cisco or the Oracle test. Things that require and >properly compensate specialization I am open to. But things that test how >well you can interact with a GUI (Windows) are bullshit. With respect to >PHP there are other methods of determining ones competency with a particular >language. What should be judged is a persons overall programming >competency, or how well they can adapt to a new language, as oppose to >specialization in PHP or PERL or . If you specialize in PHP, what are >you going to do when there is no more PHP. (Not that we are expecting that). > > To summarize, judging a proficiency as it relates to a particular >language shows the inexperience and ignorance of your future management. >The bottom line is that "YOU DO NOT WANT TO WORK FOR PEOPLE LIKE THAT". I'm >sure some experienced programmers around here know what I'm talking about. > >Mike > > >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 28, 2001 1:33 PM >To: [EMAIL PROTECTED] >Subject: [PHP] Developer certifications > > >Does anyone know of a company which is offering or planning to offer PHP >developer certifications? Arguments against certification programs aside[1], >there are a lot of companies which prefer certified developers, even to the >point of assuming a project done in ASP will be better than the same thing >done >in PHP simply because the ASP developers are Microsoft certified. > >While this seems like an interesting sideline for a company like Zend, I'm >also >somewhat curious about whether an "Open Source" test could be developed. >It'd >certainly have to be quite different from normal tests and that move away >from >easily memorized answers would probably be a very good thing. > >[1] We've all heard them before. I'm personally in favor only of >certifications >like certain devilishly hard Cisco exams which measure more than >multiple-choice memory. > >-- >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 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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] PHP ide features...
I use a fantastic program called Textpad. I love ultraedit also but what it lacks is a clip or snippets library. The functions work well... as well as the macros. The thing that the snippets or clip library needs is the ability to have a hotkey tied to each one... the drawback of a macro is you have to retype them.,,, the big thing why I dropped ultraedit is that the line numbers do not read the end of a line if a line goes past the edge of a page and the word wrap is on the rest of that line gets a new number that throws everything else off. Ability to use unix regular expressions for searching. Ability to reassign hotkeys is important... everyone wants to customize their keys. Something that I have also never seen and would like is to have a central repository for code snippets within a company. I think that something like this would be very unique and useful. Everyone has a shared drive and it load the definitions from there. If it gets updated then everyone's would update. At 01:04 PM 3/9/01 -0600, Chris Lee wrote: >I use ultraedit love it. > >- ftp open >- line numbers and ruler >- search and replace by file, highlightd text, dir >- auto indent, highlight a group of text and indent or de-dent. >- file::open::default dir depends on the current file open >- htmltidy built in >- spell check text not code. >- macros >- syntax highlighting >- linking to php.net/manual/ functions. >- new files open inside main windows (file tabs) not in new windows (like IE) > >there are lots > >-- > > Chris Lee > Mediawaveonline.com > > ph. 250.377.1095 > ph. 250.376.2690 > fx. 250.554.1120 > > [EMAIL PROTECTED] > > > >"Dan Cleveland" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >Hello, >I am currently working on finishing up version 2.0 of PHP Studio. >It's release date is March 15. It is a completely free source/ware. I >was hoping to get a list of features that PHP developers would want to >see. I will make an attempt to have all of these features included in the >March 15 version. Thank you very much for your time. > >Dan > >+---+ >| | >| If Yoda so strong in force is, | >| why words in proper order he cannot put? | >| | >+---+ >| | >+---+ >| Daniel J. Cleveland | >| e-mail: [EMAIL PROTECTED] | >+---+ > > >-- >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 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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Advanced PHP
Does anyone know of any other lists that are a little more advanced, And has a little less traffic? I am not the end all be all by any means of programming or PHP. I just want to know where the big boys hang out and learn some secrets that require some understanding. Rick ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] payment
How to people typically integrate payment processors with PHP? And what processors are used most often? I know that a number of people are scrambling after cybercash died. There is a site out there www.opay.com that says it supports payment processors on any platform, anyone ever use it? Rick ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] payment
It says it is not a gateway but a method between code and the processor. One piece of code is supposed to work for 150 payment processors. If you need a new processor then you buy some driver from them. At 02:28 PM 3/9/01 -0800, Aaron Tuller wrote: >I use Virisign PayFlow Pro and it's so easy. ust the built in functions >or just call parse_str() on the output and you're set. > >-aaron > >At 5:27 PM -0500 3/9/01, Rick St Jean wrote: >>How to people typically integrate payment processors with PHP? >>And what processors are used most often? I know that a number >>of people are scrambling after cybercash died. There is a site out >>there www.opay.com that says it supports payment processors >>on any platform, anyone ever use it? >> >>Rick >>## >># Rick St Jean, >># [EMAIL PROTECTED] >># President of Design Shark, >># http://www.designshark.com/ >># Quick Contact: http://www.designshark.com/messaging.ihtml >># Tel: 905-684-2952 >>## >> >> >>-- >>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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] payment
They were supposed to merge with Network 1, but they could not come up with the money. I read something that said they filed for chapter 11. But this means that he smaller company Network 1 will absorb them or buy what is left. Those are the rumours I heard Rick At 03:38 PM 3/9/01 -0700, Nathan Cook wrote: >I haven't used opay.com. > >However I was looking at using cybercash for up and coming software I am >writing. > >Their website talks extensively about a merger with a 'Network 1' company >and now a buyout and a chapter 11 filing. The buyout, or "merger" press >release says: "CyberCash Internet Payment Processing Service to Continue >without Interruption." > >Is this incorrect? When you say that it 'died', what are you referring to? > >.:: Nathan Cook [ [EMAIL PROTECTED] ] ::. >PCS Edventures.com >Systems & Network Administrator :: Programmer >[ phone - 208.343.3110 ][ pager - 208.387.9983 ] >- Original Message - >From: "Rick St Jean" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Friday, March 09, 2001 3:27 PM >Subject: [PHP] payment > > > > How to people typically integrate payment processors with PHP? > > And what processors are used most often? I know that a number > > of people are scrambling after cybercash died. There is a site out > > there www.opay.com that says it supports payment processors > > on any platform, anyone ever use it? > > > > Rick > > ## > > # Rick St Jean, > > # [EMAIL PROTECTED] > > # President of Design Shark, > > # http://www.designshark.com/ > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > # Tel: 905-684-2952 > > ## > > > > > > -- > > 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] > > > > ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] payment
confirmed on Fu**edcompany.com At 05:54 PM 3/9/01 -0500, you wrote: >They were supposed to merge with Network 1, but they could not come up >with the money. >I read something that said they filed for chapter 11. But this means that >he smaller company >Network 1 will absorb them or buy what is left. Those are the rumours I heard > >Rick > >At 03:38 PM 3/9/01 -0700, Nathan Cook wrote: >>I haven't used opay.com. >> >>However I was looking at using cybercash for up and coming software I am >>writing. >> >>Their website talks extensively about a merger with a 'Network 1' company >>and now a buyout and a chapter 11 filing. The buyout, or "merger" press >>release says: "CyberCash Internet Payment Processing Service to Continue >>without Interruption." >> >>Is this incorrect? When you say that it 'died', what are you referring to? >> >>.:: Nathan Cook [ [EMAIL PROTECTED] ] ::. >>PCS Edventures.com >>Systems & Network Administrator :: Programmer >>[ phone - 208.343.3110 ][ pager - 208.387.9983 ] >>- Original Message - >>From: "Rick St Jean" <[EMAIL PROTECTED]> >>To: <[EMAIL PROTECTED]> >>Sent: Friday, March 09, 2001 3:27 PM >>Subject: [PHP] payment >> >> >> > How to people typically integrate payment processors with PHP? >> > And what processors are used most often? I know that a number >> > of people are scrambling after cybercash died. There is a site out >> > there www.opay.com that says it supports payment processors >> > on any platform, anyone ever use it? >> > >> > Rick >> > ## >> > # Rick St Jean, >> > # [EMAIL PROTECTED] >> > # President of Design Shark, >> > # http://www.designshark.com/ >> > # Quick Contact: http://www.designshark.com/messaging.ihtml >> > # Tel: 905-684-2952 >> > ###### >> > >> > >> > -- >> > 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] >> > >> > > >## ># Rick St Jean, ># [EMAIL PROTECTED] ># President of Design Shark, ># http://www.designshark.com/ ># Quick Contact: http://www.designshark.com/messaging.ihtml ># Tel: 905-684-2952 >## > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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-I18N] Re: Weekly Update
Haha never trust a company that hosts its website on geocities and has free web based email. Rick At 02:31 PM 3/9/01 -1000, [EMAIL PROTECTED] wrote: >-WEEKLY UPDATES- > >BREAKING NEWS... RECORDS WERE BROKEN... >AND MILLIONAIRRES WILL BE MADE!! > >THE ADVANTAGES OF BEING ON OUR TEAM ARE: > >-YOU WILL GET PAYED NEXT WEEK! >-WE WILL BUILD ONE SIDE OF YOUR BUSINESS FOR YOU! >-WE WILL PROVIDE YOU WITH FREE NETWORKER LEADS SPECIFIC TO THIS OPPORTUNITY >-WE WILL TRAIN YOU, DO CALLS FOR YOU, AND PLUG YOU INTO OUR PROVEN SYSTEM >-YOU CANNOT FAIL > > > >CHECK US OUT ON THE WEB AT > >http://www.geocities.com/success352003/ > > > > > >*** >THIS EMAIL COMPLIES WITH ALL REGULATIONS AND IS NOT SPAM. TO >PERMANENTLY REMOVE YOURSELF FROM THE LIST SIMPLY EMAIL >[EMAIL PROTECTED] WITH "REMOVE" AS THE SUBJECT LINE. >*** > >-- >PHP Internationalization 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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- PHP Internationalization 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] How to protect my scripts ???
include them from a directory outside of their access. If they are creative they can use the fp tags to make copies, if you do not lock down your server rights. Rick. At 08:51 PM 3/9/01 -0300, Marco Aurélio wrote: >Hello! > > >My case: > >My users have ftp access to their directories, then if I put my scripts >inside it, they will br able to stole! > >Is possible to use directory alias and forcetype on Apache to protect my >scripts or which's the better solution for it, any ideas ??? > > >Regards, > >marcoBR > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Advanced PHP
Of course... where did you think they came from... monkeys? At 04:01 PM 3/9/01 -0800, Keith Vance wrote: >Where did the chicken come from, God? > >Keith > >On Fri, 9 Mar 2001, Jerry Lake wrote: > > > The chicken did. > > > > as the Chicken is an actual chicken > > and the egg is a potential chicken. > > Actuality precedes potentiality > > > > Jerry Lake- [EMAIL PROTECTED] > > Web Designer > > Europa Communications - http://www.europa.com > > Pacifier Online - http://www.pacifier.com > > > > > > -Original Message- > > From: Keith Vance [mailto:[EMAIL PROTECTED]] > > Sent: Friday, March 09, 2001 3:14 PM > > To: Kath > > Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED] > > Subject: Re: [PHP] Advanced PHP > > > > > > What came first the chicken or the egg? > > > > Keith > > > > On Fri, 9 Mar 2001, Kath wrote: > > > > > Yeah. I even see some PHP book authors, like Julie Meloni here on this > > > list. > > > > > > There is never a question, no matter how retarded, that this list or #php > > on > > > irc.openprojects.net has never been able to answer. > > > > > > - Kath > > > > > > > > > - Original Message - > > > From: "Krznaric Michael" <[EMAIL PROTECTED]> > > > To: "'Rick St Jean'" <[EMAIL PROTECTED]>; > > <[EMAIL PROTECTED]> > > > Sent: Friday, March 09, 2001 5:11 PM > > > Subject: RE: [PHP] Advanced PHP > > > > > > > > > > If I'm not mistaken, the big boys keep an eye out over here. > > > > > > > > Mike > > > > > > > > > > > > -Original Message- > > > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > > > Sent: Friday, March 09, 2001 4:54 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: [PHP] Advanced PHP > > > > > > > > > > > > Does anyone know of any other lists that are a little more advanced, > > > > And has a little less traffic? I am not the end all be all by any > means > > > of > > > > programming or PHP. I just want to know where the big boys hang out > > > > and learn some secrets that require some understanding. > > > > > > > > Rick > > > > ## > > > > # Rick St Jean, > > > > # [EMAIL PROTECTED] > > > > # President of Design Shark, > > > > # http://www.designshark.com/ > > > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > > > # Tel: 905-684-2952 > > > > ## > > > > > > > > > > > > -- > > > > 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 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 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 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 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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Advanced PHP
if (you want to debate) { print ("email me.\n [EMAIL PROTECTED]") ; } else { print ("Break thread"); }; That is whole other debate that I feel very strongly about. I am a born again Christian and not going to waver. If you want to debate this, I would welcome it, but I think that the thread should go to sleep, if you interested make a poll. Rick At 04:18 PM 3/9/01 -0800, Keith Vance wrote: >You don't think all living creatures could evolved on this planet, >simply because the Earth has water and oxygen and sunlight to support >life? I beleive in God, but let's be realistic here. Do you really think >God just waved his hand and there appeared a chicken? > >Open your mind to other possibilities. > >Keith > >On Fri, 9 Mar 2001, Rick St Jean wrote: > > > Of course... where did you think they came from... monkeys? > > > > > > > > At 04:01 PM 3/9/01 -0800, Keith Vance wrote: > > >Where did the chicken come from, God? > > > > > >Keith > > > > > >On Fri, 9 Mar 2001, Jerry Lake wrote: > > > > > > > The chicken did. > > > > > > > > as the Chicken is an actual chicken > > > > and the egg is a potential chicken. > > > > Actuality precedes potentiality > > > > > > > > Jerry Lake- [EMAIL PROTECTED] > > > > Web Designer > > > > Europa Communications - http://www.europa.com > > > > Pacifier Online - http://www.pacifier.com > > > > > > > > > > > > -Original Message- > > > > From: Keith Vance [mailto:[EMAIL PROTECTED]] > > > > Sent: Friday, March 09, 2001 3:14 PM > > > > To: Kath > > > > Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED] > > > > Subject: Re: [PHP] Advanced PHP > > > > > > > > > > > > What came first the chicken or the egg? > > > > > > > > Keith > > > > > > > > On Fri, 9 Mar 2001, Kath wrote: > > > > > > > > > Yeah. I even see some PHP book authors, like Julie Meloni here > on this > > > > > list. > > > > > > > > > > There is never a question, no matter how retarded, that this list > or #php > > > > on > > > > > irc.openprojects.net has never been able to answer. > > > > > > > > > > - Kath > > > > > > > > > > > > > > > - Original Message - > > > > > From: "Krznaric Michael" <[EMAIL PROTECTED]> > > > > > To: "'Rick St Jean'" <[EMAIL PROTECTED]>; > > > > <[EMAIL PROTECTED]> > > > > > Sent: Friday, March 09, 2001 5:11 PM > > > > > Subject: RE: [PHP] Advanced PHP > > > > > > > > > > > > > > > > If I'm not mistaken, the big boys keep an eye out over here. > > > > > > > > > > > > Mike > > > > > > > > > > > > > > > > > > -Original Message- > > > > > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > > > > > Sent: Friday, March 09, 2001 4:54 PM > > > > > > To: [EMAIL PROTECTED] > > > > > > Subject: [PHP] Advanced PHP > > > > > > > > > > > > > > > > > > Does anyone know of any other lists that are a little more > advanced, > > > > > > And has a little less traffic? I am not the end all be all by any > > > means > > > > > of > > > > > > programming or PHP. I just want to know where the big boys > hang out > > > > > > and learn some secrets that require some understanding. > > > > > > > > > > > > Rick > > > > > > ## > > > > > > # Rick St Jean, > > > > > > # [EMAIL PROTECTED] > > > > > > # President of Design Shark, > > > > > > # http://www.designshark.com/ > > > > > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > > > > > # Tel: 905-684-2952 > > > > > > ## > > > > > > > > > > > > > > > > > > -- > > > > > > PHP
Re: [PHP] MySQL problem - stumped
At 01:58 PM 3/10/01 -0500, John Vanderbeck wrote: You are using && in your statement ... should be "AND" . >The following code is giving an me problems, I can't figure it out to save >my soul. The last line gives: > >Here is the code: > >$link = db_connect(); >$query = "UPDATE Users SET firstname='$firstname', lastname='$lastname' >WHERE username='$user' && password='$password'"; >$result = mysql_query($query, $link); >$err = mysql_error(); >echo "Errors:".$err; >$rows = mysql_affected_rows($result); > >And here is the output: >Errors: >Warning: Supplied argument is not a valid MySQL-Link resource in >//*//**..***/db.php on line 147 > >Line 147, is the last line in the above snippet. I cleared out the path >name for security, no offense intended :) > >Now, I KNOW that the db_connect() function is not the problem, as I use it >in many other places in this script with no errors. What am I missing? > >- John Vanderbeck >- Admin, GameDesign > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] PHP/MySQL Question
That is database specific no standard SQL. To make it non specific. you can put it in a for loop. remember to check for eof. Rick At 06:01 PM 3/10/01 -0600, you wrote: >Select * from table limit 5; > >http://www.calevans.com > > >-Original Message- >From: Kath [mailto:[EMAIL PROTECTED]] >Sent: Saturday, March 10, 2001 6:01 PM >To: [EMAIL PROTECTED] >Subject: [PHP] PHP/MySQL Question > > >Having some problems with syntax. > >If I wanted to SELECT only 5 instances of something from a database and >order it by datetime, how would I do that? > >- Kath > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] ASP vs PHP
I was told by someone that it is possible with apache. You can have something parse the page once then be parsed by something else. I don't know how and I have never seen it but I have been told that it is possible. Rick At 11:28 PM 3/11/01 -0500, Michael Kimsal wrote: >You're comparing a framework to a language. > >ASP is a technology which allows code for different languages to be >embedded in a file >parsed by a webserver (IIS). To accomplish this, different languages need >to be written >as modules for that webserver. MS has VBScript (default language), >JScript and PerlScript >(anyone know of any more?). If someone was to write PHP to be an ASP/IIS >module >that could be executed under the ASP framework, then yes. Until then, >no. I also >don't think it's a likely scenario, but I've been wrong many times before >in my life. :) > > > >Chris Anderson wrote: > > > This is going to sound like heresy, but is there any way to use ASP and > PHP in the same fle/page? Seperated of course. > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] includes
I am looking for a simple way to include a file and not have it parsed. But I also do no want to strip out the html and php. Is there a way to do a nice and simple include and set parsing to false? Right now I use a fopen and fgets to read from the file. include() will parse it and execute it. All I want to do is include it raw... any ideas? Rick ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] includes
How embarassing... I read about that and forgot about it. It is a matter a getting aquainted with new syntax. Thanks. Rick At 01:52 PM 3/13/01 +1030, David Robley wrote: >On Tue, 13 Mar 2001 13:45, Rick St Jean wrote: > > I am looking for a simple way to include a file and not have it parsed. > > But I also do no want to strip out the html and php. Is there a way > > to do a nice and simple include and set parsing to false? > > > > Right now I use a fopen and fgets to read from the file. > > > > include() will parse it and execute it. > > > > All I want to do is include it raw... any ideas? > > > > Rick > >Readfile() might do what you want. > >-- >David Robley| WEBMASTER & Mail List Admin >RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ >AusEinet| http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] includes
actually what I am doing is creating an area where users can manipulate data on a page without having harmful code executed. It is faster to use a flat text file than a database. I will have these files named something else that will not be able to be executed either. I don't want it executed ever... but I do want html to work normally.. When they want to change the contents of the file they use another page to write it. It frees up more time for me to work on other projects rather than small edits. Rick At 02:39 PM 3/13/01 +1030, David Robley wrote: >On Tue, 13 Mar 2001 13:54, Chris Cocuzzo wrote: > > I'm slightly confused as to why you would not want it parsed and > > executed...or I should say...what would be the differences in using the > > include function vs. reading it in like a file?? > > > > Chris > > > > -Original Message- > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > Sent: Monday, March 12, 2001 10:15 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] includes > > > > > > I am looking for a simple way to include a file and not have it parsed. > > But I also do no want to strip out the html and php. Is there a way > > to do a nice and simple include and set parsing to false? > > > > Right now I use a fopen and fgets to read from the file. > > > > include() will parse it and execute it. > > > > All I want to do is include it raw... any ideas? > > >Well, if one wanted to show the actual content of the file, for whatever >reason. Say one were building a routine to do a showsource, for instance. >That's not what you are doing, is it Rick? > >-- >David Robley| WEBMASTER & Mail List Admin >RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ >AusEinet| http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] TXT files
include() require() readfile or fopen the file and use fgets to read. Rick At 07:41 AM 3/13/01 -0300, Bruno Freire wrote: >Hey Everybody! >Its me...Bruno From Brazil. > >Look, >How can i read txt files with php > >Thanks >See ya! ###### # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Payflow Pro
apparently opayc has Payflow as one of the processors. Both the cheque and the card service. If it changes then you get a new driver. Comes with source code I am sure. Rick At 03:40 PM 3/13/01 -0700, Dan Harrington wrote: >Is anyone on this list using the PayFlow Pro extensions for PHP? >If so, I would like to know what version of the SDK you are using, and >if you have knowledge of anyone at Verisign who deals with PHP. > >So far, I have only found out that they don't support PHP. > >Thanks >Dan Harrington > > >-- >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] ###### # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] need some help..
Do you have a friend with FTP and DSL??... pull out your drive an go to their place. Rick At 06:31 PM 3/13/01 -0500, [EMAIL PROTECTED] wrote: >Im moving servers within the week.. and I got about 600mbs worth of stuff on >there, and me being on 56K its nearly an impossible tasks. > >I thought up of a solution, but need to get it implemented. Have a script >open a directory and fopen all the files from the remote server and transfer >it to my new one. Anyone ever done something similar to this? is it possible? > >- Thanks > >-- >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] ###### # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] tutorials on good database design
One of my co-worker has a phenominal book on sql. You will want something that covers the different type of joins... when to use them, as well as database normalization, reinforcing data integrity with foreign and primary keys. You will also want some transact sql in there and some indexing. There are many tutorials in stuff like phpbuilder.com. It is a good starting place. Rick At 12:37 PM 3/14/01 +1100, Justin French wrote: >hi, > >i'm looking for some good tutorials / articles / books on database >design, no, i'm not talking about the classic employee contact database >that nearly every site has lingering somewhere... i'm after the good stuff: > >smart data design >smart data planning >unique keys >taking advantage of relational databases >etc etc > >Justin French > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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:PHP | MySQL Search
If the fields are all integers then it is: >SELECT HouseID FROM Search WHERE CountryID=2 AND PriceID=3 AND (FacilityID=5) Rick At 07:12 PM 3/13/01 -0800, Dennis Gearon wrote: >I never have luck putting single quotes around anything but strings, or >column names when called for. You might try your SELECT statement >without 's > > >Query 1 : > > > >(I only want result on houses which are in country 2 and in price 3 and > >facility 1 must be included on the spot) > > > >I've used : > > > >SELECT HouseID FROM Search WHERE CountryID='2' AND PriceID='3' AND > >(FacilityID='5') > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Multi-Step Script
Use switch with includes for each step. switch() { case 1: include(filestep1.php) break; case 2: include(filestep2.php) break; default: include(form.php) } but this way you can have a hierarchy and possibly run form one section into the next.. switch($step) { case 1: include(filestep1.php) //list products case 2: include(filestep2.php) //list categories break; default: include(form.php) //show list of options. } At 09:59 PM 3/13/01 -0700, you wrote: >Is it possible to use different parts of one php script for multiple >html forms? I am not seeing how people create multiple pages of html >forms with each form importing information from the previous form. >Right now, for each html form page I have, I create one php script to >handle it but it would be nice to have just one php script in which only >certain parts execute depending on have variables have assignments. One >way I was thinking of doing this is to have the html forms just keep >posting the information to itself whenever the submit button is hit and >then using a series of if else statements to evaluate where the program >is in relationship to the forms, would this type of system work? >What do you guys do? >-Andrew V. Romero > To reply personally, remove all numbers from address. > > >-- >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] ###### # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] foreach() faster than while()?
the print() stuff is minimal. You are just copying stuff to the buffer. If you were outputting to a file when your way is faster. It has to do with the fact that in the while you keep leaving the array. and check the while, in the php layer. In the foreach do the same thing just on the c layer. You save that bit of time because you do not have to go out to the php engine and parse again. Rick At 08:20 AM 3/14/01 -0800, Dennis Gearon wrote: >I meant to write about this last week! > >I see a LOT of examples on the PHP website, both by contributions and by >the staff responsible for the manual, of using functions inside of loops >to get a value that doesn't change, i.e. the end or beginning of an >array. > >A lot of code out there would speed up tremendously if the necessary >value was stored in a temporary variable, which would then be used in >the loop. Probably, using echo() or print() in a loop also slows things >down, buffering into a variable first is much faster, I bet. > >One thing I've taken to doing that is related to this, is any object >method() that would normally have a printed output, I make two output >functions, 'getValue()' and 'printValue()'. the getValue() buffers to a >variable in the object and this can be used inline in another place >thats buffering output. If I want it printed right away, the >printValue() calls getValue(). > >And because I like readable web page HTML, I also have begun to start >including an 'indention' argument to those functions, or sometimes an >'indention' attribute. At the beginning of the buffering and also >following a '\n' in the HTML being buffered, I place the number of >spaces to cause proper indention in the HTML output to make tables etc >line up. It does make the files a little bigger, but it's lot's easier >to see what's going on in the code. I suppose if I wanted to, I could >make a global variable that said, 'INDENTION_ON/OFF' for production. > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Statistics function
Here is what happens... I am skipping a few steps here and there etc.. you type url and run. the broswer finds the server... the server looks at he extension of the document and sends the page to the php engine. The engine parses through the doc, writing to the buffer (unless told to stream info) The page is completed... the engine returns an ok to the server.. the server then dumps the buffer out to the browser. All through this process there is a live thread between your browser and the server. unless you send a cancel. Rick At 07:40 AM 3/15/01 +0200, Lauri Vain wrote: >Hello everybody, > >How does the behind the scenes work by PHP exactly go? Does the PHP thread >remain active so long as the information is sent to the visitor? Or will PHP >parse the code and send it to Apache which will send the data to the user >itself? > >The reason that I'm asking this is I'm writing a statistics add-on for one >of my >sites and was wondering whether the code below would give the time in >which PHP >parses the code or in which the data gets streamed to the user. > > $time_one = microtime(void); > fpassthru($file); > $time_two = microtime(void); > // + here will be the code to calculate the difference > //betweeen $time_one and $time_two > >Would I get information about my server (parsing time) or would I get some >information about the requesters internet connection (how fast will my >files get >to the user). Both would be pretty important! > >PS What are the advanced statistics programs out there? I wouldn't mind >seeing >a sample report (any commercial or non-commercial). > >Thanks in advance in advance! > >Yours, >Lauri > > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] FAQ
It is there a list of most frequently asked questions? It seems that people ask the same questions, again and again, they do not READ THE MANUAL. Yes I have asked 2 stupid questions, but I really did search and I am reading my manuals, the PHP and the book that I bought. Also I would like to know if there would be a demand for an experienced mailing list? I am just frustrated by the same 3 questions that pop up about once a day. The rest of the posts are great. Rick ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] FAQ
Cool idea, I am going to add that to the spec for the mailing list program we are working on. it is relatively simple if you put it there when you are planning the app. At 09:17 AM 3/15/01 -0800, RBL wrote: >on 3/15/01 9:04 AM, Rick St Jean at [EMAIL PROTECTED] wrote: > > > Also I would like to know if there would be a demand for an > > experienced mailing list? I am just frustrated by the same 3 > > questions that pop up about once a day. The rest of the posts > > are great. > > > > Rick > >I once thought a great product for mail lists (would require an admin >interface, PHP?) would be a way to put into the list mail signature a random >FAQ link. > >Fill that particular FAQ with commonly asked questions and have the FAQ sent >out each month to all subscribers. A decent threaded mail reader would make >this reasonably easy (notice I did not say *simple*) to administer. > > >Example >-- >Need a PHP editor? (http://php.net/common_questions.html?Q=phpeditors) > >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > >Example >-- >Trouble compiling GD? >(http://php.net/common_questions.html?Q=gdrequirements) > >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > >-- >Dave Goodrich >Director of Interface Development >Reality Based Learning Company >9521 NE Willows Road, Suite 100 >Redmond, WA 98052 >Toll Free 1-877-869-6603 ext. 237 >Fax (425) 558-5655 >[EMAIL PROTECTED] >http://www.rblc.com > > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] FAQ
The problem is that people are lazy or just to stupid to look for stuff. Sometimes yes, we just miss something small or it is under another section. I have done it as recently as tuesday with implode. But this is getting nuts. I guess I am frustrated because all the lists I am on are filled with lazy people who whine and want someone else to do all their work for them. PHP is not low level if you need something simple use iHTML. It is the simplest scripting language out there. I propose that the first few sentances of the signup message should be... READ THE MANUAL BEFORE POSTING!! READ THE MANUAL BEFORE POSTING!! READ THE MANUAL BEFORE POSTING!! if you are confused about this... READ THE MANUAL BEFORE POSTING!! SEARCH THE ARCHIVES / FAQ BEFORE POSTING! SEARCH THE ARCHIVES / FAQ BEFORE POSTING! SEARCH THE ARCHIVES / FAQ BEFORE POSTING! if you doing understand then SEARCH THE ARCHIVES / FAQ BEFORE POSTING! Rick At 10:22 AM 3/15/01 -0600, Chris Lee wrote: >people wouldnt use an FAQ, when you see three people ask the exact same >question on one single day, you know they dont read the other post, or >care. if they wont read the posts on the same day they wont read an FAQ, >they keep posting. > > >-- > > Chris Lee > [EMAIL PROTECTED] > > > > >""Mal McKay"" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >I'd just like to offset my other email by saying that a faq is often no >substitute for the knowledge and experience of this list's members. In a >strange way, the 'dumb' question this list gets proves the a faq can not be >expected to know the right way to answer a query. A list member out there >just might know _exactly_ what you need to solve your problem. > >mal > >-Original Message- >From: RBL [mailto:[EMAIL PROTECTED]] >Sent: 15 March 2001 17:17 >To: Rick St Jean; [EMAIL PROTECTED] >Subject: Re: [PHP] FAQ > > >on 3/15/01 9:04 AM, Rick St Jean at [EMAIL PROTECTED] wrote: > > > Also I would like to know if there would be a demand for an > > experienced mailing list? I am just frustrated by the same 3 > > questions that pop up about once a day. The rest of the posts > > are great. > > > > Rick > >I once thought a great product for mail lists (would require an admin >interface, PHP?) would be a way to put into the list mail signature a random >FAQ link. > >Fill that particular FAQ with commonly asked questions and have the FAQ sent >out each month to all subscribers. A decent threaded mail reader would make >this reasonably easy (notice I did not say *simple*) to administer. > > >Example >-- >Need a PHP editor? (http://php.net/common_questions.html?Q=phpeditors) > >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > >Example >-- >Trouble compiling GD? >(http://php.net/common_questions.html?Q=gdrequirements) > >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > >-- >Dave Goodrich >Director of Interface Development >Reality Based Learning Company >9521 NE Willows Road, Suite 100 >Redmond, WA 98052 >Toll Free 1-877-869-6603 ext. 237 >Fax (425) 558-5655 >[EMAIL PROTECTED] >http://www.rblc.com > > > >-- >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 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 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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Newbie question: Basic knowledge
Ha... you email is Virtual Evil" <[EMAIL PROTECTED] and you name is Christian, how is that for backwards. 1. make sure you are using the correct extention on the file name. .php or .php3 ... whatever you compiled. 2. use the around your php code. try in a file called test.php Rick At 07:50 PM 3/15/01 +0100, Virtual Evil wrote: >Hi there! > >I'm really newbie and I have a major problem. >I think i've installed the PHP stuff correctly, but I don't know how to >insert a PHP feature into a ordinary HTML page. Actually i've tried to find >it in the faq, but i didn't. so could please somebody tell me how it works, >just combining a php file with the source code. If possible, for example to >give me a very simple example, so that i can understand the basics! > >I'm really desperate so please somebody help me! > >Thanks a lot > > >Christian > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] FAQ Ignor if you are tired of this.
This was sent off-list. I respect that. And it voices some opinions. I am not flaming newbie questions. I am a newbie myself. I do have a problem with the same questions coming up 3 times in a row. With developers asking people to do simple logic. And people not looking for answers before they ask. All I am asking is if you do not have an understanding of programming.. do some tutorials. I am talking about questions like... how can I make the page print "1 2 3 4 5" style of questions that come up because php is the first thing that they looked at. This means the person hasn't even looked for a basic tutorial. I love the idea that the list is helpful, I love to answer all the questions that I can, but some people want you to hold their hand. the "help-Your-friends-forum" is "hold-your-hand-forum" or "spoon-feed-me-forum" occassionaly. the manual is http://www.php.net/manual/en/ do a simple search. These guys did a pretty good job here. I spent $80 on a book so I can step though the different functions and keep most of my questions off the list. If you spent time looking say so, I can respect not being able to find something even if it is obvious.. I have done it myself. I asked about contatination. I was looking for a strcat function. Maybe I should invest some time into an site called phpstarter.com and buy the domain name. I get quite a bit of help from people from this list on and off mailing. I am not flaming anyone in particular, I am just tired of people not bothering to spend any energy because it is easier to get someone else to give you the answer. That is what bugs me. >I'm a newbee too, have search for hours in the online-manual to find certain >answers. Also looked through the FAQ's, searched on PHPbuilder , Devshead >and other sites, but didn't find a clue on my problem. >It's frustrating spending hours one something a Pro would do in 5 secs!!! > >If the mailinglists wasn't ment to be a "help-Your-friends-forum" what are >they then? > >The problem with the manual is, that it is VERY hard to understand correct >for a newbee. For a little experienced developer it's no problem. But the >rest of us?? > > > >- Original Message - >From: "Rick St Jean" <[EMAIL PROTECTED]> >Newsgroups: php.general >Sent: Thursday, March 15, 2001 7:28 PM >Subject: Re: [PHP] FAQ > > > > The problem is that people are lazy or just to stupid to look for stuff. > > Sometimes yes, we just miss something small or it is under another >section. > > I have done it as recently as tuesday with implode. But this is getting >nuts. > > > > I guess I am frustrated because all the lists I am on are filled with lazy > > people > > who whine and want someone else to do all their work for them. PHP is not > > low level > > if you need something simple use iHTML. It is the simplest scripting > > language out there. > > > > > > I propose that the first few sentances of the signup message should be... > > > > READ THE MANUAL BEFORE POSTING!! > > READ THE MANUAL BEFORE POSTING!! > > READ THE MANUAL BEFORE POSTING!! > > if you are confused about this... READ THE MANUAL BEFORE POSTING!! > > > > SEARCH THE ARCHIVES / FAQ BEFORE POSTING! > > SEARCH THE ARCHIVES / FAQ BEFORE POSTING! > > SEARCH THE ARCHIVES / FAQ BEFORE POSTING! > > if you doing understand then SEARCH THE ARCHIVES / FAQ BEFORE POSTING! > > > > Rick > > > > > > At 10:22 AM 3/15/01 -0600, Chris Lee wrote: > > >people wouldnt use an FAQ, when you see three people ask the exact same > > >question on one single day, you know they dont read the other post, or > > >care. if they wont read the posts on the same day they wont read an FAQ, > > >they keep posting. > > > > > > > > >-- > > > > > > Chris Lee > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > >""Mal McKay"" <[EMAIL PROTECTED]> wrote in message > > >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > >I'd just like to offset my other email by saying that a faq is often no > > >substitute for the knowledge and experience of this list's members. In a > > >strange way, the 'dumb' question this list gets proves the a faq can not >be > > >expected to know the right way to answer a query. A list member out there > > >just might know _exactly_ what you need to solve your problem. > > > > > >mal > > > > > >-Original Message- > > >From: RBL [m
Re: [PHP] Hmmm... What's problems?
Make sure that enctype="multipart/form-data" is in your form. At 05:29 PM 3/15/01 +0300, you wrote: >I'm using manual online on php.net and use example of File uploader. >If i changed TEXT file All right! >If i changed Binary file php script answer Error! >in sources code PHP using Binary method... >And temporary subject $source_file is empty! >if i insert in PHP { echo "source: $source_file"; } and PHP say "Source: >none" And "Ftp upload has failed!" >Whats problem? >I don't understand... > > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] XML Newbie.!
Make sure you read the whole message before you comment. There was a relative question at the bottom. Rick At 12:59 AM 3/17/01 +0100, Nik Gare wrote: >In article <[EMAIL PROTECTED]>, Diego >Fulgueira <[EMAIL PROTECTED]> wrote: > > Hi! Ok, this is not a question about PHP, but since this is such a > > great discussion forum, I am certain it is a good place to get started > > with a new technology. > > >Oh, but it is a PHP mail list/newsgroup. >This question does not belong here. > >Nik > ###### # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] XML Newbie.!
If it was a question about tables and how you can use them with PHP then yes. Take this off-list if you have something important to say please. At 07:39 AM 3/17/01 +0100, Nik Gare wrote: >In article <[EMAIL PROTECTED]>, >Rick St Jean <[EMAIL PROTECTED]> wrote: > > Make sure you read the whole message before you comment. There was a > > relative question at the bottom. > >I have a question concerning tags. >I also have a question concerning PHP. >Should I ask both questions here, or just the PHP related question? > >Nik > >btw, the references, ie who you are replying to, in your mail is >incorrect. > ###### # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] how do i get a variable type? - not that simple
I would right a function that would return a result and try an match within the different types. if (isdate($a)) { Dtype = date; } if (isdigit($a)) { Dtype = int; } return (Dtype); etc.. At 01:44 PM 3/18/01 -0500, phpman wrote: >No guys. that doesn't work. Take this code for example... > >$a="3"; >echo(gettype($a)); > >this returns string >i need to find it as an integer or real or float for the sql. which by the >way is MySQL. > >thank you for responding, but I already know that gettype and all the other >is_* don't work for this. > > > >""phpman"" <[EMAIL PROTECTED]> wrote in message >99132e$ol8$[EMAIL PROTECTED]">news:99132e$ol8$[EMAIL PROTECTED]... > > hello all, > > > > let's say i have this: > > $a="varone=hello world|vartwo=2.44|varthree=100|"; > > > > now i do this: > > > > $b=explode('|',$a); > > $z=count($b); > > for ($x=0;$x<$z;$x++) { > > $tmp=explode('=',$b[$x]); > > > > > > and i want to find out if $tmp[1] is a string or an integer (that's >really > > all I need to determine so i can put > > together an SQL statement that puts single quotes around strings and none > > around integers). Obviously > > i won't know at design time all of the variables and their values. Thank > > you. > > > > -dave > > > > > > > > -- > > 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 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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] What does a ? do
http://www.php.net/manual/it/html/language.operators.comparison.html#AEN3156 called a trinary operator At 12:08 PM 3/20/01 -0800, Brandon Orther wrote: >heloo, > >Could someone plese explain this line if code??? What does the "?" do? > >$r = ($r < 1) ? $config['maxResults'] : $r; > >Thank you, > > >Brandon Orther >WebIntellects Design/Development Manager >[EMAIL PROTECTED] >800-994-6364 >www.webintellects.com > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] A universal Database Class
What you want is a database abstraction layer. search the archives for pear or metabase. Another option is use the lousy ODBC At 03:21 PM 5/17/01, Brandon Orther wrote: >Hello, > >I am making a suite of online tools. Right Now I am connecting to a MS SQL >2000 database. Is there any class out there that will let you send a query >to more than just one type of databases? Like someone could run it off a >MSSQL server and another could run it off a MySQL database. > >thanks >Brandon > > >-- >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] ###### # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/, http://www.phpmailer.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Conditions within a function
I have been trying to organize my code better by using functions, especially where I am repeating logic. The problem seems to be when I run a condition within the function, an if statement to check for results of a variable. As is the code seems to be bypasses, but if I put a die; in the function after the line that was skipped before I get the desired results. Code sample below is checking a table that lists a userID and if the user has ever logged onto the system before: function chkFirstTime($userID){ global $connection,$db,$userID; $sqlChkFirstTime = "select fk_userID,firstTime from firstTime where fk_userID = '$userID'"; $resultFirstTime = mssql_query($sqlChkFirstTime, $connection); $rowFirstTime = mssql_fetch_array($resultFirstTime); $firstTime = $rowFirstTime["firstTime"]; if ($firstTime == ""){ include ('includes/incFirstTime.php'); } } If I place a die; after the include it will run, of course it stops other users from getting in as well. Thanks, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Conditions within a function
On Tue, 16 Apr 2002, Erik Price wrote: > First of all, try organizing your code using whitespace. Here is an > example of the code, formatted to be a bit easier to read: Thank you, that was Pine doing some nice formatting tricks of it's own. > Now, my first question, is why do you have $userID passed by parameter > into the function, and also globalized in the function? I am trying to > understand this function but this seems like a mistake. You should > probably fix this. Also, I'm not sure what the $db variable is > globalized for -- why is it needed? It isn't used in the function, as > far as I can see. I see the error there and removed the global, I am moving from ASP functions to PHP functions and still learning. I misunderstood the global statement considering that I am passing the userID to the function. What I am also discovering is I have to use die; to halt execution for certain things. An example, I check to see if a user is still active in the system, if they are not I use a header to redirect them to a page that tells them they are inactive. if ($userActive == 0){ header ('Location: notice.php'); } As is it does not work until I do this: if ($userActive == 0){ header ('Location: notice.php'); die; } -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql quickie..
Kelly- My way may not be perfect, but this is what I do. $sql_temp = "select last_insert_id() as mainid from transfers"; $sql_result_temp = mysql_query($sql_temp,$connection); $row_temp = mysql_fetch_array($sql_result_temp); $file_temp_id = $row_temp["mainid"]; -Scott On Wed, 17 Apr 2002, Kelly Meeks wrote: > Hi folks, > > I need to get the next auto_increment value of a mysql table thru php. > > Looking at my mysql manual, it makes reference to a last_insert_id() function? > > How would I use this via php, or is there some other way to do it? > > Thanks > > Kelly > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP editor for windows
Macromedia/Allaire Home Site 5.0 has PHP color coding, not auto-complete, but you can customize it for auto-complete if you want. You can also make it tab 2 instead of 4 :) It's been my editor since the free version 1.0 and it's a work horse. And Home Site has Ultra Dev/Dream Weaver integration. PS-- This is MY opinion and NOT intended to start any Holy Wars. -Scott On Mon, 22 Apr 2002, .ben wrote: > Other than notepad, interdev, ultraedit, etc (which i currently use for > editing), does anyone know of a good editor for PHP for Windows, ideally > with syntax colouring, etc? > > Cheers, > > .ben > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Return more than 255 chars
Change nvarchar to varchar, ntext to text. I do not think you can return a nvarchar from SQL Server like that. Was this imported from Excel? -Scott On Mon, 22 Apr 2002, Jeff Hatcher wrote: > I'm running Advance Server with MSSQL 2000 Enterprise. > > I can not get php to return more than 255 characters. In MSSQL I have > set a column up as an ntext, nvarchar (4000), etc... But no matter what > it only returns 255 characters. Its not the MSSQL Server because I have > no trouble returning with other languages. Any Suggestion? > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Editors
I second that! I was to the point where I bought Ultra Dev but only used it for table layout and then spent the rest of my time in Home Site. Now with the new Dreamwever MX Home Site is built in. I was able to complete a site I was working on in PHP in about an hour last night! Since Home Site is built in you have the PHP syntax highlighting. I have not played with the db tools that it is supposed to have. GoLive is a joke in my eyes, even with the PHP stuff. -Scott On Wed, 1 May 2002, John Fishworld wrote: > I've used Edit Plus and Dreamweaver as a combination for a while ! > And the new Dreamweaver is worth getting ! > I've set it up in 10 minutes with my Linux box using there PHP and MySQL and > first impressions are very good ! > Much better than Ultradev was and a hell of lot quicker and more stable than > the new GoLive ! > Good I've only been using it a day and half and so these are purely first > impressions - but seeing as at least until June its free I'd recomend at > least trying it ! > > (oh I also quite like TextPad but have somehow always got on better with > EditPlus ) > > > > > > > I would love to hear other people's experiences with these editors > though. > > > > Second that. Has anyone used this new Dreamweaver? What's it like? I guess > > I'll have to download it tonite. Dreamweaver used to be my favorite, but > it > > sucks for PHP so now I'm hooked on TextPad. Let us know if you have any > > experience using Dreamweaver MX. > > > > ---John Holmes... > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] adding 60 to a date
Morning I am working on a password aging system that will force a user to change their password every 60 days. Can anyone recommend the best method for taking the current date and adding 60 days to that number? Should I do a unix timestampe and add or strtotime and add 60 days? Thanks, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] adding 60 to a date
Will the fact that the server is on NT be a problem? On Tue, 7 May 2002, John S. Huggins wrote: > On Tue, 7 May 2002, Scott St. John wrote: > > >-Morning > >- > >-I am working on a password aging system that will force a user to change > >-their password every 60 days. Can anyone recommend the best method for > >-taking the current date and adding 60 days to that number? Should I do a > >-unix timestampe and add or strtotime and add 60 days? > > Yes, using the unix timestamp is most frequently the wise thing to do - at > least for me :-| > > Just add 5,184,000 seconds to the current timestamp. > > ** > > John Huggins > VANet > > [EMAIL PROTECTED] > http://www.va.net/ > > ** > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] date comparison again
Thank you Miguel! I was missing the /86400 and it works much better now :) On Thu, 9 May 2002, Miguel Cruz wrote: > On Wed, 8 May 2002, Scott St. John wrote: > > Sorry to be so thick this morning, but I have a unix time stamp in my MS > > Sql server that is the date, plus 60 days to expire a password. I want to > > take today's date and compare to the two to see: > > 1)How many days until the password expires > > 2)If the password already expired then force a password change. > > > > I am missing something I am sure because I am not getting the answer I am > > looking for with this code: > > > > $expirePass = strtotime("now"); <-todays date > > $myPassword = ("1026047985");<-from the MS Sql field > > > > $itexpires = ($expirePass - $myPassword); > > $daysleft = intval(($mypassword - now()) / 86400)); > > miguel > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SQL Server test tool
Has anyone seen or know if it is possible to use PHP to test if a SQL server is alive on port 1433? I know I could run a query, but was looking for something to actually test on the port. Thanks, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fsockopen
I am using fsockopen to test several of our SQL and WEB servers at our office. Testing ports 80, 1433 and 8080 work fine, but I would like to set something up to test ports on our mainframe. These are printers listening on 9100 and when I test it fails. I don't see anything in the online docs about going above a certain port - or is there something else. Thanks, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Newbie question : PHP variables are not posted by this
It a BASIC question, With the following: Name : With the job_action.php I want to display the resaults to the user. But the variable name is empty. What's the problem? Thanks Frédérick St-Hilaire -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] intranet security
I am currently building an intranet security system to handle internal users and the web applications we have. When we are done we will have the ability to add/remove users, control what apps they can and can't see, etc. One thing I would like to be able to do is set up groups and have the ability to assign multiple groups to a person. Say you have these groups: Admin, Developer, Read-Only and I want to assign Scott to Admin and Developer. Then also be able to control rights on a user level. Can someone point me to some links or let me know how you handled these situations. I have a rough draft here, but would like to see what others are doing to handle these issues. Thanks, -Scott -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: intranet security
Thank you. What I am trying to avoid is doing a parsing of the string everytime a user comes in. My thought is to use a user table, a group table and then a permissions table that will allow the user to be a member of more than one group. Thank you, -Scott On Wed, 27 Feb 2002, Julio Nobrega Trabalhando wrote: > I've done it :-) > > But be careful. There are dozens of way to implement this. My way is > simple, but makes use of too many sql queries I believe. Could have stored > everything in one line and grab it at user's login, but anyway My > current way seems more logical to follow and update. > > I have created these 'groups of power', where you can add/remove users. > Since an user can be part of more than one group, I store in a session array > these groups ids. > > In a page where it's necessary to verify if the user (actually, the groups > he's attached to) can perform certain actions, there's a little check like > this: > > $var = ''; > foreach ($_SESSION['user']['group_ids'] as $value) { > $var .= "OR group_id = '$value' "; > } > > And a Mysql query: > > // 'groups' is a table with a collumn for every section of the site. > $sql = "SELECT section_power FROM groups WHERE id = 0 " . $var . "AND active > = 1"; > $res = mysql_query($sql); > while (list($section_power) = mysql_fetch_array($res)) { > // using parse_str() since the data is stored om Mysql as: > // r=1&w=1&d=0&m=0 > parse_str($section_power); > // More on discover_power() below > discover_powers($r,$w,$d,$m); > } > > function discover_powers($r, $w, $d, $m) { >// If there's no current power defined: > if (!isset($_SESSION['user']['powers']['section']['w'])) { > // User's power the same as the var; > $_SESSION['user']['powers']['section']['w'] = $w; > } else { > // Else, in the while loop above, he's assigned to one group with > power = 0 >// and another one with power = 1, let the user get 1 > if ($w > $_SESSION['user']['powers']['section']['w']) { > $_SESSION['user']['powers']['section']['w'] = $w; > } > } > > > Well, pretty much is like this. I am close to redesign the whole thing > because of the many SQL queries, the while loop calling two functions for > every group the user is attached, and because it's plain a 'not-elegant' > solution. > > Feel free to steal any ideas :-D > > -- > > Julio Nobrega. > > Um dia eu chego lá: > http://sourceforge.net/projects/toca > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Non printable page
Black background, white text used to work :) On Fri, 1 Mar 2002, Diana Castillo wrote: > Is there any way tomake a page that cannot be printed?? > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Non printable page
Seriously, another option that works in IE would be to use the link tag in the of the document. Put an alternate document in the tag so when they print the page you can control the content. Here is the tag: -Scott On Fri, 1 Mar 2002, Diana Castillo wrote: > Is there any way tomake a page that cannot be printed?? > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to use PHP on command line in windows
Just download the CGI version and call it from the command line. I am doing a project now based entirely on the command line using PHP as a file parser on Win 2K. You can add it to your path or just call it: c:\php\php.exe -q nameOfScript.php Make sure you write it like a normal PHP script with the tags Hi, > > I use NT for development and I like to write snippets of code and > test them on my local box. I can do this in Perl. How can I do that > in PHP without installing a webserver etc. etc. I guess I can install > a version of PHP and just make sure I've got the path in my env. > > Thanks, > > Peter > http://www.readbrazil.com/ > Answering Your Questions About Brazil > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mySQL back up
1)Create the db in mysql: mysqladmin -u (your user name) -p (if you have a password) create (new database name) 2)mysql -D (the name you used above) < (the text file) Works on Unix and 2000. Is that what you mean? -Scott On Mon, 4 Mar 2002, Wilbert Enserink wrote: > Hi all, > > I have a mySQL back up q: I have a textfile which is filled with statements > as: > > -- > > DROP TABLE Clients\g > > CREATE TABLE Clients( > ID INT, > date BLOB, > name BLOB, > age BLOB, > PRIMARY KEY (ID) > )\g > > INSERT INTO Clients VALUES ('all record data')\g > INSERT INTO Clients VALUES ('next record data')\g > ..and so on > > > --- > > My Q: How an I restore the tables as mentioned in my text file? Is it > possible to 'run' this file so to speak? > > thx in advance!! > > Wilbert > > > - > Pas de Deux > Van Mierisstraat 25 > 2526 NM Den Haag > tel 070 4450855 > fax 070 4450852 > http://www.pdd.nl > [EMAIL PROTECTED] > - > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] REQUEST QUESTION
Call me silly, but I would just call the hidden values: $order1 and $order2 Did I miss why they both must be called order? On Tue, 5 Mar 2002, karthikeyan wrote: > Hi Guys, > > I allready posted this question in detail but I believe I didn't explain it >properly. > > There are 2 hidden variable in my FORM. > > 1. order = 10 and 2. order=20 > > I want to retrieve both the orders in the next page say somename.php. How do i do >that. > > Regards, > > karthikeyan. > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] number_format
Hi everyone, I am trying to format a number for a report, the one consistant thing is the three decimal places. But I need to strip them, then fill in zero's from the left. So, if the number coming in is 8.000 I need to convert to 00800, 11.070 would convert to 01107. I have tried a combination of number_format and usually end up with 8000 or 00110. Help! Thank you! Mind in slow motion this morning. -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] number_format
Ok, I think I got it using this: $anum = number_format($fie31,2); $anum = str_replace($replace_char, $replace_strings, $anum); On Fri, 8 Mar 2002, Alastair Battrick wrote: > why not multiply the number by 1000 and then use > str_pad($in,6,"0",STR_PAD_LEFT) > > Alastair Battrick > Senior Developer > Lightwood Consultancy Ltd > http://www.lightwood.net > > > -----Original Message- > > From: Scott St. John [mailto:[EMAIL PROTECTED]] > > Sent: 08 March 2002 17:02 > > To: [EMAIL PROTECTED] > > Subject: [PHP] number_format > > > > > > Hi everyone, > > > > I am trying to format a number for a report, the one consistant thing is > > the three decimal places. But I need to strip them, then fill in zero's > > from the left. > > > > So, if the number coming in is 8.000 I need to convert to 00800, 11.070 > > would convert to 01107. > > > > I have tried a combination of number_format and usually end up with 8000 > > or 00110. > > > > Help! Thank you! Mind in slow motion this morning. > > > > -Scott > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] getting values from multiple select
Hi gang- I am working on a javascript box that will allow the user to drag values from one select box to another. I will use this box to set the values. This is a standard, multiple select box. On the next page I need to figure out what PHP is doing with the data coming in. If I send 5 fields to the next page PHP will show me one when I echo the variable to the page. If I try to split the varaiable I still get only one value in the echo. Tried to reponse.write it in asp and I get the string with comma seperate values. Help! Thanks, -Scott -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting values from multiple select
Yes, I have tried that. To view them on the next page I would call them as $choice[0];$choice[1];, etc, but only the first item in the list is available. -Scott On Thu, 14 Mar 2002, Erik Price wrote: > Did you try putting brackets at the end of the input names? This tells > PHP to put the values into an array, whose key is the name of the input. > > >A >B >C > > > This might work for you, > > > Erik > > > > > > > Erik Price > Web Developer Temp > Media Lab, H.H. Brown > [EMAIL PROTECTED] > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting values from multiple select
Ok, how about a code snipet since I seem to be blind this morning. The select box code: $groupName"; } ?> On the next page I tried the code Erik recommended doing this: foreach ($groups as $group_list){ echo $group_list; } Any eye openers? Thanks, -Scott On Thu, 14 Mar 2002, Erik Price wrote: > Hm... have you tried using a loop to get their values, rather than using > the numeric indexes? Like this: > > foreach ($choice as $array_element) { >echo $array_element; > } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] getting values from multiple select
On Thu, 14 Mar 2002, Erik Price wrote: > Sure! First go get a cup of coffee! :) > Then change the first line to say this: > > Let me know how that works for you. Erik- I don't do coffee, but the Iced Tea works just as well :) Thank you, all is well and my happy face is back on. I was missing the [], I had tried that before but had an error because I forgot to update my javascript code. Thanks everyone, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Perl NewsGroup?
Not really a bad question as both are great tools. If you are new to Perl check out the Perl Beginners group. Wonderful group of people and very patient with newbies. Make sure you read up on things you are trying to do before you ask the "how do I do this" question. -Scott On Wed, 20 Mar 2002, David Duong wrote: > This may be the worst place to put this but here goes: > > Does anyone know of a Perl NewsGroup? > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: which php book 2 buy ?
I didn't think Programming PHP was out yet? On Tue, 26 Mar 2002, Rasmus Lerdorf wrote: > Or, of course, if you want to be cool like Carl: > > http://lerdorf.com/buy/ > > ;) > > -Rasmus > > On Tue, 26 Mar 2002, Ralph Friedman wrote: > > > In article <[EMAIL PROTECTED]>, Septic Flesh wrote: > > > I wanna buy a book from amazon . . .but don't know which one.. > > > Do you know where I will find examples of shopping carts ? (which book ?) > > > > > > > "Creating Dynamic Web Pages Using PHP and MySQL" by David Tansley. > > > > -- > > Rgds > > Ralph > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cookies
Help! I have not had a need to use sessions or cookies on PHP until now. My experience has been to use Sessions in ASP. I am building a system to have users log in and then drop a cookie on their machine so they can log onto other apps. It's an internal app. The cookie will contain a userid only. What am I doing wrong here: setcookie ('userID', $userID); I set this cookie and can call it on another page, but then I loose it. I have been wathching the cookie directory on my machine and oddly, a cookie never generates. Feeling, uh, clueless at the moment. Thanks, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hi to you anti-spammers HAHA
On Mon, 1 Apr 2002, vins wrote: > Happy Happy Easter. > and to all you peeps out there who don't celebrate this day. > Hope you enjoyed your day. > > And just too keep the cool > How do i run that script that give all the information about php ? > Someone told me the you type PHPINFO(); > but it sometimes doesn't work > > Cheerz > Spammer Vins > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Custom 404
Custom 404 what? Do you want to make one? On Tue, 2 Apr 2002, Craig Donnelly wrote: > Custom 404 > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cookie sharing between asp and php
I have developed a security application for our intranet that handles a user login. It writes values to a cookie and uses that to verify them on the intranet sites until the sessions expire. Since we have not totally moved over to PHP I have some ASP applications I need to protect as well. Q1-I feel dump for asking this, but ASP can't read the PHP cookies, correct? My current solution might be to pass a variable from the php page to the asp page and have it write it's own set of cookies. Thanks, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: cookie sharing between asp and php
On Wed, 10 Apr 2002, Gordon Stewart wrote: > As far as I know - ALL cookies set by a particular server - can be read & > re-set by any programme / process on the same server / website.. > So your ASP script could read your PHP cookies & vice-versa.. > I'm just learning PHP, & dont know cookies as yet (I use Perl/CGI for > cookies) > & have no experience at all on ASP... > I'll suggest to try a small PHP & a small ASP page, & try & set/read the > cookies. Thanks for the response. I was able to work it out, ugly, but it works! I am using PHP to redirect to an ASP page that then writes a cookie itself. Ugly having 2 cookies like that, but it's our intranet and until everything is ported from ASP to PHP this is the way I have to do it. -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] One last thing for the day
$network = new COM("WScript.Network"); $computername = $network->ComputerName; On Wed, 10 Apr 2002, Ron Allen wrote: > Any idea on how to obtain a computer name...Windows environment using > PHP? > > > > -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Finding every even 100
$i % 100 = 0 At 10:37 AM 3/21/01 +0100, Nicklas af Ekenstam wrote: >Hi > >Propably a really simple question, but my math skills are not up to speed >anymore: > >How do I find out if an int is an even 100? I.e. 100, 200, 1200, 9900 etc. >I could always divide by 100 and have a look at the result and se if it >has any decimals but I'm guessing this could be done prettier using >modulus. Right? > >- Nille > > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] IBill - Can you recommend a script?
We have dealt a lot with iBill. They are great. The best interface to them that I know of is the opayc solution from Inline. The advantage is you will be able to do charge backs and the solution can be ported to any platform. php, CF, vb. Also opayc will handle the updates to the api, if it changes. You just download the new dll. At 07:17 PM 3/21/01 -0800, you wrote: >I have a client who wants to set up iBill. Has anyone had any good >experiences with any of the commercially avaliable or open source iBill >administration scripts out there? Good Bad or Otherwise, please let me know. > >Many thanks for any light you can shed on this topic. > >Matt Friedman > > > >-- >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] ###### # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Form help
not all browsers support the referrer or some people use software to block that, so that method is unreliable... the only way to do this is with a token. that is time sensitive from the database, even then there is no method that is hackproof. Rick At 03:41 PM 3/22/01 +, Jon Haworth wrote: > > > You could have a check for the HTTP_REFERER variable, if it doesn't > > > contain "application.php", chances are they didn't come from that page. > > > it's not a good idea to rely on $HTTP_REFERER for anything, and especially > > for this. a referer is only reported when the user follows a hyperlink, so > > in the hypothetical case given there would be no referer. > >Isn't that the point? If there's no referer, they didn't come from the first >page, so you send them back there. I could be completely wrong here - is >HTTP_REFERER empty following a form submission, even if it's to a different >page? > > > what you need to do is combine your two scripts, which is really a neater > > way handling forms anyway. point your form action to the same page > > ($PHP_SELF works really well for this, since you can rename the file and > > it will still run properly), and then add the following code to the top > > of your application.php file > > > > if($GLOBALS["REQUEST_METHOD"] == "POST") { > > > > include("process_application.php"); > > > > exit; > > > > } > >This is how I would handle it personally, but then he'd mentioned having two >pages, so.. > >Cheers >Jon > > >** >'The information included in this Email is of a confidential nature and is >intended only for the addressee. If you are not the intended addressee, >any disclosure, copying or distribution by you is prohibited and may be >unlawful. Disclosure to any party other than the addressee, whether >inadvertent or otherwise is not intended to waive privilege or >confidentiality' > >** > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] This PHP list
that is not true... I for one would hang out on more than one list. And IF no one did answer the question, what do newbies do they get the answer themselves. they spend energy on solving the problem and they learn how to learn. We can exhaust this topic to death. I just created [EMAIL PROTECTED] if you want to join use [EMAIL PROTECTED] newbies are encouraged to observe and learn but please aim entry level questions here. Rick At 04:45 PM 3/29/01 +1000, Gfunk wrote: >Just my .02c... I really hate these sorts of questions... As the previous >poster said, if there was a newbie only list, it'd be full of newbies, and >you'd >never get anything answered cause there'd be only newbies, and newbies >would all come to the advance list to ask their questions. > >I'd bet my arm that all the best php programmers of the world, hang out on >this list. I've read heaps of replies by people who _write_ php (shout out >rasmus), and I myself read posts when I can, and without sounding like a >tool, I'm a very experienced PHP developer... But sometimes I have >questions that could be construed as "newbie" because they relate to >something I've never used before, or any reason... > >Plus, I like helping the newbies.. I remember the first time I used php, and >I had some learnin' to do back then :-) > > >Gfunk - [EMAIL PROTECTED] - http://www.gfunk007.com/ > > >- Original Message - >From: "Jason Murray" <[EMAIL PROTECTED]> >To: "'Ian Harris'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Thursday, March 29, 2001 4:42 PM >Subject: RE: [PHP] This PHP list > > > > > I was hoping that this PHP list would be of people developing > > > with PHP, who have reached some level of familiarity with the product > > > and when they have had a fair go at solving a problem, they then posted > > > it to the list. For example, we have a problem in our code where the > > > last object in an array of objects sometimes vanishes into thin air > > > depending on whether you comment-out a block of unrelated code further > > > up the script. > > > > Sounds like an interesting problem, but related specifically to your code. > > Post it and see..? > > > > > Unfortunately, this list is full of people with questions like "I want >to > > > access a database with PHP. Can someone please send me the source code". > > > > > > Does anyone know of any other PHP lists that are more suited > > > to non-trivial, expert-related discussions? > > > > Well, remember it's called PHP General not PHP Advanced Techy Wizardry. :) > > > > The reason it's general and not advanced is that if they made an advanced > > list as you suggest, the newbies would all go there and ask their >questions. > > > > There are quite a few experienced, knowledgeable and advanced users around > > here. It also helps if you actually ask your questions sometimes too you > > know 8) > > > > > If there aren't any around, I'll start one on Yahoogroups or > > > some other similar service. > > > > Feel free to do it, and best of luck. :) > > > > Jason > > > > -- > > Jason Murray > > [EMAIL PROTECTED] > > Web Design Team, Melbourne IT > > Fetch the comfy chair! > > > > -- > > 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 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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] shipping module
Inline has a module called oshipc which integrates different shipping methods from the same code. It uses a database connection to connect to a driver which does all the middle work. If you need a new shipping method then you get another driver. Rick At 11:19 AM 3/29/01 -0800, Craig Cameron wrote: >Hi, > >We are developing a shopping cart application are wondering if there are >any modules available to integrate with the different shipping >companies. An help would be greatly appreciated. > >Thanks, > >Craig ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Editors Inquiry.
Enter your vote today! A new poll has been created for the group: Which editor do you prefer?? o Ultra Edit o Home Site o Edit Plus o Php Editor o Text Pad o Other http://groups.yahoo.com/group/php-adv/polls Note: Please do not reply to this message. Poll votes are not collected via email. To vote, you must go to the web site listed above. Thanks! ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] php jobs?
try monster.com, do a search for it jobs, send your resume to head hunters. buy big city news papers.\ At 11:04 PM 4/1/01 -0500, you wrote: >What is a good place to find PHP jobs? > >J > > > >Say I'm Hot! - Post Your Picture! >http://www.sayimhot.com > >-- >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] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/, http://www.phpmailer.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] scheduler
check out www.ileaguemanager.com At 12:12 PM 4/2/01 -0500, Michael Roark wrote: >Does anyone have any code which creates schedules? Like to create a works >schedule or a league schedule (baseball, softball that sort of thing) > > > >-Micahel > > >-- >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 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] $_FILES empty, trouble with uploading
Hello people. I have some trouble with an upload script. It was working until the last 2 weeks. Whenever I tried to upload a file to a remote server, the $_FILES array is empty. I print global at start of the script there's nothing. Here's the form http://random.server.com/video/upload.php"; method="post" enctype="multipart/form-data"> Title: Description: Category: yada yada2 So it's a basic form, I do have the enctype. the print_r($GLOBALS) return me [_FILES] => Array ( ) PHP Version 5.2.6file_uploads is On post_max_size 200M upload_max_filesize 200M upload_tmp_dir no value (it use /tmp) the /tmp folder is writable by apache (chmod 777) with 197G of space left. So, obviously, I'm lost as why I can't upload file anymore. Anyone had a similar problem ? What could I do to find/fix the problem ? Is it even related to PHP ? Thanks, Karl _ Share photos with friends on Windows Live Messenger http://go.microsoft.com/?linkid=9650734