Re: [PHP] getting directory info

2002-08-27 Thread Jason Wong
and upload them. Then the album is built dynamically using php. Thoughts? manual - Handling file uploads -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Maintence window broken

Re: [PHP] Are sessions affected by Unix user changes?

2002-08-27 Thread Jason Wong
. Is a session related to a web (default?) user? The user that the webserver is running as (nobody/apache/whatever) must have write access to the directory defined by session.save_path in php.ini. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators

Re: [PHP] Just learning . . . HTML Form PHP

2002-08-27 Thread Jason Wong
is one of my attempts to check for a blank field and write a custom error message. How isn't it working? What do you see? What did you expect to see? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] preg_match

2002-08-28 Thread Jason Wong
: /\./ -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* We Americans, we're a simple people... but piss us off, and we'll bomb your cities. -- Robin Williams, _Good Morning

Re: [PHP] Arrays within arrays question

2002-08-28 Thread Jason Wong
' = $data-prod_id, 'quantity' = $data-quantity); But then you can drop the while-loop and probably can just do: $aProds = pg_fetch_object($res); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Window/Page/Browser/Screen width

2002-08-28 Thread Jason Wong
On Wednesday 28 August 2002 19:02, Rick Selby wrote: I've seen similar questions in archives so sorry if I'm asking the same thing again! What were the answers in the archive? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

Re: [PHP] Stepping through an array more than once

2002-08-28 Thread Jason Wong
() -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I don't know who my grandfather was; I am much more concerned to know what his grandson will be. -- Abraham

Re: [PHP] Configure 'with' PHP

2002-08-28 Thread Jason Wong
is located in /usr/lib. What am doing wrong? Am I pointing to the correct gd location and/or freetype location? --with-gd=/usr -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] php and gnupg problems.

2002-08-28 Thread Jason Wong
...; echo '$data' ...); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* You will have many recoverable tape errors. */ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Cannot get data from form.

2002-08-28 Thread Jason Wong
? php.ini - register_globals -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Why did the Roman Empire collapse? What is the Latin for office automation? */ -- PHP General

Re: [PHP] PHPSESSID on entry page only

2002-08-28 Thread Jason Wong
accepts cookies, thus it attaches the PHPSESSID. Once it has determined that the browser accepts cookies on subsequent pages it doesn't use PHPSESSID anymore. Disable cookies in your browser and you'll see that PHPSESSID is attached throughout your visit. -- Jason Wong - Gremlins Associates

Re: [PHP] using php from command line

2002-08-28 Thread Jason Wong
as your source. Just copy it to wherever you want. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* I can't think about that. It doesn't go with HEDGES in the shape of LITTLE

Re: [PHP] Re: Stepping through an array more than once (offlist)

2002-08-29 Thread Jason Wong
to create 2 new vars ( which basically boils down to 2 more SQL's). [snip] I've said it once already: mysql_data_seek() -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] how to have a form keep values when user hits back button?

2002-08-29 Thread Jason Wong
. How can I make it so that if I hit the back button the values I entered in the form will still be displayed? Have a look at the archives, it has just been answered: marc.theaimsgroup.com/?l-php-general -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re: [PHP] autocomplete list box

2002-08-30 Thread Jason Wong
, but not quite exactly, I want the textbox and the listbox to be combined and browser independant. Is this possible? Dependant/do-able with PHP or is it a Java/Browser feature? $php = 'no'; $javascript = 'yes'; -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re: [PHP] OT - .scr Attachments

2002-08-30 Thread Jason Wong
executables then they deserve whatever they get. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Please come home with me ... I have Tylenol!! */ -- PHP General Mailing List

Re: [PHP] a and validator problem

2002-08-30 Thread Jason Wong
to that site. You've enabled session.use_trans_sid in php.ini Is there possibility to solve this? temporarily disable it. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Writing Files

2002-08-30 Thread Jason Wong
() -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* monitor resolution too high */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Writing Files

2002-08-30 Thread Jason Wong
On Saturday 31 August 2002 02:16, Webmaster wrote: i write these files in a for-next loop, so at the start of each loop, i've to put an unmask command? If the manual is correct then the answer in no. Once per page would be enough. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Jason Wong
but I can't figure what's going wrong. What 'minor' changes did you make to $message? Does rolling back those changes make it work again? -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] newbie question

2002-08-30 Thread Jason Wong
find any info one it. Without a better explanation of what you mean by go to the proper web page the best answer that can be given is: header(Location: http://www.doo.com/dah.php;) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Jason Wong
if necessary. Presumably it uses the same mechanism as mail() to send mail. If that works then I think you can pretty much rule out postfix config problems and php.ini problems. Which then just leaves your code which you should post in full. -- Jason Wong - Gremlins Associates

Re: [PHP] posting form values doesn't work

2002-08-31 Thread Jason Wong
not Looks like a javascript question to me. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* The opulence of the front office door varies inversely with the fundamental

Re: [PHP] Submit form from javascript code

2002-08-31 Thread Jason Wong
On Saturday 31 August 2002 19:43, Madjid Nasiri wrote: I need submit a form from javascript code. My code near this code: Please ask javascript questions on a javascript list. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

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] 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] 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] 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] 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] 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] 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 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] regular expression help

2005-01-21 Thread Jason Wong
-Fa-f]{2}\:[0-9A-Fa-f]{2}\:[0-9A-Fa-f]{2}\:[0-9A-Fa- f]{2}\:[0-9A-Fa-f]{2}$, $mac ) ) { return 0; } else { return 1; } } and wherever else. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] nl2br misprint

2005-01-21 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] Notice:Use of undefined constant

2005-01-21 Thread Jason Wong
is never a solution. The solution is to not give them an excuse in appear in the first place. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Jason Wong
= mysql_fetch_assoc($result)); } ... effectively discards the first result of any resultset that you get? Unless that really is your intention then simply use a while-loop. If there aren't any results nothing in the while-loop will be executed (which means there is no need for the IF). -- Jason Wong

Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 08:11, Jason Wong wrote: On Saturday 22 January 2005 08:02, Phillip S. Baker wrote: I am pulling records from a MySQL DB. I am walking through the array using the whole. You do realise that doing this ... if ( $row = mysql_fetch_assoc($result)) { do

Re: [PHP] Notice:Use of undefined constant

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 08:28, Tamas Hegedus wrote: define( HOST, 'localhost'); define('HOST', 'localhost'); -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Is this even possible?

2005-01-22 Thread Jason Wong
in pg_hba.conf. Any ideas? Hop over to the postgresql site and consult the manual. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Attempting to use 'passthru' or 'exec' function

2005-01-23 Thread Jason Wong
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-general

Re: [PHP] Date ranges

2005-01-24 Thread Jason Wong
have made it clear, something along the lines of: I don't want to know how to do it for myself. I just want some ready to use code, and I want it yesterday -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Jason Wong
not exactly hard to write a function to change DD-MM- into a timestamp. explode() should get you on your way, and examples abound in the archives. The thing with PHP is that you're not limited to using the built-in functions, you can write your own (fancy that). -- Jason Wong - Gremlins

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Jason Wong
. Was wondering if someone else has writern the function, dont have time at the mo and thought someone else may of. You could find some time to pay someone to search the archives for you to find the numerous examples of code which does that, or you could even pay someone to write the code for you. -- Jason

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

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

2005-01-25 Thread Jason Wong
to shove them off on a 'newbie' list and forget about them(!). Well, like I said.. I'd participate. I know you're misguided, but good luck :) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

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] 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] 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] 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] 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] 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] 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] 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] 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

<    6   7   8   9   10   11   12   13   14   15   >