Re: [PHP] function for size of array

2002-07-05 Thread Philip Olson
It's a term with many different meanings. See: http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?RTFM On Fri, 5 Jul 2002, Scott Fletcher wrote: > What is RTFM?? > > "Jason Wong" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On Friday 05 July 2002 22:20

Re: [PHP] $_COOKIE

2002-07-05 Thread Philip Olson
For session id, use session_id() http://www.php.net/session_id Regards, Philip Olson On Fri, 5 Jul 2002, Scott Fletcher wrote: > Not a problem! I noticed the "PHPSESSID" only showed up on $_COOKIE and > nothing else. I dont' want to use the $_COOKIE, so I may

Re: [PHP] localhost - passing variables

2002-07-05 Thread Philip Olson
ter_globals = on print $id; It's preferred to not rely on register_globals = on. In fact, this directive is deprecated and may not work one day. As of PHP 4.2.0 this defaults to off in php.ini. See also: http://www.php.net/manual/en/language.variables.predefined.php http://www.php

Re: [PHP] ini_set() broken?

2002-07-07 Thread Philip Olson
set() docs are autogenerated and this issue is being looked into. The correct docs on this are now in phpdoc CVS and will show up soon. In short, don't attempt to set register_globals at runtime as explained by a few in this thread, it won't fully work as expected. Regards, Phil

Re: [PHP] php is not working with submit button

2002-07-08 Thread Philip Olson
it's been discussed a lot lately :) Regards, Philip Olson On Mon, 8 Jul 2002, Terry Cheung wrote: > Hi, > > I have just downloaded the latest source of apache, php, mod_ssl and > mysql to build them all together. It can show the php page and can connect > to the my

Re: [PHP] Variable not passing to second page

2002-07-08 Thread Philip Olson
Please don't repeat your questions, see the other post for details. In short, it has to do with register_globals directive in php.ini Regards, Philip Olson On Tue, 9 Jul 2002, Terry Cheung wrote: > I 've just setup the Apache 1.3.26 with PHP 4.2.1. When I use back the old

Re: [PHP] ini_set() broken?

2002-07-08 Thread Philip Olson
Hello Rasmus- How do you suggest ini_set() document these differences? Maybe the table at ini_set() could use another column, for descriptions and notes. Also, could you give a concise description for the differences between local and master values? Regards, Philip Olson On Mon, 8 Jul

[PHP] Re: Survey: MySQL vs PostgreSQL for PHP

2002-07-08 Thread Philip Hallstrom
On Fri, 5 Jul 2002, [iso-8859-1] João Paulo Vasconcellos wrote: > I don't feel that. I run a web site with a big deal of traffic, and in speed > and scalability, MySQL is better than PGSQL or Sybase. I know because I tryed > each one of these before getting to MySQL in definitive. Sybase is WAA

[PHP] Re: Survey: MySQL vs PostgreSQL for PHP

2002-07-08 Thread Philip Hallstrom
> PostgreSQL also has a number of things that it lacks when compared to MySQL. > For example, it does not support unsigned integers, which forces you to use > int8 to store timestamps, which will eventually reach 4.2 billion. In case Is there a reason you can't use the timestamp data type? It's

[PHP] Re: Survey: MySQL vs PostgreSQL for PHP

2002-07-08 Thread Philip Hallstrom
> > How many here feel PostgreSQL has surpassed MySQL as the better backend for > > PHP? This would be based on performance (speed, scalability, etc.) and > > features. > > I've been using MySQL/PHP for quite some time. Several months ago, I > wanted to port a project over to PostgreSQL. I foun

[PHP] Re: Best Content Management METHOD...

2002-07-08 Thread Philip Hallstrom
bsite (as per option 2). Or put squid into reverse-proxy/caching mode in front of your dynamic server and let it cache the pages for you... just another option. -philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] if statement

2002-07-08 Thread Philip Olson
your own useful code, from scratch. Read the manual section on arrays. Twice. And after awhile your brain will go crazy with ideas :) http://www.php.net/manual/en/language.types.array.php Regards, Philip Olson > MT> You can do this: > > MT> if ($type == "test1" || $

