Re: [PHP] Oracle to MySQL

2003-02-20 Thread Philippe Saladin
I'm recalling this from memory, and I may not be 100% right, but it should put you on the right path. You will need to install the Oracle client libraries on the box with php (you can find these on the Oracle discs used to install the actual database). Yes correctly, the Oracle discs

Re: [PHP] new to php, need help..

2003-02-20 Thread Chris Cook
Try naming the file with a .php extension. It is also possible your server does not support php. Good luck, Chris From: Jonathan [EMAIL PROTECTED] Reply-To: Jonathan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] new to php, need help.. Date: Thu, 20 Feb 2003 01:34:12 -0600 hi all,

[PHP] Can I do this? header(Content-type: text/rtf);

2003-02-20 Thread John Taylor-Johnston
Hey, I'm using PHP MySQL to generate a RTF document. I use this header: header(Content-type: text/rtf); Of course, the header scares the poor browser. The browser bawks and says, unknown file type, and instructs the browser to save the file. It tries to save a file called

[PHP] is there php debuggers or IDE under Linux?

2003-02-20 Thread Andrey Ivanov
Hi, people. I've been trying setup dbg-2.11.5 under RedHat-7.3, but can't find dbg-client for this OS. Which php-debugger do you use under Linux? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] is there php debuggers or IDE under Linux?

2003-02-20 Thread Andrey Ivanov
Hi, people. I've been trying setup dbg-2.11.5 under RedHat-7.3, but can't find dbg-client for this OS. Which php-debugger do you use under Linux? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: new to php, need help..

2003-02-20 Thread John Taylor-Johnston
Just a hunch: ? echo $subject[0]; ? Try using ?php instead, as in: ?php echo $subject[0]; ? Do you have a URL to show us what your page does and doesn't do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: is there php debuggers or IDE under Linux?

2003-02-20 Thread John Taylor-Johnston
I didn't know a debugger was available? Then again, I'm no expert. However, as an aside note, rename your file to *.PHPS This will display your code in a readable, color-coded fashion, allowing you to decipher possible problems yourself. Newbie advice, but helps some. -- PHP General Mailing

Re: [PHP] php ecommers site

2003-02-20 Thread Awlad Hussain
try this site http://www.oscommerce.com/ you might have to add additional functions to customize it. - Original Message - From: Chris Knipe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 2:06 AM Subject: [PHP] php ecommers site Lo all, Is there any good

Re: [PHP] is there php debuggers or IDE under Linux?

2003-02-20 Thread Richard Whitney
I use a hardened release of Redhat called SME Server ( http://e-smith.org ) that works very nicely as a development environment. I also use it for my production server (40+ domains). The 5.5 release comes packaged with PHP v4.1.2 . The newest release 5.6 I am not sure what version of PHP it

Re: [PHP] is there php debuggers or IDE under Linux?

2003-02-20 Thread Richard Whitney
Of course, you'll need a separate box for SME Server! Quoting Andrey Ivanov [EMAIL PROTECTED]: ### Hi, people. ### ### ### I've been trying setup dbg-2.11.5 under RedHat-7.3, but can't find ### dbg-client for this OS. ### Which php-debugger do you use under Linux? ### ### ### Thank you.

[PHP] AUTH (.htaccess style)

2003-02-20 Thread Sebastian
Greetings. I have a member system which each user has a unique ID, username and password. I want to secure some of my scripts with .htaccess style login, Basically I would like to fetch the username and password from mysql database, the password is encrypt using md5 hash. I would like to the

[PHP] Failed to initialize session module

2003-02-20 Thread news.php.net
Hi guys, having trouble with my win2k install of php 4.3.0 - can't run sessions! I have some test code: ?php /* SM 2/20/2003 9:21AM Basic session test */ session_start(); echo(pwhadda!) ? And it results in Fatal error: session_start() [function.session-start]: Failed to initialize session

[PHP] Re: new to php, need help..

2003-02-20 Thread Jonathan
thanks for helping guys :) sorry i don't have a url that i can upload my files too.. all i can show is my code.. :( the original code that i got from is from : http://www.linuxguruz.org/z.php?id=33 example 5: examples 1-4 seems to work, but other examples with this line doesn't, input

