Re: [PHP] SQL field problem

2002-07-10 Thread Tyler Longren
I think you want to use group by: SELECT * FROM table GROUP BY kat; -- Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Wed, 10 Jul 2002 19:40:11 +0200 <[EMAIL PROTECTED]> wrote: > Hello > > I have a problem with mysql.I create a table with a field "kat".In

[PHP] Question about PHP

2002-07-10 Thread Negin T
Hi, I am not sure if it is a right email address to ask question, if it is not plz disregard this email :) if it is this is my Q: I am reading a book about php, in its security section, it says " it is more secure, as well as more efficient when installing PHP, to install PHP as a SAPI module f

RE: [PHP] sort problem

2002-07-10 Thread Lazor, Ed
I'm not sure if I completely understand what you're asking, but It sounds like one table has user information. The second table has a record for each user and a field for the total number of points of each user. Something like this: Users (Table 1) - ID Name Address etc. Score

Re: [PHP] SQL field problem

2002-07-10 Thread Martin Clifford
SELECT DISTINCT kat FROM tablename; should work. Martin >>> <[EMAIL PROTECTED]> 07/10/02 01:40PM >>> Hello I have a problem with mysql.I create a table with a field "kat".In this field are entries like this : Light Dark Dark Light Robot Find Dark Light You see that all entries are not uniqu

[PHP] Re: Cannot Insert into Paradox Tables...

2002-07-10 Thread Chris Hounsell
You ask a lot of questions! Doh!!! "Kondwani Spike Mkandawire" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am trying to insert info. into a paradox table but receive the following > message after inputting the data into the approriate fields... > > Warn

Re: [PHP] SQL field problem

2002-07-10 Thread Chris Earle
I'd make another array that I can refer to and check for a value from the original query (which with a huge array could become cumbersome, but it doesn't look like you have will have too many duplicate names). Every time you come across a new value, add it to the 2nd array (if it's not new, then

Re: [PHP] SQL field problem

2002-07-10 Thread Chris Earle
Martin's post is what you want... knew there was a query (just couldn't remember it). "Chris Earle" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'd make another array that I can refer to and check for a value from the > original query (which with a huge ar

RE: [PHP] sessions

2002-07-10 Thread Lazor, Ed
session_set_save_handler() http://www.zend.com/zend/tut/session.php -Original Message- How can I configure my scripts to store sessions in MySQL? This message is intended for the sole use of the individual and

Re: [PHP] Re: Cannot Insert into Paradox Tables...

2002-07-10 Thread Alex Piaz
>"Kondwani Spike Mkandawire" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I am trying to insert info. into a paradox table but receive the following > > message after inputting the data into the approriate fields... > > > > Warning: SQL error: [Microsoft]

RE: [PHP] Question about PHP

2002-07-10 Thread Lazor, Ed
It's the first option in the installation instructions. Follow the part about installing PHP as an Apache module and you'll be set. -Original Message- I am reading a book about php, in its security section, it says " it is more secure, as well as more efficient when installing PHP, to i

RE: [PHP] Development Tools

2002-07-10 Thread Lazor, Ed
I like WYSIWYG integration. It allows me to code the page and then focus separately on web page content. That debugger in PHPEd looks pretty cool... too bad they don't have WYSIWYG. -Original Message- I agree about WYSIWYG. I use UltraDev a lot, but don't use the WYSIWYG very much agai

[PHP] Re: reports and reporting options?

2002-07-10 Thread Mark McCulligh
I have written a COM object about a year ago that worked with Crystal 8 to build real-time Reports online. I passed all the parameters to the COM object, the COM object then worked with Crystal's RDC to setup the report. Then the COM returned the Report Object to me, then I displayed the report

RE: [PHP] Development Tools

2002-07-10 Thread Martin Clifford
WYSIWYG does nothing more for me than screw up my code. I'm very anal about how my code looks, firstly. Secondly, most WYSIWYG editors add superfluous markup into code which not only inflates the file size of your documents, but also slows down processing of them. I'm not saying that WYSIWYG

[PHP] Forms not passing variables