Re: [PHP] No server var array, why

2002-07-09 Thread Philip Olson
It could stem from the variables_order directive, if it lacks an E. Regards, Philip Olson On Tue, 9 Jul 2002, Analysis & Solutions wrote: > On Tue, Jul 09, 2002 at 07:34:13AM -0700, Todd Cary wrote: > > The version of PHP on one is 4.0.3pl1 and on the other it is 4.0.1pl2. >

RE: [PHP] $_REQUEST???

2002-07-09 Thread Philip Olson
gly and assume all request data is unsafe. The only "filter" I see here is how the data is seperated by type, ex. only GET is in $_GET. Regards, Philip Olson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Development Tools

2002-07-10 Thread Philip Hallstrom
Well, this will start a war, but vim is available for windows... take a bit of getting used to, but once you do it's awesome. and if you end up on a unix box that has it you don't have to relearn anything. -philip On Wed, 10 Jul 2002, Mark McCulligh wrote: > I am looki

[PHP] register_globals, the manual, and you.

2002-07-10 Thread Philip Olson
examples and various links. Regards, Philip Olson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Crash Course on PHP WORKS :: Registering Globals

2002-07-10 Thread Philip Olson
Please read: http://www.php.net/manual/en/language.variables.predefined.php Regards, Philip Olson On Wed, 10 Jul 2002, vins wrote: > OK if you are running php on apache and your form variables don't pass > through > fire up your editor and edit php.ini and turn "

Re: [PHP] varible in url question

2002-07-10 Thread Philip Olson
Please read this manual page, it has examples to suit your needs: http://www.php.net/manual/en/language.variables.external.php Regards, Philip Olson On Wed, 10 Jul 2002, sven vandamme wrote: > on my page (lessen.php) > > i have a variable $sort > > if this varible is empt

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Philip Olson
PHP 4 book that you have has a typo, there simply is no php_info(). Regards, Philip Olson On Wed, 10 Jul 2002, George Hester wrote: > Thanks that worked just fine. But now I am irritated as hell. Obviously there > is no backwards compatibility with new releases. Does this mean if

Re: [PHP] Character Array

2002-07-11 Thread Philip Olson
/manual/en/language.types.string.php Regards, Philip Olson On Thu, 11 Jul 2002, Michal Dvoracek wrote: > Hello, > > IMHO string is array of characters > > so is possible: > $str = 'string'; > for ($i = 0; $ < count($str); $i++) > echo $str[$i]; > > Regards, > M

[PHP] Re: Best String to Array Solution

2002-07-11 Thread Philip Hallstrom
take a look at explode() and split(). On Thu, 11 Jul 2002, Shane wrote: > Greetings, this may be simple, but it's late and my brain needs a hand. > > I have a string such as "first,second,third,fourth" > > I need a way to take each one of the items separated by the comma to be an item in >an ar

Re: [PHP] How do I get the name of the script?

2002-07-13 Thread Philip Olson
= off. Go through the predefined server array instead, it's sexier: print $_SERVER['PHP_SELF']; See also: http://www.php.net/manual/en/reserved.variables.php Regards, Philip Olson On Sat, 13 Jul 2002, David Duong wrote: > Is their a function that returns an equivalent of $PH

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Philip Olson
Please read this: http://www.php.net/manual/en/language.variables.external.php Regards, Philip Olson On Sun, 14 Jul 2002, Mike Heffner wrote: > Hi, > > I've recently upgraded from PHP 4.0.4p11 -> PHP 4.2.1, but now there seems > to be a problem that variables from PO

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Philip Olson
pecifically: http://www.php.net/manual/en/language.variables.external.php Regards, Philip Olson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP & HASP

2002-07-18 Thread Christine &amp; Philip
I am planning to setup a web server of using RedHat Linux. The purpose of the web server is to provide product information for only registered customers. I plan to send the HASP parallel port keylock to the registered customers. Can I use PHP to monitor the status HASP parallel port keylock in the

