Re: [PHP] chown() despiration

2003-01-23 Thread Jason Wong
ory2Create,"egovdemo:nobody"); chown() can only change user, use chgrp() to change the group! >chown($Directory2Create,"637"); Try it without quotes. It works for me. >chown($Directory2Create,"637:99"); See comment above. -- Jason Wong -> Grem

Re: [PHP] Upload file

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

Re: [PHP] Waiting Lines/Query FTP Server

2003-01-23 Thread Jason Wong
the FTP server at one time? Nothing to do with PHP. Depends on what ftp server you're using -- try ftpwho. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development

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

2003-01-23 Thread Jason Wong
version 4.2.3? It does. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Horner's Five Thumb Postulate: Experience varies directly with eq

Re: [PHP] File Permissions

2003-01-24 Thread Jason Wong
/vhosts/complementarymedicines.net/httpdocs/reg/regformt >e st.php on line 411 Try specifying the full path to the file. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications D

Re: [PHP] file upload question

2003-01-24 Thread Jason Wong
sense to you, so most likely the latter. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "You have been in Afghanistan, I perceive." -- Si

Re: [PHP] get apache user

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

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

2003-01-24 Thread Jason Wong
loop not working > > > can anyone tell me why this while loop fails? When you go to your doctor you usually give him/her a head start by telling him/her what you feel is wrong with you. You don't go in and say "What is wrong with me?". -- Jason Wong -> Gremlins Associa

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

2003-01-25 Thread Jason Wong
27;vname']; > if($submit) { Try some basic debugging techniques like echo ($submit). You'll see nothing, hence that IF clause fails. If register_globals is not enabled then you need to use $_POST['submit'] (just as you had to use $_POST['vname']). -- Jason

Re: [PHP] get apache user

2003-01-25 Thread Jason Wong
On Saturday 25 January 2003 23:41, Tommy Jensehaugen wrote: > "Jason Wong" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote: > > > I have a page wh

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

2003-01-25 Thread Jason Wong
gt; (just > > > as you had to use $_POST['vname']). !!??!! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* In matters of

Re: [PHP] Masive mail Advice

2003-01-25 Thread Jason Wong
fo have been repeated again and again (and again). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* QOTD: "Everything I am today I owe to peo

Re: [PHP] CRLF in file

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

Re: [PHP] CRLF in file

2003-01-26 Thread Jason Wong
fp,"$$key = $val/r/n"); > } > fclose ($fp); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "I just want to be a good engineer."

Re: [PHP] human language detection

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

Re: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jason Wong
uery($query); $row = mysql_fetch_assoc($result); $presenter = $row['presenter']; You can now use $presenter in your last query: $presenterQuery = "SELECT p.date, p.theme, p.presenter, c.itemNo, c.composer, c.composition, c.note FROM presente

Re: [PHP] Using MySQL user variables in PHP

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

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

2003-01-27 Thread Jason Wong
ngs up the download feature of the web browser. How can > I make it download it? TIA! Search the archives > "download files". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet

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

2003-01-27 Thread Jason Wong
;; } > if ($month == 06) { echo "It's a Match!!"; } else { echo "It's > not a Match!!"; } > if ($month == 07) { echo "It's a Match!!"; } else { echo "It's > not a Match!!"; } > if ($month == 08) { echo

Re: [PHP] ftp_ssl_connect

2003-01-28 Thread Jason Wong
lp here, because I do read for days now. Just what exactly is the problem? AFAICS its use is similar to the plain ftp_connect() -- and there are plenty of examples on how to use that. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] best way to save form data on user side

