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 Applica

Re: [PHP] Regex for Validating URL

2004-09-02 Thread Jason Wong
:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\. > )*(?:[a-zA-Z](?:(?:[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 So

Re: [PHP] Newbie: Validate Required Form Fields

2004-09-02 Thread Jason Wong
d use Javascript 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 * -

Re: [PHP] Newbie: Validate Required Form Fields

2004-09-02 Thread Jason Wong
sparent sessions support in PHP. > How do I > redirect 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 -&g

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

Re: [PHP] Regex for Validating URL

2004-09-02 Thread Jason Wong
e when asking a question to summarise what research you have done. Instead of just saying I've looked and found nothing (or words to that effect). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &a

Re: [PHP] Load Data Local Infile

2004-09-02 Thread Jason Wong
' > LINES TERMINATED BY '\n'; 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 Des

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread Jason Wong
;s probably your php-cli version. Are you using the Apache module version of PHP? I didn't see it in the configure command you posted previously. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] Re: Mail Functions help

2004-09-01 Thread Jason Wong
e as your webserver 2) Comcast really is your upstream provider and allows you to relay (send) mail through smtp.comcast.net -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet

Re: [PHP] write images to disk after export from database blob field

2004-09-01 Thread Jason Wong
On Wednesday 01 September 2004 18:56, Khan wrote: > I'm using PHP to export images from database blob field. Now, I need > to export all images and write them to server. How can I write image > (as .jpg) after I selected it from blob field. imagecreatefromstring() imagejpeg()

Re: [PHP] mail functions help

2004-08-31 Thread Jason Wong
research of your own. Like RTFM, or STFA? FWIW there was a post very recently which explained pretty much all you needed to know about configuring PHP so that mail() would function correctly. Find that post. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Sy

Re: [PHP] Storing image in database

2004-08-31 Thread Jason Wong
On Wednesday 01 September 2004 05:18, Dre wrote: > may I ask why is it inefficient ?? Yes. Also you can goggle around a bit for the pros and cons. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Intern

Re: [PHP] Broken data within an Array

2004-08-31 Thread Jason Wong
int_r($DateAdvertisedBroken) 2) Then $DateAdvertisedBroken[n], when 'n' is the element you want. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Jason Wong
is that it takes just a little common sense and a little common courtesy to both comply with your employee's requirements AND and the same time not annoy the list. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] Bug with mktime??

2004-08-30 Thread Jason Wong
ot;d m Y",mktime(0, 0, 0,date("m")+$i , date("d"), Try using date('n'). Leading zeros are interpreted in octal. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intr

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Jason Wong
On Tuesday 31 August 2004 05:27, Brent Clements wrote: > The problem with that request is that some employers require you to have a > vacation message set. unsubscribe and re-subscribe. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integ

Re: [PHP] Problem sending mail

2004-08-30 Thread Jason Wong
. > > File text.inc looks like this: > [start]some_text_goes_here[/end] > [other_start]other_text_goes_here[/other_end] 0) Enable full error reporting 1) Stop repeating yourself 2) I think we've ascertained from your previous post that mail() is working 3) Are you saying that $data

Re: [PHP] question dealing with divs, forms, and select/options..

2004-08-30 Thread Jason Wong
ll Gates as well. -- 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.t

Re: [PHP] Convert gif to jpeg on the fly using gd?

2004-08-30 Thread Jason Wong
utput buffering trick but I want to know > if you guys think there is an easier way. And if so, point me in the right > direction ... if so then capturing the output buffer is the only way (that I'm aware of). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open S

Re: [PHP] Simultaneus execution

2004-08-28 Thread Jason Wong
ng to achieve. Could you elaborate? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before yo

Re: [PHP] mail filtering ... procmail + php query

2004-08-28 Thread Jason Wong
pes are simply plaint text files. Just use php's file handling functions to read and write them. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -

Re: [PHP] Sessions NOT working - somebody please help me!

2004-08-28 Thread Jason Wong
tion 2) session_write_close() before you redirect 3) In future search the archives first, this type of problem has been asked and answered many times before -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] PHP/MySQL fatal error