[PHP] Question on references and writing a PHP extension..

2003-10-17 Thread Philip Hallstrom
In my extension do I need to use a zval for my argument in order to change it's value? That seems to be the only way, but I'm not sure. If not, got a code snippet? Thanks! -philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] time() & daylight savings

2003-11-02 Thread philip lehmann
ybody know how php handles daylight saving issues ? again: the windows client does work under all conditions, except it accesses php created appointments. thanks philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for Spam free php form

2003-11-17 Thread Philip Olson
you use the names, and unique ids, and the backend will get the email addresses from the ids. This way they choose names to send to but don't see the email addresses. Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Running PHP for different virtual domains on different Apaches

2003-11-21 Thread Philip Mak
Something that I wrote recently that I thought may be of general interest for system administrators running PHP: The web server runs on port 80, with the priviledges of the username "apache". On most webhosts that support PHP, this web server executes the PHP scripts. The PHP scripts would thus al

[PHP] Migrating from SSI and Perl

2003-12-26 Thread Philip Pawley
I am new to php. My site, at the moment, uses SSI to call a Perl browser-sniffing script. I would like to: 1. use php to call the Perl script. 2. then save the values the Perl script outputs as php variables. Can this be done? If so, how? Thanks, Philip Pawley -- PHP General Mailing List

RE: [PHP] Migrating from SSI and Perl

2003-12-26 Thread Philip Pawley
Hi Radek, I tried to do something with this and failed dismally. Is it possible for you to give me a really basic working example of what you suggest? Thanks, Philip Pawley At 26/12/03 12:29 -0500, you wrote: >Check out shell_exec() and its siblings. I'd likely use it like so

RE: [PHP] Migrating from SSI and Perl

2003-12-29 Thread Philip Pawley
arr[6]; The echo commands get me back the script's output, but am I passing $BRPHP to the perl script this way? (If the answer is "yes" then I can ask the folks at perl.org how to pick it up in the perl script). Thanks, Philip Pawley At 26/12/03 12:29 -0500, you wrote: >Check ou

RE: [PHP] Migrating from SSI and Perl

2003-12-30 Thread Philip Pawley
uld I do instead? 3. If yes, how can I access it from the perl script? (Yes, I know the last question is a perl question, so I'll be happy to just get an answer to the first two). Thanks, Philip Pawley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Missing Array Key with apache_request_headers()

2004-01-14 Thread Philip Pawley
-- As you can see, in both cases, all the request headers shown by the Proxomitron are also in the array - with the exception, for IE6, of the "If-None-Match" header. Thanks in advance for your responses, Philip Pawley -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Philip Olson
r. 18 hours a day? in the end, what's $20? $200? homesite is about $90. oh btw, i use homesite and vim , and vim is free! :) philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] cgi--remove X-Powered-By and Content-type

2001-01-10 Thread Philip Olson
Add a -q #!/usr/local/bin/php -q To suppress them. Philip Olson http://www.cornado.com/ On Wed, 10 Jan 2001, Tom Harris wrote: > I'm sure this is an easy question (I'm just too dumb to figure it out). > > When I run a php script from the shell it always outputs

RE: [PHP] looking for a PHP editor

2001-01-10 Thread Philip Olson
Agreed on the annoying homesite bugs, like with FTP. UltraEdit is nice too, haven't spent enough time with it. Now only if a php-tidy existed ... Philip On Wed, 10 Jan 2001, Cynic wrote: > agreed, 4.5.2 still contains pretty old bugs. > UltraEdit is bugfree (at least I haven&#x

RE: [PHP] How can I get a random number

2001-01-10 Thread Philip Olson
DO want a random result. The trick is getting the camera to read the ping pong ball, read the manual on that. Some have inserted transmitters within the balls but that creates needless costs so it's not suggested. philip On Wed, 10 Jan 2001, Cal Evans wrote: > Put a web cam on it and

RE: [PHP] How can I get a random number

2001-01-10 Thread Philip Olson
Good idea! I hear MIR is for sale. This could make a good PHP random function, one that always works! Let's pool our resources and get on it. Great thing is, no need for these mysterious seeds. philip On Wed, 10 Jan 2001, Jerry Lake wrote: > We may as we set it up in sp

Re: [PHP] Connect with user and pwd from PHP to MySql !!!

2001-01-11 Thread Philip Olson
Try : MySQL Administration : http://devshed.com/Server_Side/MySQL/Administration/ Philip On Thu, 11 Jan 2001, Yoeri De Bruyn wrote: > Hi, > > I've been looking on the cool web, b

Re: [PHP] Running java under php4 (PHP4 ext/java)

2001-01-11 Thread Philip Olson
e_base/view.phtml/aid/7137/fid/51 Regards, Philip -- 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] BIG site names using PHP?

