Re: [PHP] Re: Checking File Size BEFORE Uploading

2002-10-14 Thread Jason Wong
oo > large. Actually it does work under some browsers (Opera being one). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Above all else -- sky

Re: [PHP] Shipping problem...

2002-10-15 Thread Jason Wong
Basically adding to my products table means my DB won't update > due to a Mysql error (column count didn't match or something) Perhaps if you post your code and your db schema here then someone may be able to help. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Ope

Re: [PHP] Inserting a variable into a mysql_query() statement

2002-10-15 Thread Jason Wong
otes in order for PHP interpret $hidden_manuf_id as a variable. What you really should do is split the above into two steps: $query = "DELETE FROM product WHERE manufacturer=$hidden_manuf_id"; mysql_query($query, $bb) or die("Error in $query :: " . mysql_error()); -- Jas

Re: [PHP] Want to exclude first 10 records from table

2002-10-15 Thread Jason Wong
now how to take postings excluding above 10. I do not want to > make use of loop rather I want to do this in one single query as I need to > pass this to some further include files. Use LIMIT -- rtfm for the database you're using for details. -- Jason Wong -> Gremlins Associates ->

Re: [PHP] How to convert the text file into pdf file in php

2002-10-16 Thread Jason Wong
generate PDF without using PDFLib. Again search google. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Stupidity is its own reward. */ -- PHP Gene

Re: [PHP] seeding using mt_srand();

2002-10-16 Thread Jason Wong
without > calling generate.php right? Right. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* It would be illogical to assume that all conditions remain stab

Re: [PHP] Weight function.

2002-10-16 Thread Jason Wong
ing meaningful. 1) mysql_query() returns a resource_id -- which you assigned to $result. 2) You need to pass $result into one of these functions to actually get the data resulting from your query -- mysql_fetch_row(), mysql_fetch_array(), mysql_fetch_object(), mysql_result(

Re: [PHP] Weight function.

2002-10-17 Thread Jason Wong
lobal $shipping; > if ($weight <= "1") > $shipping = "15"; > else > $shipping = "20"; > return $shipping; > > } > > I still don't fully understand why this works but am happy it does! -- Jason Wong -

Re: [PHP] mkdir and directory permissions

2002-10-25 Thread Jason Wong
;nc". How can > this be achieved > by the php script? Or do I have set this up in the other environments (OS > or Apache)? You can't. The user:group comes from the user running the webserver, which in your case is nobody:daemon. Only root can the the user:group ownership of file

Re: [PHP] pass globals to functions???

2002-10-25 Thread Jason Wong
global declaration only has effect INSIDE a function. Having it outside of a function does not make sense (rtfm) and would probably be ignored. Rather than repeating the examples in the manual here, I suggest you read up on the section "Variable scope". -- Jason Wong -> Gremlins

Re: [PHP] Creating Directories

2002-10-25 Thread Jason Wong
On Saturday 26 October 2002 01:23, Stephen wrote: > Thanks, but what are the parameters to make the dir? Try searching manual for: > > > mkdir() ?? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting

Re: [PHP] Couple of questions

2002-10-26 Thread Jason Wong
On Friday 25 October 2002 02:04, Chris Boget wrote: > > 1) Does anyone know of a JS mailing list that actually has a good > > amount of traffic (receives more than 10 email messages a day)? > > Dunno google -> javascript weenie -- Jason Wong -> Gremlins Associates -&g

Re: [PHP] mysql_fetch_row options

2002-10-26 Thread Jason Wong
ne > value. Any suggestions? Thanks a bunch! You can assign the directly into a variable using something like: list($count) = mysql_fetch_array($result); Not sure whether you can do a += into an existing variable though. Why don't you just stuff the above into a function instead? --

Re: [PHP] PHP Manual Book

2002-10-26 Thread Jason Wong
lished and before it even gets to the shops! -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Bradley's Bromide: If computers get too powerf

Re: [PHP] predifined functions

2002-10-26 Thread Jason Wong
On Sunday 27 October 2002 10:40, DaRk--ObJeCtS wrote: > alright i wanna know where i could see the source of predifened functions > like session_register. Thx. the manual? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Desi

Re: [PHP] How to prevent failure email from being sent?

2002-10-30 Thread Jason Wong
hose people whose email address has become invalid? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Xerox your lunch and file it under "s

