Re: [PHP] URL for Powered by PHP gif

2002-04-19 Thread Jason Wong
phpinfo(). -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* No, no, I don't mind being called the smartest man in the world. I just wish it wasn't this one. -- Adrian

Re: [PHP] Attachments

2002-04-19 Thread Jason Wong
a max_file_size thing I need to mess with? If you're using GET in your form(s) change it to POST. Also, please do not reply to an existing thread and change the subject. This messes up the threading for those of us who use an intelligent mail client. Start your own thread. -- Jason Wong - Gremlins

Re: [PHP] Getting All Variables?

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 07:23, Devin Atencio wrote: Is there an easy way in PHP to have it display to screen all the variables that it has in memory? So i can see what variables there is and what they are set to? print_r($GLOBALS); -- Jason Wong - Gremlins Associates

Re: [PHP] Empty $_SESSION and $_POST ??

2002-04-19 Thread Jason Wong
throughout all scripts. Use: print_r($GLOBALS); to see what variables you have. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Dr. Jekyll had something to Hyde

Re: [PHP] redirect browser

2002-04-19 Thread Jason Wong
this. Can anyone tell me what's wrong of my code? You cannot have anything between the beginning of the file and your ?php tag. Not even whitespace (spaces, tabs, newlines etc). -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

Re: [PHP] some problems about gd in php

2002-04-19 Thread Jason Wong
, then configure/make/install. ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.24 --enable-track-vars --with-gd=../gd-1.8.4 --with-png-dir=../libpng --with-zlib-dir=../zlib Also, what is inside these directories? ../gd-1.8.4 ../libpng ../zlib -- Jason Wong - Gremlins

Re: [PHP] header redirection

2002-04-19 Thread Jason Wong
. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Spiritual leadership should remain spiritual leadership and the temporal power should not become too important in any church

Re: [PHP] redirect browser

2002-04-20 Thread Jason Wong
of the file and your ?php tag. Not even whitespace (spaces, tabs, newlines etc). Check all your include() files as well for any stray space. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Attachments

2002-04-20 Thread Jason Wong
? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Refreshed by a brief blackout, I got to my feet and went next door. -- Martin Amis, _Money_ */ -- PHP General Mailing List

Re: [PHP] Simple IF question

2002-04-20 Thread Jason Wong
(Sorry, please select a value in the salutation box); } else { ... } -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Men often believe -- or pretend -- that the Law

Re: [PHP] Simple IF question

2002-04-20 Thread Jason Wong
On Sunday 21 April 2002 00:27, Denis L. Menezes wrote: Thanks Gentlemen. After many experiments, I found the answer. It should be = = and not =. Surely you mean ==, which more than one person has already pointed out? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source

Re: [PHP] $PHP_SELF empty when using Xitami Web Server

2002-04-20 Thread Jason Wong
On Sunday 21 April 2002 00:51, Ben Edwards wrote: The variable $PHP_SELF seems to be blank, I am using PHP 4.1.2 and Xitami 2.4d9 which are both the latest version. Has anyone else had this problem and do they know how to fix it? use: print_r($GLOBALS) to verify. -- Jason Wong

Re: [PHP] Checking database for a value

2002-04-20 Thread Jason Wong
you can wrap it up in a function. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I'm reporting for duty as a modern person. I want to do the Latin Hustle now! */ -- PHP

Re: [PHP] Checking database for a value

2002-04-20 Thread Jason Wong
On Sunday 21 April 2002 01:10, Jason Wong wrote: On Sunday 21 April 2002 00:55, Denis L. Menezes wrote: hello friends, I am looking into 4 books in front of me but somehow cannot find the following : I have a field userid which the user fills in at registration. Before entering

Re: [PHP] Better standards in PHP-coding

2002-04-21 Thread Jason Wong
On Sunday 21 April 2002 11:26, The_RadiX wrote: Hard in email to show as the character spacing is not equal like good text editors.. Set your mail client to use a fixed width font -- Lucida Console is my preferred font. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open