2001-01-11 Thread Philip Olson
Try : http://php.net/sites.php Philip p.s. all my sites use php but they aren't very big. On Thu, 11 Jan 2001, Monte Ohrt wrote: > Can anyone give me a list of big named sites (or point me to a list) > that use PHP? > Basically, site names that marketers can recognize as &

Re: [PHP] returning an array

2001-01-11 Thread Philip Olson
// That will print them all. Now, let's say you wanted : // $a = 33 , $b = 99 and $c = 383 // Then do this : extract($array); // This will print 33 print $a; ?> Of course this does not explain everything about arrays but I think it refers to your question. Regards, P

[PHP]

2001-01-11 Thread Philip Olson
hi! when was 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 a session is on php?

2001-01-11 Thread Philip Olson
Try this : I'm new to sessions and cookies , where should I start? --- http://www.faqts.com/knowledge_base/view.phtml/aid/6621/fid/594 It refers to a few tutorials and information. Philip On Thu, 11 Jan

Re: [PHP] Replace a space with _

2001-01-11 Thread Philip Olson
Also consider : $filezip_name = str_replace(' ', '_', $filezip_name); http://php.net/manual/function.str-replace.php It will be faster. Philip On Thu, 11 Jan 2001, Chris Lee wrote: > just add this somewhere near the top. > > $filezip_name = ereg_re

Re: [PHP]

2001-01-11 Thread Philip Olson
ion in "basic syntax" too. philip p.s. I will never use Manual suggests 3.0.3, but I can't find any proof of it in > the changelogs... > --Toby > - Original Message - > From: "Richard Lynch" <[EMAIL PROTECTED]> > To: <[EMAIL

Re: [PHP] :: MySql and PHP Book

2001-01-11 Thread Philip Olson
Hey Ray, I would suggest looking for books on SQL. I have one (and want more!), it is called "the practical sql handbook" and it's nice. Seems every PHP book deals with MySQL directly too. Anyway, my thought on the matter is go generic, go SQL. Philip On Thu, 11 Jan 200

Re: [PHP] Dir Help PLEASE

2001-01-11 Thread Philip Olson
post is getting HUGE. Good luck! Philip be outside the box. -- 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] mixing HTML and PHP code

2001-01-12 Thread Philip Olson
s. Learn the standards first! Then you may be free to roam about the isles. Go here, be sure to sift through the user comments : Best Practices: PHP Coding Style : http://phpbuilder.com/columns/tim20010101.php3 Smart Architectures in PHP : http://phpbuilder.com/colu

Re: [PHP] upload _ safe_mode

2001-01-12 Thread Philip Olson
/uploads/$file_name") or die ("could not copy file $file_name"); Something like that. The above is the users uid which can be echo'd in shell like this : echo $UID Regards, Philip Olson http://www.cornado.com/ be outside the box. On Fri, 12 Jan 2001,

Re: [PHP] Simple form not passing variables, Why??

