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

2003-01-02 Thread Jason Sheets
need to use other software. I'm glad to see mcrypt support for windows because it finally allows me to use my favorite PHP encryption library between both platforms. Jason On Thu, 2003-01-02 at 10:02, J Smith wrote: > > As I've said a bunch of times, I hate plugging my own softw

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] No Global Code Fixing

2003-01-04 Thread Jason Sheets
If you do that you might as well just turn on register globals, you should look at the $_REQUEST variable, it combines $_POST, $_GET and $_COOKIE into one array so you can just reference $_REQUEST['variable'] for example $_REQUEST['one']. Jason On Sat, 2003-01-04 at 11:50,

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

Re: [PHP] web reload

2003-01-05 Thread Jason Sheets
ays you could do it as well but that should help you think about it. Jason On Sun, 2003-01-05 at 09:12, TACKEL wrote: > Hi, > > I have a php file that set up a cookie that receives from a form and also uses it. > My problem is the first time the value is submitted via form. The co

Re: [PHP] php_admin values in httpd.conf

2003-01-05 Thread Jason Wong
/var/www/ HERE WHAT TO WRITE TO HAVE > > > > Where can I find a list of all these php_admin parameters to use in > Apaches' httpd.conf? manual > ini_set() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * We

Re: [PHP] Mysql update problems

2003-01-05 Thread Jason Wong
ieve > the problem is around the execution of the db query, > but I can't seem to get it figured out. [snip] So that other people don't have to scratch their heads as well could you tell us what the problem is? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz

Re: [PHP] system()

2003-01-05 Thread Jason Wong
s > doing? If you're using linux or similar you can append an ampersand (&) to your command to make it run in the background: system('mycommand &'); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Desig

Re: [PHP] printer_open

2003-01-05 Thread Jason Wong
want finer control over the printed output than what HTML can provide, then you can consider creating a PDF file instead. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Dev

Re: [PHP] emulate Post with redirect

2003-01-05 Thread Jason Wong
merchant account matches > the product. But then I ask this question out of curosity. Have a look at curl and snoopy. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Develop

Re: [PHP] problems adjusting size of permissable file upload

2003-01-06 Thread Jason Wong
the archives would tell you all you need to know about uploads and was afraid to ask. > p.s. ... how do i determine what version of PHP is running on my server? phpinfo(); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] MySQL vs PostgreSQL

2003-01-06 Thread Jason Sheets
y so take other people's advice carefully, in the end look at performance, stability, ability to scale, and support. Jason On Mon, 2003-01-06 at 06:11, Jeffrey B. Ferland wrote: > > > I'm just deciding which DB to use for my projects and I'm not clear with > one > >

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Jason Wong
ned on in my php.ini file, but phpinfo() says it's turned > off. phpinfo() will tell you which php.ini it is using. Are you editing the same one? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Intern

Re: [PHP] time stamp screwing up

2003-01-06 Thread Jason Wong
uot;INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES > (NULL, '$name', '$pass', '$email', '$time')"; > } > > > It inserts -00-00 > instead of the current date What column type is dateAdded? If it's a mysql DATE ty

Re: [PHP] progress page