2002-07-10 Thread Hopp3r
Hello all. I have a site that was backed up, before the box was reformatted and rebuilt. Apache and PHP were upgraded. I have since resored all of the files and DB's that make up my site. Now, in doing some testing, the html forms are not passing variables to the next page. Specifically, these

Re: [PHP] SQL field problem

2002-07-10 Thread Rick Emery
SELECT DISTINCT kat FROM mytable; Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 10, 2002 12:40 PM Subject: [PHP] SQL field problem Hello I have a problem with mysql.I create a table with a field "kat".In this field are entries

Re: [PHP] Re: Cannot Insert into Paradox Tables...

2002-07-10 Thread Kondwani Spike Mkandawire
I am using Database Desk Top to create the tables... I am a first timer to Databases, please tell me how I can set these permissions... I am working under WinNT... (I have not done much on any MS platforms coz I have been using UNIX for the past 3 years...)... I would be using chmod and tripple

[PHP] getdate

2002-07-10 Thread Brian V Bonini
Any idea why this is off by 4 hours? Server time zone is set correctly, %date Wed Jul 10 14:26:18 EDT 2002 but the script below returns the time as being 4 hours later then that. 12) { $hours=$hours-12; $ampm="PM"; } elseif ($hours == 12) { $ampm="PM"; } if ( $mi

[PHP] Re: Forms not passing variables

2002-07-10 Thread Derick Rethans
Hai, did you check the setting of register_globals really changed? See the phpinfo(); output if it's really set to on. If not, place your php.ini file in the correct location. Derick Hopp3r wrote: > Hello all. > > I have a site that was backed up, before the box was reformatted and > rebui

Re: [PHP] if syntax

2002-07-10 Thread Derick Rethans
Martin Clifford wrote: > There are no brackets necessary if you only have one line of code to be executed in >the case. For example: > > if($var == 1) > echo "Var equals 1"; > } else { > echo Var does not equal 1"; > } This will certianly give a parse error, your sample should be: if

Re: [PHP] Development Tools

2002-07-10 Thread Nick Oostveen
A good, well designed, development tool can provide a huge productivity boost over an editor if it's used properly. And I don't mean auto-generated code by this either. Right off the bat, any good development tool will have code completion abilities, which are basically the programmers versio

[PHP] Page not found problem

2002-07-10 Thread Chen
I use php3 with IIS 5.0. When user typed a no existing .html or php3 page, they will get a "No input file specified." page. How can I point this to a HTTP Error 400 page? Anything can be set up in the php.ini file or in IIS configuration? Thanks for any help!! -- PHP General Mailing List (htt

Re: [PHP] Development Tools

2002-07-10 Thread Peter J. Schoenster
On 10 Jul 2002 at 18:07, Uwe Birkenhain wrote: > I think that - on windows - nothing is better than textpad > (www.textpad.com). > Simply the best editor the world has seen so far! > > What makes development tools better than a good editor? (serious > question) Well let me get my 2 cents in. It

[PHP] Can't get the example to work

2002-07-10 Thread Eugene.McQuade
I am running PHP, Win 2K (NT 5.0 build 2195), API Server CGI, in IIS 5. Just trying to get the basics to work prior to working with Mysql. Running I get the appropriate results. However, running the Tutorial scripts found in PHP and MySQL (SAMS), I get, for example, the following error message

[PHP] Re: Forms not passing variables

2002-07-10 Thread Martin Clifford
Did you restart your server after changing register_globals? Try that. >>> Derick Rethans <[EMAIL PROTECTED]> 07/10/02 02:30PM >>> Hai, did you check the setting of register_globals really changed? See the phpinfo(); output if it's really set to on. If not, place your php.ini file in the corr

Re: [PHP] Development Tools

2002-07-10 Thread Rasmus Lerdorf
> Right off the bat, any good development tool will have code completion > abilities, which are basically the programmers version of nix consoles tab > completion. This little feature alone helps save time by reducing the > amount of typing required, not to mention can virtually eliminate type-o'

RE: [PHP] Can't get the example to work

2002-07-10 Thread Jay Blanchard
[snip] However, running the Tutorial scripts found in PHP and MySQL (SAMS), I get, for example, the following error message for all 3 fields: Notice: Undefined variable: tireqty in c:\inetpub\wwwroot\php_tutorial1\processorder2.php on line 11 tires Here is what is in line 11 is - echo $tireqty. "

Re: [PHP] SQL field problem

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! [EMAIL PROTECTED] wrote: > You see that all entries are not unique.So i want to list as output all entries but >only once.If the word "Dark" is in the table 6 times php should output dark only 1 >time. > How should i solve this problem ? select distinct and RTFM :) ÐÏËÁ áÌØÂÅÒÔÏ ëÉ

[PHP] Re: Forms not passing variables

2002-07-10 Thread Hopp3r
Thanks Derick, You were right. globals is still off in phpinfo(). How does one make it reread the ini file, or where is "correct location" to copy my existing php.ini file? RC "Derick Rethans" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hai, > > did you

Re: [PHP] Re: Forms not passing variables

2002-07-10 Thread Hopp3r
Martin, I just rebooted, and it still show them to be off? RC "Martin Clifford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Did you restart your server after changing register_globals? Try that. >>> Derick Rethans <[EMAIL PROTECTED]> 07/10/02 02:30PM >

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

2002-07-10 Thread Fargo Lee
Yes, on success the command I am issuing does not produce any output on the command line and thus the $status variable should be blank on success. But when made to fail MySQL does return an error on the command line yet the variable does not hold FALSE as the manual suggests it should or anything

[PHP] Re: Forms not passing variables

2002-07-10 Thread Derick Rethans
Hello, You reload the php.ini file by restarting your webserver, the correct location of php.ini can be found @ http://www.php.net/manual/en/faq.installation.php#faq.installation.phpini Derick Hopp3r wrote: > Thanks Derick, > > You were right. globals is still off in phpinfo(). How does one

RE: [PHP] Can't get the example to work

2002-07-10 Thread Eugene.McQuade
the following is the script requested: Bob's Auto Parts - Order Results Bob's Auto Parts Order Results = 10 && $tyreqty <= 49 ) $discount = 5; elseif( $tyreqty >= 50 && $tyreqty <= 99 ) $discount = 10; elseif( $tyreqty > 100 ) $discount = 15; echo "Order processed at ";