2003-01-28 Thread Jason Wong
ser submitted. So to satisfy (a), you can do this: after the user has submitted the data, write them out to a textfile and GPG/PGP sign it, then let the user download that signed file. You can do something similar using md5() as well (don't forget to add a "secret"). -- Ja

Re: [PHP] Functions and arguments

2003-01-28 Thread Jason Wong
iod5, > period6, periodpaws, period0 FROM students WHERE id = $id"); > > $classes_array = mysql_fetch_array($classes); > > :CODE: > > I can post the code for the function if I need to, but I don't think that's > where t

Re: [PHP] Remembering which option in a SELECT tag the user had chosen

2003-01-28 Thread Jason Wong
the array building up the and tags inserting "selected" where appropriate. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* You seek to shield t

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jason Wong
($_REQUEST['var1'], $_REQUEST['var2'], $_REQUEST['var3']) > > I just want to use $var1, $var2, $var3 Are you trying to use these inside a function? If so, look up variable scope in the manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open So

Re: [PHP] Use Pop3

2003-01-29 Thread Jason Wong
the > email content (text and attachment) and why not see the email's header > - Have the possibility to delete a specific message (or more) > - Send email too. Yes to all the above. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems

Re: [PHP] iis 5.0 question

2003-01-29 Thread Jason Wong
sing the full path to the executable as well here. 2) Shouldn't geometry be something like 110x110 (no spaces) 3) What's the comma doing there? 4) Ditto the parantheses? Surely they're not part of the filename? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Sour

Re: [PHP] quick question

2003-01-30 Thread Jason Wong
On Thursday 30 January 2003 17:25, Dale wrote: > I need to specify a absolute path to a file on my harddrive, but you can't > use backslashes in php. Right? Please use a descriptive subject. You escape an intended literal backslash with a backslash. -- Jason Wong -> Greml

Re: [PHP] Mysterious gap

2003-01-30 Thread Jason Wong
is gap comming from?? > > while($query_data = mysql_fetch_array($result)) { ?> > > > $q = $query_data ["info"]; ?> > > > > > switch ($op) { > default: > func1(); break; > } > ?> Put your inside the table

Re: [PHP] Variable Fun

2003-01-30 Thread Jason Wong
> > > Why does PHP Version 4.2.3 ignore my (string) - cast to string in the if > evaluation? > I even tried putting the (string) inside the IF statement with no > difference in execution. > > > P.S. >

Re: [PHP] Trying to understand an error

2003-01-30 Thread Jason Wong
g seems quite explicit -- it couldn't find a certain file. Did you check to see that there is such a file? If the file is there then try using the full path to the file instead of a relative path. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syste

Re: [PHP] Re: [PHP-WIN] Register globals on and off

2003-01-30 Thread Jason Wong
obals on > > DO> And i have chanched AllowOverride None to all in the httpd.conf file, > and restarted my webserver... But its stil not working. I am i doing > something wrong? Thanks for your time... > It should be: > php_flag register_globals on php_value r

Re: [PHP] Re: [PHP-WIN] Register globals on and off

2003-01-30 Thread Jason Wong
On Friday 31 January 2003 14:36, Jason Wong wrote: > php_value register_globals 0 > > works for me. Perhaps it wasn't too clear. Use 0/1 rather than off/on. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] rename failes if file name contains single quotes

2003-01-31 Thread Jason Wong
such file". (B> whats wrong? (B (BYou probably need to escape certain characters such as space and the single (Bquote. (B (B-- (BJason Wong -> Gremlins Associates -> www.gremlins.biz (BOpen Source Software Systems Integrators (B* Web Design & Hosting * Internet & Intr

Re: [PHP] LOGOUT - Reset Session

2003-01-31 Thread Jason Wong
HTTP authentication are not related to sessions. Have a look in the manual > HTTP authentication with PHP -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Developm

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Jason Wong
ve missed something...? As Justin suggested "Start ruling them out, one at a time". You've ruled out one (number of files). Now figure out whether it's the size. Upload successfully larger files until it fails (or otherwise). -- Jason Wong -> Gremlins A

Re: [PHP] Introduction

2003-01-31 Thread Jason Wong
d greatly appreciate any help. It's good you that you explain what you're trying to do, and what you expect the program to do, and what actually happens instead. (Some people just say "here's my code, it doesn't work, what's wrong?" -- or words to that eff

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Jason Wong
g_ that line _may_ prevent uploads. Thus if you have trouble with uploads then you should NOT have that line. As most browsers don't give a monkey about that line there is no reason to have it, period. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

Re: [PHP] how can I start running a perl cgi from php

2003-01-31 Thread Jason Wong
d is very usefull for that purpose. Did you even try looking in the manual? "Program Execution functions"? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Int

Re: [PHP] Delete files via PHP

2003-01-31 Thread Jason Wong
etion of those temporary files. -- 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 po

Re: [PHP] another problem with 4.3.0 : imagecreatefromjpeg undefined

2003-01-31 Thread Jason Wong
27; '--with-mcrypt' > '--enable-sigchild' '--with-config-file-path=/etc' '--with-freetype' You probably need to add "--with-jpeg-dir" as well (and make sure you really do have libjpeg installed). -- Jason Wong -> Gremlins Associates -&

Re: [PHP] Introduction

2003-02-01 Thread Jason Wong
GET for get > request > { > echo ''.$key.'='.$value; // this prints to the > browser > } > ?> A easier way to achieve the above is simply: print_r($_POST); -- Jason Wong -> Gremlins Associates -> www.gremlins

Re: [PHP] question on listbox.

2003-02-01 Thread Jason Wong
o connection to the database"; >} >if (!mysql_select_db("MyDomain_com")){ > Print "Couldn't connect database"; > } else { > Print ""."\n"; > } echo " $sql="SELECT DISTINCT CategoryName From Categories ORDE

Re: [PHP] Strange problem

2003-02-01 Thread Jason Wong
} > > > Unquote Have a look the HTML output resulting from the above code. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] PHP3 Web Architecture Framework

2003-02-01 Thread Jason Wong
e because [snip] > What i m planning to do is follow PHP3 method of Coding. The version of > PHP that i have is 4.0.5. Can somebody suggest Struts like framework for > PHP3 type of coding. Have a look at phplib. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] question on listbox.