Re: [PHP] Attachments

2002-04-21 Thread Jason Wong
? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* EVACUATION ROUTE */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable substitution

2002-04-21 Thread Jason Wong
options include eval(), substr_replace(), str_replace(). -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Make me look like LINDA RONSTADT again!! */ -- PHP General Mailing

Re: [PHP] Attachments

2002-04-21 Thread Jason Wong
, if the filesize is OK then the problem is further down the line (probably the mail code). -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* f u cn rd ths, itn tyg h myxbl cd

Re: [PHP] Better standards in PHP-coding

2002-04-21 Thread Jason Wong
and to delete the appropriate number of spaces when backspacing :) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Logic is the chastity belt of the mind! */ -- PHP General Mailing

Re: [PHP] some problems about gd in php

2002-04-21 Thread Jason Wong
On Monday 22 April 2002 10:54, zhaoxd wrote: Thank you all,I have solved the problem. What fixed the problem then? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] [HELP] redirect browser pass variable !

2002-04-21 Thread Jason Wong
browser at same time? The easiest way is to pass the variables along with the url: header(Location: http://www.XXX.edu/index.php?var1=doovar2=dah; -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] some problems about gd in php

2002-04-21 Thread Jason Wong
. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* One family builds a wall, two families enjoy it. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Attachments

2002-04-22 Thread Jason Wong
(ie the files) gets encoded to base64. Have I missed something? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Who are you? */ -- PHP General Mailing List (http

Re: [PHP] Re: Open Download-Box

2002-04-22 Thread Jason Wong
tell it to do, and regardless of whether or not it has the plugin to display such a file. It's a bug which seems to have been fixed, then broken, then fixed, then broken, ...! -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] security

2002-04-22 Thread Jason Wong
in some depth within the last month or so. Searching the archives for credit card should yield some results. You may also want to search the php-db archives as well. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Can't Load Data into Mysql Using LOAD DATA

2002-04-24 Thread Jason Wong
happen here? Dunno. Maybe you posted to the wrong list. The mysql list is what you want. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Nezvannyi gost'--khuzhe tatarina

Re: [PHP] problem compiling Apche 2.0.35 and PHP 4.2.0

2002-04-24 Thread Jason Wong
=[insert dir from above]' failed on the first If you want php's built-in mysql support just use: --with-mysql Otherwise: --with-mysql=/usr -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] Once more: [PHP] Array indices - PLEASE HELP!!

2002-04-24 Thread Jason Wong
looked at different sort functions etc, but I'd rather not do a sort to the array. The code is for random selection with reduction of the sample set (i.e. with withdrawal). just run your array through a foreach loop assigning each key-value pair to a new array. -- Jason Wong - Gremlins

Re: [PHP] html mail

2002-04-24 Thread Jason Wong
html code? Because standard email wasn't designed for html mail. If you did what you suggest above then the recipient of your mail would just see your html code. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Home Finance System / Bill Splitter

2002-04-24 Thread Jason Wong
systems that came close to the functionality I'm after - that I could tweak. And it's even stranger that someone *has* come up with such a thing :) I think I saw it on freshmeat.net. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

Re: [PHP] code with comments is here

2002-04-24 Thread Jason Wong
number of characters per line, let's say 80 characters, and then cycle through the remaining parts of the array to reconstruct the string in the same manner. Have you tried the wordwrap() function? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators

Re: [PHP] passing array as hidden field

2002-04-24 Thread Jason Wong
='layer[]' value='$lay'; } -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Old age is always fifteen years old than I am. -- B. Baruch */ -- PHP General

Re: [PHP] passing array as hidden field

2002-04-24 Thread Jason Wong
) { echo input type='hidden' name='layer[]' value=$lay; } I would always quote the value: value='xxx' or value=xxx a) because the HTML spec requires it? b) if value contains a space it ain't going to work -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software

Re: [PHP] newbie: string manipulation

