Re: [PHP] mkdir(blah,0777)

2003-01-07 Thread Jason Wong
(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* An age is called Dark not because the light fails to shine, but because people refuse to see it. -- James Michener, Space

Re: [PHP] $_SERVER content

2003-01-08 Thread Jason Wong
. someone knows how to get a consitent content of $_SERVER? Or where and how can I configure my system to see the above? The contents of $_SERVER is provided by the webserver and hence the differences between versions and platforms. There's nothing that you can do about it. -- Jason Wong

Re: [PHP] Adding HTTP URL Code

2003-01-08 Thread Jason Wong
for something like regex url or regex hyperlink etc. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* NOTICE: alloc: /dev/null: filesystem full */ -- PHP General Mailing List

Re: [PHP] $query help :(

2003-01-08 Thread Jason Wong
have tried everything i can think of but i cab't seem to get it working. Can anyone see anything i am missing? Always add error checking to your code. Always have error reporting ON. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] float precision

2003-01-08 Thread Jason Wong
. This was also confirmed by a user in #php. Anyone have any ideas? Use the BCMath functions if you require absolute precision. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Segmentation fault and var_dump()

2003-01-09 Thread Jason Wong
of var_dump(). It's output is not as detailed as var_dump() but may be sufficient for your needs. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Everything should be built

Re: [PHP] directory listing

2003-01-09 Thread Jason Wong
have to do. Check out the user notes on the online manual. I think someone has posted some code that you can use or adapt. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* One

Re: [PHP] how to make server response to emails

2003-01-09 Thread Jason Wong
mail. Search the archives for process email. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Do not underestimate the power of the Force. */ -- PHP General Mailing List

Re: [PHP] how to make server response to emails

2003-01-09 Thread Jason Wong
On Thursday 09 January 2003 18:46, See kok Boon wrote: To: Jason Wong Hi, Sorry, I am abit dumb. Where is the archive that you refer to in your email? google php archive Click on the link for MARC. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] mail submission... from flash

2003-01-09 Thread Jason Wong
On Friday 10 January 2003 00:57, travis wrote: any one see why this wouldnt work? Why don't you tell us _how_ it doesn't work? [snip] -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] ftp and www

2003-01-07 Thread Jason Wong
for ftp? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* A couple of kids tried using pickles instead of paddles for a Ping-Pong game. They had the volley of the Dills

Re: [PHP] groupware tool in PHP for PostgreSQL

2003-01-07 Thread Jason Wong
of Reply within your mail client, and enter the list address as the recipient. You can save the list address in your address book for convenience. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] I am a dullard

2003-01-07 Thread Jason Wong
? After doing mysql_query() what does mysql_error() show? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Numbers talk, bullshit walks. - Dave Miller on linux-kernel

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Jason Wong
statement no? Yes. man echo. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Patches benefit all mankind. Products benefit the vendor. - Richard Gooch on linux-kernel

Re: [PHP] Re: Change Date

2003-01-11 Thread Jason Wong
On Sunday 11 January 2004 20:52, Naqashzade, Sadeq wrote: So Thanks, but can you get me some example code? There are plenty of examples in the manual! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Session vars vs. POST/GET vars?

2003-01-11 Thread Jason Wong
be set but it has no effect). If it works for you, you should report it as a bug! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Do not worry about which side your bread

Re: [PHP] Date Comparison

2003-01-11 Thread Jason Wong
doesn't work in some cases... Actually the above should work in all cases as you're comparing two strings constants :) In any case if your dates are in ISO format (-MM-DD) then simple comparison using , , ==, etc should always work fine. -- Jason Wong - Gremlins Associates - www.gremlins.biz

Re: [PHP] Re: Session vars vs. POST/GET vars?

2003-01-11 Thread Jason Wong
On Saturday 11 January 2003 18:39, Noel Wade wrote: Nevermind, just found the $HTTP_SESSION_VARS array... If you're using a relatively recent version of PHP, you should use $_SESSION. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] Loading Information into an array.

2003-01-11 Thread Jason Wong
://www.philipnz.com/example.jpg I can get the images to load in their left and right position, how ever i can't get the right array to print each comment with the image. Any help would be cool. Showing us your code would be even cooler! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] global to superglobal

2003-01-11 Thread Jason Wong
, double-quoted strings does variable expansion. The second statement can also be rewritten as: {$_SERVER['DOCUMENT_ROOT']}/../lib/somefile.conf; -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Changing permissions with mkdir?