2004-08-27 Thread Jason Wong
On Saturday 28 August 2004 09:43, gc wrote: > Hi all, > > I'm Gene Candelaria and I'm a PHP and MySQL newbie. 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, yo

Re: [PHP] backslashes

2004-08-27 Thread Jason Wong
ould do is assign various codes for the different status, eg 1 - not sent 2 - sent 3 - unknown Then when you receive the data you sanitise and verify that $passid and $status are valid. So for $status it has to be one of 1, 2, or 3. Then finally you can construct your query. -- Jason Wong ->

Re: [PHP] problem with front page files downloaded to dev machine OT

2004-08-26 Thread Jason Wong
t; Hehe.. thats pretty good :) Lets see if someone can decipher this > top post to a context post to a middle post to a who knows what > post ;) Ok children, back to work. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems I

Re: [PHP] problem with front page files downloaded to dev machine OT

2004-08-26 Thread Jason Wong
unusual. Based on the info you've given so far I suggest that you check that these settings in php.ini: short_open_tag asp_tags are appropriate and/or the same on both servers. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * W

Re: [PHP] problem with front page files downloaded to dev machine OT

2004-08-26 Thread Jason Wong
turn out anything useful but I might > used the wrong keywords. Do any php pages work at all on your development server? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications De

Re: [PHP] sharing records with assigned users

2004-08-26 Thread Jason Wong
ltiple user names... Which is a > problem for me. And I might be applying a very wrong approach, logically, > which is why I came forward for some assistance. You have a new table which has 2 columns: record_id, user_id Then: SELECT user_id FROM new_table WHERE record_id = whatever; --

Re: [PHP] Popup with recent IE updates

2004-08-26 Thread Jason Wong
o > faulty PHP, but that is not definitely not the case this time. So why are you asking on the PHP list then? Look to save you looking it up: www.microsoft.com -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &am

Re: [PHP] Popup with recent IE updates

2004-08-26 Thread Jason Wong
he 'facts': - "This seems to be happening on sites where recent IE 'security fixes'" - "The PHP application is working fine everywhere else." What can one reasonably conclude from the above? I would suggest you find out what the IE updates were and figure

Re: [PHP] Array?

2004-08-25 Thread Jason Wong
> $things[]=$list; > } > } > //$things[7] is a MySQL timestamp column named "last_login" > $date = strtotime($things[7]); print_r($things); var_dump($things) -- Jason Wong -> Gremlins Associates -

Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread Jason Wong
every other day searching the archives for "error undefined call to mysql_connect" would give all the various ways to: - enable mysql functions in Windows systems - recompile PHP include support for mysql functions - install the relevant RPM package for RPM based systems -- Jason Wong -&

Re: [PHP] unlink() & rmdir() ... Problems.

2004-08-24 Thread Jason Wong
irectory To be able to delete files, you need: - 'wx' on the parent directory - doesn't matter who owns the target files or what their permissions are -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web D

Re: [PHP] unlink() & rmdir() ... Problems.

2004-08-24 Thread Jason Wong
up's permissions (read/execute), and the last three are > other's (world) permission (read/execute). The two 'www' are the owner > (user) and group. For the directory rjohari, only root and the user www > can delete and/or write to this directory. Actually 'n

Re: [PHP] unlink() & rmdir() ... Problems.

2004-08-24 Thread Jason Wong
ut for certain by using phpinfo(). -- 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 pos

Re: [PHP] Image Width Error

2004-08-24 Thread Jason Wong
ssing something in the PHP config? What should I be looking for. Oh! > I am on PHP5.0 - that should help. Read the introduction and requirements section of manual > Image Functions. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integra

Re: [PHP] unlink() & rmdir() ... Problems.

