Re: [PHP] Looping through Form Elements in a form

2002-12-11 Thread Jason Wong
e used to make a page where they correct there > mistakes. There are some classes in www.phpclasses.org which helps you validate forms. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet

Re: [PHP] window size and setting other properties

2002-12-11 Thread Jason Wong
eed to to output HTML which will resize windows, hide buttons, make the tea or whatever. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I'm having BEA

Re: [PHP] how uploaded files are managed and where they are stored on server

2002-12-11 Thread Jason Wong
n't have a crontab job running to clean them up > from time to time automatically. I need to know how uploaded files are > managed by PHP server. Any such information on line? The manual? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integr

Re: [PHP] PHP and MySQL

2002-12-11 Thread Jason Wong
On Thursday 12 December 2002 09:22, BABA Yoshihiko wrote: > Jason Wong wrote: > > Not sure why you're escaping the single quote. It's unnecessary -- and I > > suspect you mis-escaped $select as well. Any you can use this format, > > which IMHO, is a lot easier on t

Re: [PHP] Update query

2002-12-12 Thread Jason Wong
7;$price', > description = '$description' >shortdesc = '$shortdesc' > where ItemCode='$oldItemCode'"; You seem to be missing a comma after --> description = '$description' -- Jason Wong ->

Re: [PHP] Mail() Not working right

2002-12-12 Thread Jason Wong
k along with a few perl scripts that send mail as well. > Here is the code I am using > > mail("[EMAIL PROTECTED]", "testing 1234", "this is a test message"); > ?> If you get no php errors, try looking at your mailserver logs. -- Jason Wong ->

Re: [PHP] Proposal: New list etiquette/rule

2002-12-12 Thread Jason Wong
whitelisting feature where you can manually add people/lists from whom you definitely want to receive mail. In that case, as always, it's another case of user misconfiguration/ignorance. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integra

Re: [PHP] Update query

2002-12-12 Thread Jason Wong
#x27;$price', > description = '$description', >shortdesc = '$shortdesc', > where ItemCode='$oldItemCode'"; > $result = mysql_query($query); You've got an extra comma after '$shortdesc&#

Re: [PHP] PHP + MySQL looping question

2002-12-12 Thread Jason Wong
;]; > } >//Reset $result - SQL result > } Read all the results into an array first, then you can print it out as many times as you like from the array. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] Re: Nigerian oil scams

2002-12-12 Thread Jason Wong
s have been fallen for it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Its name is Public Opinion. It is held in reverence. It settles everything. Som

Re: [PHP] Error using require_once

2002-12-12 Thread Jason Wong
t;, see manual for details. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Support bacteria -- it's the only culture some people have! */ -- PHP Ge

Re: [PHP] how to send an MSWORD email?

2002-12-13 Thread Jason Wong
ore, pls enlighten me): There's a class called phpmailer at www.phpclasses.org which allows you to send html mail along with image attachments which appear within the mail (depending on your mail client). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

Re: [PHP] Uploading changes via Email

2002-12-13 Thread Jason Wong
depends on your mailserver, eg with sendmail you can its alias mechanism, with qmail you can use dot-qmail files. But I'm not sure how you would process "access.db" assuming that it is a file created by MS Access. -- Jason Wong -> Gremlins Associates -> www.gremlins.bi

Re: [PHP] ping...

2002-12-13 Thread Jason Wong
515 ms - The simplest measure would be how many packets transmitted and how many received. So something along the lines of: (preg_match("/^(\d{,}) packets transmitted, (\d{1,}) received,.*$/im", $result, $matches)) might work. Untested, so use with extreme cau

Re: [PHP] Uploading changes via Email

2002-12-13 Thread Jason Wong
the ftp part which I cant do. > > Is there a reference on how to pull out the email from qmail? I am new to > this concept. Have a look at this thread first: http://marc.theaimsgroup.com/?l=php-general&m=103757608904303&w=2 -- Jason Wong -> Gremlins Associates -> ww

Re: [PHP] FTP Listings for HTML page

2002-12-13 Thread Jason Wong
is doable? Yep, even without php. Just ask people to point their browser at your ftp site! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* One learns

Re: [PHP] File Upload

2002-12-13 Thread Jason Wong
a diverse range of browsers (NN, IE, Mozilla, Opera, Konqueror). Could you provide me with an example where your upload would not work without that "missing bit"? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hos