2002-04-24 Thread Jason Wong
On Thursday 25 April 2002 04:04, ROBERT MCPEAK wrote: I need code that grabs the file at the end of a file path. I have this: /usr/blah/doh/yuck/wow/abigfile.html And would like to return this: abigfile.html Manual Filesystem functions -- Jason Wong - Gremlins Associates

Re: [PHP] Why is imageTTFtext function useless?

2002-04-24 Thread Jason Wong
); //create png picture imagepng($pic); //release the memory occupied by the picture imagedestroy($pic); ? I tried this and it works. However the font I used didn't have those chr(0xE8), etc defined so I can only see www.ccidnet.com. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk

Re: [PHP] Parse Error - Help?

2002-04-24 Thread Jason Wong
closing brace? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Semper Fi, dude. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Getting page with fopen

2002-04-25 Thread Jason Wong
? Warning: No error is not much information... Google is probably trying to send you a cookie in which case you cannot use fopen. You need to use curl or snoopy(?). -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Sorry, this is relate to subscription problem but cant solve it

2002-04-25 Thread Jason Wong
On Thursday 25 April 2002 18:13, M VM wrote: Hello, sorry this off-topic msg but I don't know how to solve subscription problem to this list. Due yahoo email changes (no more pop services), I am trying to subscribe this list using alternate email address ([EMAIL PROTECTED]) but receive

Re: [PHP] Unlucky Situation Involving CURL

2002-04-25 Thread Jason Wong
On Thursday 25 April 2002 17:23, Jason wrote: I'm developing a website that has the unlucky situation of being situated on a host that does not have CURL installed on it. [snip] Does anybody know of a way of doing this without using CURL? Try snoopy. -- Jason Wong - Gremlins Associates

Re: [PHP] Structuring script execution

2002-04-25 Thread Jason Wong
(). Or search archives for headers already sent. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I am not now, nor have I ever been, a member of the demigodic party

Re: [PHP] how to make array_search start from 0?

2002-04-25 Thread Jason Wong
) $key = $my_array['search_item']; -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Conversion, fastidious Goddess, loves blood better than brick, and feasts most subtly

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Jason Wong
javascript? Thanks, How is the array reordered? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Maturity is only a short break in adolescence. -- Jules Feiffer

Re: [PHP] Mail responders

2002-04-26 Thread Jason Wong
. What are you actually trying to do? If you're trying to make a mailing-list type program then you're better off using an existing mailing list program. Otherwise with sendmail you can use procmail. It's clunky but doable. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source

Re: [PHP] passing vars. betn. php and javascript

2002-04-26 Thread Jason Wong
to it from php :) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* The profession of book writing makes horse racing seem like a solid, stable business. -- John

Re: [PHP] web application development question

2002-04-26 Thread Jason Wong
, as it does not really relate to anything? Stick it in an include file? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* WYSIWYG: What You See Is What You Get

Re: [PHP] Re: Redirecting

2002-04-26 Thread Jason Wong
On Saturday 27 April 2002 12:00, Julio Nobrega wrote: Send head()ers before any html output (including spaces or newlines before ?php) IOW RTFM! -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] date format

2002-04-27 Thread Jason Wong
functions. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Remember kids, if there's a loaded gun in the room, be sure that you're the one holding it -- Captain Combat

Re: [PHP] Apache: SERVER_NAME gone?

2002-04-27 Thread Jason Wong
like I always have.. The variable seems to no longer exist... what gives?? Use phpinfo() to find out what system/pre-defined variables are available. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Re: Redirecting

2002-04-27 Thread Jason Wong
On Monday 22 January 2001 14:31, The_RadiX wrote: IOW ?? what's this abbrev? in other words -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I hold it, that a little

Re: [PHP] PHP is making errors for no apparents reason..?

