Re: [PHP] Security Concerns with Uploaded Images:

2006-05-17 Thread Jason Wong
On Tuesday 16 May 2006 07:45, Richard Lynch wrote: On Mon, May 15, 2006 1:58 am, Jason Wong wrote: 2) the uploaded file is a script (perl/php/python/etc) In the case of (2), if the script relies on its shebang line to execute Not necessarily -- What if I upload an image file named

Re: [PHP] Security Concerns with Uploaded Images:

2006-05-15 Thread Jason Wong
to attacks on a user's browser when later on that file is accessed or downloaded [2] this includes (pun intended) include()'s siblings - require() etc. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] WINNER

2006-05-08 Thread Jason Wong
On Tuesday 09 May 2006 03:10, John Nichel wrote: Ryan A wrote: Ok, the last time this happened I think it was either Jay B or John Holmes (the dude!) who claimed the prize...this time, hands off, its mine... 615,960.00. I'm rich bearch! Good ole John. I miss him. And Jason Wong

Re: [PHP] PHP on Mobile Devices(Pocket PC specifically)

2005-11-30 Thread Jason Wong
albeit a tad slow -- I need to figure out how to get fastcgi working. And unlike WM devices, you can run *real* browsers, Firefox and Mozilla are available. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread Jason Wong
! I think the error message is trying to tell you that /usr/local/bin/mogrify does not exist. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] exec / shell_exec issues

2005-07-29 Thread Jason Wong
On Saturday 30 July 2005 10:17, leonski wrote: Jason Wong wrote: On Saturday 30 July 2005 08:49, leonski wrote: sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 320x240! : No such file or directory sh: line 1: /usr/local/bin/mogrify /tmp/phpS1KCen -resize 95x72! : No such file

Re: [PHP] looking for program/script to diff directories and show dates

2005-07-28 Thread Jason Wong
). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] preg_match - help please

2005-07-28 Thread Jason Wong
, sometimes 2. rarely 4) WITHOUT any spaces. Not sure what the OP was trying to do, but the best way to handle it (IMHO) is to give the user 2 input boxes, one for family name, the other for the rest of their name. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software

Re: [PHP] Only variable references should be returned by reference

2005-07-19 Thread Jason Wong
, is there a way I can temporarily fix this while working on the application issues themselves? :( Change the relevant setting in php.ini. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] MySQL password file

2005-07-19 Thread Jason Wong
. What you should be more concerned about if you're on a shared host is that there is a good possibility that your co-hosts are able to access your files anyway. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Only variable references should be returned by reference

2005-07-19 Thread Jason Wong
is not being changed elsewhere If the warning annoys you just tone down the error reporting level. Is there another one I should be looking at? :( Not that I'm aware of. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] Help with preg_replace

2005-07-04 Thread Jason Wong
also want to consider using preg_quote() instead of str_replace(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] memcached and objects.

2005-07-03 Thread Jason Wong
recordsets in memcached?. No idea. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] postgres - mysql last_inserted_id

2005-07-01 Thread Jason Wong
know all this already, you're in DEEP trouble... I think I'll be quite safe as I'm using sequences ;-) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Technology Forums

2005-07-01 Thread Jason Wong
? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] postgres - mysql last_inserted_id

2005-06-30 Thread Jason Wong
. This would be much better than doing a hasty migration to postgresql - which does not make the most of what postgresql has to offer - and then trying to hack the postgresql features in afterwards. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] postgres - mysql last_inserted_id

2005-06-30 Thread Jason Wong
it is, you don't need OIDs to use sequences. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post

Re: [PHP] Re: Persistant Connections and max_connections on mysql

2005-06-21 Thread Jason Wong
that you won't hit the limit configure your webserver so that the maximum number of instances (or requests it can handle) is less than the max connections settings of mysql. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] Re: security question...??

2005-06-21 Thread Jason Wong
server and getting some information and doing something bad with that information? What are you trying to prevent? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Image upload form

