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] please help

2003-01-19 Thread Jason Sheets
discard the data? Jason On Sun, 2003-01-19 at 12:57, JamsterJAM wrote: > Hi, > I have a problem. I have created a guestbook for my server and i have php installed. >You enter deatils and the guestbook stores it in guestbook.dat.php file. The >guestbook itself is also a php file. I h

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
ip] > To help save my few reamining hairs and could someone with > root privilege try it and see if it's me or PHP? Running following as root using 4.3.0 CLI: #ls -al /tmp drwxrwxrwx2 jasonroot 4096 Jan 24 02:15 htdocs >also tried >chown($Direct

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

Re: [PHP] mail() function not working in PHP 4.2.3

2003-01-23 Thread Jason Wong
quite a number of times before. > If the server that I'm working on is using QMAIL for it's email do I have > to change a setting somewhere? Make sure you have linked/copied the qmail supplied sendmail wrapper to somewhere where php can find it. > Or does mail() not work in

Re: [PHP] File Permissions

2003-01-24 Thread Jason Wong
/vhosts/complementarymedicines.net/httpdocs/reg/regformt >e st.php on line 411 Try specifying the full path to the file. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications D

Re: [PHP] file upload question

2003-01-24 Thread Jason Wong
sense to you, so most likely the latter. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* "You have been in Afghanistan, I perceive." -- Si

Re: [PHP] get apache user

2003-01-24 Thread Jason Wong
On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote: > I have a page where I log in as an Apache user. How do I get the apache > username in php? print_r($_SERVER) to see which you can use. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems

Re: [PHP] WHILE IF/ELSE loop not working

2003-01-24 Thread Jason Wong
loop not working > > > can anyone tell me why this while loop fails? When you go to your doctor you usually give him/her a head start by telling him/her what you feel is wrong with you. You don't go in and say "What is wrong with me?". -- Jason Wong -> Gremlins Associa

Re: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Jason Wong
27;vname']; > if($submit) { Try some basic debugging techniques like echo ($submit). You'll see nothing, hence that IF clause fails. If register_globals is not enabled then you need to use $_POST['submit'] (just as you had to use $_POST['vname']). -- Jason

Re: [PHP] get apache user

2003-01-25 Thread Jason Wong
On Saturday 25 January 2003 23:41, Tommy Jensehaugen wrote: > "Jason Wong" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote: > > > I have a page wh

Re: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Jason Wong
gt; (just > > > as you had to use $_POST['vname']). !!??!! -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* In matters of

Re: [PHP] Check if directory has changed

2003-01-25 Thread Jason Sheets
e in older versions of PHP as well. Jason On Sat, 2003-01-25 at 19:08, Carlos Fernando Scheidecker Antunes wrote: > I would like to write a function to check if the contents of a directory, its files, >have been changed. > The idea is to check the directory every 2 minutes and take some acti

Re: [PHP] Masive mail Advice

2003-01-25 Thread Jason Wong
fo have been repeated again and again (and again). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* QOTD: "Everything I am today I owe to peo

Re: [PHP] CRLF in file

2003-01-26 Thread Jason Wong
On Sunday 26 January 2003 22:13, Malcolm Brownell wrote: > Hello, > > I'm having trouble with /r/n when I try to write to a file. It's "\r\n" that you want. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrator

Re: [PHP] CRLF in file

2003-01-26 Thread Jason Wong
On Monday 27 January 2003 01:27, Malcolm Brownell wrote: > Thank you Jason, > If you'll bear with me for one more question -- > The /\ fix did what I wanted but now the word Array > appears before the first var -- the text file looks like this - > > Array$hostname

Re: [PHP] human language detection

2003-01-26 Thread Jason Wong
erence from their browser settings/IP address/whatever is IMHO a waste of time. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Men use thought only to justify

Re: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jason Wong
uery($query); $row = mysql_fetch_assoc($result); $presenter = $row['presenter']; You can now use $presenter in your last query: $presenterQuery = "SELECT p.date, p.theme, p.presenter, c.itemNo, c.composer, c.composition, c.note FROM presente