2003-01-12 Thread Jason Wong
On Sunday 12 January 2003 12:56, Ben Cheng wrote: When I run mkdir(path to new dir, 0777); I get a directory that has owner and group set to nobody and drwxr-xr-x permission. How do I get the permission to be set to drwxrwxrwx? umask() -- Jason Wong - Gremlins Associates - www.gremlins.biz

Re: [PHP] Uploading images to a particular folder in the server

2003-01-12 Thread Jason Wong
. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I don't remember it, but I have it written down. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Permission Denied

2003-01-12 Thread Jason Wong
://www.bob.com/joe/ bit and do it dynamically? print_r($_SERVER) will show you which bits you can use. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I'll show you MY telex number

Re: [PHP] Simple Form Processing

2003-01-12 Thread Jason Wong
*does* $_FILE contain? Hint: if your code doesn't behave as expected always print_r() your variables so you can whether they contain what you expected them to contain. And if $_FILE doesn't contain anything then check php.ini to ensure that you have enables file uploads. -- Jason Wong

Re: [PHP] php editor

2003-01-12 Thread Jason Wong
at least once a week if not more. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* You should make a point of trying every experience once -- except incest and folk-dancing

Re: [PHP] Pre-built CMS - Anyone recommend one?

2003-01-12 Thread Jason Wong
On Monday 13 January 2003 05:07, Chris Mason wrote: eZPublish is probably your best bet. Have a look at Typo3. More difficult than average to install and use but extremely powerful and flexible. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] document contained no data

2003-01-13 Thread Jason Wong
is logged but you get that error then you could try putting some simple code at the beginning of your page to confirm that the page _is_ being executed. Something like writing a line to a file. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] Need some help in exec-attack

2003-01-13 Thread Jason Wong
circumstances, would not be able to access those files. Once you get over this hurdle, the second problem is that your destination directory is not writeable by any user other than mysql. In short you're better off using mysqldump to backup your databases. -- Jason Wong - Gremlins Associates

Re: [PHP] Need some help in exec-attack

2003-01-13 Thread Jason Wong
On Monday 13 January 2003 21:13, Alex Ciurea wrote: Hi, I think I've solved the problem group owner of the dest_dir must be apache !!! NB if mysql is running whilst you're copying the files then you could end up with incorrect backups. -- Jason Wong - Gremlins Associates

Re: [PHP] question on Header(location

2003-01-13 Thread Jason Wong
it turned on (odd I know but a reality still). Only javascript can open new a window. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Hotels are tired of getting ripped off

Re: [PHP] forms

2003-01-13 Thread Jason Wong
On Tuesday 14 January 2003 09:53, cj wrote: Would you know of any tutorial web sites which would explain how to do this? google knows. As I have not done any java programing before. javascript != java -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] globals off in function

2003-01-14 Thread Jason Wong
)? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* In Oz, never say krizzle kroo to a Woozy. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Going from 1040601600 to Human time

2003-01-14 Thread Jason Wong
On Tuesday 14 January 2003 22:16, Davíð Örn Jóhannsson wrote: I used mktime to make 1040601600 this stirng but I want to go back to human readable time how should I do that? strftime() -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] mail client?

2003-01-14 Thread Jason Wong
On Tuesday 14 January 2003 22:45, Steven Balthazor wrote: I use and recommend Squirrelmail. http://www.squirrelmail.org/ Squirrelmail doesn't support POP3 on it's own which is what the OP wanted. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] Going from 1040601600 to Human time

2003-01-14 Thread Jason Wong
different ways to do something and one of the main reasons I like this list so much is that you can learn alot of them. The php manual makes wonderful bedtime reading material (for insomniacs who wants to to get some sleep). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] valid MySQL result resource

2003-01-14 Thread Jason Wong
In cases like these searching the archives is a no brainer. Just plugin the error message and out pops your answer! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Dumping Tables from MySQL

2003-01-14 Thread Jason Wong
. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* One way to make your old car run better is to look up the price of a new model. */ -- PHP General Mailing List (http://www.php.net

Re: [PHP] query question

2003-01-14 Thread Jason Wong
IN('val1', 'val2', ..., 'valN' -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* PEGGY FLEMMING is stealing BASKET BALLS to feed the babies in VERMONT. */ -- PHP General Mailing

Re: [PHP] htmlspecialchars

2003-01-14 Thread Jason Wong
to display it. It mostly depends on what you do with the data. For example: If you only store the data once (and never re-edit it) then use (1). If the data is used for other purposes as well (like gets sent in an email) then use (2). -- Jason Wong - Gremlins Associates - www.gremlins.biz

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason Wong
= SELECT Newsheadline, News, Contact FROM news WHERE Newsid = '{$_GET['id']}'; -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] sending array

2003-01-15 Thread Jason Wong
passed to each() is not an array . You can't pass an array thru the URL. What you need to do is serialize() it then urlencode() it (or maybe rawurlencode()). Then you can put the resulting string in the URL. In test2.php you would unserialize() $org ($_GET['org']). -- Jason Wong - Gremlins

Re: [PHP] sending array

2003-01-15 Thread Jason Wong
sessions :-) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* The two oldest professions in the world have been ruined by amateurs. -- G.B. Shaw */ -- PHP

