Re: [PHP] Function declaration failing on return value

2004-10-09 Thread Jason Wong
everything in changed all the names... now it works. Looks like there are hidden chars in the html that I cut out from the online manual. That's weird. Cut and paste from some browsers could lead to the inclusion of 'hidden' characters in your code (usually the TAB character). -- Jason Wong

Re: [PHP] Question about error_reporting()

2004-10-09 Thread Jason Wong
], they are logged to a separate file which can be specified in php.ini. [1] Some PHP induced errors do appear in the apache error log, notably segfaults. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] Security Question (from Chris's OSCON 2004 talk)

2004-09-30 Thread Jason Wong
. Obviously your host should make sure httpd.conf is readable only by root. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] Suggestion for IN()

2004-09-30 Thread Jason Wong
your own IN() function. And same with the very helpful SQL BETWEEN 'function'. Instead of If ($a 1 $a 20) {} Why not If ($a BETWEEN (1,20)) {} Ditto, make your own BETWEEN() function. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] Images in PHP and MySQL

2004-09-30 Thread Jason Wong
into a database blob, the database doesn't magically decompress the jpeg file. It will just treat the jpeg file as any other binary file and store it as-is (plus any overhead). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Need help with a regular expression

2004-09-30 Thread Jason Wong
On Friday 01 October 2004 05:22, Alex Hogan wrote: if($key == ereg(^Q4_.[0-9]$, $key)){ ^Q4_[0-9]$ -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] can't upload files

2004-09-29 Thread Jason Wong
that chapter again (paying particular attention to Error Messages Explained and Common Pitfalls). If you still can't get it to work then read the user notes in the online manual. If you still can't get it to work then search the archives. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] How can I formated a PHP script into colored HTML

2004-09-28 Thread Jason Wong
On Tuesday 28 September 2004 12:40, [EMAIL PROTECTED] wrote: How can I make a code into html format like this You can have a look at the highlight_file() function. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] can't upload files

2004-09-28 Thread Jason Wong
. It prints out the 2 but doesn't get into the 3 loopbut I am uploading files. I have tried it with $_FILES and $HTTP_POST_FILES. This worked on my last hosts servers but not the new host. Any ideas? print_r() those two variables (and any others you can think of). -- Jason Wong - Gremlins

Re: [PHP] mysql_num_rows()

2004-09-27 Thread Jason Wong
On Tuesday 28 September 2004 03:15, PHP Junkie wrote: In one of my scripts, I'm getting the error: Use mysql_error() after every call to the mysql_*() functions. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] imagejpeg() problem

2004-09-27 Thread Jason Wong
On Tuesday 28 September 2004 02:16, Mike wrote: What i'd like to know is whether php can output some quality jpegs, and if so, then how? imagecopyresampled() -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] is_dir on WIndows

2004-09-27 Thread Jason Wong
). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] Website with a Instant Messenger

2004-09-27 Thread Jason Wong
that you search around: sourceforge.net freshmeat.net hotscripts.com and find something suitable. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Best way to save preferences?

2004-09-26 Thread Jason Wong
databases but do not want to run a full blown database server then check out sqlite. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] php security on shared hosts

2004-09-26 Thread Jason Wong
account's password within a few minutes. But, I'm just speculating. :-) Stop it! You're scaring away his customers ;-) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] RE: Version Controlling

2004-09-26 Thread Jason Wong
files, ie send the changes to the CVS server (for which you need access to the CVS server) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] ftp_put Problems

2004-09-25 Thread Jason Wong
in the manual and it is failing. It reports There was a problem uploading the file. If the script is running on the server then yes you're way off base. Remember the ftp_*() functions operate relative to where the script is running. What exactly is it you're trying to do? -- Jason Wong - Gremlins

Re: [PHP] mailing to hotmail

2004-09-24 Thread Jason Wong
On Saturday 25 September 2004 00:23, Diana Castillo wrote: for some reasons my mails I send to hotmail are never arriving, (using mail($email,$subject_line,$msg,$headers);) anyone ever heard of this? Check your mailserver logs. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

Re: [PHP] Wrong php.ini being read at my hosting account

2004-09-23 Thread Jason Wong
the phpinfo() that you run on _your_ website/webspace is the definitive reference to what functions/modules you have access to. Not sure what you can do about it seeing it's free hosting. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] mysql_connect does not connect