Re: [PHP] How to find future date?

2002-10-30 Thread Jason Wong
g corresponding to this, I will really appricate u > r help, thanks in advance > Prad strtotime() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /

Re: [PHP] Re: Strange intermittant errors

2002-10-30 Thread Jason Wong
every mysql call... but in accordance with sods > law its just not happening again :) I'll keep trying... Use error_log() to log any useful debugging info into a file. Then, if and when the error occurs all the pertinent info is ready and waiting for you in a file. -- Jason Wong -

Re: [PHP] Displaying Data of a MySQL Table in PHP

2002-10-31 Thread Jason Wong
> this simple. google -> "mysql php tutorial" -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Mother told me to be good but she's been wron

Re: [PHP] php development environment

2002-11-01 Thread Jason Wong
or a few lines of > spurious code... Maguma Studio > and all the other goodies that come with that sort of > thing.. Biggest downside to it is that it doesn't manage your projects. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrat

Re: [PHP] Array solution...

2002-11-01 Thread Jason Wong
ay with all the values that are in $complete[] but not in > $part[], how would I do that? array_diff() -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /*

Re: [PHP] Apache Installation Problem

2002-11-01 Thread Jason Wong
is mailing Please excuse me. How hard did you look? Going to www.apache.org or httpd.apache.org will display a link to "mailing lists". -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet

Re: [PHP] Help please.

2002-11-01 Thread Jason Wong
ariable; Or you can use the returned value directly: echo get_shipping($shipping); -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* The comput

Re: [PHP] Re: Installation prob: I can't see libphp4.so

2002-11-01 Thread Jason Wong
find where it is. Or just do 'make install' again and watch carefully to see where libphp4.so is copied to. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Appli

Re: [PHP] Problem with 4.2.3?

2002-11-01 Thread Jason Wong
re it sends any HTML to the client. > > This is really frustrating. Is there some setting in php.ini that I can > modify to allow the browser to get the HTML before the PHP code? Or any > other way to get the old behavior? Try disabling output buffering (php.ini). -- Jason Wong ->

Re: [PHP]-How to do Mapping ?

2002-11-01 Thread Jason Wong
the > page login.php?id="required Id" for the particular group... > > How can this be doneis there any way to do this in PHP... Nothing to do with PHP. > I still have a doubt whether its related to PHP :-) Try the apache mailing list. -- Jason Wong -> Gremlins

Re: [PHP] Am I blind? simple 15 line code producing error

2002-11-03 Thread Jason Wong
formation - headers already sent by Search for the above error in google (or search the archives). This kind of problem has been covered so MANY times before! -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting *

Re: [PHP] re:[PHP] uploading help please again

2002-11-03 Thread Jason Wong
reading the manual, they could save themselved oodles of time and grief. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Getting into trouble is easy.

Re: [PHP] Re: Cookies disabled, new session ID each click!

2002-11-03 Thread Jason Wong
makerscorner.com/snapmods_new/default_test.php Clicking on the link appends the session id to the URL. As does clicking on the link again (same session id). Ad infinitum. So basically it works? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems

Re: [PHP] Phpmyadmin HELP!!!

2002-11-03 Thread Jason Wong
doesnt show the details. HELP!!! I think phpmyadmin has its own mailing list. You should be asking on there. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development

Re: [PHP] Address array?

2002-11-04 Thread Jason Wong
t;]; $ship_country = $row["ship_country"]; Here's how foreach can be used: foreach ($row as $field_name => $field_value) { echo "$field_name contains $field_value"; } -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Softw

Re: [PHP] Re: Cookies disabled, new session ID each click!

2002-11-04 Thread Jason Wong
t servers -- try comparing php.ini. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* That's life. What's life? A magazine. How much d

Re: [PHP] function()

2002-11-05 Thread Jason Wong
On Tuesday 05 November 2002 23:56, Francisco Vaucher wrote: > This doesn't work. I need to get some variables values out of the function. > Is there a way to make te variables defined in the function 'global' ? So I > can use them after the function call. Declare them as global: -- PHP Gene

Re: [PHP] Get Entire URL for Current Page

2002-11-05 Thread Jason Wong
On Wednesday 06 November 2002 01:32, Phillip Erskine wrote: > Is it possible to get the entire url of the current page? I am > particularly interested in getting the "username:password" part. > > http://username:password@;www.mysite.com/path/to/file.php print_r($_SE

Re: [PHP] Get Entire URL for Current Page

2002-11-05 Thread Jason Wong
t;print_r($_SERVER)" then you can't have it -- it's not there, there's nothing you can do about it. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Dev

Re: [PHP] function()

2002-11-05 Thread Jason Wong
7;ed variable into the global scope. Thus whatever you do to the global'ed variable inside the function is equivalent to as if it had been done outside of the function. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Desi

Re: [PHP] xml

2002-11-05 Thread Jason Wong
On Tuesday 05 November 2002 22:45, Karl James wrote: > What the hell is XML anyway? What the hell are search engines for? google > "What the hell is XML anyway" -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators

Re: [PHP] problem of javascript with dropdown list of array.

2002-11-05 Thread Jason Wong
On Monday 04 November 2002 21:29, Mack wrote: > > --- > the form with the events: > > action="/ayni2/admin2/producto.php"> > > > > Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting *

Re: [PHP] Help me learn! with an explanation of these two functions.

2002-11-06 Thread Jason Wong
gned that to $orderid. > What does extract do? I am under the assumption it extracts row > information so why a datatype error? rtfm for details and examples. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

Re: [PHP] *.PHP "save-as" dialog

2002-11-06 Thread Jason Wong
e, but I think you have to look the the "ExecCGI" option and use the "AddHandler" directive to tell apache to treat files ending with '.php' as a cgi program. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrator

Re: [PHP] Help me learn! with an explanation of these two functions.

2002-11-06 Thread Jason Wong
derid] => 100051 ) Array ( [0] => 100052 [orderid] => 100052 ) > > Where do I go from here? Well, like I said in my previous post if you remove the line: $orderid = $row; then your second query *should* work. -- Jason Wong -> Gremlins Associates -> www.gremlins

Re: [PHP] Help me learn! with an explanation of these two functions.

2002-11-07 Thread Jason Wong
{ > extract($row); > //$orderid = $row; > print_r($row); > $query2 = "SELECT * FROM orders WHERE orderid=\"$orderid\""; > $result2 = mysql_query($query2) or die("Error: cannot fetch > order$query2".mysql_error());

Re: [PHP] Help me learn! with an explanation of these two functions.

2002-11-07 Thread Jason Wong
uot;]; ... the whole point of using extract() is that instead of using echo $row['orderid']; you could simply use: echo $orderid; -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] print_r output to a file

2002-11-07 Thread Jason Wong
;PHP_SELF']}::$title"; echo "$title\n"; } if ($message) { print_r($message); echo "\n"; } $tmp = ob_get_contents(); ob_end_clean(); error_log($tmp, 3, "/some/path/or/another/php.log"); -- Jason Wong -> Gremlins A

Re: [PHP] Problem with reference variables.

2002-11-07 Thread Jason Wong
On Friday 08 November 2002 02:35, R B wrote: > And when i call the myTestFunction function, i have to put & in the > variable? > > ex: > function myTestFunction(&$x) { > funtion stuff here > } > > myTestFunction(&$x) No. > or >

Re: [PHP] PHP not working in html

2002-11-07 Thread Jason Wong
de a directory container: AddType application/x-httpd-php .htm .html Or you can edit your httpd.conf file instead: AddType application/x-httpd-php .php4 .php3 .php .html AddType application/x-httpd-php-source .phps This will parse all html on all the websites served by apache. --

Re: [PHP] problem compiling php

2002-11-08 Thread Jason Wong
be relevant. > Furthermore, how do i add mysql support to apache? Is there a > --with-mysql switch? You probably want to add mysql support to PHP rather than apache. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design &a

Re: [PHP] Other Notice problem...

2002-11-08 Thread Jason Wong
On Saturday 09 November 2002 00:52, Stuart wrote: > > How can i run the script without problems having register_globals=off? > > p02.php code: > ... > ... > echo $_GET['pp']; > ... > ... Yes. And try reading the manual, or the archives.

Re: [PHP] Other Notice problem...

2002-11-08 Thread Jason Wong
On Saturday 09 November 2002 00:56, R B wrote: > And without using the $_GET[] array. Probably by using black magic instead -- or maybe use $_REQUEST, but I don't think you want to use that either :) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source So

Re: [PHP] Other Notice problem...

2002-11-08 Thread Jason Wong
ible. Unless you go through that extract($_POST) ritual, all of which is covered in the manual and archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Develop

Re: [PHP] HTTP POST FILE UPLOAD HELP

2002-11-08 Thread Jason Wong
7;ve got serious problems :) Read the whole of the chapter "Handling file uploads". Go over your php.ini settings, quick check that "file_uploads" is enabled. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web

Re: [PHP] DHTML and PHP

2002-11-08 Thread Jason Wong
On Saturday 09 November 2002 08:35, John Meyer wrote: > I want to get the top layer to appear right on top of where the other two > are. How do I do this? > > " style="visibility: visible; > zIndex:1"> href="javascript:show('Layer');show('layerhide Gremlins Associates -> www.gremlins.com.hk Open

Re: [PHP] Need MENTOR for Fantasy football project

2002-11-08 Thread Jason Wong
e to see where the pieces fit together and then you can start your project. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Innovation is hard to schedule.

Re: [PHP] Need MENTOR for Fantasy football project

2002-11-08 Thread Jason Wong
here and let everybody help you? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* You can now buy more gates with less specifications than at

Re: [PHP] calculate bytes in string

2002-11-09 Thread Jason Wong
On Saturday 09 November 2002 14:22, Ian Newlands wrote: > Does anyone know of a function, or a method to calculate how many bytes are > in a string? Similar to the filesize file system function. > > Any help would be appreciated. Assuming 1 character = 1 byte, then strlen(). -- PHP General Mail

Re: [PHP] HTTP POST FILE UPLOAD HELP - REVISITED

2002-11-09 Thread Jason Wong
r renamed." If you didn't 'simplify' the example and removed the all important copy() or move_uploaded_file() then you would have had something that worked! -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Desi

Re: [PHP] preg_split problem

2002-11-09 Thread Jason Wong
; and not "I tell you?" > Why? Because that is what you asked for! $doo = preg_split("/\s+/", $text); print_r($doo); // each word is a separate element in $doo. In your list() you're only taking up to the 4th element which is "I". -- Jason Wong -> Gremlins

Re: [PHP] converting decimal to fraction and vice versa

2002-11-09 Thread Jason Wong
0.5 . thanx in > advance. Short answer: Yes. Longer answer: No, not with the built-in functions. Longest answer: You'll have to write your own functions/class, or find some existing ones -> www.hotscripts.com, www.phpclasses.org, www.zend.com etc. -- Jason Wong -> Gremlins Asso

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Wong
you're using. Different browsers exhibit different behaviours, eg the old versions of Netscape (v4 and before) does not submit on ENTER. Also, put quotes around your attribute values eg: -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Wong
g on quotes. Assuming a 56K modem downloading at 4KB/s, you would have to remove over 4000 quotes to save 1 sec of download time. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applicatio

Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Wong
out for yourself, submits the form but does not send the submit button. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* If in any problem you find yourse

Re: [PHP] Restrict file access from web users?

2002-11-10 Thread Jason Wong
On Monday 11 November 2002 14:10, James Taylor wrote: > Ok, I have something like this set up: > > 1. User logs into site. Authenticates through a mysql table which > basically just has username/password columns. Session is set. > > 2. User goes through site looking for information he'd like to pu

Re: [PHP]

2002-11-11 Thread Jason Wong
ore the array of people (). Well, try using print_r() on all your important variables at strategic places in your code to see that they contain what you expect them to contain. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web De

Re: [PHP] Submit hitting enter problem

2002-11-11 Thread Jason Wong
oo bar"; > echo " > ?> > > produces > > The OP is aware of this and has pointed it out :) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Deve

Re: [PHP] Multiply - seemed to be so very easy

2002-11-11 Thread Jason Wong
to temp variables, then assign their multiplied value to a third temp variable, then print() all three. - you get the idea. > } > reset($this->z); > return $cn; > } > } > > Example to above: > $this->z[1] = array ("IL" => 1, "PR" => 634.4

Re: [PHP] Re: Copy & Paste URL was [Re: [PHP] Would appreciate thoughts on session management ]

2002-11-11 Thread Jason Wong
out this recent thread: http://marc.theaimsgroup.com/?l=php-general&m=103621442315093&w=2 -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* As Will

Re: [PHP] [ANN] Zip code db available with latitude and longitude

2002-11-11 Thread Jason Wong
her source [of zip code db]." ;-) -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Encyclopedia for sale by father. Son knows everything. */ -- PHP

