[PHP] I don't understand...

2003-07-30 Thread Jason Martyn
Hey, I'm trying to create a table based on user configurations (saved in mysql db). The user is able to filter the table view to only the columns he needs. The tables are setup like this: each season has its own table. config table currentseason table Each column in the season table = row in th

Re: [PHP] System() works on /usr/sbin commands

2003-07-30 Thread Curt Zirzow
* Thus wrote tirumal b ([EMAIL PROTECTED]): > hello, > > yes the /usr/sbin commands require root permissions > but is there any way to run these commands using > system() through suid or something.please let me know I would seriously not recomend not to suid the script. The /usr/sbin/* files re

Re: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-30 Thread Curt Zirzow
I'd be ashamed to put that code on someones computer :) Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-30 Thread Joe Harman
Fortunatly I don't think they were doing something correctly, cause it didn't deface my site like some of the others Thanks all Joe -Original Message- From: Adrian [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 2:14 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Possible My W

Re: [PHP] System() works on /usr/sbin commands

2003-07-30 Thread tirumal b
hello, yes the /usr/sbin commands require root permissions but is there any way to run these commands using system() through suid or something.please let me know Thank you __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://s

Re: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-30 Thread Peter James
Via: http://www.google.ca/search?q=Crime+Perfect+2003&ie=UTF-8&oe=UTF-8&hl=en&meta= Found: http://www.zone-h.org/ Search: Crime Perfect See: Results (doesn't look good) :-( -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Origina

Re: [PHP] System() works on /usr/sbin commands

2003-07-30 Thread Evan Nemerson
You usually need to be root to execute /usr/sbin/* check the permissions of the file you're trying to execute. On Wednesday 30 July 2003 11:13 pm, tirumal b wrote: > hello, > > i was using system function to invoke useradd > command but it doesn't work. well it works for all the > commands bu

Re: [PHP] System() works on /usr/sbin commands

2003-07-30 Thread Adrian
afaik requires useradd like the other sbin stuff root rights - and php doesn't run as root > hello, > i was using system function to invoke useradd > command but it doesn't work. well it works for all the > commands but not those in /usr/sbin. why is it so. >

Re: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-30 Thread Adrian
everyone can execute shell commands via system(); on your server. -> delete the script ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] System() works on /usr/sbin commands

2003-07-30 Thread tirumal b
hello, i was using system function to invoke useradd command but it doesn't work. well it works for all the commands but not those in /usr/sbin. why is it so. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.ya

Re: [PHP] tags to lowercase

2003-07-30 Thread Jeff Harris
| |On Wednesday, July 30, 2003, at 02:53 PM, Jeff Harris wrote: | |> On Jul 30, 2003, "Curt Zirzow" claimed that: |> |> |* Thus wrote Justin French ([EMAIL PROTECTED]): |> |> Hi all, |> | |> |hello. |> | |> |> |> |> has anyone developed or know of a function to convert all tags to |> |> lowercase,

[PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-30 Thread Joe Harman
I found this on my server... I have no idea what it is... can someone tell me what it does... Thanks -- PHP Shell - CP Crime Perfect PHP Shell - by _m4st3r_c0d3 Diretório em que você está no momento: Root/"; if ($work_dir_spli

Re: [PHP] fpdf

2003-07-30 Thread Andrew Brampton
The way I would do it is I would make the Save button (or link) point to display.php?save... Now in the display.php I would have it figure out if save is in the URL, if it is then it should output a pdf file instead of a html file. This does however mean that your query is done twice (once for see

[PHP] fpdf

2003-07-30 Thread Mukta Telang
Hi, I want to display the results generated by the query and generate a pdf document (using fpdf) for the users to save. The user should be able to save it by clicking on a save button. I have a script called display.php which displays the result of the query..now I want user to be able to s

[PHP] PHP CLI: How to prevent a module from loading

2003-07-30 Thread [-^-!-%-
Hey ppl! I'm writing a shell script with php, but am having trouble with the Zend Optimizer module. Please advise. I get the following error when I run the script from the command line, but not from the browser: Failed loading /usr/local/lib/Zend/ZendOptimizer.so: /usr/local/lib/Zend/ZendOptimiz

[PHP] PHP 5 Usage: Possible Bug?

2003-07-30 Thread [-^-!-%-
All, I came across the following inconsistency between PHP 4 and PHP 5 Build 2195(Jul 24 2003 20:10:21). The error makes sense. I am just curious about the version inconsistency. Is this due to a change in PHP 5 (as part of the class enhancements) or is it an oversight? For my information, please

Re: [PHP] Google APIs with PHP

2003-07-30 Thread Daniel Ke
Sorry about it. I should include the code as attachment. Daniel _ Get 10Mb extra storage for MSN Hotmail. Subscribe Now! http://join.msn.com/?pgmarket=en-hk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] php-cli - Controlling external programs

2003-07-30 Thread Tom Rogers
Hi, Thursday, July 31, 2003, 1:53:50 PM, you wrote: MM> I'm writing a script to be run from the command line. It controls my DAT MM> autoloader (tape changer) and runs tar so that I can automate my backups. MM> With the -M option, tar will prompt for a new tape when the current tape is MM> full. H

[PHP] Google APIs with PHP

2003-07-30 Thread Daniel Ke
Hi all, I am new to PHP and just tested out using NuSoap to query Google database. The code is written by Harish Kamath. However, it doesn't work without error message. The web server I used support PHP. Also I downloaded the required nusoap.php class file and put it in the same directory with

Re: [PHP] splitting content into pages

2003-07-30 Thread daniel
your example doesnt work , and the whole purpose of this is because the background image wraps if there is too much text , i'm also trying to figure out of leaving it this way and add a few page breaks at the certain length so the text doesnt go over the dark edge as u cant see it any ideas ? > Exc

[PHP] install php-gtk on mdk9.1

2003-07-30 Thread Decapode Azur
I am trying to install PHP-GTK here is below the error : [EMAIL PROTECTED] php-gtk-0.5.2]$ ./buildconf [EMAIL PROTECTED] php-gtk-0.5.2]$ ./configure [EMAIL PROTECTED] php-gtk-0.5.2]$ make [] /PHP_GTK/php-gtk-0.5.2/main/php_gtk_object.c:889: `gtk_object_ce

Re: [PHP] php-cli - Controlling external programs

2003-07-30 Thread Mike Maltese
Bah, not the answer I was looking for...I really wanted to use PHP and I have most of what I wanted accomplished. Thanks for the tip, I will investigate. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Mike Maltese <[EMAIL PROTECTED]> wrote: > > I'm writing a scr

Re: [PHP] mcrypt mhash

2003-07-30 Thread Evan Nemerson
http://mcrypt.hellug.gr/ http://mhash.sf.net/ On Wednesday 30 July 2003 08:11 pm, AECT Listas wrote: > Hi, > > What is utility of mcrypt and mhash? > > Thanks, > > _ > Charla con tus amigos en línea mediante MSN Messenger: > http://m

Re: [PHP] php-cli - Controlling external programs

2003-07-30 Thread Chris Shiflett
--- Mike Maltese <[EMAIL PROTECTED]> wrote: > I'm writing a script to be run from the command line. ... > How can I get the signal from tar that the tape needs to be changed? It sounds like you are wanting to write an interactive shell script. If this is the case (e.g., I didn't misunderstand), yo

[PHP] php-cli - Controlling external programs

2003-07-30 Thread Mike Maltese
I'm writing a script to be run from the command line. It controls my DAT autoloader (tape changer) and runs tar so that I can automate my backups. With the -M option, tar will prompt for a new tape when the current tape is full. How can I get the signal from tar that the tape needs to be changed? I

Re: [PHP] Removing Spaces

2003-07-30 Thread John W. Holmes
Jason Williard wrote: In parsing a file, I ended up with a number of variables that include spaces. Is there an easy way to remove a space from a variable? $new_string = str_replace(' ','',$old_string); ? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Archite

[PHP] Removing Spaces

2003-07-30 Thread Jason Williard
In parsing a file, I ended up with a number of variables that include spaces. Is there an easy way to remove a space from a variable? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP, JavaScript and populating DropDowns

2003-07-30 Thread Creative Solutions New Media
Thanks very much John. It looks great. Tim Winters Manager, Creative Development Sampling Technologies Incorporated (STI) [EMAIL PROTECTED] [EMAIL PROTECTED] W: 902 450 5500 C: 902 430 8498 -Original Message- From: John Manko [mailto:[EMAIL PROTECTED] Sent: July 29, 2003 2:49 PM To: [EM

Re: [PHP] session header issue

2003-07-30 Thread Jason Wong
On Thursday 31 July 2003 06:39, Sam Folk-Williams wrote: > I've got a site with a login authentication script in a file called > login.php. Every page has a simple session check on top of it, as well > as line that captures the name of the file the user is trying to view. > The idea is that if the

[PHP] mcrypt mhash

2003-07-30 Thread AECT Listas
Hi, What is utility of mcrypt and mhash? Thanks, _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

RE: [PHP] splitting content into pages

2003-07-30 Thread daniel
ok i have an idea , i have a solution which may work i dont know just yet , ok say the strlen of the entire content is 1675 , the strlen of the content up to the last paragraph is 1300 , how can i substr this to get the next block of text from 1300 and also increment if there is more pages ?? > Eva

Re: [PHP] splitting content into pages

2003-07-30 Thread Evan Nemerson
Excellent point. A compromise, then? How about using the background-repeat: repeat-y; and not trying to do any math. Just decide how long the content should be, and wrap the page at the next sentence. That way, you make the end users happy, but don't risk an ugly page. For 150 characters, (unte

Re: [PHP] splitting content into pages

2003-07-30 Thread daniel
this isnt a client side issue it'll defeat the purpose if i dont repeat the background image and then let the text flow over it , its supposed to look like a notepage for a blogger > Is there a reason this can't be solved with a CSS background-repeat: > repeat-y; ? Or is download time of individua

Re: [PHP] Hash

2003-07-30 Thread Evan Nemerson
do you have something agains php.net/md5? php.net/crc32? php.net/sha1? They're all included in 4.3 On Wednesday 30 July 2003 07:40 pm, AECT Listas wrote: > Hi, > > How set up functions hash in php4.3.2 > > thanks > > _ > Charla con

Re: [PHP] tags to lowercase

2003-07-30 Thread Evan Nemerson
Interesting timing... http://coggeshall.org/archives/e_65.html On Wednesday 30 July 2003 04:25 pm, Justin French wrote: > Sounds great, although I doubt my host will install... has anyone > considered such a beast running as a PHP function/class? > > Justin > > On Wednesday, July 30, 2003, at 02

RE: [PHP] splitting content into pages

2003-07-30 Thread Chris W. Parker
Evan Nemerson on Wednesday, July 30, 2003 7:17 PM said: > Is there a reason this can't be solved with a CSS background-repeat: > repeat-y; ? Or is download time of individual pages an issue? That can look funny of course if the picture doesn't tile well. > The math

[PHP] Hash

2003-07-30 Thread AECT Listas
Hi, How set up functions hash in php4.3.2 thanks _ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] tags to lowercase

2003-07-30 Thread Curt Zirzow
* Thus wrote Justin French ([EMAIL PROTECTED]): > Sounds great, although I doubt my host will install... has anyone > considered such a beast running as a PHP function/class? Hey justin, well, i just got done toying around with a little function that can do almost all of what you want. With a l

Re: [PHP] [PHP-WIN] http://www.zend.com/manual/function.memory-get-usage.php (fwd)

2003-07-30 Thread Evan Nemerson
Was php configured with --enable-memory-limit? function_exists('memory_get_usage')??? function_exists('get_memory_usage')??? Did the function even exist in 4.3.3 RC1? Why is your address @ unix-systems.net and you're asking about win32? On Wednesday 30 July 2003 04:36 pm, Miha Nedok wrote: > I

Re: [PHP] splitting content into pages

2003-07-30 Thread Evan Nemerson
Is there a reason this can't be solved with a CSS background-repeat: repeat-y; ? Or is download time of individual pages an issue? This is really a client-side issue. The math is going to vary depending on each user's settings- which font is used, the size of the font, random browser stupidity,

Re: [PHP] Parsing Variables

2003-07-30 Thread Curt Zirzow
* Thus wrote Jason Williard ([EMAIL PROTECTED]): > I would like to create a script that reads a file name that follows a > specific format and have it parsed into 2 variables. The format is as > follows: > > cli_info-ACCOUNT-USERNAME.dat > > The two variables that I would like to get out of this

[PHP] Parsing Variables

2003-07-30 Thread Jason Williard
I would like to create a script that reads a file name that follows a specific format and have it parsed into 2 variables. The format is as follows: cli_info-ACCOUNT-USERNAME.dat The two variables that I would like to get out of this are the ACCOUNT and USERNAME. The rest of the information can

RE: [PHP] splitting content into pages

2003-07-30 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, July 30, 2003 7:04 PM said: > ok let me explain , its straight up text content from the database , > say its scrolls for ages , i need to split it into pages , so i get > the length of the string up to the last paragraph which fits i n

Re: [PHP] foreach help

2003-07-30 Thread Evan Nemerson
Well you could do foreach ( $_POST as $var ) ${$var} = ( isset($_POST[$var]) ? 1 : 0); but that's really sloppy. If possible, I'd go more for something like $vars = Array( 'noPlatform', 'littlePlatform', 'lotsaPlatform', 'yoMommasaPlatform'); foreach ( $v

RE: [PHP] splitting content into pages

2003-07-30 Thread daniel
maybe somehow with a substr function that gets the position of the last paragraph ?? > ok let me explain , its straight up text content from the database , > say its scrolls for ages , i need to split it into pages , so i get the > length of the string up to the last paragraph which fits i need to

RE: [PHP] splitting content into pages

2003-07-30 Thread daniel
ok let me explain , its straight up text content from the database , say its scrolls for ages , i need to split it into pages , so i get the length of the string up to the last paragraph which fits i need to split it there any idea ? > [EMAIL PROTECTED] >on Wednesday

[PHP] foreach help

2003-07-30 Thread Ryan A
Hi, I have a set of checkboxes (around 38) which will be sent to me via a post(eg: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] splitting content into pages

2003-07-30 Thread Chris W. Parker
[EMAIL PROTECTED] on Wednesday, July 30, 2003 6:35 PM said: > hi there , i have an issue trying to split content into pages , we > have a popup with content and a background image with a set height , > when there is more content the background repeats , theoretically

[PHP] Re: splitting content into pages

2003-07-30 Thread Sek-Mun Wong
It depends on how complex your "content" is. I've had a few unsuccessful attempts at this as it gets too messy. Assuming your "content" contains html (like news), it means you have to ignore tags, but your tags may have images, in them, etc etc, further adding to your alignment woes. Also, splitti

[PHP] splitting content into pages

2003-07-30 Thread daniel
hi there , i have an issue trying to split content into pages , we have a popup with content and a background image with a set height , when there is more content the background repeats , theoretically i'd want to split the content into pages after a given length or line length or where it meets th

Re: [PHP] downloading a file using headers

2003-07-30 Thread Jason Sheets
You could use an iframe or you could turn on output buffering, when output buffering is enabled you can send headers after normal output has been sent. Just do ob_start(); at the top of your script. Not the most elegant way of doing it but it would work and not require you to use an iframe.

[PHP] PHP Sessions

2003-07-30 Thread Lee Stewart
Hi Curt, No I didn't see a post about space on /tmp... Using df it shows the file system to only be about 70% full, so there's plenty of space there. Did you mean something else? Any other thoughts on where to look? Thanks, Lee * Thus wrote Lee Stewart ([EMAIL PROTECTED]): > Using the $_

Re: [PHP] [PHP-WIN] http://www.zend.com/manual/function.memory-get-usage.php (fwd)

2003-07-30 Thread Curt Zirzow
* Thus wrote Miha Nedok ([EMAIL PROTECTED]): > > I asked this one on php-windoows, can someone here tell the answer. > > -Mike > > -- Forwarded message -- > [...] > > Any ideas with this one on Win32 ? I'm running 4.3.3RC1. > > -Mike I dont understand what your asking? Curt

Re: [PHP] session header issue

2003-07-30 Thread Sam Folk-Williams
Thanks, but that's not on the login.php page, only on all the protected pages. Sam Curt Zirzow wrote: * Thus wrote Sam Folk-Williams ([EMAIL PROTECTED]): Problem: instead of sending them to the page they wanted to view, they get sent to this URL: login.php?file=/dir/file_name.php?v=123 What'

Re: [PHP] Deleteing one session

2003-07-30 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > Hi, > have around 20 sessions setup and want to delete one of them... > eg: > I have the following sessions: > one > two > three > four > five > etc > I want to delete "four", what should i use? am puzzled by the manual which > offers these two options: >

Re: [PHP] Re: looking for some kind of CMS breakthough (slightly OT)

2003-07-30 Thread Justin French
I have an inherit problem where a large portion of my user base are mac users (designers and musicians). I've tested every WYSISYG editor I can find, and only one of them (editize.com) works with macs -- and even then, it's not particularly stable at all, and requires a very new version of Jav

RE: [PHP] textbox+database

2003-07-30 Thread Chris W. Parker
Patrik Fomin on Wednesday, July 30, 2003 3:46 PM said: > and when i retrive the text from the database it looks like this: > TestTestHello > > is there anyway to save (enter formattions)? Well you've left out some important information so I'm going to use my detect

Re: [PHP] tags to lowercase

2003-07-30 Thread Justin French
Sounds great, although I doubt my host will install... has anyone considered such a beast running as a PHP function/class? Justin On Wednesday, July 30, 2003, at 02:53 PM, Jeff Harris wrote: On Jul 30, 2003, "Curt Zirzow" claimed that: |* Thus wrote Justin French ([EMAIL PROTECTED]): |> Hi al

[PHP] [PHP-WIN] http://www.zend.com/manual/function.memory-get-usage.php(fwd)

2003-07-30 Thread Miha Nedok
I asked this one on php-windoows, can someone here tell the answer. -Mike -- Forwarded message -- Date: Tue, 29 Jul 2003 15:56:25 +0200 (CEST) From: Miha Nedok <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP-WIN] http://www.zend.com/manual/function.memory-get-usage.php

[PHP] Deleteing one session

2003-07-30 Thread Ryan A
Hi, have around 20 sessions setup and want to delete one of them... eg: I have the following sessions: one two three four five etc I want to delete "four", what should i use? am puzzled by the manual which offers these two options: unset($four); session_unregister($four); which is better? I am st

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > Now, when a browser sends this, it will be something like this: > > > > Cookie: coach_access[login_id]=coach > > A cookie name can only be a HTTP/1.1 tolken as defined in rfc2109: Well, this isn't the case. You see, neither RFC 2109 nor RFC 2965 are

Re: [PHP] session header issue

2003-07-30 Thread Curt Zirzow
* Thus wrote Sam Folk-Williams ([EMAIL PROTECTED]): > Problem: instead of sending them to the page they wanted to view, they > get sent to this URL: login.php?file=/dir/file_name.php?v=123 > > What's going on here? Why doesn't "Location: $file" return the contents > of $file? The session check a

[PHP] session header issue

2003-07-30 Thread Sam Folk-Williams
I've got a site with a login authentication script in a file called login.php. Every page has a simple session check on top of it, as well as line that captures the name of the file the user is trying to view. The idea is that if the user tries to go straight to an inside page without logging i

Re: [PHP] PHP cli on Mac OSX

2003-07-30 Thread Curt Zirzow
* Thus wrote René Fournier ([EMAIL PROTECTED]): > Hello, > > I installed Entropy package of PHP on my 10.2.6 OSX > (http://www2.entropy.ch/download/Entropy-PHP-4.3.2-5.dmg), which states > that it includes PHP command line. But when I go to Terminal and type > "PHP somescript.php4", it returns

Re: [PHP] Registering Session

2003-07-30 Thread Curt Zirzow
* Thus wrote Ralph Guzman ([EMAIL PROTECTED]): > I have a shopping cart checkout form where I am using GET to specify > payment method from payment_method.php page. > > So I have something like the following: > > From payment_method.php the user chooses payment method by clicking on a > payment l

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > --- Steve Buehler <[EMAIL PROTECTED]> wrote: > > header('Set-Cookie: coach_access[login_id]=coach'); > > Well, that is ugly, but it is actually a valid name. The name of a cookie, > as described by http://wp.netscape.com/newsref/std/cookie_spec.ht

[PHP] Re: textbox+database

2003-07-30 Thread Kevin Stone
"Mehdi Achour" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Patrik Fomin wrote: > > hi, i have a textbox, after someone puts text into it, it saves into the > > database, > > > > > > > > when it saves to the database the formattion in the textbox dosent work > > properly, > > eg:

RE: [PHP] Debugging a Session Problem

2003-07-30 Thread Lee Stewart
The only thing in the Apache error log is: [Fri Jul 25 16:19:31 2003] [error] PHP Notice: Undefined variable: test in /srv/www/htdocs/page2.php on line 3 No other messages I can find in any logs. df shows the file system only 70% full... At 08:38 AM 7/28/2003, Johnson, Kirk wrote: Anything

[PHP] Registering Session

2003-07-30 Thread Ralph Guzman
I have a shopping cart checkout form where I am using GET to specify payment method from payment_method.php page. So I have something like the following: >From payment_method.php the user chooses payment method by clicking on a payment link that then send them to the checkout_form.php checkout_f

Re: [PHP] PHPSESSID AND SID

2003-07-30 Thread Hank TT
phpsessid is the default name of the session cookie sent from the browser to PHP. So it becomes part of the $_COOKIE array, which PHP automatically turns into a global variable for you. Therefore I use $_COOKIE['phpsessid'] to retrieve it. But often I use session_name() to replace phpsessid with

[PHP] Re: retrieving multi-select form values

2003-07-30 Thread Kevin Stone
"Hank Tt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Given the following querystring generated by, for example, a multi-select > form list (menu), the contents of $_GET['list'] is expected to be an array > holding 3 elements: > > http://awebsite.net/formlist.php?list=2&list=3&li

[PHP] retrieving multi-select form values

2003-07-30 Thread Hank TT
Given the following querystring generated by, for example, a multi-select form list (menu), the contents of $_GET['list'] is expected to be an array holding 3 elements: http://awebsite.net/formlist.php?list=2&list=3&list=99 Yet I only see the last value returned as a lone string. Is this expecte

[PHP] Re: textbox+database

2003-07-30 Thread Mehdi Achour
Patrik Fomin wrote: hi, i have a textbox, after someone puts text into it, it saves into the database, when it saves to the database the formattion in the textbox dosent work properly, eg: i add this: Test Test Hello and when i retrive the text from the database it looks like this: TestTestHell

Re: [PHP] Simple date question

2003-07-30 Thread Jeff Harris
On Jul 30, 2003, "Roy W" claimed that: |If I have: | |$firstdate = "2003-06-28"; | |then how can I get $firstdate plus 4 days? | |Thanks! It looks like that date may have come from a [mysql] database. If that's the case, you should be able to add 4 days in your query, by using DATE_ADD() check ht

[PHP] textbox+database

2003-07-30 Thread Patrik Fomin
hi, i have a textbox, after someone puts text into it, it saves into the database, when it saves to the database the formattion in the textbox dosent work properly, eg: i add this: Test Test Hello and when i retrive the text from the database it looks like this: TestTestHello is there any

Re: [PHP] Querying a form

2003-07-30 Thread Jeff Harris
On Jul 30, 2003, "Gerard Samuel" claimed that: |Im looking for links to tutorials, or if someone can post code here, |where php |can be used to query a form, so that I can retrieve its results. |Thanks for any pointers... How about some of these? http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
At 04:37 PM 7/30/2003 -0400, you wrote: You'd be better of if you re-wrote your code to make it correct, but you could just put: $coach_access['login_id'] = $_COOKIE['coach_access[login_id]']; I guess I will rewrite my code. I still can't understand it working on the RedHat and not the Windows,

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
That still won't work for me for some reason. I am just going to rewrite parts of the script to use a cookie name with out a [something] IN the name. I will rename it to ca_id or something like that. Thanks for your help Steve At 01:38 PM 7/30/2003 -0700, you wrote: --- Steve Buehler <[EMAIL P

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Rob Adams
"Cpt John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > From: "Steve Buehler" <[EMAIL PROTECTED]> > > hm. Looks like on my localhost I can't seta cookie like this: > > setcookie ("coach_access[login_id]", "coach",0,"/","$cookhost"); > > if I change it to just: > > se

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Chris Shiflett
--- Steve Buehler <[EMAIL PROTECTED]> wrote: > header('Set-Cookie: coach_access[login_id]=coach'); Well, that is ugly, but it is actually a valid name. The name of a cookie, as described by http://wp.netscape.com/newsref/std/cookie_spec.html, is "a sequence of characters excluding semi-colon, comm

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread CPT John W. Holmes
From: "Steve Buehler" <[EMAIL PROTECTED]> > hm. Looks like on my localhost I can't seta cookie like this: > setcookie ("coach_access[login_id]", "coach",0,"/","$cookhost"); > if I change it to just: > setcookie ("coach_access_login_id", "coach",0,"/","$cookhost"); > it will work. But then my

[PHP] PHP cli on Mac OSX

2003-07-30 Thread René Fournier
Hello, I installed Entropy package of PHP on my 10.2.6 OSX (http://www2.entropy.ch/download/Entropy-PHP-4.3.2-5.dmg), which states that it includes PHP command line. But when I go to Terminal and type "PHP somescript.php4", it returns "Command not found". What am I missing? ...Rene -- PHP Ge

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Chris Shiflett
--- Steve Buehler <[EMAIL PROTECTED]> wrote: > h. This seemed to set the cookie just fine. I thought it might. :-) > Does this mean that either localhost in the browser or > Apache/PHP on a windows box has to set the cookie differently > than on RedHat/Apache/PHP? Nope, it just means that th

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
hm. Looks like on my localhost I can't seta cookie like this: setcookie ("coach_access[login_id]", "coach",0,"/","$cookhost"); if I change it to just: setcookie ("coach_access_login_id", "coach",0,"/","$cookhost"); it will work. But then my script won't work without a lot of re-writing becau

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread CPT John W. Holmes
> h. This seemed to set the cookie just fine. Does this mean that > either localhost in the browser or Apache/PHP on a windows box has to set > the cookie differently than on RedHat/Apache/PHP? I am going on vacation > next week and need to keep working on a project that is working fine on t

Re: [PHP] Refresh a page in another frame

2003-07-30 Thread Curt Zirzow
* Thus wrote Steve Fulleylove ([EMAIL PROTECTED]): > Hi all, > > I have a PHP web site that uses frames. I can use the header() function to > redirect the user to a new page, but can I use this function to load a page > into a different frame ? negative. you'll have to use some javascipt to ref

[PHP] Re: Refresh a page in another frame

2003-07-30 Thread Mehdi Achour
Steve Fulleylove wrote: Hi all, I have a PHP web site that uses frames. I can use the header() function to redirect the user to a new page, but can I use this function to load a page into a different frame ? header() (and PHP) won't make it, you need some javascript : parent.name_of_the_frame.

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Steve Buehler
h. This seemed to set the cookie just fine. Does this mean that either localhost in the browser or Apache/PHP on a windows box has to set the cookie differently than on RedHat/Apache/PHP? I am going on vacation next week and need to keep working on a project that is working fine on the R

[PHP] Refresh a page in another frame

2003-07-30 Thread Steve Fulleylove
Hi all, I have a PHP web site that uses frames. I can use the header() function to redirect the user to a new page, but can I use this function to load a page into a different frame ? Thanks in advance, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] downloading a file using headers

2003-07-30 Thread Curt Zirzow
* Thus wrote Amanda McComb ([EMAIL PROTECTED]): > I have a page that queries the database then uses the data to build an > excel spreasheet. THat spreadsheet is downloaded according to info in the > headers. My manager wants to put the page inside of another HTML page to > make it prettier, but t

Re: [PHP] downloading a file using headers

2003-07-30 Thread CPT John W. Holmes
> I have a page that queries the database then uses the data to build an > excel spreasheet. THat spreadsheet is downloaded according to info in the > headers. My manager wants to put the page inside of another HTML page to > make it prettier, but then it breaks because headers are already writte

RE: [PHP] Using link to submit a form

2003-07-30 Thread Matt Palermo
//Just use this javascript function... echo " "; // Then output the submit link like this... echo " "; // You can have multiple submit links that send it // to different pages

RE: [PHP] Using link to submit a form

2003-07-30 Thread Jennifer Goodie
> Hi everyone, > > Can I replace "Submit" buttons on forms with a text button? > I need to be able to click on a link: > Edit > > and have it submit the form. The form only contains one > field...does anyone > know how to do this? I've been searching google for an answer, > but couldn't > fin

[PHP] Re: downloading a file using headers

2003-07-30 Thread Mehdi Achour
Hi Amanda, I have a page that queries the database then uses the data to build an excel spreasheet. THat spreadsheet is downloaded according to info in the headers. My manager wants to put the page inside of another HTML page to make it prettier, but then it breaks because headers are already wr

Re: [PHP] Using link to submit a form

2003-07-30 Thread andu
--On Wednesday, July 30, 2003 14:32:11 -0500 Tyler Longren <[EMAIL PROTECTED]> wrote: Hi everyone, Can I replace "Submit" buttons on forms with a text button? I need to be able to click on a link: Edit Something like: Edit and have it submit the form. The form only contains one field...does a

[PHP] Re: Using link to submit a form

2003-07-30 Thread Mehdi Achour
Hi everyone, Hi, Can I replace "Submit" buttons on forms with a text button? I need to be able to click on a link: Edit and have it submit the form. The form only contains one field...does anyone know how to do this? I've been searching google for an answer, but couldn't find any info that reall

[PHP] emacs, speedbar, php-mode

2003-07-30 Thread Spencer Thiel
I've seen a number of questions posted on how to get speedbar to work with php-mode inside emacs. This is a hack that piggybacks on the semantic bovinator functionality with java which seems to work well with php classes. This requires that you have the semantic bovinator from:

Re: [PHP] cookies on localhost WinXP

2003-07-30 Thread Chris Shiflett
Can you try this example? Let's call the file cookie_test.php \n"; echo "Test\n"; } ?> I think it's best to start simple. Hope this helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net

[PHP] Using link to submit a form

2003-07-30 Thread Tyler Longren
Hi everyone, Can I replace "Submit" buttons on forms with a text button? I need to be able to click on a link: Edit and have it submit the form. The form only contains one field...does anyone know how to do this? I've been searching google for an answer, but couldn't find any info that really a

[PHP] downloading a file using headers

2003-07-30 Thread Amanda McComb
I have a page that queries the database then uses the data to build an excel spreasheet. THat spreadsheet is downloaded according to info in the headers. My manager wants to put the page inside of another HTML page to make it prettier, but then it breaks because headers are already written (it's

  1   2   >