[PHP] Re: Failed to initialize session module

2003-02-20 Thread neko
got it, had to change session.save_handler = files ;session.save_handler = user to files - my bad! neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RSA implementation

2003-02-20 Thread José León Serna
El lun, 17-02-2003 a las 19:17, Matt Vos escribió: I don't care what you say, all you need is Secure-Socket-Layer I know, but I cannot use SSL contrary to what you may believe, you don't need a beefy server to implement it. I had apache+ssl+php+mysql running quite well on a 486 DX4/100 with

[PHP] PHP as Shell script...

2003-02-20 Thread Brian McGarvie
I am having trouble using php as a script. #!/usr/local/bin/php ?php ... stuff ... ? using the above form creates the following cron error: /bin/sh: /usr/local/apache/sites/domain.com/tasks/autoreport/test.php: bad interpreter: No such file or directory Any ideas? Thanks in advance...

[PHP] Encrypted URL links?

2003-02-20 Thread MIKE YRABEDRA
I have a site that sells software and wants to have downloadable purchases. Is there a way to encrypt a URL that will still work when clicked on, BUT not show the customer where the file actually resides? Is it also possible to have it expire after a given amount of time? TIA -- Mike

[PHP] Display strings with single quotes

2003-02-20 Thread Rea_David
Hi all, Have simple but annoying issue, I want to display a string within an input field. This string contains ' so when it's being display the, anything after the ' is being left out. Here is the code I'm using: $string = str_replace(', '', $string); $string =

Re: [PHP] PHP as Shell script...

2003-02-20 Thread Ernest E Vogelsinger
At 12:16 20.02.2003, Brian McGarvie said: [snip] I am having trouble using php as a script. #!/usr/local/bin/php ?php ... stuff ... ? using the above form creates the following cron error: /bin/sh:

Re: [PHP] Display strings with single quotes

2003-02-20 Thread Tom Rogers
Hi, Thursday, February 20, 2003, 9:34:03 PM, you wrote: Rec Hi all, Rec Have simple but annoying issue, I want to display a string within an Rec input field. This string contains ' so when it's being display the, Rec anything after the ' is being left out. Here is the code I'm using:

Re: [PHP] Display strings with single quotes

2003-02-20 Thread Ernest E Vogelsinger
At 13:16 20.02.2003, Tom Rogers said: [snip] Rec Have simple but annoying issue, I want to display a string within an Rec input field. This string contains ' so when it's being display the, Rec anything after the ' is being left out. Here is the

Re: [PHP] Display strings with single quotes

2003-02-20 Thread Jason Wong
On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote: At 13:16 20.02.2003, Tom Rogers said: [snip] Rec Have simple but annoying issue, I want to display a string within an Rec input field. This string contains ' so when it's being

[PHP] Pass Array parameter by reference

2003-02-20 Thread Andrea
Hi! How can I pass an array parameter by reference? I tried something similar: function my_function($argument) { $argument[0]=test; } my_function($array); echo $array[0]; but the echo function returns Array. Can anybody help me? Thanks! Andrea -- PHP General Mailing List

Re: [PHP] excluding same field values in mysql

2003-02-20 Thread Sunfire
i am selecting company because the company i am writing this for wanted me to print out on a web page all the company names that had gotten mail from the email system.. and i didnt know if i should do a different query for that or if i could leave it in 1 query... so could i do this: select

Re: [PHP] Pass Array parameter by reference

2003-02-20 Thread Tom Rogers
Hi, Thursday, February 20, 2003, 10:52:11 PM, you wrote: A Hi! A How can I pass an array parameter by reference? A I tried something similar: A function my_function($argument) { A $argument[0]=test; A } A my_function($array); A echo $array[0]; A but the echo function returns Array. A Can

Re: [PHP] Can I do this? header(Content-type: text/rtf);

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 03:42:14 -0500, you wrote: I'm using PHP MySQL to generate a RTF document. I use this header: header(Content-type: text/rtf); Of course, the header scares the poor browser. The browser bawks and says, unknown file type, and instructs the browser to save the file. It tries

Re: [PHP] Display strings with single quotes

2003-02-20 Thread 1LT John W. Holmes
On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote: At 13:16 20.02.2003, Tom Rogers said: [snip] Rec Have simple but annoying issue, I want to display a string within an Rec input field. This string contains ' so when it's

[PHP] server side including

2003-02-20 Thread Hans Prins
Im have a script.php which needs to be able to tell if it has been included in an .shtml file or not... e.g. if included is true: do this, else: do something else I could ofcourse do something like this: !--#include virtual=/packages/combo1/example_red/poll/poll.php?included=yes -- but it

RE: [PHP] Display strings with single quotes

2003-02-20 Thread Rea_David
Thanks everyone! -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 13:40 To: [EMAIL PROTECTED] Subject: Re: [PHP] Display strings with single quotes On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote: At 13:16 20.02.2003, Tom

Re: [PHP] Encrypted URL links?

2003-02-20 Thread 1LT John W. Holmes
I have a site that sells software and wants to have downloadable purchases. Is there a way to encrypt a URL that will still work when clicked on, BUT not show the customer where the file actually resides? Is it also possible to have it expire after a given amount of time? Sure, just have a

[PHP] Correct number format (curency)

2003-02-20 Thread Robert Mena
Hi, I have one application where the users enter a curency value. Unfortunately even tough I write the correct format I keep receiving all kinds. Example 1.000,00 1000.00 1,000.00 I would like to convert those to a single format 1000.00 Is there any function in php that already does that ?

Re: [PHP] Root Commands

2003-02-20 Thread Adam Voigt
Check out sudo, with man pages or what not, you use the command visudo to define who can run what commands as root. And then in your php, you just do: exec(sudo adduser); With whatever parameters you need to adduser. On Wed, 2003-02-19 at 18:37, Patrick Armour wrote: I am

Re: [PHP] define(DOC_HOME_PATH, what goes here)

2003-02-20 Thread 1LT John W. Holmes
define (DOC_HOME_PATH, http://localhost/killerspin/web/store/;); define (IMG_HOME_PATH, http://localhost/killerspin/web/images/;); define (CTL_HOME_PATH, http://localhost/killerspin/web/control/;); img src=? echo IMG_HOME_PATH ?stuff/image.jpg a href=? echo DOC_HOME_PATH ?stuff/index.jspClick

Re: [PHP] long running PHP application

2003-02-20 Thread Adam Voigt
PHP's max execution time has always over-ridden whatever Apache wants for keep-alive time (in my experience anyway). On Wed, 2003-02-19 at 22:50, Lord Loh. wrote: Is there any conflict with the server Keep-Alice time ? That is usually not more than a minute...

Re: [PHP] Encrypted URL links?

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 06:20:26 -0500, you wrote: Is there a way to encrypt a URL that will still work when clicked on, BUT not show the customer where the file actually resides? It's not possible to encrypt a URL and leave it readable. URLs are plaintext. Is it also possible to have it expire

[PHP] Bechmarks with Caching technics

2003-02-20 Thread Torsten Rosenberger
Hello has someone done some benchmarks with Cache scripts? I wrote a small and easy Script to cache some sites; I have seen that the Cache needs more time to send the Data as php alone. I also tried it with PEAR Cache but there was the same. On small files PHP witout Caching is faster, On

Re: [PHP] Can I do this? header(Content-type: text/rtf);

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 03:42:14 -0500, you wrote: I'm using PHP MySQL to generate a RTF document. I use this header: header(Content-type: text/rtf); Sorry, I should have mentioned header(Content-Disposition: attachment; filename=myfile.rtf); as well. Rather easier :) -- PHP General Mailing

Re: [PHP] Root Commands

2003-02-20 Thread Jason Sheets
I would highly recommend against doing this, this would work but it would open you up to allowing your webserver user/php to add any user to your system. This is beyond a bad idea. Jason. On Thu, 2003-02-20 at 06:46, Adam Voigt wrote: Check out sudo, with man pages or what not, you use the

RE: [PHP] Undefined offset notices

2003-02-20 Thread Ford, Mike [LSS]
-Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 05:55 While debugging my code, that seems to work fine, I see hundreds of these notices, many different ones with different offset numbers same line number. Notice: Undefined offset: 2

Re: [PHP] server side including

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 14:41:09 +0100, you wrote: Im have a script.php which needs to be able to tell if it has been included in an .shtml file or not... e.g. if included is true: do this, else: do something else I could ofcourse do something like this: !--#include

RE: [PHP] sorting multi-dimensional array

2003-02-20 Thread Ford, Mike [LSS]
-Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 05:25 Ahhhfinally did it with usort. Thanks to those who gave me that answer. Now here is a question for that. I would like to re-use my cmp function without having to rewrite it

Re: [PHP] Root Commands

2003-02-20 Thread Adam Voigt
Yeah, it's a bad idea, but he wants to be able to add email accounts to the system, and not have to use a database for his mail users. So there you go. On Thu, 2003-02-20 at 09:30, Jason Sheets wrote: I would highly recommend against doing this, this would work but it

Re: [PHP] Correct number format (curency)

2003-02-20 Thread Bas Jobsen
Example 1.000,00 1000.00 1,000.00 I would like to convert those to a single format 1000.00 ? function money($money) { /* written by [EMAIL PROTECTED] */ $money=str_replace(array(',','.'),'',$money); $money=substr($money,0,strlen($money)-2).'.'.substr($money,-2); } $money='1.000,00';

[PHP] Re: smarty vs. patTemplate vs. includes - newbie q

2003-02-20 Thread neko
A great article on PHP and template engines can be found here: http://phppatterns.com/index.php/article/articleview/4/1/1/ The opinon of the author is that template engines might not be worth your time, and I'm inclined to agree. I'd rather develop a more comprehensive CMF which limits what the

Re: [PHP] Display strings with single quotes

2003-02-20 Thread Tom Rogers
Hi, Thursday, February 20, 2003, 9:34:03 PM, you wrote: Rec Hi all, Rec Have simple but annoying issue, I want to display a string within an Rec input field. This string contains ' so when it's being display the, Rec anything after the ' is being left out. Here is the code I'm using:

[PHP] Test

2003-02-20 Thread Robert E. Harvey, M.D.
This is a test message. I sent a real message last night and apparently it didn't make it to the server. Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Display strings with single quotes

2003-02-20 Thread Ernest E Vogelsinger
At 13:41 20.02.2003, Jason Wong spoke out and said: [snip] On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote: htmlentities won't work with single quotes, use addslashes: Actually just (only) htmlentities() will do. See manual for options

Re: [PHP] Test

2003-02-20 Thread 1LT John W. Holmes
This is a test message. I sent a real message last night and apparently it didn't make it to the server. So this is not a real message? Do I exist? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Test

2003-02-20 Thread Ernest E Vogelsinger
At 16:07 20.02.2003, 1LT John W. Holmes spoke out and said: [snip] This is a test message. I sent a real message last night and apparently it didn't make it to the server. So this is not a real message? Do I exist?

[PHP] Re: server side including

2003-02-20 Thread Hans Prins
$HTTP_SERVER_VARS['REQUEST_URI'] did the trick Hans Prins [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Im have a script.php which needs to be able to tell if it has been included in an .shtml file or not... e.g. if included is true: do this, else: do

[PHP] wfrite and chmod security stuff

2003-02-20 Thread Wilbert Enserink
hi all I'm trying to do the following: a user can log in on a site where he/she can change the contents of a css-stylesheet file with the aid of forms. The results of the form input are used to wrie a css file on the webserver which later will be used in the HTML files of the website. I know

[PHP] Splitting Article Into Multiple Pages

2003-02-20 Thread Alan McCoy
Greetings! I have a MySQL database of essays that contain some pretty long articles. I'm using PHP and instead of throwing all the text up on one mile-long page, I'd like to be able to automagically break up the article among multiple pages. I had thought about using multiple text areas for

Re: [PHP] TrueType + GD (ImageTTFBox)

2003-02-20 Thread Jesse Guardiani
I fixed this yesterday. I'm not sure what exactly fixed it, but I can tell the list what I did: 1.) Removed distribution directory ENTIRELY. rm config.cache just wasn't enough I think. 2.) Configured with the following: ./configure --with-mysql=/usr/local/mysql \

Re: [PHP] Display strings with single quotes

2003-02-20 Thread 1LT John W. Holmes
Thursday, February 20, 2003, 9:34:03 PM, you wrote: Rec Hi all, Rec Have simple but annoying issue, I want to display a string within an Rec input field. This string contains ' so when it's being display the, Rec anything after the ' is being left out. Here is the code I'm using:

[PHP] passing content of file as argument

2003-02-20 Thread William S.
I would like to pass the content of ./doc_test2.xml as an argument. How would I alter the file below to accomplish this? Do I need to change the stylesheet as well? begin *.php ?php $xml = ./doc_test.xml; $xsl = ./doc_test.xsl; $mydata = ./doc_test2.xml; $arguments = array();

Re: [PHP] Splitting Article Into Multiple Pages

2003-02-20 Thread 1LT John W. Holmes
If you use the pagebreak method, you could use: $part = explode(pagebreak,$text); to break apart the essay. Then echo $part[0] for page 1, $part[1] for page 2, etc... I'm sure there are other ways. ---John Holmes... - Original Message - From: Alan McCoy [EMAIL PROTECTED] To: [EMAIL

[PHP] Reading remote image into a file and displaying..

2003-02-20 Thread Chad Day
I'm trying to get weather channel information without using their form to submit the zip code .. the url format is : http://oap.weather.com/fcgi-bin/oap/generate_magnet?loc_id=$ZIPcode=689861; destination=$ZIP so I tried: $weatherfile =

Re: [PHP] Re: Redirect without header or javascipt

2003-02-20 Thread Chris Shiflett
--- Daniel Guerrier [EMAIL PROTECTED] wrote: Is there any to redirect in php with using header() and without the use of javascript? Yes: header('Location: http://www.php.net/'); If we are meant to answer your subject and not your message, then use a meta HTML tag. Chris -- PHP General

Re: [PHP] HTTP_RAW_POST_DATA

2003-02-20 Thread Chris Shiflett
--- Sam Minnee [EMAIL PROTECTED] wrote: I'm having a couple of problems getting PHP to accept my post data. Specifically, the data I am sending is not with POST, put with PUT and PROPFIND. I'm implementing WebDAV within PHP. How to I get PHP to set $HTTP_RAW_POST_DATA for all methods where

[PHP] List folder contents with links?

2003-02-20 Thread MIKE YRABEDRA
Is it possible to display the contents of a given folder, list them , and make them links? -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock

RE: [PHP] Re: register_globals On

2003-02-20 Thread Johnson, Kirk
-Original Message- An alternative... 1. register_globals off use the command import_request_variables(PC,_p); now you can get the variables like user as $p_user. The get variables will be ignored! Still, If a user developes a special browser, exclusively to hack, he may be

Re: [PHP] List folder contents with links?

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 11:33:19 -0500, you wrote: Is it possible to display the contents of a given folder, list them , and make them links? http://www.php.net/manual/en/function.readdir.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] List folder contents with links?

2003-02-20 Thread 1LT John W. Holmes
Is it possible to display the contents of a given folder, list them , and make them links? Yes. ---John Holmes... PS: www.php.net/readdir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing content of file as argument-SOLVED-

2003-02-20 Thread William S.
Please disregard the previous post. I figured it out. On Thu, Feb 20, 2003 at 04:24:00PM +0100, William S. wrote: I would like to pass the content of ./doc_test2.xml as an argument. How would I alter the file below to accomplish this? Do I need to change the stylesheet as well? -- Bill

Re: [PHP] List folder contents with links?

2003-02-20 Thread MIKE YRABEDRA
on 2/20/03 11:49 AM, David Otton at [EMAIL PROTECTED] wrote: Is it possible to display the contents of a given folder, list them , and make them links? http://www.php.net/manual/en/function.readdir.php Thanks :-) -- Mike Yrabedra President 323, Inc. Home of The MacDock and The

Re: [PHP] List folder contents with links?

2003-02-20 Thread CodersNightMare
You can also take a look at: http://www.php.net/manual/en/function.opendir.php Hope this helps. At 11:54 AM 2/20/2003 -0500, you wrote: on 2/20/03 11:49 AM, David Otton at [EMAIL PROTECTED] wrote: Is it possible to display the contents of a given folder, list them , and make them links?

RE: [PHP] AUTH (.htaccess style)

2003-02-20 Thread Mark Cubitt
it will probely need abit of work to be used in your set up, for one i use postgresql not mysql, but hopefully it will be a start also if you or anybody else can suggest any improvements please say as they will be a help p.s. i'm not a security expert so this is probely not very secure ?php //

RE: [PHP] AUTH (.htaccess style)

2003-02-20 Thread Mark Cubitt
This mail doesn't seem to have gone through first time so here it is again, sorry if the first mail does eventually turn up. it will probely need abit of work to be used in your set up, for one i use postgresql not mysql, but hopefully it will be a start also if you or anybody else can suggest

[PHP] Smarty and FAI

2003-02-20 Thread user
Hi, My provider is free.Fr chmod is disabled Is it possible to use Smarty on my web pages ? thanks for your answer Guillaume -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php and mysql

2003-02-20 Thread Tyler Durdin
When using a php script to pull recorda from a db how can I cut the records at 1/4 of the total and arrange them alaphabetically according to a certain field? Thanks in advance. _ MSN 8 helps eliminate e-mail viruses. Get 2

Re: [PHP] Reading remote image into a file and displaying..

2003-02-20 Thread Mincu Alexandru
use header(Content-type: image/jpeg); and then you can echo it's content. On Thu, 2003-02-20 at 17:30, Chad Day wrote: I'm trying to get weather channel information without using their form to submit the zip code .. the url format is :

Re: [PHP] RSA implementation

2003-02-20 Thread Matt Vos
So forward the ports (80,443) to a box that u can run a webserver on, then you can user SSL. Matt - Original Message - From: José León Serna [EMAIL PROTECTED] To: Matt Vos [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 5:28 AM Subject: Re: [PHP] RSA

Re: [PHP] Smarty and FAI

2003-02-20 Thread Ernest E Vogelsinger
At 18:27 20.02.2003, [EMAIL PROTECTED] spoke out and said: Please use a real email address when posting to this list, thank you. -- O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] php and mysql

2003-02-20 Thread David Otton
On Thu, 20 Feb 2003 17:44:51 +, you wrote: When using a php script to pull recorda from a db how can I cut the records at 1/4 of the total and arrange them alaphabetically according to a certain field? Thanks in advance. http://www.mysql.com/doc/en/SELECT.html LIMIT and ORDER BY. This is

[PHP] sessions

2003-02-20 Thread Joseph Bannon
I'm starting to use sessions for my website and wanted to know some things before I fully commit to use them. 1) How are sessions different from cookies other than where the information is stored? 2) Does session data stored on the server automatically delete after a certain time? 3) Is a

RE: [PHP] sorting multi-dimensional array

2003-02-20 Thread Steve Buehler
This would work (and might still if I changed things), but the part that calls it is in another function also. Steve At 02:35 PM 2/20/2003 +, you wrote: -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED]] Sent: 20 February 2003 05:25 Ahhhfinally did it with

