Re: [PHP] Exim sendmail faults

2002-07-04 Thread Jason Wong
email address I get the same error "unrouteable mail > domain" > > I am able to nslookup the addresses before hand so I don't > understand why the mail delivery is not working... Generally, with email problems it is best to show the actual domains, makes troubleshoot

Re: [PHP] Annoying syntax problem with RTRIM

2002-07-04 Thread Jason Wong
to remove (if it's there) > before echoing.) > > When this same script is run on my ISP (PHP 4.0.6), I get the following > error message: > > Warning: Wrong parameter count for rtrim() in > /u/htdocs/smarts/jupiter/callisto/include/create.inc on line > 216 > > >

Re: [PHP] function for size of array

2002-07-05 Thread Jason Wong
On Friday 05 July 2002 22:20, Scott Fletcher wrote: > Ah! Thanks! By the way, it's "count()" with a "n". :-) That was to trick you into RTFM! Hey you were lucky that the 'o' wasn't left out instead :) -- Jason Wong -> Gremlins Associates ->

Re: [PHP] Little optimisation question

2002-07-05 Thread Jason Wong
here is at least one php-based newsreader out there, look at how they do it. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* ... Logically incoherent, semantical

Re: [PHP] I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread Jason Wong
On Saturday 06 July 2002 10:37, Alberto Serra wrote: > JJ Harrison wrote: > > Attached is the file. > > ðÒÉ×ÅÔ! > > No attachment came :( Don't attach a file, include your code inline. I for one will not open an attachment (too lazy). -- Jason W

Re: [PHP] Re: I am probably dumb but why isn't this inserting stuff into my DB?

2002-07-05 Thread Jason Wong
_error(); And RFTM for examples on how to incorporate error checking in your db operations. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Any sufficien

Re: [PHP] upload file size

2002-07-05 Thread Jason Wong
#x27;t > handle file this size? Please give me some pointers here. TIA. You may need to change the post_max_size (in php.ini) as well. Manual > Handling file uploads > Common Pitfalls -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators

Re: [PHP] issue with script after php upgrade

2002-07-06 Thread Jason Wong
s at least being passed back to the server. php.ini > register_globals -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I would like to ask about Photo Upload in mysql and reteive problem .

2002-07-06 Thread Jason Wong
mind provide > some code to let me reference. ?? I am doing my project. I need this > information in urgent. Please friendly give me advice here . thanks Search archives for "upload mysql" -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk -- PHP General Mai

Re: [PHP] ini_set() broken?

2002-07-07 Thread Jason Wong
- what do you mean? The code I posted is all > there is to the entire script. Where else would I use the ini_set() > function except at the very beginning of a script? Because PHP registers the globals etc (if enabled) then starts working on your code. Anyway, regardless of whether or

Re: [PHP] ini_set() broken?

2002-07-07 Thread Jason Wong
other settings) in the apache conf file. This does NOT work: php_value register_globals On Whereas this does work: php_value register_globals 1 -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A problem in mysql_fetch_array

2002-07-08 Thread Jason Wong
example. my DB have a > text "Hello World" , It can retrieve only "HELLO" by using > mysql_fetch_array . Whenever you insert data into a database you need to escape any special characters. As you're using MySQL, simply using addslashes() on your data before inse

Re: [PHP] HTML Get POST forms

2002-07-08 Thread Jason Wong
am very new to HTML and PHP. What version of php are you using? If it's pre v4.1.X then $_POST is not available and you should use $HTTP_POST_VARS instead. But the best thing to do is to upgrade to v4.2.1. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sending data in table, multiple rows, via mail()

2002-07-09 Thread Jason Wong
ed help in. That way people needn't waste time in covering things that you already know. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* those dam

Re: [PHP] Bug in SQL can you help?

2002-07-09 Thread Jason Wong
> SELECT > extract(year FROM time), > extract(month FROM time), > count(*) as monthly_views, > time [snip] -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applicati

Re: [PHP] Submitting form in new window!

2002-07-09 Thread Jason Wong
ecs. Then set the url of that window to point to add2cart.php, and also attach the form values to the url. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /

Re: [PHP] php loopholes