Re: [PHP] Text Fields - How Big Can They Be?

2002-12-14 Thread Jason Wong
to the PHP > script. I think that is browser-dependent. For example, for NN (4.x) I think it was 64K. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I

Re: [PHP] Is there any alternative to FuseBox?

2002-12-14 Thread Jason Wong
Doesn't fusebox have it's own mailing list where you can ask questions? If so wouldn't that be a better place to do so? In answer to the question in your subject: http://marc.theaimsgroup.com/?l=php-general&m=103964196113392&w=2 -- Jason Wong -> Gremlins Associates ->

Re: [PHP] Mail Error

2002-12-14 Thread Jason Wong
in C:\Apache2\htdocs\mymail.php on line 22 Any ideas? The smtp server specified in php.ini does not allow you to send mail. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Develo

Re: Re[2]: [PHP] File Upload

2002-12-14 Thread Jason Wong
your case you're quoting an urban legend ;-) I would really like to hear of a case where an upload fails *just because of* not putting in that hidden element. I've asked on the list before but never got any definite responses. -- Jason Wong -> Gremlins Associates -> www.gremlins

Re: Re[2]: [PHP] File Upload

2002-12-14 Thread Jason Wong
h the archives for problems related to file uploads, invariably someone would suggest adding MAX_FILE_SIZE. To me, I think it's a load of cobblers, unless someone can show me otherwise :) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] I did: Re: session_start

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 17:19, John Taylor-Johnston wrote: > I did call session_start() before anything is output to the browser. > http://www.php.net/manual/en/function.session-start.php > > I only have one php file so I know I'm recyling my code each time: > > session_name("TestALS"); > sess

Re: [PHP] Is there any alternative to FuseBox?

2002-12-14 Thread Jason Wong
On Saturday 14 December 2002 23:57, Javier wrote: > [EMAIL PROTECTED] (Jason Wong) wrote in > [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: > > Hi, sorry that I didn't make it clear. > I'm looking for an alternative to php-fusebox. For processing of forms,

Re: [PHP] Hey, If anyone can help me with this at all, I would really appreciate it...

2002-12-15 Thread Jason Wong
dy+(int)($ypad/2), $white, > "/home/xelerix/public_html/font/fonts/04B_03__.TTF", $text); > > imagepng($im); > > ImageDestroy($im); > > ?> -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &am

Re: [PHP] JPG from Blob to HTML

2002-12-15 Thread Jason Wong
send the appropriate headers beforehand. Search archives for details. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The doctrine of human equality repose

Re: [PHP] Getting a field value

2002-12-15 Thread Jason Wong
_id value of the course I just added in a a variable, and I don't > know how to retrieve that variable. If you're using MySQL you can use mysql_insert_id(). If you're using some other DBMS then have a look at the manual to see whether there is a similar function. -- Jason Wong -&g

Re: [PHP] needle in a haystack (Can't find :)

2002-12-16 Thread Jason Wong
; "10 things I hate about you", > "Ten Things That I Hate About You", > "10 Things That I Hate About You", > "Ten things that I hate about you", > "10 things that I hate about you", > "ten things I hate about you");

Re: [PHP] PDF Lib

2002-12-16 Thread Jason Wong
esn't standard GIF only have 8 bit (256 colours)? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Lie, n.: A very poor substitute for the truth, b

Re: [PHP] PDF Lib

2002-12-16 Thread Jason Wong
ore, nothing less. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Better tried by twelve than carried by six. -- Jeff Cooper */ -- PHP

Re: [PHP] mail()

2002-12-16 Thread Jason Wong
gistering with us /n" > ."http://www.oursite.com";; > > But in the actual e-mail sent, the link was plain text,not a link. Can I > force it to be a link? If you're sending an HTML email then you have to write the links yourself ("http://www.example.com rath

Re: [PHP] $HTTP_POST_VARS problem

2002-12-16 Thread Jason Wong
T_VARS['userfile']; > => C:\\Documents and Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir Better to use $_POST. > echo $userfile; > => C:\\Documents and Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir > > echo $HTTP_POST_VARS['userfile']['name'

Re: [PHP] Array

2002-12-16 Thread Jason Wong
monthschedule[6]; > > nothing comes up ($r is blank). Any thoughts? There > are missing elements (4,5,7-12) in $monthschedule. Use print_r($monthschedule) to see what's really inside the array. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syst

Re: [PHP] Reject some?

2002-12-16 Thread Jason Wong
uare brackets means logical NOT 2) A period (.) means "any character". If you want to match a literal period you need to escape it using a backslash. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Host