Re: [PHP] Building Menus based on User Rights

2002-11-11 Thread Jason Wong
r some "user authentication" tutorials. [1] Unless you continue propagating the login info (user/password) via hidden elements in a form (which btw, is a very foolish thing to do) they would only be available on the page that is handling your login. -- Jason Wong -> Gremlins Associate

Re: [PHP] preg_split() - pattern problem

2002-11-11 Thread Jason Wong
Check whether there's a flag in PRCE to do ungreedy matches. or 2) Maybe you really meant your pattern to be /T.O.B/ which matches T{any single char}O{any single char}B -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web D

Re: [PHP] Need Help in installation of PHP, appache and MySQL on Linux

2002-11-11 Thread Jason Wong
led > description. I am new to Linux also, if u guys know > some URL or doc pls let me know google > apache php mysql installation -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] Help w/ $_SESSION

2002-11-11 Thread Jason Wong
sql_query("select count(*) AS numfound from admins where user='{$_SESSION['user']}' AND pass='{$_SESSION['pass']}'",$db); BTW, it is much better to assign your query to a variable, eg $qry, then do mysql_query($qry, $db) or die('Error in $q

Re: [PHP] Help w/ $_SESSION

2002-11-12 Thread Jason Wong
rror in $qry ' . mysql_error()); > > > > That way if your query doesn't work you'll at least know why. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applicat

Re: [PHP] Genrate a graph

2002-11-12 Thread Jason Wong
On Tuesday 12 November 2002 19:04, Marek Kilimajer wrote: > No, there is not, but there are classes for that, look for jgraph I believe you mean "jpgraph" ! -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design &

Re: [PHP] Here Document on Mac OS X

2002-11-12 Thread Jason Wong
er -- you have to use a single linefeed character (0Ah). Try searching the archives, I think this issue cropped up a few weeks ago. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Appl

Re: [PHP] flushing data as it's being generated

2002-11-12 Thread Jason Wong
y the column widths then they can vary from table to table and it may look a bit odd. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Objects are lost

Re: [PHP] Drop down list with date

2002-11-12 Thread Jason Wong
(), and whilst not strictly necessary but highly recommended strtotime(). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I bought some used paint.

Re: [PHP] Why $ on variable names?

2002-11-12 Thread Jason Wong
y javascript way: alert("I'm a " . $variable); -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Aleph-null bottles of beer on the wall, Ale

Re: [PHP] Register_globals = off version of Manuel Lemos's form class?

2002-11-13 Thread Jason Wong
ase "get" : if (isset($_GET)) { foreach ($this->inputs as $name => $value) { if (isset($_GET[$name])) { $GLOBALS[$name] = $_GET[$name]; } } } break; } } After I've defined all the form el