2005-06-15 Thread Jason Wong
']['tmp_name']; ... $localfile -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] Of .txt to .zip

2005-06-09 Thread Jason Wong
) and is not the same as [pkware] zip which I believe is what the OP wants. OP, put your google googles on and look, there is (or was?) at least one solution which involved a zip handling library using pure PHP. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] The goto discussion on the Internals List

2005-06-09 Thread Jason Wong
); and ini_set('display_errors', TRUE); So they don't have to figure out where the error log is (yet). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-18 Thread Jason Wong
? In short, you're trying to display an image, so get rid of all the HTML stuff. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] counting ocuring words in a string

2005-05-17 Thread Jason Wong
On Tuesday 17 May 2005 18:00, Merlin wrote: I am trying to find a way to count the number of times (if any) words are inside a string. explode() array_count_values() -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] Re: why are session only working with cookies?

2005-05-17 Thread Jason Wong
this is the default. Summary: you have to compile PHP with --enable-trans-sid, AND enable it in php.ini. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] array, trouble updating

2005-05-17 Thread Jason Wong
) $basket['product_id'] = 10; To display an attribute, eg price: 1) echo $basket[n]['price']; 2) echo $basket['product_id']['price']; When playing around with arrays, print_r() is your friend, use it liberally. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] Components

2005-05-16 Thread Jason Wong
that, start off with a web-based PHP RAD tool. (which I plan to do with either document.designMode or XUL) You might want to take a look at Prado http://www.xisc.com/ it seems to be exactly what you're trying to do and I believe it also has a RAD plugin for Dreamweaver. -- Jason Wong - Gremlins

Re: [PHP] Components

2005-05-16 Thread Jason Wong
PHP Framework -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php

Re: [PHP] cURL functions

2005-05-13 Thread Jason Wong
; file=tigershippingdashboard20050429.jpg'); echo $ret; -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before

Re: [PHP] cURL functions

2005-05-13 Thread Jason Wong
for Richard Lynch's posts where he rants (quite rightly) about IE's poor handling of forcing a download to be saved to file and ways to circumvent it. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] error display problem

2005-05-13 Thread Jason Wong
('display_errors', TRUE); -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php

Re: [PHP] Re: why are session only working with cookies?

2005-05-13 Thread Jason Wong
*are* cookies, they're cookies that have been set to expire when the browsing session finishes (ie when the browser is closed). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] cURL functions

2005-05-12 Thread Jason Wong
On Friday 13 May 2005 02:54, Chris Bruce wrote: $ret = curl_setopt($ch, CURLOPT_HEADER, 0); Try enabling the above or ... Does anyone know how I can take the binary result and force it to download as a JPG image? ... send an appropriate header before dumping the binary data. -- Jason Wong

Re: [PHP] Session cookies in firefox

2005-05-11 Thread Jason Wong
because IE stupidly creates a whole new program/process on each. That behaviour is (or maybe was, don't have IE around to test) user configurable. So if the OP is relying on that feature then their website is bound to break for some users. -- Jason Wong - Gremlins Associates - www.gremlins.biz

Re: [PHP] MySql injections (related question)

2005-05-11 Thread Jason Wong
to escape a single-quote. MySQL uses a backslash. Hence running addslashes() on a string destined for MySQL is usually OK whilst doing so for Postgresql is not. But now that mysql_real_escape_string() is available that is what you ought to use. -- Jason Wong - Gremlins Associates

Re: [PHP] MySql injections (related question)

2005-05-11 Thread Jason Wong
On Thursday 12 May 2005 09:57, Richard Lynch wrote: On Wed, May 11, 2005 5:23 pm, Jason Wong said: But now that mysql_real_escape_string() is available that is what you ought to use. But are they REALLY different. mysql_real_escape_string() is most certainly different from

Re: [PHP] reducing array size

2005-04-16 Thread Jason Wong
(), array_splice() -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php

Re: [PHP] Directory perms

2005-04-14 Thread Jason Wong
(and in fact the examples shows that). is_readable() and is_writeable() also works on files/dirs. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] ini_set and upload_tmp_dir