Re: [PHP] Send email when some action

2003-01-15 Thread Jason Wong
(let'say) current status changed from inactive to active, or from active to inactive? I mean, whenever a change occur on member's details, a mail is sent to him telling what was changed. Any posssibility? Yes, use the mail() command. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason Wong
this, but it dosn't always work with the quotes. The recommended way to refer variables inside doubled-quoted strings is enclose them in braces {}. Thus: {$_GET['id']} Perhaps the dev team can look more into this. Can you give examples where it doesn't work? -- Jason Wong - Gremlins Associates

Re: [PHP] Images : Store in dB or disk?

2003-01-15 Thread Jason Wong
. Then have a flag at runtime which decides whether to retrieve images from DB or from filesystem. Once you have enough data you can easily determine which method is faster and subsequently comment/remove the insertion code for the slower method. -- Jason Wong - Gremlins Associates

Re: [PHP] Windows vs Linux

2003-01-15 Thread Jason Wong
Linux box and prefer this anyway. Jeez. As a programmer you should know that virtually identical is not good enough! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-16 Thread Jason Wong
in'? IE if HTTP_REFERER isn't the login page then they haven't 'logged in'? If that is the case then you should know that this provides no security at all. Use a proper authentication system based on sessions. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] I wanta the PHP doc notes.

2003-01-16 Thread Jason Wong
On Wednesday 15 January 2003 21:16, Avenger wrote: Hey,I wanta used the PHP doc user notes. Where can i get it. http://weblabor.hu/php-doc-chm -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Session wierdness...

2003-01-16 Thread Jason Wong
vars outside of this function I'm having trouble with so what's going on? You've probably realised by now that it is the $_SESSION variable you're looking for? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] GD version 1.6.2 and resizing images...

2003-01-16 Thread Jason Wong
? If you can install your own programs then you can use netpbm or ImageMagick (or you can ask your host to do so). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* He who knows, does

Re: [PHP] Redirecting - here is the code

2003-01-16 Thread Jason Wong
On Friday 17 January 2003 01:07, Denis L. Menezes wrote: I tried. But I get an error as follows : Warning: Cannot add header information - headers already sent by (output Try searching the archives on the above error. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] Strange behavior on backtick operator execution environment

2003-01-16 Thread Jason Wong
. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Can you buy friendship? You not only can, you must. It's the only way to obtain friends. Everything worthwhile has a price

Re: [PHP] Meta Refresh

2003-01-16 Thread Jason Wong
. Where does $colname_earlytour come from? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Credit ... is the only enduring testimonial to man's confidence in man

Re: [PHP] Meta Refresh

2003-01-16 Thread Jason Wong
was inserted by DWMX when I created the record set earlytour So I don't know exactly. What does your complete code look like? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* One

Re: [PHP] GD version 1.6.2 and resizing images...

2003-01-17 Thread Jason Wong
then see if someone has produced a binary version. If you're still here (ie none of the above worked for you) then it's time to get you hands dirty and do some configure; make; make install. This is beyond the scope of this list. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Jason Wong
=\Tahoma\ color=\#00\ ; Print -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* There are no winners in life, only survivors. */ -- PHP General Mailing List (http

Re: [PHP] opening tex file

2003-01-17 Thread Jason Wong
in. If the file isn't large (say less than several MBs) then just read it all into an array using file() and process it from there. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] getopt usage?

2003-01-17 Thread Jason Wong
array ($options[1]) just contains the rest of your command line. Using Console_Getopt if an unknown option/switch is given a PEAR_Error is raised thus you have to check/trap for that. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] Gridwidget - javascript

2003-01-17 Thread Jason Wong
reference the form element like: document.forms['mycell[]'].value you will get what you want. Which means you have to give your text elements unique names. IE mycel[0] instead of mycel[] etc. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] Result in the same page

2003-01-18 Thread Jason Wong
On Saturday 18 January 2003 20:11, Ezequiel Sapoznik wrote: It is possible to run a query in php when the user press a button an return the result in the same page? Yes. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] passing variables to a sql statement