2001-01-13 Thread Philip Olson
en/configuration.php#ini.register-globals Philip Olson http://www.cornado.com/ On Sat, 13 Jan 2001, Christian Reiniger wrote: > On Saturday 13 January 2001 00:36, jeff fitzmyers wrote: > > > The code below does not work. What could be causing > > > Please enter user name her

Re: [PHP] How to make a line and bar graph

2001-01-13 Thread Philip Hallstrom
You might check out: http://www.advgraph.regiocom.net/ In article <[EMAIL PROTECTED]> you write: >Hi, > >I want to let PHP create/render a line and bar graph from inputted numbers. >I now all the PHP basics but I don't know how to let PHP make the graphs >from the variables. > >Can anyone point m

Re: [PHP] Use

2001-01-13 Thread Philip Olson
My understanding is : 1. http://www.php.net/manual/language.basic-syntax.php http://www.php.net/manual/en/configuration.php#ini.asp-tags http://www.php.net/manual/en/configuration.php#ini.short-open-tag I've personally never tried asp tags. Earlier within this thread , the following php interna

Re: [PHP] Quotes

2001-01-14 Thread Philip Olson
$foo which will put it into the database nicely. If you have magic_quotes_gpc on then this should be automatic (see manual for when). Philip On Sun, 14 Jan 2001, rodrigo wrote: > I recently came across this problem and I am sure that there is a quick > fix for it. I need a solution

Re: [PHP] Use

2001-01-14 Thread Philip Olson
dio, Inc. > http://www.turingstudio.com > > vox+510.666.0074 > fax+510.666.0093 > > Saul Zaentz Film Center > 2600 Tenth St Suite 433 > Berkeley, CA 94710-2522 > > > > > > From: [EMAIL PROTECTED] (Philip Olson) > > Newsgroups: php.general >

RE: [PHP] tie string value together

2001-01-14 Thread Philip Olson
son, Concatenation. Regards, Philip Olson http://www.cornado.com/ be outside the box. On Mon, 15 Jan 2001, Jason Murray wrote: > > This may sound too easy to ask but I want ot make sure if I'm correct. I > > have a form

Re: [PHP] hello

2001-01-15 Thread Philip Olson
that all will be good. This now concludes this post, good luck! Philip -- Philip Olson http://www.cornado.com/ On Mon, 15 Jan 2001, SuiteNet Operations Manager wrote: > I was wondering what Im sure a well knowledged php expert like your self > would recommend a hands on php crash cours

Re: [PHP] Running a php script at a giveb time

2001-01-15 Thread Philip Olson
search : http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=cron&q=b Good luck! -- Philip Olson http://www.cornado.com/ On Tue, 16 Jan 2001, Shimon Dekel wrote: > Hi, > I need to run a PHP script or a PHP page, few times every morning, say > 10 times between 7am and 8am e

Re: [PHP] Populating table rows

2001-01-16 Thread Philip Olson
- $SkyDateResult \n"; } consider changing variable names $sqlCurrentTraces to $result and $result to something like $row and it may make more sense. or at the very least, be more "standard" also, SkyDateAss struck me as funny. Philip On Tue, 16 Jan 2001, Wade Halsey wrote: > Hi

Re: [PHP] Fw: what is wrong with this sniplet? oops! forgot to closetag

2001-01-16 Thread Philip Olson
Hi Jack, Firstly, this is an HTML issue. You can lose the ; and I'd run your page through a validator, such as : http://validator.w3.org/ It must be a table issue or something. For example, when isolated this works just fine : "); print(""); print("");

Re: [PHP] Version Difference

2001-01-16 Thread Philip Olson
one form or another - this > is only the latest of my worries - and I'm sure there are more quote > related issues to come :O) oh my, should have asked earlier! ;-) regards, philip > > Gareth Davies > Progressive Business Services Ltd > > +44 (0) 1274 889592 O

Re: [PHP]

2001-01-17 Thread Philip Olson
> Short open tags won't work with xml. Therefore they won't work with > xhtml. They conflict with where the Web is going. Aha! Yet another reason not to use Ye 2001-01-17 13:54 -0500, Toby Butzon skribis: > > > > > Is PHP the implied script, so that it is okay to begin PHP code like > > thi