2002-07-09 Thread Jason Wong
ms someone has some catching up to do :) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* VMS version 2.0 ==> */ -- PHP General Mailing List (

Re: [PHP] Re: PLZ HELP -- - GET & POST form problem

2002-07-09 Thread Jason Wong
> Is 'track_vars' turned *ON* in php.ini? That's the one that fills in all > those variables. track_vars is always on for recent versions of php (4.0.3+). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Desi

Re: [PHP] How do I import tables into MySQL from web page ...

2002-07-09 Thread Jason Wong
ilure should be: if ($status === FALSE) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Extreme fear can neither fight nor fly. -- William Sh

Re: [PHP] not parsing vars

2002-07-10 Thread Jason Wong
ng that i have tot change in php.ini ? register_globals -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* A transistor protected by a fast-acting fuse wi

Re: [PHP] How to dectect if a file exist in specific Folder

2002-07-10 Thread Jason Wong
t; I want to know how i can use php to detect if such file is exist in that > specific Folder? is_file() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Dev

Re: [PHP] PHP 4.2.1 / Apache

2002-07-10 Thread Jason Wong
-with-apache=/usr But you're better off using apxs instead: --with-apxs=/usr/local/apache/bin/apxs Obviously the path to apxs on your system may differ. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Inter

Re: [PHP] CANT GET STUFF TO WORK

2002-07-10 Thread Jason Wong
ee the phpinfo page. Have you managed to get the examples in the manual to work? Always start with something simple and work your way up. The examples in the manual are an ideal reference point as they _should_ work, so if they don't work for you you'll know you're doing something w

Re: [PHP] uploads work sometimes

2002-07-12 Thread Jason Wong
ilable, use $HTTP_POST_FILES[], If upload fails for any reason then (I believe), $_FILES['pdfFile']['name'] would be empty. So: php.ini --> upload enabled? Are the other settings governing uploads set to reasonable values? Check manual > Handling file uploads &g

Re: [PHP] File Browser

2002-07-12 Thread Jason Wong
a document repository module. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* A synonym is a word you use when you can't spell the word you first thoug

Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Jason Wong
ell format? Thanks in advance for all answer! archives -> "mysql excel" -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* After years of rese

Re: [PHP] Restricting access using IPs

2002-07-12 Thread Jason Wong
too well? It displays a picture of a naked guy instead of the naked girl that you was expecting? > $localip = "192.168.0.13"; > if ($REMOTE_ADDR == $localip) { > ?> > > Allowed! > > } > else { > ?> > > Denied! > > } > > ?> -

Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Jason Wong
On Saturday 13 July 2002 13:31, Alex Shi wrote: > The thing is that, the MySQL table resides on a remote web server, my > client want to download it and access it in Access. Doesn't matter, ODBC works across a network. -- Jason Wong -> Gremlins Associates -> www.gremlins.c

Re: [PHP] Connecting LocalHost & Remote mySQL DB

2002-07-12 Thread Jason Wong
r allows remote access then the easiest way is to use mysqldump. For details consult mysql manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Love is

Re: [PHP] Restricting access using IPs

2002-07-12 Thread Jason Wong
.168.0.*"; > $localip = "192.168.0.0/24"; In this particular case all you need to do is check that the ip address ($REMOTE_ADDR) begins with "192.168.0.". So look in the manual to see which of the string function(s) you need to perform this comparison (probably strs

Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-12 Thread Jason Wong
On Saturday 13 July 2002 14:00, Alex Shi wrote: > "Jason Wong" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > On Saturday 13 July 2002 13:31, Alex Shi wrote: > > > The thing is that, the MySQL table resides

Re: [PHP] Connecting LocalHost & Remote mySQL DB

2002-07-12 Thread Jason Wong
server. Because i need to move tabel data on my > Client/My Computer to the Tables on my Website mySQL. Allow remote access to your local mysql (read up on the security chapter of manual). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems

Re: [PHP] Convert MySQL table into Access or Excell format

2002-07-13 Thread Jason Wong
hp solution for this... OK, export mysql tables to CSV, import into Access. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Try to be the best of whatever you ar

Re: [PHP] PHP install - what features?

2002-07-13 Thread Jason Wong
iling is trivial, so you can always add whatever you need, _when_ you need it. > do excess features slow down php? If they're not compiled as modules then most likely yes, as at the very least it results in a larger executable. Whether the slow down is noticeable, you'll have to be

Re: [PHP] php + javascript hard day together ?

2002-07-13 Thread Jason Wong
just have to rename your checkboxes to something like listid_1, listid_2 etc. Then loop: # Untested code, use with caution for ($i = 1; $i < $number_of_checkboxes; $i++) { if (isset($_GET["listid_$i"])) { echo "listid_$i is checked"; } } -- Jason Wong -&

Re: [PHP] Dealing with spaces and punctuation in uploaded filenames (tjlq)

2002-07-13 Thread Jason Wong
either space or punctuation? If so: I prefer preg_replace so try: $SAFEFILENAME = preg_replace('/[^a-zA-Z0-9]/', '', $FILENAME); *** Untested use with caution *** -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrato

Re: [PHP] Setting include_path

2002-07-13 Thread Jason Wong
gt; Yet none seem to work. > > php_value include_path ".:/path/to/account/root" This one _should_ work. Try it without the double-quotes. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Interne

Re: [PHP] serverside restrictions

2002-07-14 Thread Jason Wong
ServerName example.com Order allow,deny Allow from 10.0.0.0/24 > P.S. I know it's got to do with Apache mostly, but it kinda has some > relation to PHP... ;-) To be honest, follow-up questions should be directed to the apache list. -- Jason Wong -> Gremlins Associates -&g

Re: [PHP] Variables aren't being passed to php page

2002-07-14 Thread Jason Wong
h the following file test.php, using the URL > > 'test.php?mid=1' displays 'nope'. This list gets at least one question a day on this subject ... > Do you always upgrade programs without reading to see what changes have > been made? ... and that's because people d

Re: [PHP] Newbie Date question

2002-07-14 Thread Jason Wong
On Monday 15 July 2002 00:01, RoyW wrote: > If: > > $today = date("Y-m-d"); > > Then how to I get: > > $yesterday = ? Use strtotime() followed by date(). Details in manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Soft

Re: [PHP] Trying to build intelligent query from question

2002-07-14 Thread Jason Wong
at I > consider" common words. Certainly there must be a list of these. Anyhow, I > explode the question string into words and then iterate as such: > > > foreach($words as $Key=>$Value) { > if($ignoreWords[strtolower($Value)]) { > continue; > }

Re: [PHP] two way encryption

2002-07-14 Thread Jason Wong
s confusing, given that the manual says mcrypt_create_iv() is > available in PHP 4. The hooks to those functions are there, it still requires that you install the lib. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web De

Re: [PHP] Re: Variables aren't being passed to php page

2002-07-14 Thread Jason Wong
On Monday 15 July 2002 03:55, Tim Luoma wrote: > Jason Wong wrote: > > This list gets at least one question a day on this subject ... > > And there will be a lot more as people scan the web for example scripts > and find ones that assume 'register_globals' is set t

Re: [PHP] replacing multiple spaces with one

2002-07-15 Thread Jason Wong
ne tell me what the correct ereg/preg expression for this > would be? $ArticleText = preg_replace('/ +/', ' ', $ArticleText); This replaces instances of one or more space with a single space. > I would also like a pointer to regex syntax, if someone knows > offhand. The m

Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Jason Wong
us. It can take anywhere up to around 30 secs for it timeout. Are you prepared to make your users wait that long? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Dev

Re: [PHP] activating php scripts via cron

2002-07-16 Thread Jason Wong
On Tuesday 16 July 2002 20:42, Andy wrote: > Hi there, > > I am wondering if it would be possible to activate a php script via cron > periodicly. > > Can anybody give me a hint on that or knows a good article? Search archives for "cron OR wget" -- Jason

Re: [PHP] file() and array values contain extra \n

2002-07-16 Thread Jason Wong
with the newline still attached". So one possible solution is after using file(), loop through $users and remove the trailing "\n". > I want to ensure that the .users file is in; > > user1 > user2 > user3 > > ...format, am I missing something in the rec

Re: [PHP] file() and array values contain extra \n

2002-07-16 Thread Jason Wong
On Tuesday 16 July 2002 22:35, Dave [Hawk-Systems] wrote: > >> $users[]=$newuser; > >> # adds the new user to the end of the above created users array > >> # then write the array to the file > >> $fd = fopen (".users", "w+"); > >> fwrite ($fd, join("\n",$users)); > >> fclose ($fd); > >> > >> the

Re: [PHP] Problem with implode() function

2002-07-16 Thread Jason Wong
526_P_1' in 'where clause'. Well I can't see what this has to do with PHP let alone the implode() function. The error quite clearly says "unknown column ..." The proper use of IN requires that string values must be enclosed in either single-quotes or double-quotes. Th

Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Jason Wong
d conversely, if I had a slow connection I /might/ want to wait 15 mins for the 'enhanced' version to download. Don't decide for the user what the user can decide for themselves :) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Sys

Re: [PHP] activating php scripts via cron

2002-07-16 Thread Jason Wong
mpile and install the standalone php binary by default. Add whatever other options you need to the ./configure command. It's all in the manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] file() and array values contain extra \n

2002-07-16 Thread Jason Wong
hing a little more eloquent. Start from scratch. You have a file with a single user on each line: tom\n dick\n harry\n You use file() to read into array $users. You compare as in above. You add a user by: $users[] = "NEW_USER\n"; You write out the file as above. If my logic hav

Re: [PHP] calling a cgi script from php

2002-07-16 Thread Jason Wong
md); > echo $returndata; What _should_ your perl script return? Also RTFM for exec(). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Prediction i