Re: [PHP] PHP Auto-Responder

2002-12-16 Thread Jason Wong
s way, you don't have to worry about what MTA your host is using, and does away with the need to install extra software. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Deve

Re: [PHP] Updating GD

2002-12-16 Thread Jason Wong
ludes/img.class.php on line 56 -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* What you don't know can hurt you, only you won't know it. */

Re: [PHP] Put text matching regex into array?

2002-12-17 Thread Jason Wong
,}"); > //Produces array of "-_-_---","--_-_--","-_" preg_match() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* America may be unique

Re: [PHP] [php] INSERT INTO

2002-12-17 Thread Jason Wong
. $query = "INSERT INTO testals VALUES ($part1,... -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I'm sitting on my SPEED QUEEN ... To me, it's E

Re: [PHP] if question

2002-12-17 Thread Jason Wong
'5') ) { > > and what can i use as an alternative syntex ?? _WHAT_ are you trying to test for? Trying to read your mind, I would say use AND instead of OR. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & H

Re: [PHP] real time output

2002-12-17 Thread Jason Wong
s the > process returns output I would like it dynamically displayed to the screen. > > Any ideas on how I can do this??? Disable output buffering and use flush(). Your mileage may depend upon your webserver. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Soft

Re: [PHP] Multiple Files Upload

2002-12-17 Thread Jason Wong
t as keywords). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* When you are in it up to your ears, keep your mouth shut. */ -- PHP General Mailing List (http://

Re: [PHP] writing uploaded file to another drive on another network?

2002-12-17 Thread Jason Wong
gt; network? > > for instance, my PHP pages are currently being hosted offsite ... would it > be possible to direct the uploaded pages to a box that's located at the > office? something like "192.168.100.41/home/mydirectory" ??? You can use php's ftp functions to transfer

Re: [PHP] Simple code that won't work

2002-12-17 Thread Jason Wong
rt that does not seem to work is the bit that does the > comparison. '=' is an assignment operator, what you want is '==' which is the equality operator. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] test

2002-12-17 Thread Jason Wong
18:28 +0800 > < From: > <"Mailer-Daemon" <[EMAIL PROTECTED]> > < To: > <[EMAIL PROTECTED] > < > < Sorry. Your message could not be delivered to: > < > < php-list,emc (The name was not found at the remote site. Check &g

Re: [PHP] delete() and unlink()

2002-12-19 Thread Jason Wong
>} else { > unlink($dir); >} > } > } > > delete ($c_dir); To summarise -- there is no delete() function in php, the delete() function you're using is a user-defined function and as such will do whatever you can make it do. -- Jason Wong -> Gremlins Ass

Re: [PHP] display edited field in table

2002-12-19 Thread Jason Wong
pdated field. What am I doing wrong? He is my code: We won't know what you're doing wrong if you don't tell us what the problem is. __What happens__ when you run your code? Does the monitor blow up or what? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open So

Re: [PHP] Inserting tab delimited textfiles into mysql

2002-12-19 Thread Jason Wong
read in the text file 2) use explode(), with "\t" as the delimiter to split each line into their component parts -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Deve

Re: [PHP] display all results

2002-12-19 Thread Jason Wong
but I guess you probably want something like: mysql_query(...); $result = mysql_fetch_*(...); // do something with the 1st record $result = mysql_fetch_*(...); // do something with the 2nd record ... ... -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open So

Re: [PHP] Problem with sessions.

2002-12-19 Thread Jason Wong
s the > first page: So what's the difference between the two servers? > My PHP.ini file is standard to a RedHat RPM install, but I will include it > as an attachment. I don't think you can send attachments to the list. Examine the php.ini on both servers and play &qu

Re: [PHP] Another problem with conditional statements

2002-12-19 Thread Jason Wong
;& $b != 124): Nope, this doesn't appear to work > either. > do sum stuff; > break; > > endswitch; AFAICS all of them should work. The 2nd case may not work the way you intended. It is testing for, if $a is TRUE, AND if $b equals 124. Where are you gett