Re: [PHP] identifying clicked link?

2001-01-17 Thread Philip Olson
om/zend/tut/using-strings.php For various forms of syntax with strings. Philip On Wed, 17 Jan 2001, andrew wrote: > How can I pass an anchor tag attribute to a page? > e.g. If I want to echo "1" on page_two: > > > page_one.php contains: > > click > > &

Re: [PHP] Merging PHPLIB into PEAR

2001-01-17 Thread Philip Olson
A discussion can be seen here : http://marc.theaimsgroup.com/?l=php-pear&m=97975277420628&w=2 Where the pearPosse have been and are discussing the issue. Looks interesting. Philip On Thu, 18 Jan 2001, [EMAIL PROTECTED] wrote: > On Wed, 17 Jan 2001, Alex Black wrote: >

Re: [PHP] Print vs. Echo

2001-01-18 Thread Philip Olson
Have a look here : What is the difference between echo and print?: --- http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41 Philip On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote: > What is the ba

Re: [PHP] Variable Scope

2001-01-18 Thread Philip Olson
A nice explanation, via the mind of Lars Torben Wilson, exists here : http://marc.theaimsgroup.com/?l=php-general&m=97717398101040&w=2 Also, you may want to check out : http://www.php.net/manual/en/language.constants.php http://www.php.net/manual/en/function.define.php Ph

Re: [PHP] Variable Scope

2001-01-18 Thread Philip Olson
How about allowing for metaPasses within the castle? Am sure this topic came up, what's the conclusion? Philip On Thu, 18 Jan 2001, Rasmus Lerdorf wrote: > > I'm a bit troubled with the fact that variables declared at the top of your > > script are not then global to

Re: [PHP] How to participate from the digest?

2001-01-18 Thread Philip Olson
Just send an email with with the subject in it, from anywhere. If replying, put the Re: in it. Anybody can write to the list. Philip On Thu, 18 Jan 2001 [EMAIL PROTECTED] wrote: > Because of the high level of activity of this list, I receive the digest. > When I see items of inte

Re: [PHP] Quotes and Values

2001-01-18 Thread Philip Olson
27;; $a = ""; Which will make more sense after reading (and printing out) the above tutorial. As well as : PHP Manual : Strings : -- http://www.php.net/manual/en/language.types.string.

[PHP] PHP site on CD-ROM

2001-01-18 Thread Philip Apostol
database and access it via javascript but have no much time to study on this. If php can be run on the cd-rom, that would be a better solution. But any solution you posted here will be highly appreciated. Thanks in advance. Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] "but what if.." Function / String Problem

2001-01-19 Thread Philip Olson
This tutorial will help you guys understand the differences : http://www.zend.com/zend/tut/using-strings.php philip On Fri, 19 Jan 2001, Shawn Blaylock wrote: > Yep. I think the only difference is the way it handles variable > interpolation, but I'm not entirely sure

Re: [PHP] What's wrong with this link?

2001-01-20 Thread Philip Olson
Mike, Read and print this out : http://www.zend.com/zend/tut/using-strings.php It will increase your happiness. Philip On Sat, 20 Jan 2001, Mike Yuen wrote: > I realize my slashes are most likely in the wrong spot and i'm new to this > PHP stuff so a little help would be appr

Re: [PHP] php.ini

2001-01-23 Thread Philip Olson
Or : Six lines down we see : Configuration File (php.ini) Path Which shows the path to php.ini Philip On Tue, 23 Jan 2001, Alex Black wrote: > locate php.ini > > in windoze, the windows key+f, type in php.ini > > _a > > > -- > Alex

Re: [PHP] problem with \n

2001-01-23 Thread Philip Olson
How are you using it (code snip) and what is it not doing for you? Philip On Wed, 24 Jan 2001, Roman wrote: > I have PHP 4.0.4 version but i have problem with this escape command : \n : > don't > work. what's the problem another escape command work with no problems... &g

