[PHP] Database Persistance Layer

2003-02-20 Thread Joe Njeru
Hi All, I have developed some code based on open source DBPL by Shawn Bedard of Jig Technologies. It works fine but is about 10 times slower than my normal Data Classes. My web application will be handling lots of data for a small-medium sized (50 employees) organization. I think the speed reducti

[PHP] mysql_fetch problem

2003-02-20 Thread Alec Solway
I have the following call: SELECT * FROM facility LEFT JOIN fuel USING(facilityID) LEFT JOIN fuelType ON fuel.TypeID=fuelType.ID WHERE facility.facilityID=$facilityID The data is returned properly using mysql_fetch_row(), but mysql_fetch_assoc() and mysql_fetch_object() set the ID of the facili

Re: [PHP] Forms and MySql date

2003-02-20 Thread Frank Keessen
Hi, You can let the users enter a date as 20-02-2003 into a textfield with the name $userdate Then you can use this function to convert it; $date_array = split("-", $userdate); $mysqldate = $date_array[2]."-".$date_array[1]."-".$date_array[0]; Store $mysqldate into the database! Regards, Fran

Re: [PHP] php_mcrypt.dll

2003-02-20 Thread Bob Irwin
Did you try the php.net website? Because I haven't used it, I can't help you other than doing a quick google search which produces the following link - which contains information on a workaround for a similar problem. Do a find on the page for 'failed'. http://si.php.net:/manual/en/ref.mcryp

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Leo Spalteholz
On February 20, 2003 08:13 pm, Jason Sheets wrote: > MAC addresses are used for on a LAN and not the Internet. Using a > MAC address might work for identification on a LAN BUT in most > operating systems you can easily change the effective MAC address > on the card. Good call. I thought there wa

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Chris Cook
I have used MAC address authentication using the arp table and it worked for what I used it for, but it does only work over the local network and spoofing is an issue. Using a cookie in conjuction with a MAC address helps the authentication, but it sounds like SSL is the way to go... Does anyon

[PHP] Regarding cache problem (fwd)

2003-02-20 Thread J.F.Kishor
Hi all, I am attaching the php file that will display a circle and on top of it, it will show the current time. When its reloaded using the browser's reload option. updated time is displayed. If the url is typed in the address bar and the request is sent, it doesnt display updated ti

[PHP] php_mcrypt.dll

2003-02-20 Thread Daniel Guerrier
I'm trying to use the mcrypt function on winXP using php 4.3.1 and IIS 5. First the dll would not load but I got past that by placing the libmcrypt.dll in my system32. Now it loads but when I try to use mcrypt I get Warning: mcrypt_encrypt(): Module initialization failed in E:\IIS\wwwroot\saveh

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Jason Sheets
MAC addresses are used for on a LAN and not the Internet. Using a MAC address might work for identification on a LAN BUT in most operating systems you can easily change the effective MAC address on the card. It would probably be better to look for some other form of identification like SSL certif

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Ray Hunter
Remember that the mac address gets changed by devices on the network... -- Ray On Thu, 2003-02-20 at 20:29, Leo Spalteholz wrote: > I've been thinking about how to do authentication and user recognition > for my site without cookies. I had this idea but I don't really know > if its possible at

[PHP] MAC address user recognition?

2003-02-20 Thread Leo Spalteholz
I've been thinking about how to do authentication and user recognition for my site without cookies. I had this idea but I don't really know if its possible at all. If I got the IP address from the request could I use ARP to get the MAC address for that IP? If so I could compare that MAC addres

Re: [PHP] sessions

2003-02-20 Thread Justin French
on 21/02/03 5:34 AM, Joseph Bannon ([EMAIL PROTECTED]) wrote: > 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? A session is just a method

Re: [PHP] Computer Authorization

2003-02-20 Thread Ernest E Vogelsinger
At 01:59 21.02.2003, Chris Cook said: [snip] >I am looking into an application that only specific computers can access. A >login does not work since we only want people to log in from certain >computers. IP numbers dont work since they are dynamic. Cookies

Re: [PHP] Computer Authorization

2003-02-20 Thread Chris Knipe
You can also maybe look at client side SSL Certificates... - Original Message - From: "Chris Cook" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 2:59 AM Subject: [PHP] Computer Authorization > Hello all, > > I am looking into an application that only specif

Re: [PHP] Computer Authorization

2003-02-20 Thread Chris Cook
Can I get the any of this information through php or do I need adjust the settings on the server. Doing it through php is preferable... I was also thinking of having an application installed on the client to gather information and send it to my php script. However, I have little idea where to s

[PHP] Re: AUTH (.htaccess style)