2004-09-22 Thread Jason Wong
repeatedly demonstrated that it was he who was irrational and emotional. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] List Etiquette

2004-09-22 Thread Jason Wong
, and click again. Sigh . . . way too much work for me. If you already filter your list mail into a folder then simply edit the folder properties to associate it with a mailing list. Then you can use the 'l' key to reply to list. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] choose upload folder

2004-09-22 Thread Jason Wong
let the user choose this folder? input type=file That would only give the name of a file. input type=text would be more useful. Or perhaps have php generate a list of folders to choose from. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] List Etiquette

2004-09-22 Thread Jason Wong
. If everybody drove every which way they want then the result is chaos. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] Does PHP need another mailing list???

2004-09-22 Thread Jason Wong
On Thursday 23 September 2004 03:41, Kevin Waterson wrote: No, list works just fine as it is with a mix of the new comer and advanced users. No need to split in any way. I suggest adding another two lists (at least), one for mysql and one for javascript ;-) -- Jason Wong - Gremlins

Re: [PHP] Does PHP need another mailing list???

2004-09-22 Thread Jason Wong
? -- Jason Wong - Gremlins Associates - www.gremlins.biz /* An artist should be fit for the best society and keep out of it. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php parses but no data inserted

2004-09-21 Thread Jason Wong
On Tuesday 21 September 2004 21:37, [EMAIL PROTECTED] wrote: error_reporting(E_ALL); ini_set('display_errors', 1); for good measure. @mysql_select_db(inmarsat_comp) or die (Could not select Database); Lose the '@' whilst developing and always use mysql_error(). -- Jason Wong - Gremlins

Re: [PHP] using foreach() to capture multiple selections

2004-09-21 Thread Jason Wong
On Wednesday 22 September 2004 03:26, Luke Mackenzie wrote: Subject: using foreach() to capture multiple selections i would like to to put multiple selections from a form list into a single variable using foreach but am unsure how to do so. manual PHP and HTML -- Jason Wong - Gremlins

Re: [PHP] readdir behavior I cannot understand

2004-09-20 Thread Jason Wong
/check_set_local.php on line 4 If you did literally copy and pasted the code from the manual then that's probably what's causing the problem. Sometimes c p from say a browser can introduce spurious characters into your code (usually the TAB character I think). Try *typing* in the code. -- Jason Wong

Re: [PHP] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Jason Wong
Functions. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php

Re: [PHP] Yet another Apache 2 question

2004-09-20 Thread Jason Wong
keywords you would have to search for to find that thread. -- 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] turn on GD2 lib on php 4.3.4

2004-09-20 Thread Jason Wong
you get help from your distro's mailing list. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post

Re: [PHP] cookie saving problem

2004-09-20 Thread Jason Wong
. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Jason Wong
On Tuesday 21 September 2004 07:32, Greg Donald wrote: I noticed your reply, it said the thread was off-topic and it was not. There was a PHP question in the first post, but you didn't see it. Pretty simple. gmail accounts = off topic two unrelated topics in one post = bad form -- Jason

Re: [PHP] PHP and extern link

2004-09-19 Thread Jason Wong
to redirect the user there is no way to prevent the user from seeing the URL s/he is being redirected to. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] List Etiquette

2004-09-19 Thread Jason Wong
. If everybody sticks to the universally recognised '' character to denote text quoted from previous posts then your mail client or newsreader can easily skip the quoted text. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] curl grabbing a website

2004-09-19 Thread Jason Wong
() before explode(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php

Re: [PHP] cant stop phpfile from beeing run by cron

2004-09-19 Thread Jason Wong
(/usr/local/bin/php /home/www/follow_up_new_members.php ) Has anybody an idea where to find it? I did check crontab -l with the user www, but there is no such entry. Find out from your OS manual/helpline/mailing list where the details of your cronjobs are stored. -- Jason Wong - Gremlins

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread Jason Wong
. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] Nubie scripting question

2004-09-19 Thread Jason Wong
On Sunday 19 September 2004 23:36, revDAVE wrote: [snip] You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that

Re: [PHP] DROP TABLE IF EXISTS

2004-09-18 Thread Jason Wong
On Saturday 18 September 2004 10:56, John Taylor-Johnston wrote: MySQL question: What's it doing here? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] How to re-code?

2004-09-18 Thread Jason Wong
You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that tells all recipients which posting(s) your posting refers

Re: [PHP] thumbnail of webpage

2004-09-18 Thread Jason Wong
On Saturday 18 September 2004 09:48, Vail, Warren wrote: I have been looking into this over the last week and have come up blank as well. A semi-workable was posted in the archives some months ago. Twice. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Jason Wong
? I'm sure everyone is dying to know what the resolution of this thread is. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] How does work shorten url services?

2004-09-18 Thread Jason Wong
). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] filtering out text in a string

2004-09-18 Thread Jason Wong
idea or knows how to do that. A dumb regex like this: (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) ought to be sufficient. It does not check for the validity of the address but it probably shouldn't matter too much assuming the program providing the logs can be relied upon. -- Jason Wong - Gremlins

Re: [PHP] sleep() and Max Execution Time

2004-09-18 Thread Jason Wong
it just adds on the time the script runs but still limits it. Any suggestions? RTFM again. Each time you invoke that function it _resets_ the timer. So just stick it in the loop to have it continually reset. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] List Etiquette

2004-09-18 Thread Jason Wong
-posting. Perhaps someone could enlighten me with a url? I don't have a URL but I'm sure if you search the archives thoroughly you will find several intensive discussions on this subject. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] List Etiquette

2004-09-18 Thread Jason Wong
On Sunday 19 September 2004 06:33, Robert Cummings wrote: [snip] Happy top posting, Have fun driving on the wrong side of the road. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] List Etiquette

2004-09-18 Thread Jason Wong
see where/when I made such a stupid mistake. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] Browser caching problem.

2004-09-18 Thread Jason Wong
, if someone is determined enough they'll still be able to capture the contents. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list

Re: [PHP] PHP and extern link

2004-09-18 Thread Jason Wong
. So HOW did it not work? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] List Etiquette

2004-09-18 Thread Jason Wong
On Sunday 19 September 2004 07:40, Robert Cummings wrote: Have fun driving on the wrong side of the road. What side is that? Doesn't it depend on national preference? Not personal preference for certain. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] List Etiquette

2004-09-18 Thread Jason Wong
for the pros and cons of top posting vs bottom posting. I responded with some reasons why top posting is bad. What did you come up with? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] Associative Array Benchmarking

2004-09-18 Thread Jason Wong
than no quotes. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php

Re: [PHP] Novice PHP Variable/Link Question

2004-09-17 Thread Jason Wong
is governed by the setting of 'short_open_tag' in php.ini and hence is not portable. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search

Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Jason Wong
On Friday 17 September 2004 23:36, Sam Hobbs wrote: Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] There is only one Windows installer available rom the MySQL web site and it has an option that explicitly says Typical. Therefore in this context Typical is extremely

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Wong
On Friday 17 September 2004 23:23, Sam Hobbs wrote: Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] IIRC the OP did have a successful test case when connecting from the mysql client. Yes, I did get it to work. It would help in diagnosing your problem if you told us

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Wong
. But try disabling it anyway. [SH] Yeah that sounds reasonable. Thanks, I'll try that. How silly is that? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] can't get mysql or postgresql support for php

2004-09-17 Thread Jason Wong
search for how to load a mysql module but I keep getting articles about how to load it with apache. What should I do? Restart apache if you haven't already done so. If that doesn't help ask on the FreeBSD list. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Wong
on database.* to [EMAIL PROTECTED] identified by 'passwd'; and require that you use different connection parameters (at least under Linux). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Wong
or anything (Your mouse has moved, you need to restart Windows for the changes to take effect). Doesn't your version of ZoneAlarm have options which allows you to quickly and simply DISABLE all internet access and ENABLE all internet access (in reality disable ZoneAlarm)? -- Jason Wong

Re: [PHP] Re: Server upload test

2004-09-17 Thread Jason Wong
)? Or is this just for the fun of it? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] reading from files

2004-09-17 Thread Jason Wong
://www.php.net/fgets Sorry, close, but no cigar. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] Re: Server upload test

2004-09-17 Thread Jason Wong
speed is a known (and (fairly) easily quantifiable) quantity, then I would assume you're trying to test the connection speed, in which case why not just serve a static file and leave php out of it? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Wong
On Saturday 18 September 2004 05:17, Greg Donald wrote: Well.. could you at least not top post while you're not helping.. Trying to keep this dignified and stuff. :) I think everybody who is anybody who had a point to make has already done so. Can we bury this thread now? -- Jason Wong

Re: [PHP] Code spacing causing HEADER problem?

2004-09-17 Thread Jason Wong
(Location: 1.php);? (b) ?php $a = 1; ? ?php header(Location: 1.php);? If the manual didn't already made it abundantly clear why that is, a quick search in the archives for the error message you get when running (b), would've given you more answers than you need. -- Jason Wong - Gremlins

Re: [PHP] Re: mysql_connect does not connect

2004-09-16 Thread Jason Wong
On Thursday 16 September 2004 10:53, Sam Hobbs wrote: Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So now are you fully convinced it's your firewall that's the root of your problem? No, not really. At the moment I am assuming it is a bug in something somewhere

Re: [PHP] mysql_connect does not connect

2004-09-16 Thread Jason Wong
suggestions or - you would have found the cause of your problem Contrast that with the number of posts you have made denying that the firewall could be a problem, and stating adamantly that you will not do such-and-such a thing because it is 'not supposed' to happen like that. -- Jason Wong

Re: [PHP] Re: mysql_connect does not connect

2004-09-16 Thread Jason Wong
of granting users access is way more complicated to get to grips to than mysql's. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search

Re: [PHP] mysql_connect does not connect

2004-09-16 Thread Jason Wong
can't ever have a successful test case. IIRC the OP did have a successful test case when connecting from the mysql client. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Re: problems with different results on count() and select

2004-09-16 Thread Jason Wong
points '$points' AND registration_date '$date' If you are sure your queries are correct then please take this off the php list. Ask on YOUR DATABASE's mailing list. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Jason Wong
it is intended for knows how to decipher? In the early days of spam filtering, one method was to simply take a spam message and hash it. The odd text at the bottom of the spam is a simple ploy to get around this particular method of spam detection. -- Jason Wong - Gremlins Associates

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread Jason Wong
of your problem? 1) How are you connecting using mysql_connect()? Do you use IP addresses or hostnames? 2) What are your exact connection parameters when connecting as an admin user? 3) What are your exact connection parameters when connecting as an normal user? -- Jason Wong - Gremlins Associates

Re: [PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Jason Wong
do with an example of how to put the information from the form into the db though. As I have never done this before. Plenty of tutorials out there. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Image question

2004-09-14 Thread Jason Wong
. Here's some example code of what I'm talking about: Imagejpeg($im); // successfully displays image Use the ob_*() functions to capture the output. See archives for details. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting

Re: [PHP] Image question

2004-09-14 Thread Jason Wong
will display in a browser window. How do I restore the data from the database in a way that I can continue to manipulate it with the image functions, like imagejpeg($data)? There's this thing called a manual, in there you would find: imagecreatefromstring() -- Jason Wong - Gremlins Associates

Re: [PHP] convert degrees to heading

2004-09-13 Thread Jason Wong
; break; } Season to taste. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] Evaluating form posts

2004-09-12 Thread Jason Wong
a double backslash for each backslash entered on the form and '\' for every ''. Could someone please tell me what's going on? Did I miss a part of the FAQ? goggle php magic quotes -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] ftp_nlist()

2004-09-12 Thread Jason Wong
to chdir first. Why not just: function get_files($dir=/) { $array=ftp_nlist($this-connection,$dir); var_dump($array); } Works just as well AFAICS. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] Convert textarea post data from plain text to html using php..how?

2004-09-11 Thread Jason Wong
. Or explain exactly what you mean. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] image size?

2004-09-10 Thread Jason Wong
, but that only works on remote or local files. getimagesize() would not give you any info you don't already know when using imagecreate(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Getting free space of remote directory

2004-09-10 Thread Jason Wong
. But how I can get free space of this remote catalogue? It depends on how you access the remote directory. Eg using standard ftp there is no command to show free space, so what you're asking for is impossible. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

Re: [PHP] Assigning one var to multiple vars

2004-09-09 Thread Jason Wong
-- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general

Re: [PHP] Rsync + ssh

2004-09-08 Thread Jason Wong
On Wednesday 08 September 2004 17:10, Syed Ghouse wrote: i m using rsync command to transfer files from server to server. i use the below code rsync --password-file .passfile ssh [EMAIL PROTECTED]:/remote/dir /localdir/dir/ where .passfile has the password...

Re: [PHP] Problem with SSH output when called from apache

2004-09-07 Thread Jason Wong
without passphrase I've checked the file permissions of /var/wwwhtml/sshtest/id_rsa It's given read permissions for the user 'apache' ( apache is running as apache:apache ) Does apache have execute permissions to the path where id_rsa resides? -- Jason Wong - Gremlins Associates

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Jason Wong
On Monday 06 September 2004 14:08, Peter Brodersen wrote: On Mon, 6 Sep 2004 13:33:02 +0800, in php.general [EMAIL PROTECTED] (Jason Wong) wrote: $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're

Re: [PHP] Session again !!!

2004-09-05 Thread Jason Wong
On Sunday 05 September 2004 22:24, Dre wrote: $_SESSION['uname'] = $username; session_write_close() before you redirect. header('Location: /members/main.php'); -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Jason Wong
and not an INSERT query. $sql = SELECT * FROM members_webdata WHERE user_name='.$username.' AND password='.$pass.'; $sql = SELECT * FROM members_webdata WHERE user_name='$username' AND password='$pass'; Much easier on the eyes. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source

Re: [PHP] File upload problem

2004-09-04 Thread Jason Wong
On Saturday 04 September 2004 23:36, Dre wrote: I'm trying to upload a file using a form $base_img_dir = http://localhost/app_images/;; The destination directory/file has to be a path on the local filesystem. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software

Re: [PHP] Regex for Validating URL

2004-09-03 Thread Jason Wong
On Friday 03 September 2004 02:23, Nick Wilson wrote: * and then Jason Wong declared - now re-read what I said. I rest my case. Classic. Thankyou Jason, you're a star. I really didnt apreciate just how inept at interaction with peers you truly were. Beautiful, very kind of you to share

Re: [PHP] HTTP Authentication in include()

2004-09-03 Thread Jason Wong
from password-protected site include('https://user:[EMAIL PROTECTED]/incl1.php') -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search

Re: [PHP] Rsync

2004-09-03 Thread Jason Wong
On Friday 03 September 2004 15:15, Syed Ghouse wrote: will anybody tell me how to use rsync command to transfer files in php manual Program Execution Functions -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] List of Users

2004-09-03 Thread Jason Wong
the list of (mail) users. It totally depends on your mail system. Refer to your mail system's docs. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Load Data Local Infile

2004-09-02 Thread Jason Wong
'; Is this new PHP 5 syntax? Any ideas what I might be missing...? Probably the MySQL list. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search

Re: [PHP] Regex for Validating URL

2004-09-02 Thread Jason Wong
nothing (or words to that effect). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http

Re: [PHP] Assign null value using php

2004-09-02 Thread Jason Wong
On Thursday 02 September 2004 20:23, T UmaShankari wrote: Can any one tell me how to assign a null value to a php string?. I tried assigning empty single quote,backslash with zero,double quotes also. but nothing works.. manual Types NULL -- Jason Wong - Gremlins Associates

Re: [PHP] Newbie: Validate Required Form Fields

2004-09-02 Thread Jason Wong
to register1.php from within the code execution of register2.php? header(Location: http://www...;); There are many ready made code which does all this and more for you. Check out www.phpclasses.org -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators

Re: [PHP] Newbie: Validate Required Form Fields

2004-09-02 Thread Jason Wong
in addition to, and not instead of, server-side checks. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post

Re: [PHP] Regex for Validating URL

2004-09-02 Thread Jason Wong
](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+) [snip] Did you just pulled it out of your ***[1] or did you copy-n-paste it from somewhere? [1] hat -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

Re: [PHP] Regex for Validating URL

2004-09-02 Thread Jason Wong
On Thursday 02 September 2004 21:08, John Nichel wrote: What about NFS mounts? ;) What about them? Look carefully. -- 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   >