Re: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jason Wong
On Monday 27 January 2003 02:36, Mark Charette wrote: > > -Original Message- > > From: Jason Wong [mailto:[EMAIL PROTECTED]] > > > > > 2.$tempQuery1 = " > > > SELECT @most_recent:=MAX(date) from presenters"; > > > $

Re: [PHP] Making a file manager with PHP?

2003-01-27 Thread Jason Wong
ngs up the download feature of the web browser. How can > I make it download it? TIA! Search the archives > "download files". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Jason Wong
;; } > if ($month == 06) { echo "It's a Match!!"; } else { echo "It's > not a Match!!"; } > if ($month == 07) { echo "It's a Match!!"; } else { echo "It's > not a Match!!"; } > if ($month == 08) { echo

Re: [PHP] output of fread() is blank

2003-01-27 Thread Jason Sheets
. Jason On Mon, 2003-01-27 at 16:27, Guru Geek wrote: > Hello, > > I'm a recent convert from CGI/Perl and so am still getting my feet wet > in PHP. > > Here's my code: > $filename = "http://www.myserver.com/include/sometext.txt";; > $handle = fopen ($f

Re: [PHP] ftp_ssl_connect

2003-01-28 Thread Jason Wong
lp here, because I do read for days now. Just what exactly is the problem? AFAICS its use is similar to the plain ftp_connect() -- and there are plenty of examples on how to use that. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web

Re: [PHP] best way to save form data on user side

2003-01-28 Thread Jason Wong
ser submitted. So to satisfy (a), you can do this: after the user has submitted the data, write them out to a textfile and GPG/PGP sign it, then let the user download that signed file. You can do something similar using md5() as well (don't forget to add a "secret"). -- Ja

Re: [PHP] Functions and arguments

2003-01-28 Thread Jason Wong
iod5, > period6, periodpaws, period0 FROM students WHERE id = $id"); > > $classes_array = mysql_fetch_array($classes); > > :CODE: > > I can post the code for the function if I need to, but I don't think that's > where t

Re: [PHP] Remembering which option in a SELECT tag the user had chosen

2003-01-28 Thread Jason Wong
the array building up the and tags inserting "selected" where appropriate. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* You seek to shield t

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jason Wong
($_REQUEST['var1'], $_REQUEST['var2'], $_REQUEST['var3']) > > I just want to use $var1, $var2, $var3 Are you trying to use these inside a function? If so, look up variable scope in the manual. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open So

Re: [PHP] Advice on uploaded files

2003-01-29 Thread Jason Sheets
traffic, every image loaded is at least one more database query on the website. Jason On Tue, 2003-01-28 at 17:16, Manuel Ochoa wrote: > > I writting a php program for a small insurance company and they want to receive >uploaded digital photos. > > Should I store the photos in a mysql

Re: [PHP] Use Pop3

2003-01-29 Thread Jason Wong
the > email content (text and attachment) and why not see the email's header > - Have the possibility to delete a specific message (or more) > - Send email too. Yes to all the above. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems

Re: [PHP] iis 5.0 question

2003-01-29 Thread Jason Wong
sing the full path to the executable as well here. 2) Shouldn't geometry be something like 110x110 (no spaces) 3) What's the comma doing there? 4) Ditto the parantheses? Surely they're not part of the filename? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Sour

Re: [PHP] quick question

2003-01-30 Thread Jason Wong
On Thursday 30 January 2003 17:25, Dale wrote: > I need to specify a absolute path to a file on my harddrive, but you can't > use backslashes in php. Right? Please use a descriptive subject. You escape an intended literal backslash with a backslash. -- Jason Wong -> Greml

Re: [PHP] Encryption using MMCrypt - whats the point?

2003-01-30 Thread Jason Sheets
or find out if other processing companies have the capability to store credit card information. Jason On Thu, 2003-01-30 at 07:30, Mike Morton wrote: > I want to use the mcrypt functions to encrypt credit card numbers for > storage in a mysql database, which mycrypt does admirably: > > $

Re: [PHP] Mysterious gap

2003-01-30 Thread Jason Wong
is gap comming from?? > > while($query_data = mysql_fetch_array($result)) { ?> > > > $q = $query_data ["info"]; ?> > > > > > switch ($op) { > default: > func1(); break; > } > ?> Put your inside the table

Re: [PHP] Variable Fun

2003-01-30 Thread Jason Wong
> > > Why does PHP Version 4.2.3 ignore my (string) - cast to string in the if > evaluation? > I even tried putting the (string) inside the IF statement with no > difference in execution. > > > P.S. >

Re: [PHP] Encryption using MMCrypt - whats the point?

2003-01-30 Thread Jason Sheets
you want to do with credit card numbers. Jason On Thu, 2003-01-30 at 08:03, Adam Voigt wrote: > Granted, the $350 stand-alone encoder is a bit expensive. I'm talking > about the online > encoder though, you pass your PHP script through the online-control > center and it > ou

Re: [PHP] Trying to understand an error

2003-01-30 Thread Jason Wong
g seems quite explicit -- it couldn't find a certain file. Did you check to see that there is such a file? If the file is there then try using the full path to the file instead of a relative path. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syste

Re: [PHP] Re: [PHP-WIN] Register globals on and off

2003-01-30 Thread Jason Wong
obals on > > DO> And i have chanched AllowOverride None to all in the httpd.conf file, > and restarted my webserver... But its stil not working. I am i doing > something wrong? Thanks for your time... > It should be: > php_flag register_globals on php_value r

Re: [PHP] Re: [PHP-WIN] Register globals on and off

2003-01-30 Thread Jason Wong
On Friday 31 January 2003 14:36, Jason Wong wrote: > php_value register_globals 0 > > works for me. Perhaps it wasn't too clear. Use 0/1 rather than off/on. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design

Re: [PHP] rename failes if file name contains single quotes

2003-01-31 Thread Jason Wong
On Friday 31 January 2003 16:52, $B%X!<%s(B $B%H!<%^%9(B wrote: (B> when i try to rename a file with single quote(s) in the (B> file name, e.g. (B> (B> rename("/tmp/foo 'n bar", "/tmp/foobar"); (B> (B> rename fails with "there is no such file". (B> whats wrong? (B (BYou probably need t

Re: [PHP] LOGOUT - Reset Session

2003-01-31 Thread Jason Wong
HTTP authentication are not related to sessions. Have a look in the manual > HTTP authentication with PHP -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Developm

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Jason Wong
ve missed something...? As Justin suggested "Start ruling them out, one at a time". You've ruled out one (number of files). Now figure out whether it's the size. Upload successfully larger files until it fails (or otherwise). -- Jason Wong -> Gremlins A

Re: [PHP] Introduction

2003-01-31 Thread Jason Wong
d greatly appreciate any help. It's good you that you explain what you're trying to do, and what you expect the program to do, and what actually happens instead. (Some people just say "here's my code, it doesn't work, what's wrong?" -- or words to that eff

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread Jason Wong
g_ that line _may_ prevent uploads. Thus if you have trouble with uploads then you should NOT have that line. As most browsers don't give a monkey about that line there is no reason to have it, period. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software

Re: [PHP] how can I start running a perl cgi from php

2003-01-31 Thread Jason Wong
d is very usefull for that purpose. Did you even try looking in the manual? "Program Execution functions"? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Int

Re: [PHP] Delete files via PHP

2003-01-31 Thread Jason Wong
etion of those temporary files. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list archives before you po

Re: [PHP] another problem with 4.3.0 : imagecreatefromjpeg undefined

2003-01-31 Thread Jason Wong
27; '--with-mcrypt' > '--enable-sigchild' '--with-config-file-path=/etc' '--with-freetype' You probably need to add "--with-jpeg-dir" as well (and make sure you really do have libjpeg installed). -- Jason Wong -> Gremlins Associates -&

Re: [PHP] Bug?

2003-01-31 Thread Jason Sheets
n register globals back on either from php.ini or by using .htaccess. Jason On Fri, 2003-01-31 at 22:46, Todd Barr wrote: > Hello all > > I am having issues passing vars in the url > > example > > here is my url > http://localhost/tsatest.php?Sub_Task=2 > > and

Re: [PHP] Introduction

2003-02-01 Thread Jason Wong
GET for get > request > { > echo ''.$key.'='.$value; // this prints to the > browser > } > ?> A easier way to achieve the above is simply: print_r($_POST); -- Jason Wong -> Gremlins Associates -> www.gremlins

Re: [PHP] question on listbox.

2003-02-01 Thread Jason Wong
o connection to the database"; >} >if (!mysql_select_db("MyDomain_com")){ > Print "Couldn't connect database"; > } else { > Print ""."\n"; > } echo " $sql="SELECT DISTINCT CategoryName From Categories ORDE

Re: [PHP] Strange problem

2003-02-01 Thread Jason Wong
uot;"){ >Print "You have not entered the category name. > Please go back and enter the category name."; Exit; >} >if($password==""){ >Print "You have not entered the password. Please > go back and enter the password."; Exit; >

Re: [PHP] PHP3 Web Architecture Framework

2003-02-01 Thread Jason Wong
e because [snip] > What i m planning to do is follow PHP3 method of Coding. The version of > PHP that i have is 4.0.5. Can somebody suggest Struts like framework for > PHP3 type of coding. Have a look at phplib. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

Re: [PHP] question on listbox.

2003-02-01 Thread Jason Wong
Print "Couldn't connect database"; > > > } else { > > > Print ""."\n"; > > > } > > > > echo " > > > > $sql="SELECT DISTINCT CategoryName From Categories ORDER BY > > CategoryN

Re: [PHP] Time Delay?

2003-02-01 Thread Jason Wong
e a > better way that doing it like this: [snip] Try sleep(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search

Re: [PHP] reading attachmentsl

2003-02-01 Thread Jason Wong
functions" are of any use. 2) You can dissect a working PHP webmail application to see how others have done it: www.squirrelmail.org etc 3) You can make use of commandline programs to do the dirty work: reformime etc. Personally, I've had good results using reformime. -- Jason Wong -

[PHP] Calling other php scripts from inside a php script.

2003-02-01 Thread Jason Howlett
call these scripts to run from inside my current script. I know that PHP includes can be used to display code from another script in the current page but I need to call the scripts to run and the content displayed in a separate new page. Any advice much appreciated! Thank you Jas

RE: [PHP] Redeclare formatdate

2003-02-01 Thread Jason Sheets
This is a good reason to use include_once and require_once. Jason On Sat, 2003-02-01 at 15:59, John W. Holmes wrote: > > I have this message coming when calling the page main.php > > > > Fatal error: Cannot redeclare formatdate() in > > /home/virtual/site2

RE: [PHP] Loading CSV data into MySQL

2003-02-01 Thread Jason Sheets
You could create a integer column with an autoincrement flag, then order the rows by this column, that should give you the data in the order it was inserted into the db. Depending on your database there are other ways to do it. Jason On Sat, 2003-02-01 at 18:07, John W. Holmes wrote: > >

Re: [PHP] mailing with SMTP server requiring authentication

2003-02-02 Thread Jason Wong
On Monday 03 February 2003 00:32, Johan Köhne wrote: > Is it possible and if so, how to send emails through SMTP servers that > require authentication (logging in)? Yes. Search the archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integ

Re: [PHP] including files...

2003-02-02 Thread Jason Wong
ust don't understand, it would have been _far_ easier for you to test it for yourself by writing a single-line file to init a variable, then a two-line file to include 1st file and display variable, than to have posted to the list. -- Jason Wong -> Gremlins Associates -> www.gremlins

Re: [PHP] help needed with form and mysql design.

2003-02-02 Thread Jason Wong
for setting and controlling access rights. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * -- Search the list arch

Re: [PHP] Loading CSV data into MySQL

2003-02-02 Thread Jason Wong
imestamp field that'll keep track of how things were inserted... Even then, do note that once you start deleting records your carefully ordered tables will soon have to be re-ordered. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integra

Re: Re[2]: [PHP] Turn off PHP for certain directories?

2003-02-02 Thread Jason Wong
On Sunday 02 February 2003 21:45, Tom Rogers wrote: > you need the php_flag bit To be explicit it should be php_flag engine Off NB there is no '=' sign. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design &

Re: [PHP] Barcodes...

2003-02-02 Thread Jason Sheets
types. http://pear.php.net/package-info.php?pacid=142 Jason On Sun, 2003-02-02 at 10:41, Chris Knipe wrote: > Lo all, > > Does anyone have some fonts or neat PHP code / classes to generate Code > 128-type Barcodes? I'm preferably looking to get the barcode generated in a &

Re: [PHP] How can I display lastmodified for all my php-files?

2003-02-02 Thread Jason Sheets
on is available in the PHP manual at http://www.php.net/manual/en/function.getlastmod.php and http://www.php.net/manual/en/function.filemtime.php. Jason On Sun, 2003-02-02 at 12:08, Øystein Håland wrote: > In one file I want to display filenames and when these files was last > modified. I wan

Re: [PHP] how to write clean code.

2003-02-02 Thread Jason Sheets
Oslo 2000-2001. There are many other resources available as well, you should be able to find good information if you do a google search for PHP Coding Standard, or take a look at the Pear requirements at http://pear.php.net. Jason 2003-02-02 at 12:34, anders thoresson wrote: > Where ca

[PHP] problems with fopen

2003-02-03 Thread Jason Jacobs
I should be able to chmod since the user I'm connecting with owns the directory. Thanks for your help, as always. - Jason Jacobs Factory7, LLC Support a Constitutional Amendment to protect the Pledge of Allegiance and National Motto. Go to www.wepledge.com

Re: [PHP] Bi-weekly pay period

2003-02-03 Thread Jason Sheets
This code will work for determining if the week is odd or even, it uses Monday for the first day in the week as noted on http://www.php.net/manual/en/function.date.php. Note I just scribbled this down so you may need to adapt it but I ran it through a quick test and it worked. Jason On Mon

Re: [PHP] Re: Bi-weekly pay period

2003-02-03 Thread Jason Sheets
This code *should* do something similar to what Phillip suggested. It will figure out the correct Sunday based on whether the week is odd or not, then it will add the correct number of days to get to either next Saturday or the Saturday after next Saturday. On Mon, 2003-02-03 at 18:15, Philip H

Re: [PHP] list files in a dictory and its subdirectories

2003-02-03 Thread Jason Sheets
p;& $filename != '.' && $filename != '..') { // file display code here } } closedir($dir); } } I did not run the above code, just typed it for an example so the code itself may or

Re: [PHP] PHP Sessions Not Saving

2003-02-03 Thread Jason Wong
bin/sendmail > > During the ./configure part of the installation, PHP checks for > sendmail, but only in /sbin/sendmail. If it doesn't find it, the > function mail() isn't complied in. > > I just get 'call to undefined function mail()' in x/y.php on z. But accordin

Re: [PHP] Socket error connecting to mySQL

2003-02-04 Thread Jason Wong
ng to php/mysql would throw this error? Search the archives or search the mysql list archives. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development *

Re: [PHP] restricting acces to files

2003-02-04 Thread Jason Wong
NT ROOT of your webserver. And have PHP include() those files. 2) Set your webserver to interpret HTML files as PHP and include your authentication code using auto_prepend_file directive in php.ini. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Inte

Re: [PHP] exec

2003-02-04 Thread Jason Sheets
s you will find more information. Additionally try searching google for setuid. Jason On Mon, 2003-02-03 at 20:52, Nick Kordas -: Wildthing Communications wrote: > Anyone know how to use shell_exec or exec and execute a shell script as use

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