2003-01-18 Thread Jason Wong
' . $foo/a . | ); echo(/font); } ? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* There is something in the pang of change More than the heart can bear, Unhappiness

Re: [PHP] Auto Incrementing in PHP

2003-01-19 Thread Jason Wong
and reliably. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* SEMPER UBI SUB UBI */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Multiplication of double

2003-01-19 Thread Jason Wong
also as a double expression... I'm trying with: $totalprice = $price * $qty; but when I echo the, it gives me just plain old 0 (zero). Any suggestions? What is $price and what is $qty? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] XML deprecated Call-time pass-by-reference

2003-01-20 Thread Jason Wong
() has been defined correctly then to get rid of that error/warning message simply use: xml_set_object( $this-parser, $this ); -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] PHP Sessions

2003-01-21 Thread Jason Wong
example from the manual work? If not, what does the php.log say? If it does work then what does your code look like? What is the config of the server with an attitude? phpinfo()? Did you check for any differences between that and the servers that do work? -- Jason Wong - Gremlins Associates

Re: [PHP] PHP Sessions

2003-01-21 Thread Jason Wong
and concentrate on your code. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Endless the world's turn, endless the sun's spinning Endless the quest; I turn again, back to my

Re: [PHP] PHP Sessions

2003-01-21 Thread Jason Wong
=104311365417871w=2 Check in php.ini whether sessions are file based or using mm. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Goals... Plans... they're fantasies, they're

Re: [PHP] Help with e-mail

2003-01-21 Thread Jason Wong
class at www.phpclasses.org which allows you to use SMTP-AUTH. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* You buttered your bread, now lie in it. */ -- PHP General

Re: [PHP] Page Rendering

2003-01-21 Thread Jason Wong
is in fact blank. If you're using a relatively new version of PHP use $_SERVER['PHP_SELF'] instead. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* On the road, ZIPPY is a pinhead

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Jason Wong
is applied to it. So what was it that you did yesterday to cause it stop working? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Isn't it nice that people who prefer Los Angeles

Re: [PHP] Input field array ends up as Array string

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 23:03, Jason Wong wrote: Undo any configuration changes made recently, downgrade any recent upgrades etc. To paraphrase Newtown's First Law of Motion: Sorry, Newton's First Law of Motion :) Any working system tends to remain in that state unless external force

Re: [PHP] security question regarding including files..

2003-01-21 Thread Jason Wong
On Wednesday 22 January 2003 01:40, Sean Burlington wrote: is there really any site which will accept a book order based an a sigle GET ? Amazon makes a big deal of their one-click shopping feature. It's so good they've even patented it. -- Jason Wong - Gremlins Associates

Re: [PHP] Measuring Query Times

2003-01-21 Thread Jason Wong
On Wednesday 22 January 2003 14:45, Peter Janett wrote: I'm trying to figure out if there is an easy way to measure how long my queries in PHP/MySQL are taking to execute. Using microtime() before and after your query will give you an rough idea. -- Jason Wong - Gremlins Associates

Re: [PHP] referer keywords

2003-01-22 Thread Jason Wong
... Is it possible..?? Yes, parse $_SERVER['HTTP_REFERER'] (which may or may not be available depending on user's browser settings). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] getting database connection to fail gracefully

2003-01-22 Thread Jason Wong
log this failure (to a log file) and/or email someone responsible who can deal with it. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Traveling through hyperspace isn't like

Re: [PHP] Get command line output

2003-01-22 Thread Jason Wong
and the header info? Thanks! exec() 'returns' the output of the command in an array. Just extract from the array whatever line(s) you need. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] PHP App Frameworks

2003-01-22 Thread Jason Wong
. The question has been asked within the past month or so. I don't think any major/stable new frameworks has appeared since, so the answers in the archives should be valid. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] Cookies problem

2003-01-22 Thread Jason Wong
tried to send a cookie from one page with the function sendcookie(chat,$mail) to a page in another directory, sendcookie() doesn't seem to be a standard php function. Could you tell us where you got it from? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software

Re: [PHP] How to implement this by php Session

2003-01-22 Thread Jason Wong
at any one time. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Hug me now, you mad, impetuous fool!! Oh wait... I'm a computer, and you're a person

Re: [PHP] Disable pic copy/save?

2003-01-23 Thread Jason Wong
to the browser for it to be displayed. Once it's on the user's browser a determined user will be able to save whatever it is that's being displayed. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Cycle through multiple servers....