Re: [PHP] Another problem with conditional statements

2002-12-20 Thread Jason Wong
le bunch of if-then-else statements. For one thing it looks (IMO) a lot neater. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Beware of bugs in the above co

Re: [PHP] Error installing

2002-12-20 Thread Jason Wong
is your problem, but one thing which can cause this is when your browser is set to reject cookies and the page tries to set a cookie and redirects to itself to read the cookie which it tried to set, it doesn't find it so it sets it again and redirects ... until you get the error message. --

Re: [PHP] login

2002-12-20 Thread Jason Wong
dea. What's to stop people who haven't logged in from adding/setting their own clientid? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I got vi

Re: [PHP] Problem with functions

2002-12-20 Thread Jason Wong
y of the main loop. You must have some other problem. Crank up the error reporting and look at the error log. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development

Re: [PHP] Is there any method to filter the single quote from astring?

2002-12-21 Thread Jason Wong
t started out) -- you don't stripslashes() when retrieving the data. The slashes that were added with addslashes() are _not_ stored when the data is inserted. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] Forms and PHP variables

2002-12-22 Thread Jason Wong
e a form where users input numbers only, is there a way I can have php > check to make sure a letter or other character didn't get put in by > accident. I was looking at ereg, but not to familiar with this or if it > would work in this case. Try this: http://www.phpclasses.org/brow

Re: [PHP] fgets() question?

2002-12-22 Thread Jason Wong
to differentiate between an empty-string read (a blank line in a > flat-file) and a FALSE return from fgets() ?? Your code is probably incorrect. Does the example for fgets() in the manual work for you? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Softwar

Re: [PHP] uploading flat text to MySQL

2002-12-22 Thread Jason Wong
ng from eg DOS -> Unix, and vice-versa. If you're uploading the file via an HTML form then you're getting the file unchanged. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intra

Re: [PHP] fwrite() blank-line Quirk?

2002-12-22 Thread Jason Wong
d of each string... fwrite() only writes what you tell it to write ... > Is there a simple way to get rid of this blank line or somehow get fwrite() > to NOT put a newline on the end of a string? ... so it must be your code which is putting it there? Please post your code. -- Jason Won

Re: [PHP] Re: \Z characters

2002-12-22 Thread Jason Wong
or a field that is a string and consist of a \Z > > character! not more not less. I don't understand if this is what you want > > or you want to find all fields that CONTAIN a \Z in any position. In this > > case the correct query would be > > > > select id,PVLN fr

Re: [PHP] Thumbnail generation

2002-12-22 Thread Jason Wong
On Monday 23 December 2002 14:26, Centaur zeus wrote: > Is there some common utilities recommended ? ImageMagick -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Developme

Re: [PHP] $_COOKIE and include() or require()

2002-12-23 Thread Jason Wong
you should NOT be including via URL but via the local filesystem: include('local/filesystem/path/to/common.php'); What does common.php do anyway? There is a whole world of difference between including a file via URL and via filesystem. -- Jason Wong -> Gremlins Associates -&g

Re: [PHP] Plotting Data Graphics

2002-12-23 Thread Jason Wong
On Monday 23 December 2002 13:06, Alexandre Soares wrote: > Hi All, > > Where I can get more information about a free library to plot 2d > and 3d data information, google for jpgraph -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems

Re: [PHP] preg_replace question

2002-12-23 Thread Jason Wong
preg_replace. Just use a simple substr_replace() or similar. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* She ran the gamut of emotions from 'A&#x

Re: [PHP] How To Get Last Item Of An Array?

2002-12-25 Thread Jason Wong
f last item of an array is one less than the total > number of elements in the array. > > $num_elements = count( $cat_data ); > $last_element = $cat_data[$num_elements-1][0]; > // 0 being what you were seeking Or, if you don't need to keep $cat_data intact, you can use array_pop().

Re: [PHP] How to display field after MySQL join.

2002-12-25 Thread Jason Wong
use the normal function of $row[title] I get field from > the "site_services" table but I cannot work out how to get the > "site_servicescat" title field. I have tried $row[cat.title] but all I > get is errors. > > Any help would be really appreciated as I th

Re: [PHP] rounding...sort of