2003-02-20 Thread Sebastian
Can someone test this code, It prompts to login, but does not accept my username and or password .. I have a feeling its a server configuration problem but i need someone to help me confirm it. Running php version 4.2.3. Apache/1.3.27 - I have tried using $_SERVER['PHP_AUTH_USER'] and $HTTP_SERV

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

2003-02-20 Thread John W. Holmes
> I'm designing a site with about 100 different pages. I'm debating whether > to > use a template mechanism such as smarty or patTemplate vs just creating > pages and including the body templates based on the url parameters. I > realize you get a layer of abstraction using the template mechanisms,

[PHP] RE: Calling a COM object

2003-02-20 Thread YC Nyon
Hi, Is there a tutorial on how to call COM objects in PHP? My PHP runs on Windows. TIA nyon --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003 -- PHP General Mailing List (htt

RE: [PHP] Computer Authorization

2003-02-20 Thread Chris Cook
thanks for the response. I have tried MAC addresses. I get them from the arp table. The only problem is that the arp table is no longer available outside of the local network. Can I get them from else where? Any more suggestions? Thanks, Chris From: "Rich Gray" <[EMAIL PROTECTED]> To: "Chris

RE: [PHP] Smarty and FAI

2003-02-20 Thread John W. Holmes
> My provider is free.Fr > chmod is disabled > > Is it possible to use Smarty on my web pages ? You have to chmod one of the Smarty directories so Smarty can write it's cache to it. Maybe this can be disabled, though, I'm not sure. So if you mean you can never chmod a file and smarty requires it

RE: [PHP] Computer Authorization

2003-02-20 Thread John W. Holmes
> I am looking into an application that only specific computers can access. > A > login does not work since we only want people to log in from certain > computers. IP numbers dont work since they are dynamic. Cookies work > temporarily, but are often deleted and are not the most secure route. Any >

RE: [PHP] simple ereg question

2003-02-20 Thread John W. Holmes
> 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 > { >

Re: [PHP] Computer Authorization

2003-02-20 Thread Ray Hunter
domain name, wins, kerberos, nis, mac-address those might be what you need... if you are using dhcp then you can get the ip information from the dhcp number based on the mac address... but remember that these can be spoofed... On Thu, 2003-02-20 at 17:59, Chris Cook wrote: > Hello all, > > I a

[PHP] Computer Authorization

2003-02-20 Thread Chris Cook
Hello all, I am looking into an application that only specific computers can access. A login does not work since we only want people to log in from certain computers. IP numbers dont work since they are dynamic. Cookies work temporarily, but are often deleted and are not the most secure route.

RE: [PHP] Re: Cannot add header information

2003-02-20 Thread John W. Holmes
> Guys, Guys, why are you harrasing this poor chap? > > one sure simple way is.. > at the begining > ob_start(); > > > Starts output beffering.. and at the end, > > ob_end_flush(); > ?> > Throws out all the buffered output to the browser at the other end. > > now add header info any p

Re: [PHP] Class VS Functions

2003-02-20 Thread Tom Rogers
Hi, Friday, February 21, 2003, 9:41:46 AM, you wrote: CF> Hi. CF> I'm newbie in php (i'm in php about 1 year +/-), and after i read a lots of CF> docs showing the possibilities in php coding with Class's but the true is CF> that the "reability" of the code with Class's i steal can make the same w

[PHP] LDAP next prev howto

2003-02-20 Thread Roger Thomas
is it possible to retrieve a bunch of records from an ldap tree and do a next-prev navigation on those records ? example script pls. -- roger __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP Gen

Re: [PHP] string manipulation

2003-02-20 Thread Joachim Krebs
This is the best method echo substr(strrchr($string, $char), 1); On 21 February 2003 at 00:13:02, Gregory Heinrichs wrote: > little help please, looking for correct functions to use to search for the > last occurrence of a character in a string and truncate everything in > front of i

RE: [PHP] string manipulation

2003-02-20 Thread Kelly Protsko
Use strrpos() which will find the last occurrence of something in a string then just use substr() to pull everything from that point on in the string. Kelly -Original Message- From: Gregory Heinrichs [mailto:[EMAIL PROTECTED]] Sent: February 20, 2003 5:13 PM To: [EMAIL PROTECTED] Subject

Re: [PHP] string manipulation

2003-02-20 Thread Leif K-Brooks
Try this (untested): print preg_replace('|<[^<]*$|','$1',$text); Gregory Heinrichs wrote: little help please, looking for correct functions to use to search for the last occurrence of a character in a string and truncate everything in front of it including the searched for character.< --

[PHP] string manipulation

2003-02-20 Thread Gregory Heinrichs
little help please, looking for correct functions to use to search for the last occurrence of a character in a string and truncate everything in front of it including the searched for character.< -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

[PHP] Class VS Functions

2003-02-20 Thread Cláudio Franco
Hi. I'm newbie in php (i'm in php about 1 year +/-), and after i read a lots of docs showing the possibilities in php coding with Class's but the true is that the "reability" of the code with Class's i steal can make the same with normal functions. I ask for the ppl, to give me examples (theorics

Re: [PHP] Rounding

2003-02-20 Thread Steve Keller
At 2/21/2003 05:29 AM, Jason Wong wrote: > To round to the nearest 5: > > Divide by 5 > Round to the nearest integer > Multiply by 5 Modulus by 5 Subtract the result from the original number. Of course, my way depends on whether you're rounding up or down. -- S. Keller UI Engineer The Healt

[PHP] Re: Forms and MySql date

2003-02-20 Thread Philip Hallstrom
You could use the TO_DATE function to convert that text string into a date, or reformat it in PHP to -mm-dd which mysql will take automatically (at least I think so) On Thu, 20 Feb 2003, Mike Tuller wrote: > I have a form that I want to enter a date into a MySql database. I > currently have t

Re: [PHP] Forms and MySql date

2003-02-20 Thread Rick Emery
mysql stores date as -mm-dd that is how the date should be entered into the form If entered in another format, you can reformat it. - Original Message - From: "Mike Tuller" <[EMAIL PROTECTED]> To: "php mailing list list" <[EMAIL PROTECTED]> Sent: Thursday, February 20, 2003 4:43 PM S

[PHP] Forms and MySql date

2003-02-20 Thread Mike Tuller
I have a form that I want to enter a date into a MySql database. I currently have the column in the database set as Date, and can't seem to get the date I enter into the text field to go into the database using the format yymmdd. I could change the column to varchar, and then it would enter, but th

[PHP] Looking for a Junior PHP/mySQL programmer - Sydney.AU

2003-02-20 Thread Skeeve Stevens
Excuse the cross-post... We're looking for a Junior PHP/mySQL programmer in Seven Hills in Sydney.AU The position will be on a fulltime basis. We are a Broadband ISP dealing with Request Broadband and other providers. We are not looking for a super-qualified programmer as we are willing to trai

Re: [PHP] missing simple php functionality

2003-02-20 Thread Michael Lemmerling
Actually I believe it was the registers global which I had already changed. I just didnt get to see the results of changing it becuase I did mess that user_name vs. name part up...but at least now I know to remember setting or unsetting registerglobals. Thanks! -ML -- PHP General Mailing List

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 ---

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 leav

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] functi

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: > > >Enter Your Name > > > > > > > >the PHP file: >echo "Your name is $name"; >?> > >I fill in my name, I click submit, and where the name should be displayed it

