Re: [PHP] storing errors from shell_exec command

2002-08-09 Thread Jason Wong
a error file > > $output=shell_exec($cmd); > $cmd ="`$output > /usr/autoserv/errlog`"; Not sure whether it'll make any difference, but you do NOT need the backticks. > exec($cmd); Why not do it in a single step? shell_exec("command_to_execute > /u

Re: [PHP] Re: How to post from a php script

2002-08-12 Thread Jason Wong
wser before the > redirect takes place, this means it will perform more slowly than a server > side redirect. > > Is this the only solution or are there other work-arounds ? Archives -> "post from php" -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open So

Re: [PHP] SQL ?

2002-08-12 Thread Jason Wong
. Some people like their answers on a plate -- you should've copied and pasted the relevant section/chapter from the manual. Now _that_ is being helpful -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

Re: [PHP] SQL ?

2002-08-12 Thread Jason Wong
On Tuesday 13 August 2002 00:03, Rasmus Lerdorf wrote: > I know many people hate top-posts, but when you get 1400+ emails every day > and answer 50+, it sure does speed things up. It probably depends. > Having the relevant text > right up front means I don't have to scroll down to find it.

Re: [PHP] E-commerce site issue?

2002-08-12 Thread Jason Wong
s me of the signs that you see in some stores -- "Our staff do not have access to the safe". So you can have on your website "Hackers please note we only store twenty credit card numbers at any one time" :) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open

Re: [PHP] Performance of ZLib

2002-08-12 Thread Jason Wong
about performance? That is determined by your server -- CPU speed, amount of memory, speed of HDDs. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* QOTD:

Re: [PHP] how to run php from the command line in Linux?

2002-08-12 Thread Jason Wong
On Tuesday 13 August 2002 14:41, Jean-Christian Imbeault wrote: > How can I run a PHP program from the command line in linux? > > I want to dosomething like: > > #php prog.PHP Manual -> "Using PHP from the command line" -- Jason Wong -> Gremlins Associates -&g

Re: [PHP] how to run php from the command line in Linux?

2002-08-12 Thread Jason Wong
On Tuesday 13 August 2002 15:12, Jean-Christian Imbeault wrote: > Now for a really dumb question. How do I compile PHP so that I can get a > binary executable instead of an Apache module? ./configure make && make install -- Jason Wong -> Gremlins Associates -> www.gremlin

Re: [PHP] Redhat Linux 7.2

2002-08-14 Thread Jason Wong
e RH7.2 (Enigma) mailing list. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The wise man seeks everything in himself; the ignorant man tries to get

Re: [PHP] mysql_num_rows();