2002-12-28 Thread Jason Wong
On Saturday 28 December 2002 17:49, Peter Lavender wrote: > Hi everyone, > > I have a nubmer: 4.1 but I only want the whole number 4, even if it's > 4.9, so this rules out using round (Unless I missed a parameter). > > How could I do this.. I'm drawing a blank

Re: [PHP] IIS Quit Working

2002-12-29 Thread Jason Wong
://localhost/ and nothing comes up except a "This page cannot be > displayed" thing since I'm using IE. Any ideas why this is happening? Turn on error reporting and log to file and examine it for any clues. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Sourc

Re: [PHP] Form duplicate post problem

2002-12-29 Thread Jason Wong
ge refresh how different is that to the 'one page and use a "middle-man" technique'? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* If *I

Re: [PHP] Form duplicate post problem

2002-12-29 Thread Jason Wong
irect method, the back button takes him to the redirect. Still trying to > figure that one out. Would be nice to make the browser history "forget" > that redirect. :-P I don't think a server redirect shows up on the browser's history list! Try it. -- Jason Wong ->

Re: [PHP] PHP & PostgreSQL

2002-12-30 Thread Jason Wong
rray. > * For PGSQL, you can get the database name, the field name > even the *host name* but you can't get the table name from a > particular query? Not sure what you're getting at here. Surely for any particular query, _you_ would know what table(s) is/are being used? -- Jas

Re: [PHP] PHP & PostgreSQL

2002-12-30 Thread Jason Wong
#x27;ve lost me. In your OP you say you wanted the "table name", but now you're talking about the "dbname"? For dbname, you can use (oddly enough) pg_dbname(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &a

Re: [PHP] PHP & PostgreSQL

2002-12-30 Thread Jason Wong
On Monday 30 December 2002 19:11, Rick Widmer wrote: > At 06:20 PM 12/30/02 +0800, Jason Wong wrote: > >On Monday 30 December 2002 18:13, Boget, Chris wrote: > > > I'm switching from a MySQL environment to PGSQL and I'm > > > going through and trying to learn

Re: [PHP] PHP & PostgreSQL

2002-12-30 Thread Jason Wong
defined in the specified database. It cannot "get the table name for the query that was just run...". And another thing, you _know_ the query "that was just run", and presumably the tables used is part of the query itself, so why would you need another functio

Re: [PHP] PHP & PostgreSQL

2002-12-30 Thread Jason Wong
mp. If you've got legacy data which are stored as unix timestamps then you can do one of the following: 1) Do a one time conversion from unix timestamp to pg date/time 2) Manipulate the dates in PHP instead 3) Write your own function in pg to convert them on the fly -- Jason Wong -> Gre

Re: [PHP] function misfunction

2002-12-30 Thread Jason Wong
nside your function come from? It > doesn't appear that you've instantiated it. Specifically, if it's instantiated elsewhere in your code and it's in the global scope then you need to declare it as global within your function: function setCurrentDevGroup($devID) { global $

Re: [PHP] PHP 4.3 JPG Support. Whats needed?

2002-12-30 Thread Jason Wong
> '--enable-mm=shared' '--enable-xml' '--enable-ftp' '--disable-debug' > '--with-libdir=/usr/lib' '--with-ldap' '--with-imap-ssl' > '--with-pdflib=shared' > > Can you tell me what's required for JPG Support?

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Jason Wong
t is in the function. Hmm, whenever you post code to the list you should *always* (where possible) copy and paste. If the code that you post is different to that which you are actually running then it makes it difficult for people to help you. So if you can, could you please post your complete un

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Jason Wong
rn $lookuptable; > } But something like: echo setCurrentDevGroup($devID); gives the wrong/no value? If so, could you show how you are using this function in your code? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Desig

Re: [PHP] Function misfunction - 2

2002-12-31 Thread Jason Wong
at least. > My understanding was that the function would return a value for > $lookuptable which was useable in the code above. This is incorrect then? If you want it so that the value of $lookuptable (in the global scope) is changed when you call your function then you have to do something like:

Re: [PHP] mail()

2002-12-31 Thread Jason Wong
ning on that same server? If not then you'll have to do the obvious, ie either install an SMTP server, or point php.ini to a valid server. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intra

Re: [PHP] MySQL Join