2004-08-24 Thread Jason Wong
Please do not top post. On Wednesday 25 August 2004 01:31, PHP Junkie wrote: > Ave, > > Nope... Didn't work. Didn't return an error or anything, didn't delete the > folders either! > >> system('rm -rf',$user_dir,$ret_val); That should be: system(

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Jason Wong
TRUE > > php_value error_log "./errors.txt"[and the full path string] "... Don't use php_value to set boolean values. ..." And you may have to specify an absolute path. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Int

Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Jason Wong
On Tuesday 24 August 2004 23:15, John Holmes wrote: > There is a "log_errors" setting and a "error_log" setting. Try setting the > "log_errors" value. To be absolutely clear, you need both, enable log_errors and specify error_log. -- Jason Wong -> Greml

Re: [PHP] Accessing form values from multi selects or checkboxes

2004-08-24 Thread Jason Wong
On Tuesday 24 August 2004 18:00, Alex Bovey wrote: > Basically I am using a JavaScript chained select function which complains > when I use square brackets in a field name, manual > PHP and HTML -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source S

Re: [PHP] system command

2004-08-23 Thread Jason Wong
lings, check them out. -- 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://m

Re: [PHP] Problem connecting to Postgres

2004-08-23 Thread Jason Wong
ails are in the manual. -- 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] unlink() & rmdir() ... Problems.

2004-08-23 Thread Jason Wong
st have: 1) 'x' permission for all directories in the path 2) 'wx' permission for the directory containing the file NB the permissions on the files themselves are irrelevant. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Softwa

Re: [PHP] unlink() & rmdir() ... Problems.

2004-08-23 Thread Jason Wong
On Tuesday 24 August 2004 02:32, John Nichel wrote: > Jason Wong wrote > > > phpinfo() is your friend. > > I thought phpinfo() was *MY* friend??? ;) Don't worry it's a one-to-many relationship. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open S

Re: [PHP] unlink() & rmdir() ... Problems.

2004-08-23 Thread Jason Wong
se? phpinfo() is your friend. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you po

Re: [PHP] avi to wmv convert

2004-08-20 Thread Jason Wong
On Saturday 21 August 2004 03:24, John Nichel wrote: > Ah-hadoing that, I have learned that you missed a step... > > fclose ( $manual ); That was intentional, you should have it open all the time and read from it continually. -- Jason Wong -> Gremlins Associates -> www.gr

Re: [PHP] avi to wmv convert

2004-08-20 Thread Jason Wong
On Saturday 21 August 2004 00:36, R B wrote: > I'm making a php video system, buy i need to convert the avi videos to wmv > videos. > Some one knows a good, free, and functional avi to wmv converter? There are a few listed in the manual. -- Jason Wong -> Gremlins Associates -&

Re: [PHP] ftp_connect returns false

2004-08-18 Thread Jason Wong
host's network configuration that is preventing you from making outgoing ftp connections. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] Please have a look at my function

2004-08-18 Thread Jason Wong
s. If your files are relatively small then its even easier. Read the whole file into a string then use strpos() or stripos() along with substr() - and whatever other useful string functions you find. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syste

Re: [PHP] membership via folders

2004-08-18 Thread Jason Wong
ecommendations? resources? links? Resources? Links? Wouldn't you be even more confused with the plethora of choices? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications

Re: [PHP] Fw: Greetings.

2004-08-18 Thread Jason Wong
On Thursday 19 August 2004 07:01, Research wrote: > Can i see CPU ID / STORAGE ID with php or javascript, or both combined. Not with PHP. As for javascript ask on a javascript list or refer to some javascript resource. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Op

Re: [PHP] ftp_connect returns false

2004-08-18 Thread Jason Wong
will usually eliminate firewall issues. But it will be much quicker to work together with your host. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -

Re: [PHP] ftp_connect returns false

