Re: [PHP] str_replace

2001-01-31 Thread Philip Olson
Because you must replace it after $total and $buffer are defined, not before. This works : This does not work : Regards, Philip Olson http://www.cornado.com/ On Wed, 31 Jan 2001, Augusto Cesar Castoldi wrote: > In the begin of my site, I have the following code: > $

Re: [PHP] What is "foo"?

2001-01-31 Thread Philip Olson
Check out : http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?query=foo Within is a lengthy explanation of the word and its origin. Btw, it's just a word as is 'blah' and 'bar' and 'apple'. But 'foo' is a cult classic! Regards, Philip Olson http

Re: [PHP] Pricing for PHP programming???

2001-01-31 Thread Philip Olson
e had trying to find someone who can really > code > > clean, effecient stuff that plugs into the whole picture has been > virtually > > non-existent...(if you do, please call! We have a few openings!) > > > > Thanks, > > -Jonathan Sharp > > > > Direct

Re: [PHP] Pricing for PHP programming???

2001-02-01 Thread Philip Olson
nd my desire for work/money (time). Also, barter is usually an option. Usually hovers between 30-50 and one day this will go up :-) This is the most difficult part of the job, time estimates and pricing. Bah. "Just give me money and I'll do stuff." Regards, Philip Olson ht

RE: [PHP] Suggest for List

2001-02-01 Thread Philip Olson
h archives/google and see how long it takes to find an answer. It's fun! But, each to their own. It's easy to get frustrated by repeat questions but we must realize it's not the same person asking over and over ... Regards, Philip Olson http://www.cornado.com/ On Thu, 1 Feb 2001

Re: [PHP] Suggest for List

2001-02-01 Thread Philip Olson
http://marc.theaimsgroup.com/?l=php-general Regards, Philip Olson http://www.cornado.com/ On Thu, 1 Feb 2001, April wrote: > oh look, someone's getting snippy with me for speaking on the list and > admitting I'm a newbie already. Patronizing does get to be a reflex actio

Re: [PHP] PHP/FI what FI?

2001-02-02 Thread Philip Olson
n. When I build the package without any access logging or access restriction support, I call my binary FI. When I build with these options, I call it PHP." Regards, Philip Olson http://www.cornado.com/ On Fri, 2 Feb 2001, Brandon Orther wrote: > I have been using PHP for a while now an

Re: [PHP] PHP news groups

2001-02-03 Thread Philip Olson
This mailing list is also : news.php.net Also, this newsgroup exists (seperate from list) alt.php Philip On Sat, 3 Feb 2001, McShen wrote: > hi > > I am just wondering if there are any PHP newsgroups like this one. I am > looking for PHP newgroups so that i can ask people questions

Re: [PHP] Sum from Arrays ?

2001-02-07 Thread Philip Olson
now equals 9. For info on how all the above works, see : http://www.php.net/manual/en/control-structures.foreach.php http://php.net/ChangeLog-4.php http://www.php.net/manual/en/language.operators.assignment.php Regards, Philip Olson http://www.cornado.com/ On Wed, 7 Feb 2001, Ke

Re: [PHP] html -echo-print

2001-02-07 Thread Philip Olson
Here are a few examples of what you _can_ do : '; print ""; print ''; print ""; print ""; ?> "> For a wonderful tutorial on the subject, go here : http://www.zend.com/zend/tut/using-strings.php It'

RE: [PHP] html -echo-print

2001-02-07 Thread Philip Olson
See this : What is the difference between echo and print ? --- http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41 It should help! Regards, Philip On Wed, 7 Feb 2001, Jeff Oien wrote: > On that subject wh

Re: [PHP] List of all file extensions

2001-02-07 Thread Philip Olson
This is a good start : http://directory.google.com/Top/Computers/Data_Formats/ Regards, Philip On Wed, 7 Feb 2001, Tobias Talltorp wrote: > > No. People use whatever file extensions they like. > > So, If I create a 3D-program, I could say that file extensions for this > program will be .

Re: [PHP] [Newbie] PHP Variables

2001-02-08 Thread Philip Olson
If register_globals is turned off, that will not work. See : http://www.php.net/manual/en/configuration.php#ini.register-globals Check phpinfo() For details on your settings, perhaps it is off. Try : And it should display : HOME : for you. Regards, Philip Olson http

RE: [PHP] To The Hacker: CodeBoy