Re: [PHP] Forms not passing variables

2002-07-10 Thread jepadilla
I am sure this is the n00b thing think, but you do have it as $_POST["var"] for the variables right, assuming you had the other style before. also I had problems without POST being capitalized in the form section. J "Hopp3r" <[EMAIL PROTECTED]> 07/10/2002 12:23 PM To: [EMA

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

2002-07-10 Thread Fargo Lee
Thanks that explains why I did not initially have a space after the -u as I copied the code from another of my applications that used backticks without reviewing it. It appears that using backticks is also the only way to assign the output of a command to a variable as system(), passthru() and exe

[PHP] Re: Forms not passing variables

2002-07-10 Thread Hopp3r
FIXED !!! Thank you all. I had to find out the path that PHP was looking in to find php.ini file. Thanks you all again!!! RC "Hopp3r" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello all. > > I have a site that was backed up, before the box was reform

RE: [PHP] Can't get the example to work

2002-07-10 Thread Jay Blanchard
[snip] echo $tireqty. "tires [/snip] $tyreqty looks like you have a typo HTH! Jay -Original Message- From: Eugene.McQuade [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 2:21 PM To: 'Jay Blanchard'; 'Php-General@Lists. Php. Net (E-mail)' Subject: RE: [PHP] Can't get the exam

Re: [PHP] SQL field problem

2002-07-10 Thread Chris Hewitt
Chris, select distinct kat from tablename; Its in the mysql manual, 6.4.1 SELECT Syntax. HTH Chris [EMAIL PROTECTED] wrote: >Hello > >I have a problem with mysql.I create a table with a field "kat".In this field are >entries like this : > >Light >Dark >Dark >Light >Robot >Find >Dark >Light

[PHP] Crash Course on PHP WORKS :: Registering Globals

2002-07-10 Thread vins
OK if you are running php on apache and your form variables don't pass through fire up your editor and edit php.ini and turn "Register Globals ON" Cheerz Until Next time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Development Tools

2002-07-10 Thread jsegovia
For those of you using HomeSite, is it worthwhile for me to install it if I already have DreamWeaver 4 on my PC? Someone said HomeSite is basically DreamWeaver without the UI interface so I'm wondering if it's possible to use DreamWeaver the same way I would Homesite. Jesse -- PHP General Ma

[PHP] Re: Crash Course on PHP WORKS :: Registering Globals

2002-07-10 Thread Derick Rethans
It's a much better idea to not do this, and change your code to use the $_GET and $_POST super globals for this. Derick Vins wrote: > OK if you are running php on apache and your form variables don't pass > through > fire up your editor and edit php.ini and turn "Register Globals ON" >

Re: [PHP] sort problem

2002-07-10 Thread Chris Hewitt
Ed, Andy Andy said that the points were in the users table. Table layouts would have been useful. It sounds to me as though the users table has not got its points up to date and needs updating from the scores table first. Then do the select on just the users table. My 2p (pence, I'm in the UK

[PHP] Re: Development Tools

2002-07-10 Thread Martin Clifford
Homesite (at least version 5.0) has support for more languages than DW4. Though I believe in DW4 you can customize the syntax highlighting to match any languages that *aren't* supported. I love Homesite 5. Not to mention that it runs a lot faster than DW because it doesn't have to load as ma

Re: [PHP] Re: Development Tools

2002-07-10 Thread Matthew K. Gold
The difference between Dreamweaver and Homesite is that Homesite is easier to customize, and it doesn't mess with your code the way that Dreamweaver does. If you're happy with Dreamweaver, you should stick with it. But if you want more control over your code, you should consider switching. Of co

[PHP] Dumb session / cookie / password questions

2002-07-10 Thread Chad Day
I am a little confused about storing stuff in cookies/sessions and how to prevent spoofing of them. A user logs in, his e-mail address or user id and password(md5'ed) is checked against my database. Assuming it matches, I then set a cookie with the users id + email. What is to stop someone from

Re: [PHP] Page not found problem

2002-07-10 Thread Chris Hewitt
Chen, If the webserver cannot file a file then this is a webserver problem not php. You need to look at your IIS configuration/documentation. Sorry I can't help further, but I don't use IIS. HTH Chris Chen wrote: >I use php3 with IIS 5.0. When user typed a no existing .html or php3 >page, th

Re: [PHP] Dumb session / cookie / password questions

2002-07-10 Thread Richard Baskett
What I have done in the past is create a session variable that tells me that the person using that session is valid. It's really really hard to spoof a session variable. I did it this way after awhile since the original way that I did it was by checking their username/password in the session on

Re: [PHP] Dumb session / cookie / password questions

2002-07-10 Thread Martin Clifford
Firstly, you should ALWAYS use an encryption algorithm for passwords. For my site, I used md5() and match with that. That way, even if someone does get a hold of the encrypted password, it's not in their best interest (or maybe it is, if they're bored) to crack it. I haven't testing the foll

Re: [PHP] Re: Development Tools

2002-07-10 Thread Mark McCulligh
>From my understanding the new Dreamweaver MX has Homesite in it. Dreamweaver, UltraDev and Homesite are one. I know in the install program you can pick your interface to look like Dreamweaver, Homesite or go with the NEW MX look. Not sure if this means you can jump back and forth between HomeSi

RE: [PHP] Can't get the example to work

2002-07-10 Thread Eugene.McQuade
hmmm...re-did it from scratch and get the same message. I've included the html script from the form as well: Bob's Auto Parts Bob's Auto Parts Order Form Item Quantity Tyres Oil Spark Plugs How did you find Bob's I'm a regular customer TV

Re: [PHP] Re: Development Tools

2002-07-10 Thread Kevin Stone
Matt, you're little behind on the times. Most of the Homesite 5.0 editor has already been integrated into DreamweaverMX. They even have a Homesite "mode" which is what I use. :) There are many benefits to DreamweaverMX. The FTP functionality in is completely seamless and works very well. DWM

[PHP] HTTP authentication

2002-07-10 Thread Varsha Agarwal
Hi, I am reading HTTP authentication in php manual. It does not explain it from the basics of it. Can anyone tell me what exactly will the output of the following code? I thought it will ask some user name and password thing but it just displays me the string "text to send if user hits cancel". T

Re: [PHP] Re: Development Tools

2002-07-10 Thread Mark McCulligh
Just wanted to let you know the tab things is for indenting your code. You can highlight a couple rows hit tab to indent them together. Cool feature for moving blocks of code around and making the code look nice. Bad feature if you wanted the normal tab function. Mark. _

Re: [PHP] Page not found problem

2002-07-10 Thread Chen
Chris, Thank you for the response. I think this is the php setting. If the user enter a page name 12345.pdf and there is no such page, the browse will show the page cannot be found and the HTTP 404 error. But if user enter 12345.php3 or 12345.html(IIS mapping these two kind of files to php.exe),

Re: [PHP] Crash Course on PHP WORKS :: Registering Globals

2002-07-10 Thread Philip Olson
Please read: http://www.php.net/manual/en/language.variables.predefined.php Regards, Philip Olson On Wed, 10 Jul 2002, vins wrote: > OK if you are running php on apache and your form variables don't pass > through > fire up your editor and edit php.ini and turn "Register Globals ON"

RE: [PHP] HTTP authentication

2002-07-10 Thread Matt Schroebel
> From: Varsha Agarwal [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 10, 2002 4:30 PM >I thought it will ask some user name and > password thing but it just displays me the string > "text to send if user hits cancel". > This is the code: > > header("WWW-Authenticate: Basic realm=\"My

RE: [PHP] HTTP authentication

2002-07-10 Thread Varsha Agarwal
Hi, Thanks for the explaination. But that code does not pop up any login window. Do I need to do any settings for that?? --- Matt Schroebel <[EMAIL PROTECTED]> wrote: > > From: Varsha Agarwal > [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, July 10, 2002 4:30 PM > > >I thought it will ask som

[PHP] question varibles and url

2002-07-10 Thread @cid
on my page (lessen.php) i have a variable $sort if this varible is empty if enterd the page then it will be set on 'day' i have 3 links in the page lessen.php?sort=day lessen.php?sort=game lessen.php?sort=player so these links refure to the same page (itself) on clicked it opens itself and sh

Re: [PHP] question varibles and url

2002-07-10 Thread Richard Baskett
I think you sent the wrong file... Rick Until you have learned to be tolerant with those who do not always agree with you; until you have cultivated the habit of saying some kind word of those whom you do not admire; until you have formed the habit of looking for the good instead of the bad ther

RE: [PHP] Development Tools

2002-07-10 Thread Lazor, Ed
I am too. I've developed an approach to coding with Dreamweaver that allows me to take advantage of WYSIWYG and my own style of coding at the same time. The MX version of Dreamweaver is supposed to add support for code snipets, and a few other things. I'm looking forward to checking them out. O

RE: [PHP] Development Tools

2002-07-10 Thread Lazor, Ed
I'm definitely curious and want to check out the debugging tools, performance analyzer, and database connectivity tools provided by PHPEd. I get the impression most developers do not integrate coding and content. Is this correct? -Ed -Original Message- These first two things are immedi

[PHP] varible in url question

2002-07-10 Thread sven vandamme
on my page (lessen.php) i have a variable $sort if this varible is empty if enterd the page then it will be set on 'day' i have 3 links in the page lessen.php?sort=day lessen.php?sort=game lessen.php?sort=player so these links refure to the same page (itself) on clicked it opens itself and sh

RE: [PHP] Page not found problem

2002-07-10 Thread Lazor, Ed
Is it doing this for all php based files? Have you tried a php file that only has basic commands? Something like this: -Original Message- only display "No input file specified." message. This message is int

Re: [PHP] varible in url question

2002-07-10 Thread Richard Baskett
It works fine on my system. If you have register globals off you'll need to do it this way: Rick And many strokes though with a little axe hew down and fell the hardest-timbered oak. - Shakespeare > From: "sven vandamme" <[EMAIL PROTECTED]> > Date: Wed, 10 Jul 2002 22:40:48 +0200 > To: [EMAI

RE: [PHP] varible in url question

2002-07-10 Thread Chris Kay
Php4? or 3? Have you tried $_GET["sort"] --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED] Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vu

[PHP] PHP & gd-2.0

2002-07-10 Thread Mike
Hello, I'm trying to use imagecreatetruecolor & imagecopyresampled to resize some of my images. The problem is I can't get PHP Version 4.0.6 to recognize that I have gd-2.0 installed. I keep getting this error: Fatal error: imagecreatetruecolor(): requires GD 2.0 or later. I have these files in

RE: [PHP] Development Tools

2002-07-10 Thread Chris Kay
I don't know about anyone else, But in linux I use vi and as of yesterday I downloaded Vi for windows, it has great colours for coding... --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au

[PHP] another splice?

2002-07-10 Thread David Duong
Is their 1 function method to remove an element within an array using its key instead of its position within the element? I am looking for a substitution for placing removing an element without having to make another array just to list all the array elements and then using that to specify where t

[PHP] Discard the previous message.

2002-07-10 Thread David Duong
Is their a 1 function method to remove an element within an array using its key instead of its position within the array? I am looking for a substitution for placing removing an element without having to make another array just to list all the array elements and then using that to specify where t

[PHP] excel COM code example won't work....

2002-07-10 Thread Jeff D. Hamann
I've been trying to get the follwing example to work and it just doesn't seem to be able to handle php variables in some of the excel com function args, like: /* start entering data into the cells */ for( $i = 0; $i < 10; $i++ ) { $var_i = new Variant($i,VT_I4); echo $i. ""; ec

Re: [PHP] Dumb session / cookie / password questions

2002-07-10 Thread Alberto Serra
ðÒÉ×ÅÔ! Martin Clifford wrote: > Firstly, you should ALWAYS use an encryption algorithm for passwords. > For my site, I used md5() and match with that. > That way, even if someone does get a hold of the encrypted password, it's not in their best interest > (or maybe it is, if they're bored) t

[PHP] getdate

2002-07-10 Thread Brian V Bonini
Any idea why this is off by 4 hours? Server time zone is set correctly, %date Wed Jul 10 14:26:18 EDT 2002 but the script below returns the time as being 4 hours later then that. 12) { $hours=$hours-12; $ampm="PM"; } elseif ($hours == 12) { $ampm="PM"; } if ( $mi

Re: [PHP] getdate

2002-07-10 Thread Rasmus Lerdorf
Works fine here. Are you actually in EDT? On Wed, 10 Jul 2002, Brian V Bonini wrote: > Any idea why this is off by 4 hours? > > Server time zone is set correctly, > %date > Wed Jul 10 14:26:18 EDT 2002 > but the script below returns the time as being 4 hours later then that. > > > $dat

[PHP] Re: newbie regex question..

2002-07-10 Thread David Duong
I am not quite sure but this will do the trick: http://64.4.14.24/spacer.gif\"; width=1 height=2>"; $fixedfile=preg_replace("/src=[^>]*?>/","src=\"\">", $fixedfile); #preg_replace("/[search]/","[replacement]",[string]); exit ($fixedfile); ?> I have made some differences from what you were tryi

RE: [PHP] getdate

2002-07-10 Thread Brian V Bonini
Hmmm, wierd!! The server is physically in PDT I am in EDT but I have the servers time zone set to EDT and as I said "date" verifies the correct time but yet the script returns a time that is 4 hours ahead. Wierd :( > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]

Re: [PHP] Re: Development Tools

2002-07-10 Thread Bret L Conard
I have found dreamweaver intolerable due to it's writing the code. I usually write 8 lines to do something that DW takes 24 to do. (I'm all about slim code:) ). Also, the naming conventions that DW uses for functions and variables is too long and for me makes no sense. (Always with no rhyme or re

[PHP] sort problem

2002-07-10 Thread andy
Hi guys, I have a problem sorting values comming out of a db. It is not as easy. Here is the prob: One table containing user points. Other table containing reports with rankings For each top 10 report (the 10 reports with the most ranking) there are 20 extra points granted Now I would like to g

[PHP] Re: PHP & gd-2.0

2002-07-10 Thread Derick Rethans
Mike, I suggest you try the latest snapshot @ http://snaps.php.net/php-latest.tar.gz and configure like this: ./configure --with-gd=php --other options This will use the bundled GD library, which is more current than any 'official' release. The PHP Dev Team decided to bundle it to make sure t

Re: [PHP] question varibles and url

2002-07-10 Thread Danny Shepherd
What version of PHP are you using? Have you got register_globals on? If they're off you'll need to get the $sort variable by using $HTTP_GET_VARS['sort'] (or $_GET['sort'] if you're using PHP4.1.0 or later) You attachched the wrong file (html output instead of PHP source) You really could do wit

Re: [PHP] varible in url question

2002-07-10 Thread Philip Olson
Please read this manual page, it has examples to suit your needs: http://www.php.net/manual/en/language.variables.external.php Regards, Philip Olson On Wed, 10 Jul 2002, sven vandamme wrote: > on my page (lessen.php) > > i have a variable $sort > > if this varible is empty if enterd the p

RE: [PHP] Development Tools

2002-07-10 Thread Nick Oostveen
While I can't speak for others, in our office we use template files which contain all HTML and then parse content generated from php scripts into them about 90% of the time. Not only does separating your code from your HTML make it easier to change the look of a site, but it also makes the co

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

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 12:14:58PM -0700, Fargo Lee wrote: > > when made to fail MySQL does return an error on the command line yet the > variable does not hold FALSE as the manual suggests it should or anything > else. The behaviour of returning FALSE upon failure has to do with the system() cal

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

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 12:14:58PM -0700, Fargo Lee wrote: > > This suggests, as do a few posts I just noticed in the manual, that > one cannot assign the output of system() and perhaps passthru() and exec() > to a variable. I forgot to mention, that's not accurate. I just ran a test to make su

[PHP] setcookie then redirect

2002-07-10 Thread David Busby
List, I'm trying to set a cookie like this: http://".$_SERVER['SERVER_NAME'].$to."\n"); header("Set-Cookie: sid=$sid;\n\n"); exit(); } } function login() { [... validation code here ...] // set my cookie setcookie("sid", $sid);

Re: [PHP] (OT) Erik Hegreberg - need headers for abuse@online.no

2002-07-10 Thread Justin French
Jason, I too have this problem, and got the same response from them. But I believe they weren't stripped out by your mail client, but by the PHP list itself... because I didn't *forward*, I copied and pasted. Either that, or they can't be bothered dealing with the real issue :) I don't know w

Re: [PHP] setcookie then redirect + Answer

2002-07-10 Thread David Busby
Read your data from $_COOKIE not $_COOKIES. David Busby wrote: > List, > I'm trying to set a cookie like this: > function redirect() { > if ($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_NAME']) { > $to = func_get_arg(0); > header("HTTP/1.1 301\n"); > header("Location

Re[2]: [PHP] (OT) Erik Hegreberg - need headers for abuse@online.no

2002-07-10 Thread Nookie
Hello Justin, Thursday, July 11, 2002, 1:35:50 AM, you wrote: JF> Jason, JF> I too have this problem, and got the same response from them. JF> But I believe they weren't stripped out by your mail client, but by the PHP JF> list itself... because I didn't *forward*, I copied and pasted. JF> Ei

[PHP] File Uploading Question

2002-07-10 Thread Nick Oostveen
I've got a (hopefully) simple question which is indirectly related to php. I'm currently developing an application which includes functionality to allow users to upload image files. Does anyone here know of a way to customize the look of the HTML "file" input type? By this I mean changing the

Re: [PHP] strange stuff in a class

2002-07-10 Thread Analysis & Solutions
On Wed, Jul 10, 2002 at 09:50:27AM -, Alex Elderson wrote: > > class test { > function test() { > $globals['test2'] = &$this; > } > } > $test1 = new test(); > > The problem hier is that $globals['test2'] is a copy of > $globals['test1'] not a > references. Use "$GLOBAL

[PHP] Re: File Uploading Question

2002-07-10 Thread David Duong
Go to http://www.cs.tut.fi/~jkorpela/forms/file.html; It gives an example. Press Find on Page (ctrl+F for Internet Explorer) and type in "Style Sheet", you should find what you are looking for by reading the paragraph and any below that concern Style Sheet. For more info about Style Sheets do a

[PHP] caching dynamic thumbnail

2002-07-10 Thread Roger Thomas
just would like to confirm here whether thumbnail images that i generated dynamically with gd is cached by browsers. a) i have a html frontend to call the php script that does that thumbnail. this html file, say, view.htm contains these lines: b) the thumbnailing works perfectly. but is thi

Re: [PHP] reports and reporting options?

2002-07-10 Thread Anas Mughal
also, check out: http://www.yourlegacy.org/annualReports/readme.pdf Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: php.net/pdf On Wed, 10 Jul 2002, Jeff D. Hamann wrote: > I've got a project that requires lots of "goofy" reports. These reports are > more than a simple html table (which would

Re: [PHP] File Uploading Question

2002-07-10 Thread Justin French
on 11/07/02 10:10 AM, Nick Oostveen ([EMAIL PROTECTED]) wrote: > I've got a (hopefully) simple question which is indirectly related to php. Very indirectly. Infact, it's completely a HTML/CSS question. Try the comp.infosystems.www.authoring.stylesheets newsgroup. Justin French -- PHP Gene

Re: [PHP] setcookie then redirect

2002-07-10 Thread Chris Shiflett
David Busby wrote: > List, > I'm trying to set a cookie like this: > function redirect() { > if ($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_NAME']) { > $to = func_get_arg(0); > header("HTTP/1.1 301\n"); > header("Location:http://".$_SERVER['SERVER_NAME'].$to."\n");

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

2002-07-10 Thread Fargo Lee
I ran a few tests as well and the few system commands I tried only saved the *last* line of the output in a variable on success as the manual suggests it should - better than nothing - but not the entire output as you seem to suggest you were able to do and what I have been trying to do. "Analysi

[PHP] Re: PHP & gd-2.0

2002-07-10 Thread Ricky Dhatt
I've done it, and it's quite a pain. Try http://www.php.net/~rasmus/gd.html and look for Rasmus's posts on google groups for some insight. One problem I had was that configure kept finding old gd's; I had go thru my system and rename them temporarly to get it to work. "Mike" <[EMAIL PROTECTED]>

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

2002-07-10 Thread Fargo Lee
But if system() thinks it is a success because the command executed, even though MySQL returns an internal error on the command line, why is'nt the last line of the MySQL error message stored in the variable as the system() manual suggests it should be when system() thinks it is a success? "Analy

[PHP] HTTP_USER_AGENT?

2002-07-10 Thread George Hester
I have this in my web site not in an executable folder: My First PHP Program No problem. I then put this in the same folder: My Second PHP Program Nothing appears. What's wrong? -- George Hester _ -- PHP General Mailing List (http://www.php

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

2002-07-10 Thread Peter
using dan's test below if u add a '/s' like so $output = system('dir /s c:\books', $return_var); you will get all contents os subdir's as well how ever i suggest working on a format as this tree's out along the page so maybe if u add a '/w' after the '/s'as well that will sort of so

Re: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Andrew Brampton
the $HTTP_USER_AGENT varible contains nothing... Try doing a phpinfo(); to see what the correct varible to use is, it is most likly $_SERVER['HTTP_USER_AGENT'] since the way these varibles are handled changed a few versions ago Andrew "George Hester" <[EMAIL PROTECTED]> wrote in message [EMAIL

RE: [PHP] HTTP_USER_AGENT?

2002-07-10 Thread Balaji Ankem
It is working fine for me!!! -Original Message- From: George Hester [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 8:03 AM To: [EMAIL PROTECTED] Subject: [PHP] HTTP_USER_AGENT? I have this in my web site not in an executable folder: My First PHP Program No problem.

<    1   2   3   4   >