Re: [PHP] Magic Quotes performance hit?

2002-11-13 Thread Jason Wong
ons. So I suppose the same performance penalty would apply to magic_quotes_runtime. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Stay together, drag ea

Re: [PHP] Register_globals = off version of Manuel Lemos's form class?

2002-11-13 Thread Jason Wong
On Thursday 14 November 2002 03:41, Marek Kilimajer wrote: > Even if the method is post, you can have get variables, if the form has > action="script.php?get_var=value" Yes but I don't (need to) define my forms like that so I don't really care :-) -- Jason W

Re: [PHP] Mail Question

2002-11-13 Thread Jason Wong
qmail file which points to the program you wish to use to handle that mail. Courier and sendmail both have a similar mechanism. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Application

Re: [PHP] Mail Question

2002-11-13 Thread Jason Wong
On Thursday 14 November 2002 05:48, Mike D wrote: > Yes we are using qmail. So all I have to do is create the .qmail-info > file and have that point to a php script? Yes, man dot-qmail for the details. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Soft

Re: [PHP] How to edit and ecternal .html file through a form

2002-11-13 Thread Jason Wong
em out and play around with them, understand them, then modify them to your needs. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Reality always seems harsher in

Re: [PHP] can a popup window get the page referer?

2002-11-13 Thread Jason Wong
or it :) Have you found a use for the [right-click]>[open] function (as opposed to just a plain left-click)? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet App