RE: [PHP] problem with \n

2001-01-24 Thread Philip Olson
as in email messages. Philip On Wed, 24 Jan 2001, Roman wrote: > for example echo "text1 \n"; > echo "text2 "; > and result is text1text2 > > > -Original Message- > From: Philip Olson [mailto:[EMAIL PROTECTED]] > Sent: Wednesda

Re: [PHP] Loop Through all Querystring Variables

2001-01-24 Thread Philip Olson
them will quickly show you what is passing. I recommend surrounding those "debugging functions" with as it creates a much prettier output to browser. But I digress. Oh, phpinfo() will tell you which predefined variables you get to play with as each server is setup differently. Regard

php-general@lists.php.net

2001-01-24 Thread Philip Olson
Using Strings: -- http://www.zend.com/zend/tut/using-strings.php print it out too, seriously, it's helpful and should be referred to on occasion. regards, -- philip olson htt

Re: [PHP] Search for the documentation

2001-01-24 Thread Philip Olson
it is so useful, add a mailing list search too via instructions under that tips.php page, i have this : alias : ml url : http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=%s that will make more sense after reading tips page. adding little search aliases to the br

Re: [PHP] setting register_globals off

2001-01-25 Thread Philip Olson
certainly falls into that category. Regards, be outside the box. Philip Olson http://www.cornado.com/ On Thu, 25 Jan 2001, Catalin Borcea wrote: > Can I set &quo

Re: [PHP] Enabling track_vars.

2001-01-25 Thread Philip Olson
t would be : php_flag track_vars 0 Regards, be outside the box. Philip Olson http://www.cornado.com/ On Thu, 25 Jan 2001, April wrote: > Is it possible to enable track_vars from a .htaccess doc, and does anyone > have a link to a good basic (as in, i

Re: [PHP] Search for the documentation

2001-01-26 Thread Philip Olson
t interpets it all together as one CurWord. Is there a way around this? Like creating an alphanumeric form of "CurWord" ? Hmm. Anyway, this is pretty cool and should be exploited by all editplus users. At some point everyone should look into doing this for other editors too. Regards,

Re: [PHP] Echo and Print

2001-01-26 Thread Philip Olson
What is the difference between echo and print ? --- http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41 Philip On 26 xxx -1 [EMAIL PROTECTED] wrote: > I know it is a kind of stupid question but I was trying to fig

Re: [PHP] Echo and Print

2001-01-26 Thread Philip Olson
up','yo'; print 'sup','yo'; // Parse error! But that FAQ explains it better then I can so ... Philip > >On 26 xxx -1 [EMAIL PROTECTED] wrote: > > > > > I know it is a kind of stupid question but I was trying to figure out > > > the d

Re: [PHP] how to rename a database

2001-01-26 Thread Philip Olson
Here's a FAQ on renaming a mysql database : http://www.faqts.com/knowledge_base/view.phtml/aid/1262/fid/102 If anyone has useful words to add to it then do so. Philip > Fang Li wrote: > > > > Does anyone know how to rename a database in MySQL? > > Thanks! > &g

Re: [PHP] rand(), mt_rand(), and my inability to make either of themrandom.

2001-01-26 Thread Philip Olson
() is essentially useless. Examples exist in the above, check out the user comments. Philip On Fri, 26 Jan 2001, April wrote: > I have this scriptlet: > > $items = 6; > $randnum = rand(1,$items); > echo $randnum . ""; > > Always, no matter how many times I h

Re: [PHP] PHP Library for currency conversions

2001-01-26 Thread Philip Olson
he author about it. At somepoint it will live here : http://viewcvs.php.net/viewcvs.cgi/php4/pear/Numbers/ Philip On Fri, 26 Jan 2001, Boget, Chris wrote: > We need something to where we can poll a service and > pull the exchange rates for various currencies against > the dollar to our dat

Re: [PHP] Detect if Header has been written