2003-02-01 Thread Jason Wong
Print "Couldn't connect database"; > > > } else { > > > Print ""."\n"; > > > } > > > > echo " > > > > $sql="SELECT DISTINCT CategoryName From Categories ORDER BY > > CategoryN

Re: [PHP] Time Delay?

2003-02-01 Thread Jason Wong
e a > better way that doing it like this: [snip] Try sleep(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search

Re: [PHP] reading attachmentsl

2003-02-01 Thread Jason Wong
functions" are of any use. 2) You can dissect a working PHP webmail application to see how others have done it: www.squirrelmail.org etc 3) You can make use of commandline programs to do the dirty work: reformime etc. Personally, I've had good results using reformime. -- Jason Wong -

Re: [PHP] mailing with SMTP server requiring authentication

2003-02-02 Thread Jason Wong
On Monday 03 February 2003 00:32, Johan Köhne wrote: > Is it possible and if so, how to send emails through SMTP servers that > require authentication (logging in)? Yes. Search the archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integ

Re: [PHP] including files...

2003-02-02 Thread Jason Wong
ust don't understand, it would have been _far_ easier for you to test it for yourself by writing a single-line file to init a variable, then a two-line file to include 1st file and display variable, than to have posted to the list. -- Jason Wong -> Gremlins Associates -> www.gremlins

Re: [PHP] help needed with form and mysql design.

2003-02-02 Thread Jason Wong
for setting and controlling access rights. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list arch

Re: [PHP] Loading CSV data into MySQL

2003-02-02 Thread Jason Wong
imestamp field that'll keep track of how things were inserted... Even then, do note that once you start deleting records your carefully ordered tables will soon have to be re-ordered. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integra

Re: Re[2]: [PHP] Turn off PHP for certain directories?

2003-02-02 Thread Jason Wong
On Sunday 02 February 2003 21:45, Tom Rogers wrote: > you need the php_flag bit To be explicit it should be php_flag engine Off NB there is no '=' sign. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] PHP Sessions Not Saving