Re: [PHP] activating php scripts via cron

2002-07-16 Thread Jason Wong
elp to find out how to specify where to install it. Or better still, after "make" do NOT "make install". Then manually copy the php binary to wherever you want. Again this is all covered in the manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Op

Re: [PHP] problem with IMAP support

2002-07-16 Thread Jason Wong
re php to compile with imap support? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* When your work speaks for itself, don't interrupt. -

Re: [PHP] Using index.php instead of index.html

2002-07-16 Thread Jason Wong
ple to know you're using PHP then you need to at least disable "expose_php" in php.ini. Also depending on your error reporting settings, any error _may_ potentially advertise the fact that you're using PHP. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

Re: [PHP] Require some help about the date comparison

2002-07-17 Thread Jason Wong
tamps. 2) Use time() to get the current unixtimestamp. 3) Use the standard less-than (<), greater-than (>) comparison operators on the above 3 items to decide whether or not to display the text. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems

Re: [PHP] Forms problem?

2002-07-17 Thread Jason Wong
'load correctly' mean? My guess is that $img_code contains a space? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Veni, vidi, v

Re: [PHP] Regular expression for correcting proper nouns

2002-07-17 Thread Jason Wong
t;. > > However there is one cavet; if the word already has a captital anywhere in > it, it should be left alone!!! ucwords() > Is there a soultion using regular expressions? Yes. > Also is there one for removing multiple spaces? Yes. > i..e given "A B C D E" it wo