2001-01-26 Thread Philip Olson
Karl, This may work for you : http://www.php.net/manual/en/function.headers-sent.php Philip On Fri, 26 Jan 2001, Karl J. Stubsjoen wrote: > How can I check if Headers have been written to the browser? > > Thank You! > > > -- > PHP General Mailing List (http

RE: [PHP] phpinfo ?

2001-01-26 Thread Philip Olson
sure :) Return can be read about here : http://www.php.net/manual/en/functions.returning-values.php Regarding the semi-colon discussion within this thread, it is not required to make this work, see : http://php.net/manual/en/language.basic-syntax.instruction-separation.php Regards, Philip On F

Re: [PHP] isset()

2001-02-22 Thread Philip Olson
currently "false" is being treated as a string) but another way to do this is like : // if not set then ... if ( !isset($AgeChild) ) { $AgeChild = 'NA'; } Regards, Philip Olson http://www.cornado.com > The resule is that it always displays NA whether or not it

Re: [PHP] Troubleshooting Strange Problem

2001-02-22 Thread Philip Olson
account while another does not. See : http://www.php.net/manual/en/configuration.php#ini.register-globals This setting can be seen through phpinfo(). Regards, Philip Olson http://www.cornado.com/ On Thu, 22 Feb 2001, Ben Ocean wrote: > Hi, > I moved my server, changed the IP add

Re: [PHP] books

2001-02-22 Thread Philip Olson
"PHP Developers Cookbook" is my favorite, it and many others are listed here : http://www.php.net/books.php The WROX books are popular. Also, check out the archives for previous discussions : http://marc.theaimsgroup.com/?l=php-general&r=1&w=2&q=b&s=boo

Re: [PHP] concatenate vars?

2001-02-22 Thread Philip Olson
following will work : $var_a = 'the'; $var_b = 'dog'; $from = $var_a . $var_b; // thedog $from = $var_a . ' big ' . $var_b; // the big dog Regards, Philip Olson http://www.cornado.com/ -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Explode a variable into each character

2001-02-23 Thread Philip Olson
t;work" and it'll need to be juggled as a string first, see : http://www.php.net/manual/en/language.types.type-juggling.php Also, if you want to create an array and not do the above then check out the following, an example exists to do this : http://www.php.net/manual/en/functio

Re: [PHP] string question

2001-02-23 Thread Philip Olson
Use number_format() : http://www.php.net/manual/en/function.number-format.php echo number_format($number); Other options exist with this function, it's pretty useful. Regards Philip Olson http://www.cornado.com/ On Fri, 23 Feb 2001 [EMAIL PROTECTED] wrote: > I have

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Philip Olson
ed to write out columns and values (easier to make sense of). Regards, Philip Olson http://www.cornado.com/ > > > ---BEGIN--- > $time = time(); >$rand = Random_Password(5); >$docid = $time . $rand; > > if (isset($email) && isset($docid)) { >

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Philip Olson
for id and it'll auto increment nicely. Using a blank '' will work too. Regarding use of NULL, it's NULL and not 'NULL'. Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: [PHP] Temporarily turning off magic quotes?

2001-02-25 Thread Philip Olson
ng this setting, as per the example provided by Zeev. 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]

Re: [PHP] incrementing a date!

2001-02-25 Thread Philip Olson
7;, $date); $timestamp = mktime(0,0,0, $month, $day, $year); $secs = ($days * 86400); return date($format,$timestamp+$secs); } Regards, Philip Olson http://www.cornado.com/ On Sun, 25 Feb 2001, kaab kaoutar wrote: > Hi all! > s there a way with which we can increment a

[PHP] Problems with PHP4 CGI binary

2001-02-28 Thread Philip Reynolds
Hi, I'm having problems with the PHP CGI binary (version 4.0.4pl1). The bug is basically the bug reported here: http://bugs.php.net/bugs.php?id=8506 It's exactly the same problem, replicated, now we need the CGI binary version working, not only does this look very unprofessional on the sites, bu

<    1   2   3   4   5   6   7   8   9   10   >