2005-04-14 Thread Jason Wong
(upload_tmp_dir,C:\\PHP5\\tmp\\); You can't do that. That has to be set in php.ini. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search

Re: [PHP] Apache2 html/php dir-where..?

2005-04-12 Thread Jason Wong
. What is it now..? Cheers. Look in /usr/local/apache2/conf/httpd.conf for DocumentRoot. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Regular expressions

2005-04-12 Thread Jason Wong
to spice it up with some ungreedy modifiers. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] Split command problem

2005-04-11 Thread Jason Wong
+/', $_POST['username']); -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] COM works on NT but fails on 2003?

2005-04-11 Thread Jason Wong
On Monday 11 April 2005 12:11, Theisen, Gary wrote: if ($excel !=== FALSE) { //This is the error line?!?! I even tried FALSE. if ($excel !== FALSE) { ... } -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Redirection after login with security

2005-04-11 Thread Jason Wong
and/or you're paranoid can be *encrypted*). The password is hashed (md5/sha, whatever) WITH a secret key. You can then verify whether username/password is correct and return an appropriate response. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Jason Wong
On Tuesday 12 April 2005 02:28, Ben Ramsey wrote: In general, permission settings under Windows suck. Hmm I thought that the ACLs on NTFS were about the only thing that is good about Windows. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] Storing password in cookie

2005-04-09 Thread Jason Wong
person using the password to gain access from the legitimate user. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Jason Wong
steps ie editing httpd.conf so that it knows about PHP. RTFM for details. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Jason Wong
need to tell it what PHP files look like (step 15). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you

Re: [PHP] Storing password in cookie

2005-04-09 Thread Jason Wong
that they have forgotten the password? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] sessions not being stored : DAY 2

2005-04-08 Thread Jason Wong
/cal_header.inc.php on line 19 * the /tmp directory is owned by root * the /tmp/sess directory is owned by the apache user and has 777 permissions * the directory in php.ini to store sessions is : /tmp/sess * there's not a php user what is the output of: ls -al /tmp/sess -- Jason Wong - Gremlins

Re: [PHP] Still not working: PHP4 running on server, but not on dev box (SuSE 9.2)

2005-04-08 Thread Jason Wong
the installation instructions in the [PHP] manual Installation on Unix systems Apache 2.0 on Unix systems. In particular verify steps 14 and 15. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] File_get_contents()

2005-04-07 Thread Jason Wong
On Thursday 07 April 2005 20:21, Jeff McKeon wrote: Now that I look at it, does anyone think this would work... file_get_contents(php//stdin/); That should be: 'php://stdin' -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
, 'w+b')) { echo \nError! Could not open COMport - Got a terminal open?\n; exit; } else { $i = 0; while ((false !== ($char = fgetc($fp))) AND $i 10) { $i++; echo $i::[$char]br; } echo $i; } -- Jason Wong - Gremlins

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
with having SELinux enabled and were resolved when it was disabled. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] Help! mod_php4 upgrade breaks GD!

2005-04-02 Thread Jason Wong
-- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] Where is php installed on linux

2005-03-25 Thread Jason Wong
in the export command. It may be /usr /usr/local, or something else. In your case you have to set PHP_PREFIX to '/usr/local', and before you can proceed you must make sure you have the file '/usr/local/bin/phpize'. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] Setting cookies for other domains

2005-03-19 Thread Jason Wong
websites from setting these 3rd party cookies. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] shell script - disable log output

2005-03-09 Thread Jason Wong
); // ?? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] fsockopen and session_start

2005-03-07 Thread Jason Wong
of execution should be something like: start session assign values to session close session do the simulated POST -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Passwords?

2005-03-06 Thread Jason Wong
. The short tags ? ? is an optional setting on the webserver and hence may not be enabled in which case your code *will* be displayed as-is. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Help with dates