2001-02-08 Thread Philip Olson
> Whatever, James. Also, consider this word : sue As well as : defamation of character And also : Libel and Slander And lastly : Spoof All should be considered before posting anything anywhere. Especially a public mailing list. It's important to be caref

Re: [PHP] To The Hacker: CodeBoy

2001-02-08 Thread Philip Olson
> True, but none of which are applicable to me, as I've not slandered, defamed > or spoofed anything or anyone. As far as hacking is concerned, I wouldn't > know my arse from my elbow :) just a fyi, my post had nothing to do with you. or the other james (which that line you're referring too had

Re: [PHP] echo vs print

2001-02-08 Thread Philip Olson
On Thu, 8 Feb 2001, Todd Cary wrote: > I have "Profession PHP Programming" and I see that echo() and print() > are used alomst interchangeably. When should each one be used? What is the difference between echo and print ? ---

Re: [PHP] PHP/WML Site

2001-02-09 Thread Philip Olson
: - http://phpbuilder.com/columns/mike20010118.php3 As well as : http://directory.google.com/Top/Computers/Mobile_Computing/Wireless_Data/WAP/ Regards, Philip Olson http://www.cornado.com/ On Fri, 9 Feb 2001, Augusto Cesar Castoldi wrote: > Anyone knows a good (can be a bad) site of PHP

Re: [PHP] shows up in IE but not Netscape

2001-02-09 Thread Philip Olson
Also : Whenever this problem exists, run your site through here : http://validator.w3.org/ Actually, always run sites through there, it's useful (sometimes a bit picky.) For things like missing table tags, it's very helpful. Regards, Philip -- PHP General Mailing List (http://www.php

Re: [PHP] HOWTO handle sessions ?

2001-02-09 Thread Philip Olson
: -- http://zend.com/zend/tut/session.php Title: Couch Sessions: -- http://www.devshed.com/Server_Side/PHP/Sessions/ Regards, Philip Olson http://www.cornado.com/ On Fri, 9 Feb 2001, Evelio Martinez

RE: [PHP] To The Hacker: CodeBoy

2001-02-12 Thread Philip Olson
> Don't worry about him Phillip. And you Jonathon erase all these files and > contact Phillip *personally* telling him more what his security wholes are, > so he'll be grateful to you. Just to clear things up, my only comments mentioned that this is silly and calling someone a "hacker" publicall

RE: [PHP] character problem

2001-02-12 Thread Philip Olson
On Mon, 12 Feb 2001, Dave VanAuken wrote: > PHP is doing what it should to your form input. It automatically > performs "addslashes" to all form input so that the variables are > parsed correctly on the receiveing end. > > do a "stripslashes" to get rid of it. Yes and it's doing this via the m

RE: [PHP] MySQL

2001-02-12 Thread Philip Olson
For this sort of thing, replacing statements such as : or die("Couldn't execute query."); With : or die(mysql_error()); Would have instantly told you the problem, in nice human readable format. Regards, Philip On Mon, 12 Feb 2001, Brandon Orther wrote: > I fixed it, > > Me so stup

Re: [PHP] re:[PHP]Using PHP to process forms

2001-02-12 Thread Philip Olson
tup. And yes, the server must be setup to parse PHP and the sysadmin must do this, an end user cannot. Information on that can be seen here : http://www.php.net/manual/en/installation.php Also, consider checking out basic PHP tutorials found at devshed.com and phpbuilder.com as well as the man

Re: [PHP] create filesystem folder?

2001-02-12 Thread Philip Olson
See : http://www.php.net/manual/en/function.mkdir.php Regards, Philip On Mon, 12 Feb 2001, andrew wrote: > subject says it all - any way to create a new folder in the filesystem? > > regards, > andrew > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail:

Re: [PHP] SELECT statement

2001-02-12 Thread Philip Olson
Assuming you want to select both id and email from table, use commas : SELECT id,email FROM ... Also, check out this basic SQL tutorial : http://www.sqlcourse.com/ It's fairly useful. regards, Philip On Tue, 13 Feb 2001, Peter Houchin wrote: > Hi, > > Can you have a SELECT stateme

RE: [PHP] SELECT statement

2001-02-12 Thread Philip Olson
A possible way to find out : $result = mysql_query($sql) or die(mysql_error()); Does it say anything? mysql_error() is your friend, it can be printed anywhere within the script and will print the last mysql error. So perhaps : print mysql_error(); Right before the query or ... Regar

Re: [PHP] PHP vs JSP

2001-02-13 Thread Philip Olson
3389003820&w=2 Can find more here : http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=jsp Regards, Philip Olson http://www.cornado.com/ On Tue, 13 Feb 2001 [EMAIL PROTECTED] wrote: > Hi, > > Just wondering if anyone knows of any links to information r

Re: [PHP] Bad Practices

2001-02-13 Thread Philip Olson
CT * ..." all the time as it's overkill if not all fields are being used. Regards, Philip Olson http://www.cornado.com/ On Tue, 13 Feb 2001, Jeff Oien wrote: > Would people like to list bad practices and also point us > newbies to any articles online dealing with syntax,

Re: [PHP] converting a date to a string format

2001-02-13 Thread Philip Olson
try something like : function pastDate($days,$format='Ymd') { $secs = ( $days * 86400 ); return date( $format,time()-$secs ); } print pastDate(14); Regards, Philip Olson http://www.cornado.com/ On Tue, 13 Feb 2001, Don wrote: > Does someone have a snippet of code t

Re: [PHP] Why???

2001-02-14 Thread Philip Olson
uotes automatically. Also, have a look here : http://www.php.net/manual/en/function.addslashes.php http://www.php.net/manual/en/function.stripslashes.php It will make sense. Regards, Philip Olson http://www.cornado.com/ On Wed, 14 Feb 2001, Nguyen, David M wrote: > Hi all, > > I have

Re: [PHP] A little code here? :)