Re: [PHP] function for finding one character in a string?

2002-07-17 Thread Jason Wong
gt; --clip-- > > Those same variables from above, I only need to know if hte "X" exist in > the string, nothing else. strstr() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & In

Re: [PHP] CRON JOB

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 20:51, MAAS wrote: > What do I have to do before I can run my file.php as a cron job in Linux? search archives for "cron". -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hostin

Re: [PHP] win32 mail()

2002-07-17 Thread Jason Wong
gt; is it possible or should i use direct smtp > connection? Have a look the the Pear mail.php or google for "php smtp auth" -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet

Re: [PHP] Binary Files :: They Keep Adding Blocks

2002-07-17 Thread Jason Wong
ain.com IN NS dns1.expample.com". Note the '1' and still > maintain the format of the file... > > My script keeps adding and extra line to every line even when I told it to > trim. Did you even _try_ to do your own debugging before asking the list? You know what the prob

Re: [PHP] Format 24 hr time to 12 hr time

2002-07-17 Thread Jason Wong
On Thursday 18 July 2002 05:31, Ryan wrote: > How do you format this for example: 13:58:00 into 1:58 PM Manual > Date and Time functions -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Int

Re: [PHP] Re: Binary Files :: They Keep Adding Blocks

2002-07-17 Thread Jason Wong
On Thursday 18 July 2002 13:14, vins wrote: > How do i debug. > Thats why i asked echo/print out key variables at strategic points in the code. Ensure that they contain what you expect them to contain. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Soft

Re: [PHP] draw statistics

2002-07-18 Thread Jason Wong
On Thursday 18 July 2002 17:33, Jose Morales wrote: > Hi! > > Im looking for some class that alow me to draw an histogram, or a piechar, > for display statistics. www.phpclasses.org also jpgraph -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Sourc