2002-04-27 Thread Jason Wong
: Parse error: parse error in /usr/home/iro/numripps.php on line 13 Instead of making us count (I've only got ten fingers, I'm wearing shoes and I can't see my toes), tell us which is line 13. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web

Re: [PHP] Directory System Splitter

2002-04-27 Thread Jason Wong
want to know *how* to do it? Use phpinfo() to see what predefined vars you can use to get your document path. Then probably use explode() to get the individual components of the path. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

Re: [PHP] Stop to fast caching/parsing

2002-04-27 Thread Jason Wong
sees it but gets an error by JS. Is there any way to stop parsing PHP before flushing out required headers? Can't you change the order of your code so that it validates the session before doing anything else? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re: [PHP] PayPal: Instant Payment Notification

2002-04-27 Thread Jason Wong
! Paypal provides some scripts which looks self-explanatory. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Never leave anything to chance; make sure all your crimes

Re: [PHP] Stop to fast caching/parsing

2002-04-27 Thread Jason Wong
On Saturday 27 April 2002 23:57, Jan Peuker wrote: But I WANT to do something else, loading other code! But ok, I will check at first, then include a short header before dying. This runs, but isn't beautiful. Thanks. If you want (hopefully) better suggestions, post your code. -- Jason Wong

Re: [PHP] simplify if/then statement

2002-04-27 Thread Jason Wong
) { Take a look at the switch construct. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Parsley is gharsley. -- Ogden Nash */ -- PHP General Mailing

Re: [PHP] Re: tutorial on global variables

2002-04-27 Thread Jason Wong
calling global all the time you might consider this approach: $GLOBALS[foo] = 123; $foo = 123; # No need to use the $GLOBALS array when outside of a function function something() { echo $GLOBALS[foo]; } -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software

Re: [PHP] Apache: SERVER_NAME gone?

2002-04-27 Thread Jason Wong
thing though.. I use PHP4.1.1... not 4.2.x Read the changelog (or history). A lot of default behaviour has changed starting from 4.1.X. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] NameVirtualHost breaks PHP

2002-04-28 Thread Jason Wong
should first upgrade to something modern (1.3.X or the 2.0.X series). -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Chicken Little was right. */ -- PHP General Mailing

Re: RE: [PHP] Wrapping Text

2002-04-28 Thread Jason Wong
of that 'word'. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* There's no easy quick way out, we're gonna have to live through our whole lives, win, lose, or draw

Re: [PHP] date problem

2002-04-28 Thread Jason Wong
know about that mysql function... Can we say, RTFM :) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Everything is possible. Pass the word. -- Rita Mae Brown

Re: [PHP] failed query results

2002-04-28 Thread Jason Wong
(was more expecting something along the lines of NULL). Have a look at the examples in the php manual and learn how to incorporate error checking in your code. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] redirection

2002-04-28 Thread Jason Wong
robust mechanism, such as sessions, for allowing/denying access to certain pages. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* To generalize is to be an idiot

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Jason Wong
to click on Contact. Contact --becomes: Contact Enquires Account / Billing Media Enquiries Much like this JavaScript one... except I need it in PHP... http://www.dynamicdrive.com/dynamicindex1/navigate1.htm There are some classes to do this on: www.phpclasses.org -- Jason Wong

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Jason Wong
by default). In other words these people /should/ know what they're doing by disabling it. On the other hand I don't think many people would actively choose to browse in 256 colours when any machine less than 3 years old would most definitely support true colour. -- Jason Wong - Gremlins

Re: [PHP] Unable to Install PHP 4.2 into RH7.0/Apache 1.3

2002-04-28 Thread Jason Wong
it will work. Let me know off list. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* A programming language is low level when its programs require attention

Re: [PHP] lookin for a Menuing System...

2002-04-28 Thread Jason Wong
:) Is is in the 6.x series? With my 5.12, the only options for Javascript are [Enable Javascript] and [Report Javascript errors]. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* We

Re: [PHP] reg-ex again

2002-04-29 Thread Jason Wong
accordingly? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* WAIT */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] text problem.