2003-01-06 Thread Jason Wong
ge that says, processing, please wait and maybe have an icon like a > progress bar or something. How do I pop up a page and have it disappear > when the the other page is done loading? Have a look at the archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Soft

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 00:43, Rad Craig wrote: > Yes, I restart my WebServer (IIS 5) each time. > > Yes, I am editing the .ini file the phpinfo() reports it is using. Gawd, I hate it when people top-post. > > -Original Message- > > From: Jason Wong [mailto:[EMAIL

Re: [PHP] time stamp screwing up

2003-01-06 Thread Jason Wong
On Tuesday 07 January 2003 00:49, - \[ Paul Ferrie \] - wrote: > So Jason what your saying is this > > $query = "INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES > > > (NULL, '$name', '$pass', '$email', '$time')&quo

Re: [PHP] Need help detecting attached files

2003-01-06 Thread Jason Wong
at works for > POST or GET How do you mean more generic? I don't think you can upload using GET anyway. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] No Idea - Comparing Lines

2003-01-06 Thread Jason Wong
print "$kbitsout Kbits - $LineCount\n"; > $LineCount++; > } echo() all the variables used and see what you get. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I'm rated PG-34!! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL field to maintain formatting

2003-01-06 Thread Jason Sheets
t http://www.php.net/manual, if you allow users to enter tags then they should show up using method. Jason On Mon, 2003-01-06 at 19:34, Vernon wrote: > I'm having users post messages to a MySQL database records and want to > retain the formatting (such as carriage returns and so forth).

Re: [PHP] Get your *own* IP...?!

2003-01-07 Thread Jason Wong
On Tuesday 07 January 2003 20:28, [EMAIL PROTECTED] wrote: > Then you write a short script, that whenever IP changes then start it anew. > You don´t have to make it public. Right, so what if people like your site so much and they bookmark a particular page? -- Jason Wong ->

Re: [PHP] Zend IDE vs. PhpEd

2003-01-07 Thread Jason Wong
then trying to use $varname when you really meant to use $varName. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* There is nothing more silly than a silly

Re: [PHP] mkdir(blah,0777)

2003-01-07 Thread Jason Wong
Look at umask(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* An age is called Dark not because the light fails to shine, but because people refuse to see

Re: [PHP] $_SERVER content

2003-01-08 Thread Jason Wong
t > show PATH_TRANSLATED and HTTP_REFERER. > someone knows how to get a consitent content of $_SERVER? Or where and how > can I configure my > system to see the above? The contents of $_SERVER is provided by the webserver and hence the differences between versions and platforms. There's

Re: [PHP] unlink ($files);

2003-01-08 Thread Jason Sheets
. Jason 2003-01-08 at 07:24, Adam Voigt wrote: > Can't do wildcards like * because thats something that as I found out a > few > days ago, is expanded by the shell into a full command, so because your > not > running a shell, it can't be expanded and the raw unlink call to

Re: [PHP] Adding HTTP URL Code

2003-01-08 Thread Jason Wong
ves. Try searching for something like "regex url" or "regex hyperlink" etc. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* NOTICE: a

Re: [PHP] $query help :(

2003-01-08 Thread Jason Wong
oll"; > } else { > print "&result=poll created"; > } > Those are friendly error messages that are useful _after_ your code is working. When developing you should always use mysql_error() to see the real error message. > I have tried everything i can think

Re: [PHP] float precision

2003-01-08 Thread Jason Wong
ad of the > expected 0.0. This was also confirmed by a user in #php. Anyone have > any ideas? Use the BCMath functions if you require absolute precision. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hostin

Re: [PHP] Segmentation fault and var_dump()

2003-01-09 Thread Jason Wong
try using print_r() instead of var_dump(). It's output is not as detailed as var_dump() but may be sufficient for your needs. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications De

Re: [PHP] directory listing

2003-01-09 Thread Jason Wong
, that is what you would have to do. Check out the user notes on the online manual. I think someone has posted some code that you can use or adapt. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & I

Re: [PHP] how to make server response to emails

2003-01-09 Thread Jason Wong
lease? Most MTA systems can process mail through an arbitary program. Thus you can use a CLI version of PHP to process your mail. Search the archives for "process email". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Des

Re: [PHP] how to make server response to emails

2003-01-09 Thread Jason Wong
On Thursday 09 January 2003 18:46, See kok Boon wrote: > To: Jason Wong > > Hi, > > Sorry, I am abit dumb. Where is the archive that you refer to in your > email? google > "php archive" Click on the link for MARC. -- Jason Wong -> Gremlins Associates ->

Re: [PHP] mail submission... from flash

2003-01-09 Thread Jason Wong
On Friday 10 January 2003 00:57, travis wrote: > any one see why this wouldnt work? Why don't you tell us _how_ it doesn't work? [snip] -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] Re: How can I redirect to another php page

2003-01-09 Thread Jason Sheets
You should always use the exit after a redirect, the browser is not required to go to the new location. If you do not exit your script after you redirect and the browser does not go to the new location you risk the unintended continued execution of your script. Jason On Thu, 2003-01-09 at 18:30

Re: [PHP] Session Expiration?

2003-01-09 Thread Jason Sheets
some browsers and referer is sent by the client but every little bit helps. Jason On Thu, 2003-01-09 at 20:09, Matias Silva wrote: > I have gone through the past posts and can't find an answer to my problem > > I'm using a URL based session management schema, and I was won

Re: [PHP] PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Jason Sheets
Not exactly sure why your transactions aren't working but if your script already has an open connection to the database and you issue another call to pg_connect with the same connect string PHP will return the existing connection and should not create another connection to the database, that is pro

Re: [PHP] ftp and www

2003-01-07 Thread Jason Wong
browser? > What is php's support for ftp? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* A couple of kids tried using pickles instead of paddle

Re: [PHP] groupware tool in PHP for PostgreSQL

2003-01-07 Thread Jason Wong
to start 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

Re: [PHP] I am a dullard

2003-01-07 Thread Jason Wong
ing_date','$meeting_note')"; > $result=mysql_query($Query); > mysql_close ($Link); > ?> And what is the problem? What does $Query contain? After doing mysql_query() what does mysql_error() show? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Jason Wong
t; There must be a way to specify the ascii or hex value for EOF in an echo > statement no? Yes. man echo. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] Re: Change Date

2003-01-11 Thread Jason Wong
On Sunday 11 January 2004 20:52, Naqashzade, Sadeq wrote: > So Thanks, but can you get me some example code? There are plenty of examples in the manual! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Intern

Re: [PHP] Session vars vs. POST/GET vars?

2003-01-11 Thread Jason Wong
On Saturday 11 January 2003 19:47, Jason k Larson wrote: > FYI: > Don't like auto register globals ... try the following at the beginning > of your script. > > ini_set ('register_globals','Off'); > > Works for me places I'm hosted at. register_

Re: [PHP] Date Comparison

2003-01-11 Thread Jason Wong
> "2003-1-11") > { > echo "true"; > > } > which doesn't work in some cases... Actually the above should work in all cases as you're comparing two strings constants :) In any case if your dates are in ISO format (-MM-DD) then simple comparison usin