RE: [PHP] php and mysql

2003-02-20 Thread Kelly Protsko
I'm not sure what you mean by cut the records at 1/4, if you mean only bringing back 1/4 of the rows you could use the LIMIT clause in your sql statement and give it a number of rows you want brought back. To sort alphabetically just use the order by command in SQL So your query would look

Re: [PHP] array values format

2003-02-20 Thread janet
In a message dated 2/19/2003 8:44:53 PM Pacific Standard Time, [EMAIL PROTECTED] writes: I have a problem here in array manipulations. I need an output like this from the queried data : data1,data2,data3 Any idea how? thanx in advance $string = ''.implode(',',$testarray).''; Janet

[PHP] simple ereg question

2003-02-20 Thread Robert E. Harvey, M.D.
Hello folks, I'd like to verify input data transferred from a form and make sure it is numeric data or null before my program executes. I am using this syntax, which doesn't work: for ($i=1;$i=3;$i++) { if (ereg('[0-9]+','$_POST[gamt_$i]')) { continue; } else { die(Non-numeric

Re: [PHP] simple ereg question

2003-02-20 Thread Greg Donald
On Thu, 20 Feb 2003, Robert E. Harvey, M.D. wrote: I'd like to verify input data transferred from a form and make sure it is numeric data or null before my program executes. I am using this syntax, which doesn't work: for ($i=1;$i=3;$i++) { if (ereg('[0-9]+','$_POST[gamt_$i]')) {

RE: [PHP] simple ereg question

2003-02-20 Thread Kelly Protsko
Did you try this syntax yet? The with the ^ and $search matching beginning and end I tested out the code myself and it worked fine. http://www.theoutersphere.com/testing/testnumbers.php //here is the exact code that I used echo $_POST[vari] .br; if (eregi('^[0-9]+$',$_POST[vari]) ||

Re: [PHP] simple ereg question

2003-02-20 Thread Leif K-Brooks
Change to:No, the double quotes are needed so that $i will be parsed. The problem is the single quotes around $_POST[gamt_$i]. if (ereg('[0-9]+',$_POST[gamt_$i]) Greg Donald wrote: On Thu, 20 Feb 2003, Robert E. Harvey, M.D. wrote: I'd like to verify input data transferred from a form

Re: [PHP] sessions

2003-02-20 Thread Chris Shiflett
--- Joseph Bannon [EMAIL PROTECTED] wrote: 1) How are sessions different from cookies other than where the information is stored? Cookies are a state management mechanism. PHP's session management (depending on how it is configured, of course) uses either cookies or URL variables for

Re: [PHP] Reading remote image into a file and displaying..

2003-02-20 Thread Michael Mulligan
More specifically (since I just dealt with this issue myself), use fpassthru (and be sure not to fclose the file pointer as it's automatically done by fpassthru) On 02/20/03 12:47 PM, Mincu Alexandru [EMAIL PROTECTED] wrote: use header(Content-type: image/jpeg); and then you can echo it's

[PHP] sorting multi-dimensional array part 2

2003-02-20 Thread Steve Buehler
The following Seems to work. But does anybody know how reliable this might be? Baically, I have a multi-dimensional array and want to sort by one column first, than another than another. Right now, I am using a temporary table in MySQL, but want to speed things up if possible. The command

RE: [PHP] Correct number format (curency)

2003-02-20 Thread Dennis Cole
This should also work, without any problems. - Php Code -- ? $total = 1.000,00; $total = str_replace(',','',$total); echo number_format($total, 2, '.', ''); ? - End PHP Code -- - Original Message - From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20,

[PHP] Derive bottom-most dir from string???

2003-02-20 Thread Shawn McKenzie
Is there an easy way to derive the bottom-most directory from a string containing a path? Example: $somepath = html/testsite/templates/shopping; Becomes: shopping TIA -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Opendir listing

2003-02-20 Thread MIKE YRABEDRA
How do I remove the '.' and '..' from displaying with the following script? I want just the files, not the dots. ?php if ($handle = opendir('graphics/')) { echo Files:br\n; /* This is the correct way to loop over the directory. */ while (false !== ($file = readdir($handle))) {

[PHP] Re: Derive bottom-most dir from string???

2003-02-20 Thread Shawn McKenzie
Sorry... Think I was over complicating it. Seems the last element of $somearray from $somearray = explode(/, $somepath); will work well. Thanks! Shawn Shawn McKenzie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there an easy way to derive the bottom-most

[PHP] Re: Derive bottom-most dir from string???

2003-02-20 Thread Philip Hallstrom
see the basename() function On Thu, 20 Feb 2003, Shawn McKenzie wrote: Is there an easy way to derive the bottom-most directory from a string containing a path? Example: $somepath = html/testsite/templates/shopping; Becomes: shopping TIA -Shawn -- PHP General Mailing List

[PHP] end of the loop.

2003-02-20 Thread Didier McGillis
I have a question. I need to setup something so it goes through a dynamic list, the length of the list changes, gets the contents of the list and seperate each element with a ^ (carot), except for the last one. So it looks like this. number=0^1^2^3 How do I make sure that it does append a ^

Re: [PHP] end of the loop.

2003-02-20 Thread Leif K-Brooks
If the list is an array, try implode()ing it. Didier McGillis wrote: I have a question. I need to setup something so it goes through a dynamic list, the length of the list changes, gets the contents of the list and seperate each element with a ^ (carot), except for the last one. So it

Re: [PHP] Opendir listing

2003-02-20 Thread MIKE YRABEDRA
on 2/20/03 3:34 PM, MIKE YRABEDRA at [EMAIL PROTECTED] wrote: How do I remove the '.' and '..' from displaying with the following script? I want just the files, not the dots. ?php if ($handle = opendir('graphics/')) { echo Files:br\n; /* This is the correct way to loop over the

[PHP] missing simple php functionality

2003-02-20 Thread ML
Hello all. Im having a strange problem. My php outputs html correctly, and Ive tried other builtin functions like date and that works too. But when I try to do something as simple as passing a value from a form to a php file and display that value, no go. the HTML: html body h1Enter

RE: [PHP] missing simple php functionality

2003-02-20 Thread Johnson, Kirk
The field name in the form is user_name, and the echo is for name. Are you copying the value from $user_name to $name at some point? Kirk -Original Message- From: ML [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 2:04 PM To: [EMAIL PROTECTED] Subject: [PHP] missing

[PHP] Rounding

2003-02-20 Thread Van Andel, Robbert
How do I round a number to the nearest 10 or even 5. Say I have a number like 12. Is there an easy way to round that up to 15 or 20? Robbert van Andel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] missing simple php functionality

2003-02-20 Thread Ernest E Vogelsinger
At 22:04 20.02.2003, ML spoke out and said: [snip] the HTML: html body h1Enter Your Name/h1 form action=simplephp.php action=POST input type=text size=20 maxlength=20 name=user_name input type=submit value=Submit Your Name /form

Re: [PHP] Rounding

2003-02-20 Thread Ernest E Vogelsinger
At 22:17 20.02.2003, Van Andel, Robbert spoke out and said: [snip] How do I round a number to the nearest 10 or even 5. Say I have a number like 12. Is there an easy way to round that up to 15 or 20? [snip]

Re: [PHP] Rounding

2003-02-20 Thread Jason Wong
On Friday 21 February 2003 05:17, Van Andel, Robbert wrote: How do I round a number to the nearest 10 or even 5. Say I have a number like 12. Is there an easy way to round that up to 15 or 20? To round to the nearest 5: Divide by 5 Round to the nearest integer Multiply by 5 I'll leave

Re: [PHP] Can I do this? header(Content-type: text/rtf);

2003-02-20 Thread John Taylor-Johnston
Works great. Thanks, John I'm using PHP MySQL to generate a RTF document. I use this header: header(Content-type: text/rtf); header(Content-Disposition: attachment; filename=myfile.rtf); -- John Taylor-Johnston - If

  1   2   >