Re: [PHP] Sessions: watertight?

2002-07-18 Thread Jason Wong
on id: [snip] ... do we really need quotes from the manual? You've already given the pointer which is sufficient in itself for any interested parties to look up the relevant information. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrato

Re: [PHP] apache.conf for php

2002-07-18 Thread Jason Wong
> does not exist in this version as it does in the older version. Because someone or something inserted those lines in the older version. > Is it now automatic with the newer version?? You still need those lines in the newer version if you want PHP to work. -- Jason Wong -> Gremlins Assoc

Re: [PHP] Check for Associative Array

2002-07-18 Thread Jason Wong
assoc()! > I'm using mysql_fetch_array() and I want to foreach only the assoc. part of > the array without using mysql_fetch_assoc(): -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] Searching...

2002-07-18 Thread Jason Wong
per > page. My question is, is this inefficient? is there any better way i dont > know of? or does the 2 queries not mka emuch of a difference If the results of the first query were small enough to be completely kept in the (RAM) cache then the second query would be performed much quicker. -- Ja

Re: [PHP] rebooting linux using php

2002-07-18 Thread Jason Wong
ron job which would reboot the OP's computer every minute and that _wouldn't_ be fun. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The Public

Re: [PHP] Re: get line from file

2002-07-19 Thread Jason Wong
; } > > ?> foreach ($datafile as $line) { echo "$line"; } is a lot simpler and easier to understand. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Application

Re: [PHP] Re: Searching...

2002-07-19 Thread Jason Wong
then, in general, it'll only return 1 row. You then use this row to determine the result of the COUNT(). IE using mysql_numrows() on this result is inappropriate. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

Re: [PHP] Speed Question

2002-07-19 Thread Jason Wong
ame result twice? Function executes twice. > would it be (slightly) faster to do this: > > $uid = validate($_POST['password'], $_POST['username']) > if($uid != 0) > echo $uid); Probably. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

Re: [PHP] Re: Redirect Question

2002-07-21 Thread Jason Wong
sion 5. With so many patches and 'upgrades' issued for IE I won't surprised if there is some combination which causes Location: header to fail. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * I

Re: [PHP] Images of GD Library

2002-07-22 Thread Jason Wong
save it's > minature view in my DB / file ? (How can an image be resized ?) After you've figured out 1 & 2, read up on fopen(). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intr

Re: [PHP] separated string by comas

2002-07-22 Thread Jason Wong
this is probably simple but I just can't figure it out str_replace() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Forced to support NT servers; s

Re: [PHP] $HTTP_SERVER_VARS not accessible in Functions

2002-07-22 Thread Jason Wong
able on php 4.1.X or above. Read the docs for the details. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Unprovided with original learning, unformed i

Re: [PHP] Newbie getting close, form submission

2002-07-22 Thread Jason Wong
On Monday 22 July 2002 23:44, Dean Ouellette wrote: > Tried this, but same message > > $Message .= "\n\n$HTTP_POST_VARS['Footer']"; $Message .= "\n\n$HTTP_POST_VARS[Footer]"; -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Sou

Re: [PHP] Parse error