2003-02-03 Thread Jason Wong
bin/sendmail > > During the ./configure part of the installation, PHP checks for > sendmail, but only in /sbin/sendmail. If it doesn't find it, the > function mail() isn't complied in. > > I just get 'call to undefined function mail()' in x/y.php on z. But accordin

Re: [PHP] Socket error connecting to mySQL

2003-02-04 Thread Jason Wong
ng to php/mysql would throw this error? Search the archives or search the mysql list archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] restricting acces to files

2003-02-04 Thread Jason Wong
NT ROOT of your webserver. And have PHP include() those files. 2) Set your webserver to interpret HTML files as PHP and include your authentication code using auto_prepend_file directive in php.ini. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Inte

Re: [PHP] Is my syntax wrong?

2003-02-04 Thread Jason Wong
ot;macasap", "update ads where > ad_id = ".$current_ad->Value("ad_id")." set > rotate=".($current_ad->Value("rotate")+1), "block=0","inc_current_ad"); Assign your query ("update ads where ...") to a variable,

Re: [PHP] Making /something/blah work instead of /something.php/blah

2003-02-04 Thread Jason Wong
hese something.php files then you can just use symlinks: ln -s something.php something Otherwise you can use Apache's rewrite directive, or you can set Apache to interpret ALL files as PHP. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrat

Re: [PHP] WYSIWYG Content Management system?

2003-02-04 Thread Jason Wong
S that allows for WYSIWYG like editing > but will work within specified headers/footers, style > sheets, etc? Then the site content would all be > generated on the fly from php/mysql. All the major/popular ones would/should have been registered at freshmeat and soureforge so check them out.

Re: [PHP] Protect Access to a Directory

2003-02-04 Thread Jason Wong
o insert this code I have > to write for each of the 400 html files, 400 php files with the same > name. Most of the files are arranged in the form of directories. Is > there a better way to be able to do this (Using PHP and MySQL). Thanks > in advance ! I've answered a similar questio

Re: [PHP] fputs / fwrites

2003-02-04 Thread Jason Wong
an't find a method for > resetting the offset pointer without having to close the file and reopen it > with w+ > > There must be a simpler way to do this ... RTFM -- rewind(), fseek(). -- Jason Wong -> Gremlins Associates -> www.

Re: [PHP] Creating associative array

2003-02-05 Thread Jason Wong
y = array_push(array("$file_name"=>"$image_url")); Please read the manual. array_push() does NOT work like that. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Ap

Re: [PHP] POP3 ... syntax error

2003-02-05 Thread Jason Wong
eceive the +OK answer). After > that > I sent the PASS command but I receive the answer -ERR syntax error. > > I don't understand why syntax error. > > Do you have an idea ? No need for code, it's not a php problem. Google for "pop3 commands" t

Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:21, Øystein Håland wrote: > The part $file == basename ($PHP_SELF) is intended to not link to the > calling document, but this part doesn't work. So, what shall I do instead? Could you explain HOW it doesn't work? -- Jason Wong ->

Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread Jason Wong
I need to set for > the include path, > but when I was in that file I didn't see any such setting, like in the > earlie versions of > php. 1) Read the changelog/history/release notes of all versions of php between the 4.0.3 and up to 4.2.3 2) Check the php log (turn

Re: [PHP] Variable Problem

2003-02-05 Thread Jason Wong
r testing) > > > > > > > this statement shows a text box, with only the first word before the space > charcter "%20" is shown, and is fact the only data that is submitted upon: > > > Can someone assist me? > > J.J. Johnson Proper HTML has value item

Re: [PHP] How can I link to all BUT $PHP_SELF

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:50, Øystein Håland wrote: > "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > On Thursday 06 February 2003 04:21, Øystein Håland wrote: > > > The part $file ==

Re: Re: [PHP] empty variables from a form

2003-02-05 Thread Jason Wong
y but PHP thinks otherwise. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archiv