[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 Johnson, Kirk
The field name in the 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] 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: Enter Your Name

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. > > if ($handle = opendir('graphics/')) { > echo "Files:\n"; > > /* This is the correct way to loop over the dir

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 looks

[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 ^

[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 Mai

[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 botto

[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. \n"; /* This is the correct way to loop over the directory. */ while (false !== ($file = readdir($handle))) { echo "$file\n"; } closedir($handle); } ?> --

[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

RE: [PHP] Correct number format (curency)

2003-02-20 Thread Dennis Cole
This should also work, without any problems. - Php Code -- - End PHP Code -- - Original Message - From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 10:05 AM To: Robert Mena; php mailing list Subject: Re: [PHP] Correct number format (curency)

[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] 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

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 maintai

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] 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] .""; if (eregi('^[0-9]+$',$_POST[vari]) || $_P

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"]')) > {

[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] 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).'"'; J

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 like

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 wit

[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 sessio

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

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: htt

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 impleme

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 : > > http://oap.weather.com/fcgi-bin/oap/generate_magnet?

[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 mont

[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

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 an

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 regards

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] 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 M

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 Awlad Hussain
Yes it is, read the directory section in PHP Manual. - Original Message - From: "MIKE YRABEDRA" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, February 20, 2003 4:33 PM Subject: [PHP] List folder contents with links? > > > Is it possible to display the contents

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

[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] 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

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 M

[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=$ZIP&code=689861&; destination=$ZIP so I tried: $weatherfile = readfile("http://oap.weather.com/fcgi-bin/oap/generate_ma

Re: [PHP] Splitting Article Into Multiple Pages

2003-02-20 Thread 1LT John W. Holmes
If you use the method, you could use: $part = explode("",$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 PROTECTED]> Se

[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 %s", xslt_errno($_parser), xslt_error($_parser) ); } ob_end_clean(); xslt_free($_parser); e

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

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 \ --with-apxs=

[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 break

[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 h

[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:

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? [snip]---

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] 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 option

[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 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 usin

[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 u

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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 woul

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 rewri

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: > > > >but it would be nice to totall

  1   2   >