Re: [PHP] Re: Session vars vs. POST/GET vars?

2003-01-11 Thread Jason Wong
On Saturday 11 January 2003 18:39, Noel Wade wrote: > Nevermind, just found the $HTTP_SESSION_VARS array... If you're using a relatively recent version of PHP, you should use $_SESSION. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Int

Re: [PHP] Loading Information into an array.

2003-01-11 Thread Jason Wong
comment. > > http://www.philipnz.com/example.jpg > > I can get the images to load in their left and right position, how ever i > can't get the right array to print each comment with the image. > > Any help would be cool. Showing us your code would be even cooler! -- Jason Won

Re: [PHP] global to superglobal

2003-01-11 Thread Jason Wong
n the string on the right has nothing to with PHP, it's just the standard way to denote the parent directory. Single-quoted strings are literal strings, double-quoted strings does variable expansion. The second statement can also be rewritten as: "{$_SERVER['DOCUMENT_ROOT

Re: [PHP] Changing permissions with mkdir?

2003-01-12 Thread Jason Wong
On Sunday 12 January 2003 12:56, Ben Cheng wrote: > When I run mkdir("path to new dir", 0777); I get a directory that has > owner and group set to "nobody" and drwxr-xr-x permission. How do I > get the permission to be set to drwxrwxrwx? umask() -- Jaso

Re: [PHP] Uploading images to a particular folder in the server