2001-02-14 Thread Philip Olson
Are you sure you want to convert \n into for an email? At any rate, a function exists for this conversion : http://www.php.net/manual/en/function.nl2br.php Regards, Philip Olson http://www.cornado.com/ .sig be outside the box. On Wed, 14 Feb 2001

Re: [PHP] uploading files with just a string c:\temp\whatever.txt

2001-02-14 Thread Philip Olson
> Doesn't anybody know anything?? Even a nope it can't be done is a better > response than nothing? > > Thanks guys Don't always expect a response, especially within 137 minutes. Also consider how dangerous it would be. If I decided to check for files on a visitors HD's and was able to downloa

Re: [PHP] automatic php execution

2001-02-14 Thread Philip Olson
all make sense soon. regards, Philip Olson http://www.cornado.com/ On Thu, 15 Feb 2001, Jeff wrote: > Is there any way to get a php script to automatically run, say every > night at 2am? > > Thanks, > Jeff > > > -- > PHP General Mailing List (http://www.php.n

Re: [PHP] Array

2001-02-15 Thread Philip Olson
y-slice.php http://www.php.net/manual/en/function.unset.php Regards, Philip Olson http://www.cornado.com/ On Thu, 15 Feb 2001, David Tandberg-Johansen wrote: > How can I delete one record in a array? > > Example: > > $myarray = array ("a", "b", "c"); > &

Re: [PHP] Reindexing Arrays

2001-02-15 Thread Philip Olson
Try this : a [2] => c $bar = array('a','b','c'); $piece = array_splice ($bar, 1 ,1); print_r($piece); // [0] => b print_r($bar);// [0] => a [1] => c ?> http://www.php.net/manual/en/function.array-slice.php http://www.php.net/manual/en/function.unset.ph

Re: [PHP] Count columns in array

2001-02-15 Thread Philip Olson
Try this : $a: ' . sizeof($a);// 2 print ' $a[0] : ' . sizeof($a[0]); // 3 print ' $a[1] : ' . sizeof($a[1]); // 1 ?> Regards, Philip Olson http://www.cornado.com/ On Thu, 15 Feb 2001, Fabian Fabela wrote: > Hello, > > I have the array

Re: [PHP] php site, parse error

2001-02-15 Thread Philip Olson
lic and available, see : http://php.net/COPYRIGHT.txt Note the "source" button on every php.net page. 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: [EMAI

Re: [PHP] PHP Book Recommendations

2001-02-16 Thread Philip Olson
The most useful "second" book is : PHP Developers Cookbook It really is nice. I say "second" because it's geared towards those that understand a bit already but still, it'll even help the complete newbie (easy to read). Excellent tips, short-cuts, examples, etc. Includes uses of various

<    2   3   4   5   6   7