2004-08-18 Thread Jason Wong
? Make sure the host knows what you're trying to do and that they know what they're doing. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] Re: How to understand this Warning?

2004-08-18 Thread Jason Wong
ice throu the same dir? > > Yes I do. Why? I don't understand your logic. Remove the outer while-loop, note that it encloses most of the code including the line: closedir($handle); So on the second iteration of the outer while-loop $handle is gone and hence your error message. -

Re: [PHP] Move_uploaded_file()

2004-08-17 Thread Jason Wong
'x' permission for every parent directory of the destination directory and must have 'wx' for the destination directory itself. To test and to convince yourself that move_uploaded_file() is working (or otherwise) use /tmp as the destination directory. -- Jason Wong -> Greml

Re: [PHP] Control manager ...

2004-08-17 Thread Jason Wong
pending on what your instructions are you can use exec() and friends to execute them. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ---

Re: [PHP] Sessions nightmare continue...

2004-08-17 Thread Jason Wong
("session value: " . $_SESSION["login"]); > > ?> OK, do you have access to the directory (assuming you're using files) that stores the session files? If so, check the session file written in a1.php to see whether $_SESSION[&quo

Re: [PHP] Move_uploaded_file()

2004-08-16 Thread Jason Wong
On Tuesday 17 August 2004 09:38, [EMAIL PROTECTED] wrote: > Warning: move_uploaded_file([Œabsolute_path¹]/file.csv): failed to open > stream: Permission denied in [Œabsolute_path¹]/file.csv on line 83 Give php permissions to [Œabsolute_path¹]/ ? -- Jason Wong -> Gremlins A

Re: [PHP] Upload problems

2004-08-15 Thread Jason Wong
pload :( Have you read the chapter "manual > Handling file uploads" thoroughly? In particular the section "Common Pitfalls"? Also the archives have alot of info on this type of problem. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems

Re: [PHP] Need help with some logic and how to do it in PHP

2004-08-15 Thread Jason Wong
tement? > This is a variation of my "String compare of 7 text strings" question > yesterday. All of the 7 string values are values in an array, ie $strings > = array($string1, $string2, $string3, $string4, $string5, $string6, > $string7); array_count_values() -- Jason Wong -

Re: [PHP] PHP not working with apache2

2004-08-14 Thread Jason Wong
_php is installing against apache, apache2, or both 2) whether squirrelmail is installing against apache, apache2, or both Again, the Gentoo list is what you want. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syste

Re: [PHP] PHP not working with apache2

2004-08-14 Thread Jason Wong
P code? Unless you know what you're doing why have you got two apaches installed? Etc. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] Anyone know of a PHP Dictionary Password Generator

2004-08-14 Thread Jason Wong
On Sunday 15 August 2004 06:33, John Holmes wrote: > Or, as an alternative, I'll code it myself if anyone can point me to a > "dictionary" of english words that I could use populate a text file or > database to choose from. http://www.dcs.shef.ac.uk/research/ila

Re: [PHP] Re: [PHP-DB] How to create a new Table in prostgresql from a Webinterface

2004-08-14 Thread Jason Wong
nual. If you're really new to this sort of thing then checkout some tutorials. If you're relatively experienced then studying the phppgadmin's (or whatever) code should help you a great deal. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software System

Re: [PHP] String compare of 7 text strings

2004-08-14 Thread Jason Wong
On Saturday 14 August 2004 23:12, Hannes Magnusson wrote: > if ( count ( array_unique ( $array ) ) == 1 ) { > // all fields have the same value > } > we could post solution to this problem for ever... Indeed: if (count(array_flip($doo)) > 1) { // not same } -- Jason W

Re: [PHP] phpMyAdmin equivalent

2004-08-14 Thread Jason Wong
On Saturday 14 August 2004 23:25, Watty wrote: > You can't google for something you don't know about ;) Surely it would have crossed your mind to check on the postgresql site? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integ

Re: [PHP] Exporting data from database using fopen

2004-08-13 Thread Jason Wong
you take the fopen() out of the while-loop? It makes no sense for it to be in there. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Jason Wong
) 2) State what you did (probably in code) 3) State what you expected to happen 4) State what actually happened, along with error messages if appropriate -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * W