2003-01-23 Thread Jason Wong
; } } echo Connected to server $server; -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I have that old biological urge, I have that old irresistible surge, I'm hungry

Re: [PHP] chown() despiration

2003-01-23 Thread Jason Wong
,637:99); See comment above. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Age and treachery will always overcome youth and skill. */ -- PHP General Mailing List (http

Re: [PHP] Upload file

2003-01-23 Thread Jason Wong
on? How about newer versions of PHP? Whether or not you can upload files is determined by the setting of 'file_uploads'. 'register_globals' has nothing to do with it. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Waiting Lines/Query FTP Server

2003-01-23 Thread Jason Wong
time? Nothing to do with PHP. Depends on what ftp server you're using -- try ftpwho. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* A poet who reads his verse in public may

Re: [PHP] mail() function not working in PHP 4.2.3

2003-01-23 Thread Jason Wong
of times before. If the server that I'm working on is using QMAIL for it's email do I have to change a setting somewhere? Make sure you have linked/copied the qmail supplied sendmail wrapper to somewhere where php can find it. Or does mail() not work in version 4.2.3? It does. -- Jason Wong

Re: [PHP] File Permissions

2003-01-24 Thread Jason Wong
/regformt e st.php on line 411 Try specifying the full path to the file. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* When the English language gets in my way, I walk over

Re: [PHP] file upload question

2003-01-24 Thread Jason Wong
On Saturday 25 January 2003 06:34, Andrew Rench wrote: When you say you need to include a filename, do you mean the $_FILES['userfile']['tmp_name'] or the variable name identified in the input tag? (name=userfile) ANY filename which makes sense to you, so most likely the latter. -- Jason

Re: [PHP] get apache user

2003-01-24 Thread Jason Wong
On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote: I have a page where I log in as an Apache user. How do I get the apache username in php? print_r($_SERVER) to see which you can use. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] WHILE IF/ELSE loop not working

2003-01-24 Thread Jason Wong
? When you go to your doctor you usually give him/her a head start by telling him/her what you feel is wrong with you. You don't go in and say What is wrong with me?. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Jason Wong
debugging techniques like echo ($submit). You'll see nothing, hence that IF clause fails. If register_globals is not enabled then you need to use $_POST['submit'] (just as you had to use $_POST['vname']). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] get apache user

2003-01-25 Thread Jason Wong
On Saturday 25 January 2003 23:41, Tommy Jensehaugen wrote: Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote: I have a page where I log in as an Apache user. How do I get th

Re: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Jason Wong
']). !!??!! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* In matters of principle, stand like a rock; in matters of taste, swim with the current. -- Thomas

Re: [PHP] Masive mail Advice

2003-01-25 Thread Jason Wong
, (i would prefer to use qmail), i know about patches to be done so it works with qmail, but i dont consider them really clean. What would you guys suggest ?? If you haven't already done so, look in the archives -- lots of useful info have been repeated again and again (and again). -- Jason

Re: [PHP] CRLF in file

2003-01-26 Thread Jason Wong
On Sunday 26 January 2003 22:13, Malcolm Brownell wrote: Hello, I'm having trouble with /r/n when I try to write to a file. It's \r\n that you want. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] CRLF in file

2003-01-26 Thread Jason Wong
$SQL_PWD = dbpass I know this is php telling me the data is an array but can I supress this somehow so all I'll print is the keys and vals? fputs($fp,$ch); Remove the above line. foreach($ch as $key = $val) { fputs($fp,$$key = $val/r/n); } fclose ($fp); -- Jason Wong - Gremlins

Re: [PHP] human language detection

2003-01-26 Thread Jason Wong
settings/IP address/whatever is IMHO a waste of time. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Men use thought only to justify their wrong doings, and speech only

Re: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jason Wong
, $connection) or die ( mysql_error() ); All code untested, handle with care. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* If we won't stand together, we don't stand a chance

Re: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jason Wong
On Monday 27 January 2003 02:36, Mark Charette wrote: -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] 2.$tempQuery1 = SELECT @most_recent:=MAX(date) from presenters; $tempQuery2 = SELECT @recent_presenter:=presenter FROM

Re: [PHP] Making a file manager with PHP?

2003-01-27 Thread Jason Wong
it download it? TIA! Search the archives download files. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Work expands to fill the time available. -- Cyril Northcote

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Jason Wong
; } if ($month == 09) { echo It's a Match!!br; } else { echo It's not a Match!!br; } Have a look at the manual Types Integers -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

<    9   10   11   12   13   14   15   16   17   18   >