2002-04-29 Thread Jason Wong
the link stuff.any idea how to do this? You yourself have already outlined how to do it: get text from db get the first 100 chars from the text drop the last 'word' (it may be incomplete), using explode(), array_pop() You may have to refine the process to suit your needs. -- Jason Wong

Re: [PHP] Re: reg-ex again

2002-04-29 Thread Jason Wong
contains '/' use: $server_path$file otherwise use: $server_path/$file -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Why is the alphabet in that order? Is it because

Re: [PHP] Re: Translation Request--Altavista Babelfish can't do i t

2002-04-29 Thread Jason Wong
looking for strings beginning with # but then the whole if expression is negated (!), so the statement it is 'ok' if the string doesn't start with '#' is correct. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Null character as field seperator in a string.

2002-04-29 Thread Jason Wong
NULL character. Try using fread() to get your file (it's binary safe). Then use: explode(chr(0), $buffer); to separate your fields. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong
RH7.1 system, /usr/include/linux/errno.h is provided by kernel-headers, so if don't have it and you're using RH, install kernel-headers. If you're using something else check with your distro vendor. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong
? or will that cause problems? (im betting money on it will cause problems) If there aren't any special reasons, I would just use the corresponding headers for your kernel. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] return multiple value from function

2002-04-29 Thread Jason Wong
'] = $this_is_f; return $result; } b) Use references myfunction($c, $d, $e, $f); echo $e; echo $f; function myfunction($c, $d, $e, $f) { do something $e = $this_is_e; $f = $this_is_f; } -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software

Re: [PHP] image generation Problems (jpeg)

2002-04-29 Thread Jason Wong
. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Wouldn't this be a great world if being insecure and desperate were a turn-on? -- Broadcast News */ -- PHP General

Re: [PHP] _SERVER variable insd prnt sttmnt

2002-04-29 Thread Jason Wong
['PHP_SELF']?letter=$chars[$cnt]' . Normally you would use: $_SERVER['PHP_SELF'] But inside a double-quoted string like above you would use: $_SERVER[PHP_SELF] -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Pixel Length of text message

2002-04-29 Thread Jason Wong
-width font and hope for the best. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* If the very old will remember, the very young will listen. -- Chief Dan

Re: [PHP] sort and maintain varible names

2002-04-29 Thread Jason Wong
and so on... First you need to define your array so that it encapsulates some form of identification: $orderd_list = array ('onec_rounded_total' = $onec_rounded_total, 'aps_rounded_total' = $aps_rounded_total, ...); Then use asort(). -- Jason Wong

Re: [PHP] Forms

2002-04-29 Thread Jason Wong
'] Or if you had use the GET method in your form then: $_GET['fname'] -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Just because the message may never be received does not mean

Re: [PHP] Thumbnails from Binary DB info.

2002-04-29 Thread Jason Wong
On Tuesday 30 April 2002 09:49, Shane wrote: Greetings folks. I'm looking for a solution to make thumbnails from my binary files inside my mySQL DB. Can anyone give me some direction for options besides Image Magick? Manual Image functions -- Jason Wong - Gremlins Associates

Re: [PHP] If statement leading to another php page

2002-04-29 Thread Jason Wong
://www.somewhere.com;); } else { whatever; } -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Use an accordion. Go to jail. -- KFOG, San Francisco */ -- PHP General

Re: [PHP] parse error after ?

2002-04-29 Thread Jason Wong
culprits. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Politics are almost as exciting as war, and quite as dangerous. In war, you can only be killed once

Re: [PHP] How to see the error from mysql?

2002-04-29 Thread Jason Wong
? RTFM! mysql_error() -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* purpitation, n.: To take something off the grocery shelf, decide you don't want

Re: [PHP] If value is divisible by 2

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 16:05, Marius Ursache wrote: if(($i % 2)==0) Or simply: if ($i % 2) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* To thine own self

Re: [PHP] regular expressions help please

2002-04-30 Thread Jason Wong
simple then build upon it. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* A full belly makes a dull brain. -- Ben Franklin [and the local candy

Re: [PHP] Insert in database

2002-04-30 Thread Jason Wong
are fine. Or keep the parentheses but replace the commas with a period ( , - . ). -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Many changes of mind and mood; do not hesitate

Re: [PHP] Page Numbers

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 18:41, Craig wrote: Any one know how to display, go to page number on a record list page eg Prev 1|2|3|4|5|6... Next Yes. http://homepages.tesco.net/~J.deBoynePollard/FGA/questions-with-yes-or-no-answers.html -- Jason Wong - Gremlins Associates

Re: [PHP] regular expressions help please

2002-04-30 Thread Jason Wong
of files? (ie readme.txt, important.doc, funny.gif etc) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* In a consumer society there are inevitably two kinds of slaves

Re: [PHP] regular expressions help please

2002-04-30 Thread Jason Wong
[$i]); There are just gif files in this ! Does that make more sense ? Unfortunately, no. Could you post say 20 lines of this file you're talking about. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] regular expressions help please

2002-04-30 Thread Jason Wong
that make more sense ? Unfortunately, no. Could you post say 20 lines of this file you're talking about. I mean the file that you're readingparsing, not your program. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] Database Duplication