Re: [PHP] Thumbnail Problem

2004-08-13 Thread Jason Wong
gesize(). > here is the class : [load of rubbish snipped] -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the

Re: [PHP] checking for upper case letter on string

2004-08-12 Thread Jason Wong
to check for it? > > obs: I do not want to convert to lowercase, but to check for the > presence of upper case letters. if ($doo === strtolower($doo)) { // no upper case } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * W

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Jason Wong
doing. My recommendation is that if you're going to be installing PHP from source then do Apache from source as well. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Int

Re: FWD: RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Jason Wong
greements. Seems like a good time to call on their support? Anyway RedHat sometimes install things in a funny way (ie non-standard), so it would be best to ask first on RedHat's lists. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integr

Re: [PHP] string manipulation

2004-08-12 Thread Jason Wong
_pad(), please RTFM before you ask such questions. It's obvious from your subject that you know it's something to do with strings, so where better than to look at the chapter on String Functions? Browse through them, checkout the examples, it's a good way to learn. --

Re: [PHP] timestamp according to timezone?

2004-08-12 Thread Jason Wong
s and whatnot, so you may want to check the archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list arc

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Jason Wong
On Thursday 12 August 2004 22:11, raditha dissanayake wrote: > I vote this list be renamed as > > php-general-apache-mysql-imap-iis discussion list. > > all those not in favour please flame. Heh, just drop the php and call it the general list :) Shorter and more to the point.

Re: [PHP] mod rewrite urls

2004-08-12 Thread Jason Wong
ave to answer all questions > releated to php or not. ;) Even if that means copy-and-pasting from whatever manual/website contains the answer for those people to busy to look it up for themselves? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software System

Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Jason Wong
es. any suggestion? The above does what you want. Tell us what happens when you run it. In most cases iterating through a recordset using a while-loop is much better than using a for-loop. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrator

Re: [PHP] timestamp according to timezone?

2004-08-12 Thread Jason Wong
ng GMT. Thus what you're asking for doesn't make sense (not to me anyway). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] phpBB, PHP5, MySQL 4, and IIS 6

2004-08-11 Thread Jason Wong
chose" > Anyone have any suggestions? Ask the phpBB support forum. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] Encoding

2004-08-11 Thread Jason Wong
a something suitable for transmission over a 7-bit environment. Hence using your own key doesn't make sense. If you want to encrypt data then look at manual > Mcrypt Encryption Functions. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrat

Re: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Jason Wong
On Thursday 12 August 2004 01:26, Ed Lazor wrote: > Wow, Michael. Nice response. Could we please trim our posts? Thank you. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applica

Re: [PHP] PHP/MySQL based webmail?

2004-08-11 Thread Jason Wong
quot; box. Squirrelmail can store user preferences etc on MySQL, and LDAP. > While this isn't specifically a PHP question, I think scalability of > PHP applications is germane to the list. I think you'll get a more meaningful discussion on the SM list. Also check out the SM wiki w

Re: [PHP] PHP Encoding

2004-08-11 Thread Jason Wong
On Wednesday 11 August 2004 19:11, Kevin wrote: > I have heard about PHP Encoding technique. What exactly it does and how is > it useful? > > Any more help will really be appreciated. google > PHP Encoding > Thanks a lot for giving your time. Thank google. -- Jaso

Re: [PHP] weird error, might be javascript?

2004-08-11 Thread Jason Wong
quot;all of a sudden" then just roll back your changes to before it "happened" then implement them step-by-step until it happens "all of a sudden" again. That should help you pinpoint where the problem is. -- Jason Wong -> Gremlins Associates -> www.gremlins.