2003-01-12 Thread Jason Wong
On Sunday 12 January 2003 12:55, Rick Emery wrote: > in your HTML file: > > > > in PHP script: > copy($HTTP_POST_FILES['picfile']['tmp_name'], "../images/newfilename.gif"); Better still check out the example in the manual. -- Jason Wong ->

Re: [PHP] Permission Denied

2003-01-12 Thread Jason Wong
; to get the http://www.bob.com/joe/ bit and do it dynamically? print_r($_SERVER) will show you which bits you can use. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Developme

Re: [PHP] Simple Form Processing

2003-01-12 Thread Jason Wong
doesn't behave as expected always print_r() your variables so you can whether they contain what you expected them to contain. And if $_FILE doesn't contain anything then check php.ini to ensure that you have enables file uploads. -- Jason Wong -> Gremlins Associates -> www.gr

Re: [PHP] php editor

2003-01-12 Thread Jason Wong
. Search the archives, this gets asked at least once a week if not more. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* You should make a point of trying

Re: [PHP] count characters

2003-01-12 Thread Jason Sheets
Try the following code, please note you may want to trim() the string as well if it is coming from a user. Jason On Sun, 2003-01-12 at 10:32, [EMAIL PROTECTED] wrote: > I want to count characters without space "character". > $char="hello world" > so the result sho

Re: [PHP] php_network_getaddresses()

2003-01-12 Thread Jason Sheets
Include will evaluate the file as PHP code, that most likely is not what you want it to do. Take a look at file_get_contents(), manual page available at http://www.php.net/manual/en/function.file-get-contents. Jason phpSun, 2003-01-12 at 19:36, Stanislav Skrypnik wrote: > Hi all, > I ha

Re: [PHP] Pre-built CMS - Anyone recommend one?

2003-01-12 Thread Jason Wong
On Monday 13 January 2003 05:07, Chris Mason wrote: > eZPublish is probably your best bet. Have a look at Typo3. More difficult than average to install and use but extremely powerful and flexible. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems In

Re: [PHP] "document contained no data"

2003-01-13 Thread Jason Wong
ii) your webserver is severely ill b) if in all cases, the request is logged but you get that error then you could try putting some simple code at the beginning of your page to confirm that the page _is_ being executed. Something like writing a line to a file. -- Jason Wong -> Gremlins

Re: [PHP] Need some help in "exec"-attack

2003-01-13 Thread Jason Wong
his hurdle, the second problem is that your destination directory is not writeable by any user other than mysql. In short you're better off using mysqldump to backup your databases. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] Need some help in "exec"-attack

2003-01-13 Thread Jason Wong
On Monday 13 January 2003 21:13, Alex Ciurea wrote: > Hi, > > I think I've solved the problem > > group owner of the dest_dir must be apache !!! NB if mysql is running whilst you're copying the files then you could end up with incorrect backups. -- Jason Wo

Re: [PHP] question on Header(location

2003-01-13 Thread Jason Wong
ipt as some users may not have it turned on > (odd I know but a reality still). Only javascript can open new a window. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Dev

Re: [PHP] forms

2003-01-13 Thread Jason Wong
On Tuesday 14 January 2003 09:53, cj wrote: > Would you know of any tutorial web sites which would explain how to do > this? google knows. >As I have not done any java programing before. javascript != java -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] globals off in function

2003-01-14 Thread Jason Wong
nnot see what you're doing wrong. Does $smarty->assign("message", $message work in the main loop (ie when not in a function)? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intr

Re: [PHP] Going from 1040601600 to Human time

2003-01-14 Thread Jason Wong
On Tuesday 14 January 2003 22:16, Davíð Örn Jóhannsson wrote: > I used mktime to make 1040601600 this stirng but I want to go back to > human readable time how should I do that? strftime() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integ

Re: [PHP] mail client?

2003-01-14 Thread Jason Wong
On Tuesday 14 January 2003 22:45, Steven Balthazor wrote: > I use and recommend Squirrelmail. > http://www.squirrelmail.org/ Squirrelmail doesn't support POP3 on it's own which is what the OP wanted. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open S

