Re: [PHP] php_admin values in httpd.conf

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

Re: [PHP] Mysql update problems

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

Re: [PHP] system()

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

Re: [PHP] printer_open

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

Re: [PHP] emulate Post with redirect

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

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

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

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

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

Re: [PHP] time stamp screwing up

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

Re: [PHP] progress page

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

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

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

Re: [PHP] time stamp screwing up

2003-01-06 Thread Jason Wong
t;; > > Should be > > $query = "INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES > > > (NULL, '$name', '$pass', '$email', NOW())"; Yes. That'll insert mysql's notion of the current time into dateAdded. -- Jason Wong -&

Re: [PHP] Need help detecting attached files

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

Re: [PHP] No Idea - Comparing Lines

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

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

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

Re: [PHP] Zend IDE vs. PhpEd

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

Re: [PHP] mkdir(blah,0777)

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

Re: [PHP] $_SERVER content

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

Re: [PHP] Adding HTTP URL Code

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

Re: [PHP] $query help :(

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

Re: [PHP] float precision

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

Re: [PHP] Segmentation fault and var_dump()

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

Re: [PHP] directory listing

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

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

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

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

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

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

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

Re: [PHP] ftp and www

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

Re: [PHP] groupware tool in PHP for PostgreSQL

2003-01-07 Thread Jason Wong
to start a new thread. To achieve this, click on "New message" instead of "Reply" within your mail client, and enter the list address as the recipient. You can save the list address in your address book for convenience. -- Jason Wong -> Gremlins Associates -> www.gremlins

Re: [PHP] I am a dullard

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

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

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

Re: [PHP] Re: Change Date

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

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

2003-01-11 Thread Jason Wong
globals cannot be set at runtime (to be precise, it can be set but it has no effect). If it works for you, you should report it as a bug! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet

Re: [PHP] Date Comparison

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

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

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

Re: [PHP] Loading Information into an array.

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

Re: [PHP] global to superglobal

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

Re: [PHP] Changing permissions with mkdir?

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

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

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

Re: [PHP] Permission Denied

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

Re: [PHP] Simple Form Processing

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

Re: [PHP] php editor

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

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

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

Re: [PHP] "document contained no data"

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

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

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

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

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

Re: [PHP] question on Header(location

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

Re: [PHP] forms

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

Re: [PHP] globals off in function

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

Re: [PHP] Going from 1040601600 to Human time

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

Re: [PHP] mail client?

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

Re: [PHP] Going from 1040601600 to Human time

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

Re: [PHP] valid MySQL result resource

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

Re: [PHP] Dumping Tables from MySQL

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

Re: [PHP] query question

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

Re: [PHP] htmlspecialchars

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

Re: [PHP] Question about $_GET

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

Re: [PHP] sending array

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

Re: [PHP] sending array

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

Re: [PHP] Send email when some action

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

Re: [PHP] Question about $_GET

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

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

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

Re: [PHP] Windows vs Linux

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

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

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

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

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

Re: [PHP] Session wierdness...

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

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

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

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

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

Re: [PHP] Redirecting - here is the code

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

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

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

Re: [PHP] Meta Refresh

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

Re: [PHP] Meta Refresh

2003-01-16 Thread Jason Wong
ytour = mysql_fetch_assoc($earlytour); > $totalRows_earlytour = mysql_num_rows($earlytour); > ?> > > This code was inserted by DWMX when I created the record set "earlytour" > So I don't know exactly. What does your complete code look like? -- Jason Wong -> Gremlins Asso

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

2003-01-17 Thread Jason Wong
now the OS and architecture that your server is running then see if someone has produced a binary version. If you're still here (ie none of the above worked for you) then it's time to get you hands dirty and do some "configure; make; make install". This is beyond the scope of

Re: [PHP] Alternate row colours - what is wrong with this code?

2003-01-17 Thread Jason Wong
#x27;#00ff00'); > $i = 0; > while($row=mysql_fetch_array($result)){ > echo ''; Look at the HTML source of the resulting page, if each is alternating then your code is working. Which means your HTML is dodgy ... > Print " bgcolor=\"#bf\&

Re: [PHP] opening tex file

2003-01-17 Thread Jason Wong
t you're interested in. If the file isn't large (say less than several MBs) then just read it all into an array using file() and process it from there. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Inte

Re: [PHP] getopt usage?

2003-01-17 Thread Jason Wong
array containing all the valid options. To read them you can use: foreach ($options[0] as $opt) { echo "Option::{$opt[0]} Value::{$opt[1]}\n"; } > My questions are what is the preferred way to get command line options, > is there a way to give errors Yes, you manuall

Re: [PHP] Gridwidget - javascript

2003-01-17 Thread Jason Wong
form fields on the client > > side > > using javascript. > I believe that if you reference the form element like: > > document.forms['mycell[]'].value > > you will get what you want. Which means you have to give your text elements unique names. IE mycel[0]

Re: [PHP] Result in the same page

2003-01-18 Thread Jason Wong
On Saturday 18 January 2003 20:11, Ezequiel Sapoznik wrote: > It is possible to run a query in php when the user press a button an return > the result in the same page? Yes. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Desi

Re: [PHP] passing variables to a sql statement

2003-01-18 Thread Jason Wong
gt;while($row = mysql_fetch_object($descripResult)){ > > $foo = $row->descrip; > > echo(""); > echo("" . "$foo" . " | "); > echo(""); > > } > > > ?> -- Jason Wong -> Gremlins Associates -> www.gremlin

Re: [PHP] Auto Incrementing in PHP

2003-01-19 Thread Jason Wong
more instances of the script trying to read and write to the file at the same time. Using a DBMS means this problem is handled automatically and reliably. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] Multiplication of double

2003-01-19 Thread Jason Wong
to store > the total amount also as a double expression... I'm trying with: > > $totalprice = $price * $qty; > > but when I echo the, it gives me just plain old 0 (zero). Any > suggestions? What is $price and what is $qty? -- Jason Wong -> Gremlins Associates -> www.grem

Re: [PHP] XML & deprecated "Call-time pass-by-reference"

2003-01-20 Thread Jason Wong
;parser, &$this ); Assuming that xml_set_object() has been defined correctly then to get rid of that error/warning message simply use: xml_set_object( $this->parser, $this ); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Desig