2002-04-30 Thread Jason Wong
On Tuesday 30 April 2002 21:57, Liam Gibbs wrote: Maybe I should explain myself a little better. Sorry for leaving out what turned out to be crucial details. I think someone asked in response to your original post what db are you using?. You still haven't told us! -- Jason Wong - Gremlins

Re: [PHP] Session Authentication etc...

2002-04-30 Thread Jason Wong
variables. Anways anyone either know of a decent authentication lib that I can use to check the users online and do authentication or can someone point me in the right direction in doing this? There's something called php_lib_login that you can google for. -- Jason Wong - Gremlins Associates

Re: [PHP] Files sorted by date?

2002-04-30 Thread Jason Wong
on a webpage? First look at Directory functions Then Filesystem functions Then Array Functions -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Support your right to arm bears

Re: [PHP] regular expressions help please

2002-04-30 Thread Jason Wong
about. I mean the file that you're readingparsing, not your program. Try this: preg_match_all(/src=(\'[a-z0-9_\/-]+\.gif\')/i, $input, $MATCH); print_r($MATCH); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] Is it possible to verify that a form submision is not being spoofed?

2002-04-30 Thread Jason Wong
user was determined, there's nothing to stop them from: 1) looking at the source of the legitimate page 2) grabbing the 'hidden' value 3) creating their own form along with that hidden value 4) opening a new window 5) loading their own form and submit away. -- Jason Wong - Gremlins Associates

Re: [PHP] sending data to two tables.

2002-04-30 Thread Jason Wong
to table mailinglist, but it doesn;t seem to work. We're not physic! How doesn't it work? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* A well-known friend

Re: [PHP] sending data to two tables.

2002-04-30 Thread Jason Wong
will not be added to the mailinglist? If so then your error is within: if (mysql_db_query ($DBName, $Query2, $Link)) Therefore: 1) add some error checking code -- see examples in manual and also mysql_error(). 2) echo your queries ($Query2) -- Jason Wong - Gremlins Associates

Re: [PHP] verify file before linking to another

2002-05-01 Thread Jason Wong
: if (no form data submitted) { display_form(); } else if (not confirm) { display_confirmation(); } else { display_thankyou(); } -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] Header Information for Formatting?

2002-05-02 Thread Jason Wong
headers are not pertinent to how Excel displays it's data. Try fiddling with Excel's display options. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* marriage, n

Re: [PHP] PRIMARY KEY vs. INDEX

2002-05-02 Thread Jason Wong
automatically indexed? And is a unique field indexed automatically ?(I don't think and don't hope so, but one never knows) Pardon, I'm new here, but what has this got to do with PHP? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting

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