Re: [PHP] Going from 1040601600 to Human time

2003-01-14 Thread Jason Wong
on. I just always > used date(). > There are so many different ways to do something and one of the main > reasons I like this list so much is that you can learn alot of them. The php manual makes wonderful bedtime reading material (for insomniacs who wants to to get some sleep). -- Jas

Re: [PHP] valid MySQL result resource

2003-01-14 Thread Jason Wong
/public_html/Info/viewdb.php on line 8 In cases like these searching the archives is a no brainer. Just plugin the error message and out pops your answer! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Int

Re: [PHP] Dumping Tables from MySQL

2003-01-14 Thread Jason Wong
c() and friends. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* One way to make your old car run better is to look up the price of a new model. */ -- P

Re: [PHP] query question

2003-01-14 Thread Jason Wong
: "SELECT doo FROM dah WHERE dee IN('val1', 'val2', ..., 'valN'" -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /

Re: [PHP] htmlspecialchars

2003-01-14 Thread Jason Wong
ecialchars whenever we > want to display it. It mostly depends on what you do with the data. For example: If you only store the data once (and never re-edit it) then use (1). If the data is used for other purposes as well (like gets sent in an email) then use (2). -- Jason Wo

Re: [PHP] PHP & RTF

2003-01-14 Thread Jason Reid
http://www.phpbuilder.com/columns/nair20020523.php3 Looked fairly good when I read thru it a while back. Hope that it might be able to help. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: "[-^-!-%-" <[EMAIL PROTECTED]> To: &

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason Wong
then you need single quotes around the expression that it is being compared to. IOW your query should look like: $query = "SELECT Newsheadline, News, Contact FROM news WHERE Newsid = '{$_GET['id']}'&quo

Re: [PHP] sending array

2003-01-15 Thread Jason Wong
t2.php, I get "Warning: Variable > passed to each() is not an array ". You can't pass an array thru the URL. What you need to do is serialize() it then urlencode() it (or maybe rawurlencode()). Then you can put the resulting string in the URL. In test2.php you would u

[PHP] fgets and Macs

2003-01-15 Thread Jason Jacobs
y only solution (without upgrading php) to convert the text files to unix format? Or am I looking in the wrong place for that value? Thanks for your help. ----- Jason Jacobs Support a Constitutional Amendment to protect the Pledge of Allegiance and National Motto. Go to www.wepledge.com

Re: [PHP] sending array

2003-01-15 Thread Jason Wong
hat are more than, say, 5 minutes old. IOW use sessions :-) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The two oldest professions in the world have b

Re: [PHP] Send email when some action

2003-01-15 Thread Jason Wong
rm a member by mail that his (let'say) > current status changed from inactive to active, or from active to inactive? > I mean, whenever a change occur on member's details, a mail is sent to him > telling what was changed. Any posssibility? Yes, use the mail() comm

[PHP] Regular Expression Help in my PHP! Sorry if wrong group

2003-01-15 Thread Jason Lehman
I have a script that turns certain words into links. That I am having no problems with, it is when I want to turn the links back in to plain text that I am having the problem. Below are my examples. And I know my regex is being greedy but I don't know how to stop it from being so damn greedy

[PHP] Re: Regular Expression Help in my PHP! Sorry if wrong group

2003-01-15 Thread Jason Lehman
I figured out what I was doing wrong. My regexp should of looked like this /]*>(Tampa)<\/a>/ and that made it more specific and kept it to that match. Jason Lehman wrote: I have a script that turns certain words into links. That I am having no problems with, it is when I want to

Re: [PHP] Regular Expression Help in my PHP! Sorry if wrong group