Re: Re: RE: [PHP] Variable Problem

2003-02-05 Thread Jason Wong
above you should end up with a parse error. The correct syntax which should work regardless of your server settings is: -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] empty and isset

2003-02-05 Thread Jason Wong
the value > of $_POST['q1'] as expected. > > So why is both isset() and empty() returning true on q1? of type text are set regardless of whether you have entered anything. Thus isset() returns true. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source S

Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread Jason Wong
see whether anything has changed to cause this behaviour. NB if PHP doesn't give any errors, then it would suggest to me that your code logic is broken. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Desig

Re: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Jason Wong
error I keep getting. > configure: error: libjpeg.(a|so) not found. It's telling you that it cannot find libjpeg.a or libjpeg.so. Use "find / -name libjpeg.a" and "find / -name libjpeg.so" to find out where they are hiding. -- Jason Wong -> Gremlins Associates ->

Re: Re[2]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Jason Wong
it still can not find them.and keeps giving me > the error configure: error: libjpeg.(a|so) not found OK, so what is the full path to your libjpeg.* ? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Interne

Re: [PHP] restricting acces to files

2003-02-06 Thread Jason Wong
instead of posting and reposting the same question, you should spend the time looking at the archives where this question has been answered and discussed many times before -- the most recent being earlier this week. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source S

Re: Re[4]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 18:37, [EMAIL PROTECTED] wrote: > /usr/lib/libjpeg.so Then use: --with-jpeg-dir=/usr -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applica

Re: Re[6]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Jason Wong
glib.h: No such file or > directory /home/tmp/php-4.3.0/ext/gd/libgd/gd_jpeg.c:35: jerror.h: No such > file or directory And where are those files hiding? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * I

Re: [PHP] Re-passing array varibles

2003-02-06 Thread Jason Wong
was wondering if someone came across same problem and how it was solved? Please post your code. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] Creating an Array from a Recordset

2003-02-06 Thread Jason Wong
ysql_fetch_assoc($rsCOUNTRY)) { $datay[] = $row_rsCOUNTRY['CountryCount']; } print_r($datay); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Dev

Re: [PHP] Creating an Array from a Recordset

2003-02-06 Thread Jason Wong
actly. That's what you asked for! > when what I need is set the variable $datay to be something like this > > $datay=array(12,8,19,3,10,5,55,88,3); Try this: $datay=array(12,8,19,3,10,5,55,88,3); print_r($datay); -- Jason Wong -> Gremlins A

Re: [PHP] empty and isset

2003-02-06 Thread Jason Wong
rns true on an empty variable. Try this: -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives b

Re: [PHP] Date Difference Errors

2003-02-06 Thread Jason Wong
e, strtotime() and mktime() returned a negative number for dates > prior to 1970-01-01. On the RH 8 box, they both return -1. Is there any > work around to calculating date differences for dates prior to 1970? Have a look at the functions in manual > 'Calendar functions'. -- Ja

Re: [PHP] php pages broken after moving to a newer version

2003-02-06 Thread Jason Wong
ly, things do change between versions which can break some code. Without knowing what errors you're having it's going to be difficult to start debugging. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * I

Re: [PHP] empty and isset

2003-02-06 Thread Jason Wong
empty. Incorrect. Basically empty($var) returns TRUE if $var evaluates to FALSE, and in this context if $var is undefined it evaluates to FALSE. isset($var) returns TRUE if $var has been defined & is a non-NULL value, and returns FALSE if $var is undefined or is set to NULL. -- Jason Wong -

Re: Re: RE: [PHP] Variable Problem

2003-02-06 Thread Jason Wong
the difference between your code above and my code below: > > -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -

Re: [PHP] strip slashes from variable content

2003-02-07 Thread Jason Wong
On Saturday 08 February 2003 09:51, Sunfire wrote: > hi.. > i have a hidden variable and when its submitted to another script it has > the value of "\\\... anybody know how to get the \ out of it? Search www.php.net for "strip slash". -- Jason Wong -> Gremlins Ass