Re: [PHP] PHP Sessions

2003-01-21 Thread Jason Wong
7;m currently using for my > hosting. Does the simple example from the manual work? If not, what does the php.log say? If it does work then what does your code look like? What is the config of the "server with an attitude"? phpinfo()? Did you check for any differences between th

Re: [PHP] PHP Sessions

2003-01-21 Thread Jason Wong
manual work? If it works we can eliminate config settings and concentrate on your code. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Endless the world

Re: [PHP] PHP Sessions

2003-01-21 Thread Jason Wong
s with storing sessions in mm: http://marc.theaimsgroup.com/?l=php-general&m=104311365417871&w=2 Check in php.ini whether sessions are file based or using mm. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Ho

Re: [PHP] Help with e-mail

2003-01-21 Thread Jason Wong
ere is at least one class at www.phpclasses.org which allows you to use SMTP-AUTH. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* You buttered your bread

Re: [PHP] Page Rendering

2003-01-21 Thread Jason Wong
iated. Most likely $PHP_SELF is in fact blank. If you're using a relatively new version of PHP use $_SERVER['PHP_SELF'] instead. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Int

Re: [PHP] Input field array ends up as "Array" string

2003-01-21 Thread Jason Wong
any recent upgrades etc. To paraphrase Newtown's First Law of Motion: "Any working system tends to remain in that state unless external force is applied to it." So what was it that you did yesterday to cause it stop working? -- Jason Wong -> Gremlins Associates -> www

Re: [PHP] Input field array ends up as "Array" string

2003-01-21 Thread Jason Wong
On Tuesday 21 January 2003 23:03, Jason Wong wrote: > Undo any configuration changes made recently, downgrade any recent upgrades > etc. To paraphrase Newtown's First Law of Motion: Sorry, "Newton's First Law of Motion" :) > "Any working system tends to remain i

Re: [PHP] security question regarding including files..

2003-01-21 Thread Jason Wong
On Wednesday 22 January 2003 01:40, Sean Burlington wrote: > is there really any site which will accept a book order based an a sigle > GET ? Amazon makes a big deal of their "one-click" shopping feature. It's so good they've even patented it. -- Jason W

Re: [PHP] Measuring Query Times

2003-01-21 Thread Jason Wong
On Wednesday 22 January 2003 14:45, Peter Janett wrote: > I'm trying to figure out if there is an easy way to measure how long my > queries in PHP/MySQL are taking to execute. Using microtime() before and after your query will give you an rough idea. -- Jason Wong -> Greml

Re: [PHP] referer keywords

2003-01-22 Thread Jason Wong
ver logs or anything... > Is it possible..?? Yes, parse $_SERVER['HTTP_REFERER'] (which may or may not be available depending on user's browser settings). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] getting database connection to fail gracefully

2003-01-22 Thread Jason Wong
s down please try again later" (or words to that effect). At the same time you would log this failure (to a log file) and/or email someone responsible who can deal with it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] Get command line output

2003-01-22 Thread Jason Wong
he host, and the time without > getting all the uptime and the header info? Thanks! exec() 'returns' the output of the command in an array. Just extract from the array whatever line(s) you need. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Sy

Re: [PHP] PHP App Frameworks

2003-01-22 Thread Jason Wong
vely mature and well documented. The question has been asked within the past month or so. I don't think any major/stable new frameworks has appeared since, so the answers in the archives should be valid. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Int

Re: [PHP] Cookies problem

2003-01-22 Thread Jason Wong
ookies. > I >tried to send a cookie from one page with the function >sendcookie("chat",$mail) to a page in another > directory, sendcookie() doesn't seem to be a standard php function. Could you tell us where you got it from? -- Jason Wong -> Gremlins Associ

Re: [PHP] How to implement this by php Session

2003-01-22 Thread Jason Wong
like it is the same thing. Sounds as if he wants to ensure that only one (active?) login (per account? or per application?) is allowed at any one time. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] Disable pic copy/save?

2003-01-23 Thread Jason Wong
one, period. You need to get the data to the browser for it to be displayed. Once it's on the user's browser a determined user will be able to save whatever it is that's being displayed. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syst

Re: [PHP] Cycle through multiple servers....

2003-01-23 Thread Jason Wong
dapServer'] as $key => $value) { if (ldapConnect($value)) { // if successfully connected $server = $value; break; } } echo "Connected to server $server"; -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integr

Re: [PHP] chown() despiration

2003-01-23 Thread Jason Wong
ory2Create,"egovdemo:nobody"); chown() can only change user, use chgrp() to change the group! >chown($Directory2Create,"637"); Try it without quotes. It works for me. > chown($Directory2Create,"637:99"); See comment above. -- Jason Wong -> Grem

Re: [PHP] Upload file

2003-01-23 Thread Jason Wong
ster globals on? How about newer versions of PHP? Whether or not you can upload files is determined by the setting of 'file_uploads'. 'register_globals' has nothing to do with it. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syst

Re: [PHP] Waiting Lines/Query FTP Server

2003-01-23 Thread Jason Wong
the FTP server at one time? Nothing to do with PHP. Depends on what ftp server you're using -- try ftpwho. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development

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