2003-01-15 Thread Jason Lehman
Thanks for the response. I found this web page (http://www.itworld.com/nl/perl/01112001/) right after I submitted my question. It was great for explaining regexp's greediness. 1lt John W. Holmes wrote: I have a script that turns certain words into links. That I am having no problems with, it

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason Wong
ainst this, but it dosn't always work with the > quotes. The recommended way to refer variables inside doubled-quoted strings is enclose them in braces {}. Thus: "{$_GET['id']}" > Perhaps the dev team can look more into this. Can you give examples where it doesn&

Re: [PHP] Images : Store in dB or disk?

2003-01-15 Thread Jason Wong
few more lines of code. Then have a flag at runtime which decides whether to retrieve images from DB or from filesystem. Once you have enough data you can easily determine which method is faster and subsequently comment/remove the insertion code for the slower method. -- Jason Wong ->

Re: [PHP] Windows vs Linux

2003-01-15 Thread Jason Wong
g copy of > both on my Linux box and prefer this anyway. Jeez. As a programmer you should know that "virtually identical" is not good enough! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * In

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-16 Thread Jason Wong
o ascertain whether a user has 'logged in'? IE if HTTP_REFERER isn't the login page then they haven't 'logged in'? If that is the case then you should know that this provides no security at all. Use a proper authentication system based on sessions. -- Jason

Re: [PHP] I wanta the PHP doc notes.

2003-01-16 Thread Jason Wong
On Wednesday 15 January 2003 21:16, Avenger wrote: > Hey,I wanta used the PHP doc user notes. > > Where can i get it. http://weblabor.hu/php-doc-chm -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting *

Re: [PHP] Session wierdness...

2003-01-16 Thread Jason Wong
ached the output - > > there's no $_SESSIONS array in there. > > > > But I've managed to register session vars outside of this > > function I'm having trouble with so what's going on? You've probably realised by now that it is the $_SESSION variable

Re: [PHP] GD version 1.6.2 and resizing images...

2003-01-16 Thread Jason Wong
gt; images upon upload? If you can install your own programs then you can use netpbm or ImageMagick (or you can ask your host to do so). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet A

Re: [PHP] Why oh Why????

2003-01-16 Thread Jason Wong
27;{$_POST['strFirstName']}', '{$_POST['strLastName']}', > '{$_POST['strNgfnummer']}', '{$_POST['strEmail']}')"; What if you now echo $strQuery? Is it still what you expected? > if(mysql_query($strQuery))

Re: [PHP] Redirecting - here is the code

2003-01-16 Thread Jason Wong
On Friday 17 January 2003 01:07, Denis L. Menezes wrote: > I tried. But I get an error as follows : > > Warning: Cannot add header information - headers already sent by (output Try searching the archives on the above error. -- Jason Wong -> Gremlins Associates -> www.gremlins.

Re: [PHP] Strange behavior on backtick operator execution environment

2003-01-16 Thread Jason Wong
line" tells you the differences between CLI and CGI, one of them being "it does not change the working directory to that of the script". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting *

Re: [PHP] Meta Refresh

2003-01-16 Thread Jason Wong
tour?ID=1 to early-tour?ID=2 but I can't > get it to continue on to ID=3, ID=4 etc. It just keeps reloading the data > from ID=2 > > The data for each page is in a row identified by a unique ID# I just want > the page to reload with the data from the next ID# after a givin ti

Re: [PHP] Re: Create unike variables for each record

2003-01-16 Thread Jason Sheets
Yes, the php manual is available at http://www.php.net, session information is available at http://www.php.net/session. Jason On Thu, 2003-01-16 at 20:58, Lars Espelid wrote: > Is it possible to register an array as a session variable? If so I think it > solves my problem. > &g

Re: [PHP] Meta Refresh

2003-01-16 Thread Jason Wong
On Friday 17 January 2003 12:45, Edson Waite wrote: > Hi Jason, > > $colname_earlytour = "1"; > if (isset($HTTP_GET_VARS['ID'])) { > $colname_earlytour = (get_magic_quotes_gpc()) ? $HTTP_GET_VARS['ID'] : > addslashes($HTTP_GET_VARS['

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