Re: [PHP] mail() vs sockets

2003-02-07 Thread Jason Wong
dn't > mean to annoy anyone with multiple posts. 1) Don't attach attachments, most mailing lists strip them out. 2) Don't start a new post by replying to an old one. 3) Search archives for "mass mailing" (or similar) to see past discussions on this subje

Re: [PHP] ImageJPEG?

2003-02-07 Thread Jason Wong
.$imagefilename; > ImageJPEG($image_thum,$dest); > > but that did nothing. No errors? What does $dest contain? Is it a valid path and writeable by the webserver? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] Globals off and passing data

2003-02-08 Thread Jason Wong
hod of accessing a remote database does not involve the use of "POST". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] Globals off and passing data

2003-02-08 Thread Jason Wong
databases. If you're using 'post' (as in HTTP POST) then aren't you in fact accessing a webserver which returns data from a database as opposed to accessing the database directly? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integ

Re: [PHP] Downloading File rather then Executing

2003-02-08 Thread Jason Wong
sample URL: > > http://d2mods.xfernet.com/filecenter/team.php > > Please help! I'm not sending any header() commands so why is it doing this? Does this happen for that particular file or for all files? If the latter then take it up with whomever has control over your server. If the former

Re: [PHP] incromenting $counter in a whloop

2003-02-08 Thread Jason Wong
hat should give you enough inspiration. -- 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] File upload problem

2003-02-09 Thread Jason Wong
On Monday 10 February 2003 05:56, Gurhan Ozen wrote: > You need to specifye the MAX_FILE_SIZE value as a hidden argument to the > form.. > See: http://www.php.net/manual/en/features.file-upload.php You don't. If you can show otherwise please post details to the list.

Re: [PHP] multiple file upload, yet again

2003-02-09 Thread Jason Wong
ow this -- HTML does not allow for the type of multiple uploads that you seek. Any solutions out there will be based on 'non-standard' technology -- javascript, java or some activex control. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems In

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread Jason Wong
On Monday 10 February 2003 08:45, Joshua Moore-Oliva wrote: > How would I go about setting the error reporting level? google > 'php error reporting level' -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Desig

Re: [PHP] text on image

2003-02-10 Thread Jason Wong
white, './fonts/times.ttf', 'text text > text' ); > ImageJpeg( $im, 'test_out.jpg' ); > > i.e. I want to have 'white' text, but text absolutely not rgb(255,255,255), > image truecolor. > > I must use imagecreatetruecolor? but how...? archive

[PHP] about writing extension

2003-02-10 Thread Joe Wong
Hello, I am going to write a PHP extension on top of some libraries that I have developed over the past few years. The libraries are bunch of .so file and some of them are C++. If I am going to compile my extension against 4.3 code base, will it be ok to run this with other 4.x PHP install base?

Re: [PHP] Delimited file values behaving strangely...

2003-02-10 Thread Jason Wong
other hand, the values that > are working as expected cast from, say, the string 22 to the int 22 as > expected. > > Never seen anything like this before - can anyone give me a pointer?? If in doubt print it out (TM). Use var_dump() on the values in question. -- Jason Wong -> G

Re: [PHP] numerics

2003-02-10 Thread Jason Wong
NEED server-side verification -- there's no substitute for it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ---

Re: [PHP] Integrating PHP with Perl

2003-02-10 Thread Jason Wong
reshmeat.net/projects/php-session/ This is supposed to allow access to PHP sessions from within Perl. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] problem with " and '

2003-02-10 Thread Jason Wong
When a user wants to add a comment on my site and uses either " or ', and > when it gets printed out, comes out as /" or /', either to the web page or > on a form to alter. I'm sure you mean " ... comes out as \" or \' ... ". If so, eithe

Re: [PHP] automatically delete records from a table

2003-02-10 Thread Jason Wong
did you search? If it's the one in my signature, did you select to search on "Bodies"? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -

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