2002-12-31 Thread Jason Wong
OM table? > > There seems to be very little information anywhere on DISTINCT This looks suspiciously like a MySQL question, better to ask on the mysql list. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL

2002-12-31 Thread Jason Wong
You can use something like: DELETE FROM table WHERE column IN (val1, val2, val3, ..., valN); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Most people

Re: [PHP] Php 4.3.0 and Mail() function

2003-01-01 Thread Jason Wong
gt; Is the a "--with-sendmail-path" option or something like that? qmail comes with a wrapper called sendmail which emulates sendmail. I'm not sure where php's configure expects to find sendmail but you can try copying/linking the wrapper to /usr/lib and/or /usr/sbin. --

Re: [PHP] How To Delete Multiple Items Of Multiple Tables Using PHP and MySQL

2003-01-01 Thread Jason Wong
TE statement can only delete from a single table. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "You show me an American who can keep his mo

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jason Wong
a page -- it is supposed to redisplay the page from the cache. Buggy browsers like NN, IE & Mozilla etc reloads the page. Well behaved browsers like Opera redisplays from cache and hence your problem. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syste

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jason Wong
quot;); > ?> If you use Opera to access your application, does the BACK button allow you to see previously viewed 'secure' pages after being logged out? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Host

Re: [PHP] Bcc with mail....

2003-01-01 Thread Jason Wong
t;My Name" as Bcc recipients are not displayed. Thus: "Bcc: [EMAIL PROTECTED]\r\n" would be adequate. If you really want to include a name with the email address then the correct format is: "Bcc: \"My Name\" <[EMAIL PROTECTED]>\r\n" -- Jason Wong ->

Re: [PHP] Can it be doen with Array????

2003-01-02 Thread Jason Wong
uld've been much quicker than asking on the list? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The verdict of a jury is the a priori opinion of tha

Re: [PHP] BreadCrumb Class

2003-01-03 Thread Jason Wong
a new thread. To achieve this, click on "New message" instead of "Reply" within your mail client, and enter the list address as the recipient. You can save the list address in your address book for convenience. -- Jason Wong -> Gremlins Associates -> www.gremlins.bi

Re: [PHP] returning data from a function in a class

2003-01-03 Thread Jason Wong
id in IE6, echos 0 in Mozilla ??? > echo(" la la la $session_id>"); ... probably because Mozilla is not accepting cookies? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & In

Re: [PHP] PHP post size question

2003-01-03 Thread Jason Wong
gt; > Presently, these are set to 1008M and 1006M respectively, and a file of > size 620K still gives me a "413 Error - Request Entity Too Large." Search the archives for "Request Entity Too Large" -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Sour

Re: [PHP] Newbie Help

2003-01-03 Thread Jason Wong
gt; NNTP server and insert them into a MySQL DB? Try searching: www.phpclasses.org www.hotscripts.com www.phpbuilder.net -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Application

Re: [PHP] true ip tracking

2003-01-03 Thread Jason Wong
ures, you may have people registering multiple times to cast multiple votes. In short there is no surefire way of preventing people from voting more than once. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting

Re: [PHP] Still executing afte die()?

2003-01-03 Thread Jason Wong
() redirect. Try this: if (not_lowercase) { insert_into_db(); header(); die(); } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* because

Re: [PHP] Still executing afte die()?

2003-01-03 Thread Jason Wong
utting the insert code into an else statment solved the > problem, but it's ugly, and the question still remains... why does it do > this? It cannot continue after a die(), unless there's a bug in PHP. If you still think that it does then post your full code and the circumstances un

Re: [PHP] exec() not exec-ing?

2003-01-03 Thread Jason Wong
y and possibly the full path to ncMailer.py as well. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The profession of book writing makes horse racing see

Re: [PHP] true ip tracking

2003-01-03 Thread Jason Wong
them think twice before putting in multiple votes :) But seriously, look in the archives the hows and whys have been covered quite comprehensively in the past. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting

Re: [PHP] exec() not exec-ing?

2003-01-04 Thread Jason Wong
rst place. Unfortunately, this didn't solve the problem. Does the webserver have permission to: (a) execute the python binary (b) access and read ncMailer.py -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &am

Re: [PHP] security in guest book and user forums

2003-01-04 Thread Jason Wong
or and not allow > in my forms? Disallow all HTML tags by using strip_tags(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "A dirty mind is a joy

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