2005-03-06 Thread Jason Wong
provides only allow up to the unix epoch. manual Calendar Functions -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] Can't save multiple files if I'm using values pulled from another file...

2005-03-03 Thread Jason Wong
it is the only line that works. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] Re: patch to php 4.3.10 to disabling URL wrappers in include like statements

2005-03-02 Thread Jason Wong
of creating a patch (for the latest release of PHP no less) for functionality that already exists! IIRC a request for something similar was made on the list some time ago. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] Re: patch to php 4.3.10 to disabling URL wrappers in include like statements

2005-03-02 Thread Jason Wong
and keeping remote file? I believe you're missing the point of the patch. It is to prevent people from injecting malicious remote locations in $somewhere: include($somewhere); Of course one should always validate $somwhere before using it but ... -- Jason Wong - Gremlins Associates

Re: [PHP] hash issues

2005-02-25 Thread Jason Wong
suspiciously like 'password1'. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] replace special characters

2005-02-24 Thread Jason Wong
, RTFM for details. The code above is resulting in the following error massage: Parse error: parse error, expecting `')'' in /xxx/xxx/xxx/TMPz06yoces6o.php on line 2. Switch to using a decent syntax highlighting editor and these types of errors will be immediately obvious. -- Jason Wong

Re: [PHP] hash issues

2005-02-23 Thread Jason Wong
are exactly the same. I'm not sure why this is happening. I strongly suspect you're hashing an empty string. echo password [$password]; $pass=bin2hex(mhash(MHASH_SHA1, $password)); -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] Re: Minimalist permissions

2005-02-16 Thread Jason Wong
and the group. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php

Re: [PHP] Minimalist permissions

2005-02-12 Thread Jason Wong
by searching this list). Feel free to redirect me to existing documentation that I woule have missed, if needed. http://marc.theaimsgroup.com/?l=php-generalm=105793487024873w=2 -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] Secure system calls -- how

2005-02-10 Thread Jason Wong
you how to write a complete procmail parser, that's why they're hard to find, and ditto for whatever else you want your sudo to be doing. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] Magic Quotes Removal code - almost there

2005-02-10 Thread Jason Wong
On Thursday 10 February 2005 23:36, Ben Edwards (lists) wrote: The cleaning works but magic_quotes_runtime is false even if magic codes are on, any ideas? There are at least two magic_quotes_* settings, make sure you are referring to the correct one(s). -- Jason Wong - Gremlins Associates

Re: [PHP] Problem using return from a class.

2005-02-09 Thread Jason Wong
could post the method here but its a bit long. You only need to post concise code that illustrates your problem, a one liner to return a value is all the that your method needs. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Jason Wong
no access to, using PHP? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com

Re: [PHP] timestamp problem?

2005-02-08 Thread Jason Wong
reinstalled my linux with the same settings... now, a timestap of 01/01/2011 is returned as: 1293832800 What am I doing wrong? Suggests that your server is now set to a timezone that is UTC+0200 -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] FTP script and project

2005-02-08 Thread Jason Wong
file that vanishes as soon as the file has completed uploading. [HTTP upload code snipped] It seems that you're confused as to what FTP is and what HTTP is. Perhaps if you explained what you are trying to do then someone might be able to point you in the right direction. -- Jason Wong

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Jason Wong
. You SHOULD have been able to read/write that file in PHP, assuming 'apache' is the user PHP runs as. Use http://php.net/phpinfo to confirm that it really *IS* 'apache' user that's running apache/php. It *will* fail if apache has no access to $HOME! -- Jason Wong - Gremlins Associates

Re: [PHP] Global and Local include_path settings

2005-02-05 Thread Jason Wong
in the vhosts directive. One method (not sure whether it's the best or most efficient) is to use an auto_prepend_file to set the local component(s) of the path. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Need help with ereg regular expression

2005-02-03 Thread Jason Wong
if it's to inform people that you've received their mail, or read their mail, or (gasp) deleted their mail without reading it (because you've already read in the preview pane) then that is totally dumb (with a capital D ( U M B A ...)) -- Jason Wong - Gremlins Associates - www.gremlins.biz

Re: [PHP] Need help with ereg regular expression

2005-02-02 Thread Jason Wong
On Thursday 03 February 2005 02:18, John Nichel wrote: Argghhhreturn receipts Use a *real* mail client -- one that ignores those stupid things. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Need help with ereg regular expression

2005-02-02 Thread Jason Wong
something terribly obvious? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] Re: How to make binary strings useful?

2005-02-02 Thread Jason Wong
, and Cold Fusion are listed. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] RE: How to make binary strings useful?

2005-02-02 Thread Jason Wong
{1}), ord($cont{2}), ord($cont{3})); Also check out unpack(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives

Re: [PHP] Using SELECT IN with arrays

2005-02-02 Thread Jason Wong
) which appear in $doms, then extract all the other info (mq.user,mq.sender etc). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] problems with session timeout

2005-02-02 Thread Jason Wong
(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] SSH system command problem

2005-01-31 Thread Jason Wong
difficult to enter a password if you want to run this script non-interactively so you make use of keys: google using ssh without password -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] FW: [NEWBIE GUIDE] For the benefit of new members

2005-01-31 Thread Jason Wong
funny quoting instead of standard quoting it might suffice to just ask him to turn over a new leaf :) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] simple question

2005-01-31 Thread Jason Wong
); makes the 2 appear before the 3. I am confused! You're trying to use the function supscript() as though it returned a value, it doesn't, it just prints something out directly. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] PHP5 Cli bug ?

2005-01-30 Thread Jason Wong
You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that tells all recipients which posting(s) your posting refers

Re: [PHP] Permissions on uploaded image don't allow for over writing

2005-01-30 Thread Jason Wong
that there was some parameter I could set to have the uploaded file set to full access permissions, Have a look at umask() and chmod(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Re: Still cnanot figure out with much easier example...

2005-01-30 Thread Jason Wong
expect it. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php

Re: [PHP] Re: [PHP-DB] Developer needed in London

2005-01-28 Thread Jason Wong
post twice. Add thread hijacking to the list of transgressions as well! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] mail problem at interland

2005-01-28 Thread Jason Wong
of the separation of the mail headers and the mail body. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post

Re: [PHP] PHP displaying images

2005-01-28 Thread Jason Wong
(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] PHP displaying images

2005-01-28 Thread Jason Wong
output them directly. Note that there is no problem with the code from phpfreaks. It seems to run for everyone else on their computers. In that case you're doing something different to everyone else, find out what that difference is. -- Jason Wong - Gremlins Associates - www.gremlins.biz

Re: [PHP] mail problem at interland

2005-01-27 Thread Jason Wong
between headers -- \r\n 2) Check your mailserver logs -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post

Re: [PHP] Parsing search strings from referer urls?

2005-01-26 Thread Jason Wong
. Of course you still have to examine the extracted data to determine which search engine it came from and proceed accordingly. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Call-time pass-by-reference ??

2005-01-26 Thread Jason Wong
some borders as well. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com

Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Jason Wong
. Anyway who decides what is a newbie question? I don't think a newbie would be in a position to ascertain whether their question is considered newbie. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Log-in script help

2005-01-25 Thread Jason Wong
to keep in mind it's not very secure. Since cookies reside on the clients machine, the client could manipulate the cookie and pretend to be logged in. The above will prevent this. However it does not prevent session hijacking -- google for more info. -- Jason Wong - Gremlins Associates

Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Jason Wong
On Wednesday 26 January 2005 07:27, Greg Donald wrote: On Wed, 26 Jan 2005 06:54:32 +0800, Jason Wong [EMAIL PROTECTED] wrote: Anyway who decides what is a newbie question? I don't think a newbie would be in a position to ascertain whether their question is considered newbie. My

  1   2   3   4   5   6   7   8   9   10   >