2002-07-22 Thread Jason Wong
ve to quote vars on parms } ?> Make sure that the '} ?>' are on a separate line (ie not a continuation of your comment -- // don't have to quote ...) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design &

Re: [PHP] jpeg libraries.

2003-08-29 Thread Jason Wong
but it didn't work. i.e. jpeg is still not enabled > in gd. :\ > > Does anyone know how to get jpeg enabled in gd? Yes. > I'm using php 4.3.3. Unless dramatic changes were made in 4.3.3 then the procedure should be the same as the previous versions. Namely: --with-gd --w

Re: [PHP] jpeg libraries.

2003-08-29 Thread Jason Wong
/local/bin > --with-jpeg=/usr/local > > None of which worked. Because they're incorrect. > Any suggestions?? :) Read the beginning of this post again. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Softw

Re: [PHP] jpeg libraries.

2003-08-29 Thread Jason Wong
previous posts. The least you could do is read it! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Searc

[PHP] php 4.2.3 on AIX - include statment cause seg. fault

2003-08-30 Thread PM WONG
After upgrading from php 4.0.x to 4.2.3 many previous php scripts that had been working failed becos of the "include" statement The apache error log logged "segmentation fault" I think it might have to do with AIX as there are no problems for 4.2.3 which I've installed on Tru 64 Unix (I've checke

Re: [PHP] Unique yet Eerie

2003-09-01 Thread Jason Wong
h that version of PHP. Upgrade to a newer version. Also if you don't have any particular reason to use Apache 2.x then you ought to use Apache 1.3.x instead. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems I

Re: [PHP] randomly select a table, better way?

2003-09-01 Thread Jason Wong
$random_table == 1. > If not, then what am I missing. You didn't RTFM -> mysql_list_tables() mysql_tablename() mysql_fetch_array() and friends -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Ho

Re: [PHP] Block HTML Control

2003-09-02 Thread Jason Wong
t; all one solid color. I'd love to know if there's a better way OTHER > than include()ing different files. Lots of -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intrane

Re: [PHP] Validating Subdomain E-mail Addresses Using Regular Expressions

2003-09-08 Thread Jason Wong
EMAIL PROTECTED]> > [EMAIL PROTECTED] Has anyone been able to come up with a > regular expression that will allow php to validate an e-mail address > like this? Search the archives or ask google. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems I

Re: [PHP] Running PHP scripts in PHP Nuke

2003-09-08 Thread Jason Wong
and a preprocessor that can send it to PHP it's being printed to > the screen. You would be better off asking on a php-nuke forum/list. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting

Re: [PHP] Installing php with gd what a pain!

2003-09-09 Thread Jason Wong
body tell me what could be wrong? You gave the wrong directory for the "--with-jpeg-dir" option. But you didn't give enough details for us to help you, ie: - where your libjpeg files are installed - what the error message is -- Jason Wong -> Gremlins Associates -> www.gr

Re: [PHP] Mail() question

2003-09-09 Thread Jason Wong
t; Please note that i I intend to add a kind of word merge functionality later > on. > eg: > Dear <::name::>, > thank you for subscribing your email address: <::email::> > etc etc For this, your only choice is to send mails out individually. -- Jason Wong -> Greml

Re: [PHP] Mail() question

2003-09-09 Thread Jason Wong
search on "mail" now. mass mailing, bulk mailing would probably be better search terms. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ---

Re: [PHP] Using PHP to do something with Acrobat PDF....

2003-09-12 Thread Jason Wong
do the PDF stuffs if there is no PDF on the > server? Etc... There are at least two projects which implements some pdf functions using only PHP code (thus negating the need to install pdflib). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Inte

Re: [PHP] Calling a function.

2003-09-12 Thread Jason Wong
ay$$preferences() ; > > $functon = "dis_play$preferences"; > $function(); Better still: $functon(); // [sic] -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications

Re: [PHP] Using Image/GD functions to transform images stored in database

2003-09-13 Thread Jason Wong
figure out > how to make this work without writing the image out to a file (and since > I'm already taking a bit of a performance hit by reading the image out > a database, that seems like the wrong thing to do). Can anyone elaborate? imagecreatefromstring() -- Jason Wong ->

Re: [PHP] space sensitive?

2003-09-14 Thread Jason Wong
echo "This is the same"; ----- -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Sea

Re: [PHP] Getting part of a string...Was protecting a file via php

2003-09-16 Thread Jason Wong
On Tuesday 16 September 2003 21:24, Jon Haworth wrote: > At this point $p is an array rather than a variable, so you'll need to get > the last element of $p.Try something like this: > > $p = explode('.', $pfile); > $extension = $p[sizeof($p)-1]; Better still, us

Re: [PHP] Re: $_SELF[PHP_SELF] not working anymore

2003-09-16 Thread Jason Wong
n? There's no output? There's an error message? The monitor explodes? > Do you have any other idea? I already ran out of > them... :-( What version of PHP are you using? Have you turned on all error reporting? And what does print_r($_SERVER); give you? -- Jason Wong -&g

Re: [PHP] problem with gd

2003-09-17 Thread Jason Wong
gd libs (not the bundled ones) resolves the problem. -- 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] Zip library

2003-09-17 Thread Jason Wong
ou don't know how to do this then read manual > Installation. Or search out some tutorials. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

<    9   10   11   12   13   14   15   16   17   18   >