Re: [PHP] Syntax Help

2002-11-14 Thread Jason Wong
7;{$_POST['descp']}', message= > '{$_POST['message']}' where id= '{$_POST['id']}'"; > > $result = mysql_query($sql); Does echo($sql) look OK? How about echo mysql_error()? Or executing $sql in the mysql command line interface

Re: [PHP] php mail confirmation

2002-11-14 Thread Jason Wong
mail() > function filled with data from registration (email)? Yes, well why not? Just build up the body of your mail using the info from your form ($_POST or $_GET) and pass it to mail(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integra

Re: [PHP] multiple file upload

2002-11-14 Thread Jason Wong
On Thursday 14 November 2002 18:12, Funk-XL wrote: > Hi All, > > Is it posible to do multiple file upload without selecting each file manual > in multiple form fields? Nope. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * We

Re: [PHP] connecting to a remote host through mysql.exe

2002-11-14 Thread Jason Wong
On Thursday 14 November 2002 19:17, Mr. BuNgL3 wrote: > Hi... > How can i connect to a remote host database through mysql.exe? > Thank you This is the PHP list, try asking on the MySQL list? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems In

Re: [PHP] STDIN question

2002-11-14 Thread Jason Wong
> (cuz Apache is not installed in CGI mode, so I don't have a binary to > call)?? Nothing to do with Apache. You just need to compile PHP in CGI (or the new CLI) mode: ./configure --enable-cli ... -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

Re: [PHP] PHP download problem IE5 on mac

2002-11-14 Thread Jason Wong
er - > > > >IE on a MAC loads the file inline rather than throwing the save prompt. > > [snip] > > Try the "application/octet-stream" content type. Any browser should ask to > save this. Or most likely an IE bug, it makes a regular appearance in the

Re: [PHP] STDIN question

2002-11-14 Thread Jason Wong
On Friday 15 November 2002 04:27, Mike D wrote: > Thanks for the feedback BigDog and Jason Wong (you guys rock!) > > That's what I thought as far as the STDIN goes... My host has told me > that it would screw up our current DSO version of PHP if we installed a > second CGI ver

Re: [PHP] Relaying variables to distant site

2002-11-14 Thread Jason Wong
oing some checks to see whether the user-agent is a known browser in an attempt to stop people from programatically (sp?) accessing it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intrane

Re: [PHP] PHP Database

2002-11-15 Thread Jason Wong
de? (You've come to the wrong place!) - Do you want some help on general database design? (Search for some database design and sql tutorials). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet &

Re: [PHP] Need difficult help !

2002-11-15 Thread Jason Wong
shift($pieces); $link = array_shift($pieces); $name = array_shift($pieces); // do whatever you need to make your link } --- -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Inte

Re: [PHP] shell_exec problem

2002-11-15 Thread Jason Wong
ly gets the command > 'sendfax' and not the parameters '-n -d .'. What httpd file? You mean the log? What exactly do you see? Copy-paste the line(s). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &am

Re: [PHP] GD 1.5

2002-11-15 Thread Jason Wong
says: > "GD does not create GIF images" > > Or am I missing something? :) Look around! google > "gd library with gif support" -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Int

Re: [PHP] GD 1.5

2002-11-15 Thread Jason Wong
fficial' support then GD does not support GIF, period, because the older versions aren't supposed to exist anymore. So basically if you want GD with GIF you're going have to patch it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems

Re: [PHP] GD 1.5

2002-11-15 Thread Jason Wong
ly no matter what version you're using. Basically you're not allowed to use GIF in anything without a license from Unisys (the patent holder). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting *

Re: [PHP] Specifying file to send in url...

2002-11-15 Thread Jason Wong
gly? Because > of the way its specified it would be a GET but I am not sure if this is > even possible. Do you mean you want to send a _local_ file called "filename.txt" to the _server_ via the URL? If so, then no, it's not possible. -- Jason Wong -> Gremlins Associate

Re: [PHP] what else do i need in this upload script?

2002-11-15 Thread Jason Wong
On Saturday 16 November 2002 05:04, Tweak2x wrote: > ok, this is upload.php: > > > > Send this file: > > > > > what else do i need to make afile upload? Why don't just try the example in the manual as someone (I believe) already suggested? --

<    6   7   8   9   10   11   12   13   14   15   >