Re: [PHP] Cannot redeclare function

2004-08-10 Thread Jason Wong
pon a time PHP allowed a function to be declared multiple times. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search

Re: [PHP] download script

2004-08-10 Thread Jason Wong
7;file'].""; > if (file_exists(basename($file))) { Lookup what basename() does to see why using it with file_exists() in this way is most likely wrong (given what you're trying to do). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syste

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Jason Wong
lowing > outbound FTP is only an issue if people sniff the network because they > can see your login in plaintext. Actually any plain old ftp is subject sniffing. A better solution is to use chrooted ssh accounts. There are enough clients out there which supports file transfers over ssh to m

Re: [PHP] Re: Image and variable

2004-08-10 Thread Jason Wong
t as a test. Its' very simple but > I really don't know why, the result is always the same > picture. > > $random=MT_RAND(1,2); > echo "$random"; > if ($random=1) { Because you're assigning the value 1 to the variable $random. -- Jason Wong -> Gre

Re: [PHP] sessions not working when page redirects

2004-08-10 Thread Jason Wong
> value on the same page, that works no problem. After that page "A" > redirects to page "B": > > header("Location: ../admin/include/B.php"); Did you close the session before you redirected? -- Jason Wong -> Gremlins Associates -> www.gremlins.

Re: [PHP] SQL Join query

2004-08-10 Thread Jason Wong
On Tuesday 10 August 2004 17:28, Peter Brodersen wrote: > .. but this is rather an SQL-related question. That's what I pointed out last week when this thread started! Glad someone's paying attention :) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Sour

Re: [PHP] RE: PHP 5.0.0 NT Mail()

2004-08-10 Thread Jason Wong
As PHP 5.X is still new, have you checked bugs.php.net to see whether this may bug-related? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] 5.0.0 NT and Mail()

2004-08-10 Thread Jason Wong
an you keep getting the above warning then most likely you're editing the wrong php.ini. Use phpinfo() to find out where PHP is expecting to find your php.ini. And search the archives for more tips on how to locate the correct php.ini. -- Jason Wong -> Gremlins Associates -> www.g

Re: [PHP] Need Some Direction

2004-08-09 Thread Jason Wong
Anywhere that's not inside /var/www/html will do, and as long as the webserver has access to it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ---

Re: [PHP] MAIL function sends as anonymouse@mydomain.com instead of what I specify in php.ini?

2004-08-09 Thread Jason Wong
n*x systems which you seem to be using (since you mention qmail). See examples in manual on how to set the FROM header in un*x systems. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] locate PID & Kill

2004-08-09 Thread Jason Wong
On Monday 09 August 2004 19:00, Curlys wrote: > it doesn't work , when it is running , errors r bellow > > sh: line 1: kill: r: invalid signal specification Well specify a VALID signal then. This is not a PHP problem. -- Jason Wong -> Gremlins Associates -> www.grem

Re: [PHP] safe_mode restriction

2004-08-09 Thread Jason Wong
to the directories created by the webserver's uid (48). The usual workaround is to use the ftp functions to create your directories. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosti

Re: [PHP] safe_mode restriction

2004-08-07 Thread Jason Wong
-al' of the directories in question. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list ar

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Jason Wong
quot;xxx.php"); > has already been declared -- cannot redeclare (yet locally - absolutely no > problem!) ?? IIRC older versions of PHP allowed multiple declarations of a function. Somewhere along the line this was changed. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz

Re: [PHP] looking for a solid/good basic registration/login app/script

2004-08-07 Thread Jason Wong
On Sunday 08 August 2004 01:43, bruce wrote: > i've look through lots of scripts, and decided to check here for additional > input. It would be helpful to list what you have looked at along with some notes of what you perceive to be their pros and cons. -- Jason Wong -> Greml

Re: [PHP] safe_mode restriction

2004-08-07 Thread Jason Wong
rmissions on the directories that you are able to make? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the li

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