2002-08-14 Thread Jason Wong
t; $Query = "SELECT * FROM benutzer_db where Benutzername = > '".$SESSION['nickname']."' "; $Query .= "AND Passwort = > '".$SESSION['password']."'"; > $Result = mysql_query($Query, $connect); > if(mysql

Re: [PHP] trans-sid not working

2002-08-15 Thread Jason Wong
the session does not get registered and no SID is > automatically appending to the URL. > > What did I miss? There's also a setting in php.ini (probably under the sessions section) that you have to enable. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source S

Re: [PHP] Automatically send email on special day

2002-08-15 Thread Jason Wong
n asking a question to provide as much info as possible about the server and the environment that they're using. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Dev

Re: [PHP] Group and count at the same time?

2002-08-15 Thread Jason Wong
On Thursday 15 August 2002 23:19, Jeff Lewis wrote: > I am using PHP to maintain a catalog of music and have been just fine with > it but have run into one thing i want to do and need some advice. > > The format of the data is like so: > > upc|genre|distributor|details Where is this info coming f

Re: [PHP] Code for db connection errors

2002-08-15 Thread Jason Wong
page saying something like "The site is down for maintenance" or whatever. > What code could/should I place in the error message -- for example, how can > I arrange for an e-mail to be sent to me (if that would be advisable)? How > would you handle this situation? Look at error_

Re: [PHP] phpMyadmin with global variables off

2002-08-15 Thread Jason Wong
variables are on or off? Try asking the phpMyadmin author. Or look through the code yourself. Or even try setting register_globals on to see whether you still get the error. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web D

Re: [PHP] undefined offset && bad argument

2002-08-15 Thread Jason Wong
tes/malibu_place_2/index.php on line 106 > Error 5 Ditto. Use print_r() to display your key variables at strategic points in your code to verify that they contain what you expect. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web

Re: [PHP] Re: php and classes

2002-08-15 Thread Jason Wong
On Friday 16 August 2002 11:40, Pafo wrote: > nm, now it works,, forgot the silly () Always set error reporting to FULL, and always error log to a file (see settings in php.ini). That way you probably could have figured out what the problem was by examining the logs. -- Jason W

Re: [PHP] Hiding the remote server

2002-08-15 Thread Jason Wong
PHP scripting? yes > I am just guessing can the header() function be used to send > information like a form-POST? and receive responses that is parsable prior > to printing to the browser? no -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Syste

Re: [PHP] Re: Sending via stand alone SMTP on win98

2002-08-15 Thread Jason Wong
gt; dismay, but it's not my company. 'My job is not to ask why. But to do and > die'.) I would suggest that you forget about the added complications of setting up your own smtp server and just point the above class to use your ISP's smtp server instead. -- Jason W

Re: [PHP] Parse Error in Last Line of PHP Script

2002-08-15 Thread Jason Wong
On Friday 16 August 2002 14:13, Thomas Meinke wrote: > Hello! > > My problem is a Parse Error in the last line of the script. I checked all > the brackets { and semicolons ; but I did`nt find any error. > Perhaps you can help me. Try matching up your '' and "

Re: [PHP] help with making appropriate indexes.

2002-08-16 Thread Jason Wong
associated mailing-list? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* It's Like This Even the samurai have teddy bears, and even the teddy b

Re: [PHP] PHP, MySQL and Transaction

2002-08-16 Thread Jason Wong
es not have such a mechanism. You can lock the relevant table, then query, then increment and update value, then unlock table. For further info 1) ask on php-db list 2) ask on mysql list -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrat

Re: [PHP] date problem

2002-08-16 Thread Jason Wong
e("h:i > a") returns the same 2:51 time. They are both one hour off from the > server time. > > Any ideas of a solution to this? > > Anyone have a ready-to-use function which can add/subtract an hour or > two to/from the date/time? mktime() -- Jason Wong ->

Re: [PHP] Checkbox question

2002-08-16 Thread Jason Wong
mpty string? and not undefined? That is how it works. If it's not checked it does not get defined. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread Jason Wong
? > > if i replace the: '\1a\2' with '\11\2' it will understand to replace with > occurence number 11 ! > How can i escape the 2nd '1' so it is considered as a string an not another > number. Try: echo preg_replace('/(.+?)(\..+?)/', 

Re: [PHP] Array query - finding the key for a value

2002-08-16 Thread Jason Wong
> [1] -> 'pear'; > [2] -> 'orange'; > [3] -> 'apricot'; > > I know I can use in_array() to check whether, say, 'orange' is in the > array; but how do I then find out which index 'orange' is at? array_search() -- Jason Wong -&

Re: [PHP] Drop down reload

2002-08-16 Thread Jason Wong
second one too (from database) but > depend of the first drop down value. > > An idea to do that ? Use javascript. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applicati

Re: [PHP] tricky preg_replace and how to escape the \{occurencenumber}

2002-08-16 Thread Jason Wong
right. The interpreter is smarter than I thought :-/ -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "Why should we subsidize intellectual curiosity?&qu

Re: [PHP] Keyword & exact phrase search

2002-08-16 Thread Jason Wong
upper limit of roughly 4GB. TEXT fields in MySQL can store the same amount as their BLOB counterparts. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Jason Wong
get nothing output, and the script doesn't execute. What does the php logs say? You should set error_reporting to E_ALL. > Any ideas? The user that the webserver (assuming apache) is usually nobody or apache and may not have the necessary permissions to execute your script. Also

Re: [PHP] Bulk Email [solution found!]

2002-08-16 Thread Jason Wong
ing a dedicated server. They start from USD100/month and can easily cope with 10-20 sites so cost per site is only $5-10. Of course that opens another can of worms because you would have to deal with server administration etc. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk O

Re: [PHP] Problem about rpm package of php

2002-08-17 Thread Jason Wong
On Saturday 17 August 2002 16:38, [EMAIL PROTECTED] wrote: > Dear All, > > How can I enable --with-imap with rpm / SPRMS packages of php ? If you're using Redhat then install the php-imap-*.rpm package. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Sou

Re: [PHP] Problem about rpm package of php

2002-08-17 Thread Jason Wong
ation" (b) and if you have problems subscribe to the php-install list and post your questions there. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /*

Re: [PHP] Protocol on handling empty checkbox values

2002-08-17 Thread Jason Wong
x27;s the browser that's send the > form data to the server, and if it doesn't chose to I wonder why the > CGI/POST specs are like that- there's probably a good reason? One advantage is that it saves some bandwidth. -- Jason Wong -> Gremlins Associates -> www.gremlins.co

Re: [PHP] hyperlink parser

2002-08-17 Thread Jason Wong
) Even better, search the archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Mother is far too clever to understand anything she does not like.

Re: [PHP] PHP - mail() function problem

2002-08-17 Thread Jason Wong
ls > when php is used as a scripting language in shell. Is this on the same machine? If so, check that both the apache-php and the cgi-php are using the same php.ini (and hence same sendmail settings). > Any guess what might be causing the problem ? Try comparing php.ini. -- J

Re: [PHP] hyperlink parser

2002-08-17 Thread Jason Wong
to read it one by one :( In that case it might be quicker for you to write your own ;-) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Love may

Re: [PHP] yesterday's day of week

2002-08-17 Thread Jason Wong
is (ie getting yesterday's day of week and not subtracting 1 from a string) is to look at the examples in manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Developm

Re: [PHP] array's

2002-08-17 Thread Jason Wong
*' > > Array[0] : Array[0] : Array[0] : Array[0] > Array[1] : Array[1] : Array[1] : Array[1] > Array[2] : Array[2] : Array[2] : Array[2] > > heh,, not exacly what i wanted :/ -- Jason Wong -> Gremlins Associates -> www.gr

Re: [PHP] quick ereg() question

2002-08-17 Thread Jason Wong
tent of what I know.. Any help would be appreciated.. TIA.. A period (.) has a special meaning in that it matches any character. To match a literal period you have to escape it with a backslash: if (ereg("(\.inc | \.php)$",$o0o) && !ereg("\/\.\.", $o0o)) { -- Jason

Re: [PHP] preg_match help?

2002-08-17 Thread Jason Wong
ning: Unknown modifier 'd' in > /home/victor/argilent-www/sites/malibu_place_2/main.php on line 197 Hopefully from the above explanation you can see that: /.*]+>(.*).*/' here you're using '/' as the delimiter. Thus everything between the first 2 '/'

Re: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Jason Wong
e help ? By advance, thank you !!! Have you tried printing out $sessionID to see whether it contains what you think it contains? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applica

Re: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Jason Wong
so we can have a look. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Awright, which one of you hid my PENIS ENVY? */ -- PHP General Mailing List (

Re: [PHP] Resetting the timeout

2002-08-18 Thread Jason Wong
On Monday 19 August 2002 10:06, Mike Mannakee wrote: > Is there any way to set the timeout (max length of time the script has to > execute) from within a script, just for its own execution? ini_set() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Soft

Re: [PHP] mail/variable help needed..

2002-08-18 Thread Jason Wong
returns null and $file returns the temp path/name > only.. However, within the returned php/html page, the $file variable > actually does echo the actual file name the user chose to upload.. ..., move it to after you have redefined $file and $info. -- Jason Wong -> Gremlins Ass

Re: [PHP] FUNCTIONS

2002-08-19 Thread Jason Wong
s to what your problem might be, please post your code. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* If you can't get your work done in the

Re: [PHP] how to fight backslash in char variable???

2002-08-20 Thread Jason Wong
t but I get: > > blablabla \' blablabla > > the question is.. how to fight this backslash out of there? If you want to disable this behaviour: php.ini -> magic_quotes_gpc Otherwise use stripslashes() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.h

Re: [PHP] 4.04 --> 4.1.2 incompatible

2002-08-20 Thread Jason Wong
works/ php.info -> file_uploads Next time read all the releases notes, history, readme, changelog etc *before* you upgrade. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Appli

Re: [PHP] Embeding images in HTML emails

2002-08-20 Thread Jason Wong
On Tuesday 20 August 2002 22:06, Andrew Perevodchik wrote: > Hello, Michael Sims! > > MS> I imagine that > MS> Manuel Lemos' PHP Classes site has a class that would take care of > MS> this for you... > > url, plz :) Use your noodle: google -> &quo

Re: [PHP] Remove \n from text

2002-08-20 Thread Jason Wong
On Tuesday 20 August 2002 23:00, Erich Kolb wrote: > How can I remove all \n and \r from a txt file? file(), str_replace(), fopen(), fwrite(), fclose(), add seasoning to taste. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * W

Re: [PHP] How Do You Protect Individual Files

2002-08-20 Thread Jason Wong
gt; system. Try searching the archives. It has been discussed many times before. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Dealing with the problem of p

Re: [PHP] sort()-help needed

2002-08-20 Thread Jason Wong
;t read in ALL the files yet so why sort now? Also you're not using the results of the sorted filenames ($sorted) anywhere else in your code. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] How Do You Protect Individual Files

2002-08-20 Thread Jason Wong
s some > discussion about .htaccess, but I know nothing about this. Is that the way > to do it, or can it be done with php. Try "protect file download" or something along those lines. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Inte

Re: [PHP] Agh! trim (#$@#@^%!!!)

2002-08-21 Thread Jason Wong
On Wednesday 21 August 2002 20:36, Mike At Spy wrote: > Get this - it didn't work! :( > > I tried decreasing the -1 to -2 and so on, but nothing on that either. :( Post your exact code which didn't work. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Ope

Re: [PHP] Image library

2002-08-21 Thread Jason Wong
really does not care where the files are and no > performance would be lost. Having a large number of files in a single directory does affect performance, the degree of which depends on the filesystem. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Sy

Re: [PHP] directory help

2002-08-21 Thread Jason Wong
t; > directory 2 might have > img004 > img005 > > and directory 3 would have > img006 > img007 > img008 Where is your question? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] Web Site

2002-08-21 Thread Jason Wong
st try > searching for some user comments before starting to use it. IIRC there seems to have been a period a while back when PayPal were 'over-reacting' to fraud and innocent users got caught up in the cross-fire. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Ope

Re: [PHP] Web Site

2002-08-21 Thread Jason Wong
) using dynamic IP feels a bit dodgy to me. Surely a commercial operation can afford the USD 10-20/month for a decent web host? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications

Re: [PHP] phpnuke installation.

2002-08-22 Thread Jason Wong
dit config.php by hand. As I said above, you'll probably get better help over at the phpnuke support forums. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Deve

Re: [PHP] open_basedir restriction?

2002-08-22 Thread Jason Wong
ee php.ini and manual -> Safe Mode -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* So you're back... about time... */ -- PHP General Mailing List

Re: [PHP] uploading problems...please help

2002-08-25 Thread Jason Wong
be done. Try using that as a starting point and adapt it to your particular situation. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Many people are despe

Re: [PHP] register globals on in stand alone php installation?

2002-08-25 Thread Jason Wong
php.ini for. I hope there is a way to seperate those two > installations. When you configure/compile php you can specify where you want php to look for php.ini. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Host

Re: [PHP] Count number of rows in table.

2002-08-25 Thread Jason Wong
\n"; No. This only returns 1 row regardless. "SELECT COUNT(*) FROM ..." only returns a single row with a single column containing the row count. Using mysql_num_rows() on that will always return 1. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Sour

Re: [PHP] getting directory info

2002-08-27 Thread Jason Wong
lled photos 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 Appli

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

2002-08-27 Thread Jason Wong
k within PHP. > > 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.c

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

2002-08-27 Thread Jason Wong
re working. The third > file 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 Integr

Re: [PHP] preg_match

2002-08-28 Thread Jason Wong
n regexes, it matches any character. Read manual for full details. You need to escape special characters using a backslash ie: "/\./" -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] Arrays within arrays question

2002-08-28 Thread Jason Wong
> 289000100050 > [quantity] => 1 > ) > ) > > How can I achieve this? If $aProds can contain more than 1 item then what you're doing now is correct. If $aProds will only ever contain 1 item then use: $aProds = array('id' => $d

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 In

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

2002-08-28 Thread Jason Wong
gain. > Can this be done? mysql_data_seek() -- 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 mo

Re: [PHP] Configure 'with' PHP

2002-08-28 Thread Jason Wong
for libgd.so which 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 * Interne

Re: [PHP] php and gnupg problems.

2002-08-28 Thread Jason Wong
ssions are all OK. > Any ideas where I'm going wrong? Try doing everything with a single system() call. IE system("export HOME=$HOME; export ...; echo '$data' ..."); -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators *

Re: [PHP] Cannot get data from form.

2002-08-28 Thread Jason Wong
it's ok. > > Is there something wrong when I install PHP? php.ini -> register_globals -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] PHPSESSID on entry page only

2002-08-28 Thread Jason Wong
e enabled session.use_trans_sid. On the first visit to the site, php doesn't know whether the browser 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

Re: [PHP] using php from command line

2002-08-28 Thread Jason Wong
the same directory 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

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

2002-08-28 Thread Jason Wong
in this e-mail. > I had 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 & Hosti

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

2002-08-29 Thread Jason Wong
alues get reset. > 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.

Re: [PHP] "autocomplete" list box

2002-08-30 Thread Jason Wong
t; > enabled in the browser, 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'; --

Re: [PHP] OT - .scr Attachments

2002-08-30 Thread Jason Wong
cute unsolicited 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

Re: [PHP] and validator problem

2002-08-30 Thread Jason Wong
> &PHPSESSID added automatically by php) > > When I open the source file from MSIE there is no PHPSESSID parameter. So > in properties of link. > > Maybe validator uses different way to connect to that site. You've enabled session.use_trans_sid in php.ini > Is ther

Re: [PHP] Writing Files

2002-08-30 Thread Jason Wong
> ages. umask() -- 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.ne

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

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Jason Wong
t; scanned/debugged/scratched my head 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 Integr

Re: [PHP] newbie question

2002-08-30 Thread Jason Wong
t > automatically go to the proper web page. > > I know this has to be easy, but I can't 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/da

Re: [PHP] Mail/Confirmation Script delivery problems

2002-08-30 Thread Jason Wong
l (ergo this email) so it's got to be the script -- but where?? What you can try is using error_log() to mail something -- yes RTFM 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.in

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

2002-08-31 Thread Jason Wong
p.focus(); > document.answerform.group.select(); > } > if (ok==true) { > location.href='groups/collect_answer.php?name= ?>&group='; > return true; > } else { return false; } > } > > and this doesn't work and I can't see why not Looks like a javascript

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 * W

Re: [PHP] using fopen() to download remote files

2002-10-03 Thread Jason Wong
download the images associated a particular URL? ... in other words there's nothing that you need do to get this behaviour. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Appli

Re: [PHP] Need to move all MySQL tables to another server

2002-10-04 Thread Jason Wong
at the old and new server and tell it to copy all databases and data > to the new server. > > Any ideas? Stop the mysql server on old box. Copy all the directories/files in the data directory to the new box. Start up mysql server on the new box. -- Jason Wong -> Gremlins Assoc

Re: [PHP] NEXT() and/or PREV()

2002-10-07 Thread Jason Wong
s selected I would like the previous information pulled from > the database viewed. > > Any suggestions? > I have gone through the manual on these two functions but nothing has > worked. Search the archives. This question comes up at least once a week. -- Jason

Re: [PHP] NEXT() and/or PREV()

2002-10-08 Thread Jason Wong
On Tuesday 08 October 2002 22:23, Jef wrote: > What archives? List archives. Searching for "archives" in www.php.net would have shown you where they are. Also google for "php database next previous" would've turned up some good links. -- Jason

Re: [PHP] Sessions and Cookies

2002-10-08 Thread Jason Wong
x27;permanent' cookies (stored on disk). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "The algorithm to do that is extremely nasty. You might want

Re: [PHP] Image Problem

2002-10-08 Thread Jason Wong
he logs). Use phpinfo() to find out whether PHP was compiled with GD library support. > If so, can I add this in without having to > reinstall php? I am running on a Red Hat 7.2 box. If it wasn't, you would have to reconfigure/recompile PHP (after installing the GD library). -- Jason Wo

Re: [PHP] Bugs in php 4.2.3.?

2002-10-08 Thread Jason Wong
er was: php 4.2.2. Are the php.ini the same? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Radial Telemetry Infiltration */ -- PHP General

Re: [PHP] HTML and text email

2002-10-08 Thread Jason Wong
9-1\r\n"; Goto www.phpclasses.org for some classes which does the job properly. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The man who runs may

Re: [PHP] how to get id from table I just inserted into

2002-10-10 Thread Jason Wong
insert_id(). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Consider well the proportions of things. It is better to be a young June-bug than

Re: [PHP] How to do Date Calculation

2002-10-10 Thread Jason Wong
date("F", strtotime("last month")); -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* You will be aided greatly by a person whom you

Re: [PHP] displaying fixed number of records

2002-10-10 Thread Jason Wong
ge starting with > record number 11, and so on. google -> php next previous database -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The 80's -

Re: [PHP] newline in string

2002-10-13 Thread Jason Wong
t; > Example: > > > > Search for "\r" and "\n" for linefeeds and newlines respectively. Note you must use double-quotes. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & In

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread Jason Wong
On Monday 14 October 2002 08:36, John Negretti wrote: > Marco, > > I was reading that there were some security risks with > "register-globals". Is this the same thing as "global". No, they're totally different things. -- Jason Wong -> Gremlins Assoc

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