Re: [PHP] how to time an http request

2002-09-19 Thread Petr Tomenendál
If you want a tool to test HTTP server responses, then i can recommend Siege. You can specify number of simultaneous requests and URL/URLs to be tested. For more info look at: http://www.joedog.org/siege/index.shtml P. On Thu, 2002-09-19 at 01:12, Lee Doolan wrote: is there a program

RE: [PHP] Unserialize stopped working after php db upgrade

2002-09-19 Thread Martin Towell
If you've seen a serialised variable a few times, you get to know how one is set up and how to interpret it. If you're using serialised variables, I'd suggest serialising a few simple ones and see what the output looks like so that you can see when things are going amiss. This is one way that I

[PHP] Encrypting/Decrypting Data

2002-09-19 Thread [-^-!-%-
Hello. How do you decrypt a data that's encrypted with crypt($data). Now, the php documents says crypt() is a one-way crypting function, so there is no decrypt() function. I was wondering if someone could shed some light on alternative ways to encrypt decrypt data. I've looked at

[PHP] Simultaneous system(),passthru()... commands. HELP PLEASE !!!

2002-09-19 Thread Jean-Marc Godart
Hello everyone, I am using PHP with Windows XP. I am trying to have a .exe program (written and compiled in C) launched by my PHP script, using either system(), passthru()... That works great ... as long as I only have one request at a time. When I have two (or more request) at the same time

[PHP] parallel connections with php

2002-09-19 Thread Jens
i programmed a metasearchengine with php - it works but it is to slow. does someone know how to do parallel connections to searchengines ? Let s say i have 4 php scripts - each script gets data from a searchengine. I have included those 4 script in my resutl html page (via include..) - but i

[PHP] Return array from extension

2002-09-19 Thread Ole Stakemann
Hi This is probably a stupid question, but I can't figure it out. I've been trying to search the PHP site for an answer without luck. I want to return results in an array from an extension. The array may or may not be defined. The array may or may not contain values. The PHP function could

[PHP] Fw: [PHP-DEV] and so... there is a security problem.

2002-09-19 Thread Vergoz Michael \(SYSDOOR\)
- Original Message - From: Vergoz Michael (SYSDOOR) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 12:38 PM Subject: [PHP-DEV] and so... there is a security problem. Hi list, i think that you have to return a _s64 per default, cuz for exemple i'm using some

php-general Digest 19 Sep 2002 11:01:14 -0000 Issue 1594

2002-09-19 Thread php-general-digest-help
php-general Digest 19 Sep 2002 11:01:14 - Issue 1594 Topics (messages 116803 through 116856): How to approach a new project? 116803 by: Wm Re: Join in MySQL-select doesn't work 116804 by: David Robley mysql_query w/ JOIN results giving unexpected results w/ PHP (not

[PHP] Messaging Solution Please Advice

2002-09-19 Thread karthikeyan
Hi All, I posted this question before but didn't get proper response may be I didn't explain it properly. This is what is our clients requirement. Guide me through this as to how to accomplish this in PHP. The first part that will need to have a direct interaction with SYSTEM must be

[PHP] British Pound

2002-09-19 Thread karthikeyan
Hi all, How do i display British Pound through PHP. I can right now display Dollar Symbol but how do i display British Pound. karthikeyan.

[PHP] about $_post

2002-09-19 Thread Meltem Demirkus
Hi, I just want to learn if there is any differen between $_POST[ID] and $_POST['ID'] ..If there is.. does it cause a problem ?.. thanks meltem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: How to approach a new project?

2002-09-19 Thread Tim Ward
first thing is get the data structure right - third normal form at least. table1: date group table2: group exercise weight reps or something like that. get the data model right and reports and input forms write themselves, get the structure wrong and everything becomes really difficult.

RE: [PHP] British Pound

2002-09-19 Thread Richard Black
I assume you mean how do you display a British Pound in HTML The escape pound; Should do what you want. HTH Richy == Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED]

[PHP] RE: use of mysql_free_result (was Re: [PHP] Efficiency)

2002-09-19 Thread Tim Ward
if your query is within a loop then it would probably help, e.g. for ($i = 1; $i = 1000; $i++) { $result = mysql_query(...); ... } in this case as $result is a resource identifier then reusing it doesn't release the original result. Tim Ward www.chessish.com

[PHP] RE: redefining a function

2002-09-19 Thread Tim Ward
is using classes an option? Tim Ward www.chessish.com -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: 19 September 2002 04:54 To: PHP General list Subject: redefining a function Hi, all -- Is there any way to redefine or undefine (to

[PHP] PHP Calendar

2002-09-19 Thread Rafic El-Hage
I have a PHP/mySQL calendar site and need to synchronize with my Outlook calendar. Has anyone out there done anything similar? Rafic -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] In a shared environment...

2002-09-19 Thread Bill Leonard
Hi all, Relative newbie here, and I am just coming to grips with something that I think is a very bad thing... Please tell me I am wrong. When using PHP, it is the Apache user that actually performs things, and therefore needs permissions. For example, if I want to write data to a file, I have

Re: [PHP] British Pound

2002-09-19 Thread Justin French
here's an ASCI chart for future reference :) http://www.main.org/no_index/clients/asci_codes.htm I think pound; works too, but I'd be going for the ASCI number. Justin on 19/09/02 9:32 PM, karthikeyan ([EMAIL PROTECTED]) wrote: Hi all, How do i display British Pound through PHP. I

RE: [PHP] about $_post

2002-09-19 Thread Cal Evans
Yes. $_POST[ID] Since there are no quotes around the variable name ID and no dollar sign in front of it, PHP will look for a constant named ID and if one is not found it will blow chow. $_POST['ID'] Should work find, assuming a variable named ID came from your form. However, I wouldn't get

Re: [PHP] In a shared environment...

2002-09-19 Thread Leonid Mamtchenkov
Dear Bill Leonard, Once you wrote about [PHP] In a shared environment...: Relative newbie here, and I am just coming to grips with something that I think is a very bad thing... Please tell me I am wrong. When using PHP, it is the Apache user that actually performs things, and therefore

Re: [PHP] RE: Weird problem with Windows XP and IE6

2002-09-19 Thread Marek Kilimajer
I just tested it (with wrong password) and it worked. Jason wrote: As an adendum to this... my initial thoughts are that the forms are not posting correctly in XP. I'm using the POST method. Jason Cathcart Check Out My Site: http://www.biohazardous.org -Original Message- From:

[PHP] PHP Execution Timer

2002-09-19 Thread -=[ Julien Bonastre ]=-
I have seen it on many sites now and since I have been using PHP for so long and done a huge amount of coding with it I thought it would add a nice touch and it could be used for statistical purposes to assist me in database effeciency and so forth. The idea is a page execution timer.. or a

[PHP] string division

2002-09-19 Thread Meltem Demirkus
which function divides astring to the pieces accorrding to another string. for example according to a comma .. thanks... meltem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] string division

2002-09-19 Thread Jay Blanchard
[snip] which function divides astring to the pieces accorrding to another string. for example according to a comma .. [/snip] explode() http://www.php.net/manual/en/function.explode.php HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Execution Timer

2002-09-19 Thread WEB MASTER
Easy, Put a code to the beginning of the page that takes the unix time stamp, and another one to the end. The difference is the execution time at the server side... -=[ Julien Bonastre ]=- wrote: I have seen it on many sites now and since I have been using PHP for so long and done a huge

Re: [PHP] string division

2002-09-19 Thread Chris Boget
which function divides astring to the pieces accorrding to another string. for example according to a comma .. explode(); Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string division

2002-09-19 Thread WEB MASTER
||string *strtok*| (string arg1, string arg2); | Meltem Demirkus wrote: which function divides astring to the pieces accorrding to another string. for example according to a comma .. thanks... meltem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] New problem - preg_match?

2002-09-19 Thread Marek Kilimajer
if $datetest has a strict format, use $getdate[1]==$datetest, also put $datetest=$day.month.$year out of the while loop, it doesn't need to be recreated over and over. Chad Winger wrote: Yes, I'm STILL a newbie :) I've gotten pretty far in a few days thanks to you all. I have a new question

[PHP] Check which PHP-Version a project needs?

2002-09-19 Thread Thomas -Balu- Walter
Hi all, is there any tool to check which PHP-Version a project needs at minimum? I am looking for something that crawls through the project and notices all php-functions, variables and such and tells which PHP-version is needed to get it running, because it's hard to keep track of e.g.

Re: [PHP] PHP Execution Timer

2002-09-19 Thread Justin French
on 20/09/02 12:03 AM, WEB MASTER ([EMAIL PROTECTED]) wrote: Easy, Put a code to the beginning of the page that takes the unix time stamp, and another one to the end. The difference is the execution time at the server side... microtime workds better, because most pages execute in under a

Re: [PHP] Check which PHP-Version a project needs?

2002-09-19 Thread Justin French
Nice idea!!! I'd be interested in contributing to such a project, if one doesn't already exist. Justin on 19/09/02 11:47 PM, Thomas -Balu- Walter ([EMAIL PROTECTED]) wrote: Hi all, is there any tool to check which PHP-Version a project needs at minimum? I am looking for something

RE: [PHP] include_path? programmatically

2002-09-19 Thread Ford, Mike [LSS]
-Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED]] Sent: 19 September 2002 01:56 I dont have access to the php.ini file, is there anyway to access the include_path setting programatically from php? Thanks ini_get()

[PHP] How to generate Excel files with PHP

2002-09-19 Thread Matti Simperi
Hi, does anyone know a lib or a module which can generate Excel files with PHP? Also commercial is fine. Matti Simperi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unserialize stopped working after php db upgrade

2002-09-19 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Geoff, I looked at the string. s:1745:s:1735:s:1725:s:1715:s:1705:s:1695:s:1685:s:1675:s:1665:s:1655:s:1645:s:1635:s:1625:s:1615:a:2:{ see all of the s's? It means that unserializer will produce a string that looks like was not unserialized(but

RE: [PHP] How to generate Excel files with PHP

2002-09-19 Thread Jay Blanchard
[snip] does anyone know a lib or a module which can generate Excel files with PHP? Also commercial is fine. [/snip] There are lists of articles, tutorials, and other stuff. http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=generate+Excel+files+ with+PHP An article I like ... watch wrap

RE: [PHP] How to generate Excel files with PHP

2002-09-19 Thread Daniel Kushner
Found this on phpclasses: http://phpclasses.websapp.com/browse.html/package/86.html Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Matti Simperi [mailto:[EMAIL PROTECTED]] Sent: Thursday, September

Re: [PHP] PHP Execution Timer

2002-09-19 Thread Justin French
on 19/09/02 11:37 PM, -=[ Julien Bonastre ]=- ([EMAIL PROTECTED]) wrote: I just want to know what function or module covers this feature.. If it is at all possible.. Top of your script: ? $timerOn = 1; // set to 0 if you want to turn it off $timestart = getmicrotime(); ? Bottom: ?

[PHP] Reports with PHP

2002-09-19 Thread José León Serna
Hello: What is the best and easiest way to generate reports from PHP? I supose is to generate XML and transform later to HTML, PDF or TXT, but is there any PHP library to help me create reports with page headers, detail bands, subdetails, summaries and so on?. Regards. -- PHP General

RE: [PHP] New problem - preg_match?

2002-09-19 Thread Ford, Mike [LSS]
-Original Message- From: Chad Winger [mailto:[EMAIL PROTECTED]] Sent: 19 September 2002 06:25 Still using my text file example, which has lines such as: 0706010102|01.01.02|16:00|Serie C2|02|Forlì|Florentia Viola| 0610010102|01.07.02|16:00|Serie C2|05|Florentia Viola|Gubbio|

[PHP] PHP source code

2002-09-19 Thread Oliver Witt
Hi, Is there any way to read php source code? I didn't think so until I heard about people you have done that... Kind regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP source code

2002-09-19 Thread Stephan Seidt
On Thu, 19 Sep 2002 16:50:16 +0200 [EMAIL PROTECTED] (Oliver Witt) wrote: Hi, Is there any way to read php source code? I didn't think so until I heard about people you have done that... Kind regards, Oliver Do you mean the source of php.net ? Try

[PHP] editor php

2002-09-19 Thread Gian Michele
Hi, does any body knows a cool editor for php that run under redhat 7.x and where i can find? tanks -- Gian Michele -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] editor php

2002-09-19 Thread Adam Williams
/bin/vi :) Adam On Thu, 19 Sep 2002, Gian Michele wrote: Hi, does any body knows a cool editor for php that run under redhat 7.x and where i can find? tanks -- Gian Michele -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] editor php

2002-09-19 Thread Steve Bradwell
Lol. Here, Here! -Original Message- From: Adam Williams [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:06 AM To: Gian Michele Cc: [EMAIL PROTECTED] Subject: Re: [PHP] editor php /bin/vi :) Adam On Thu, 19 Sep 2002, Gian Michele wrote: Hi,

Re: [PHP] editor php

2002-09-19 Thread John Wards
Zend Studio if you can afford it... www.zend.com My work paid for it aint I lucky. John Wards SportNetwork.net - Original Message - From: Gian Michele [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 4:57 PM Subject: [PHP] editor php Hi, does

Re: [PHP] editor php

2002-09-19 Thread Eric C. Pollitt
I haven't tried this, but it's a PHP Class named, EditPHP. http://spunge.mirrors.phpclasses.org/goto/browse.html/package/43.html Eric C. Pollitt, Founder 401 E. Illinois Ave. Peoria, IL 61603 Global Hemp - Portal to the hemp community http://www.globalhemp.com/ Hunt out places and soil

Re: [PHP] PHP source code

2002-09-19 Thread Joseph W. Goff
PHP is open source so anyone can get the source code to it. You can find it at http://www.php.net/downloads.php - Original Message - From: Oliver Witt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 9:50 AM Subject: [PHP] PHP source code Hi, Is there any

[PHP] Cannot Redeclare Function

2002-09-19 Thread Robert Miller
Hello, My function to read a comma separated text file and return a sorted multi-dimensional array will not work if used more than once per page. I know why I'm having this problem. But, I don't know how to solve it. :-( Calling it Twice: $services = tbl2array (../locations/service.txt,

[PHP] Re: Cannot Redeclare Function

2002-09-19 Thread Stephan Seidt
Looks like you may not redeclare functions generally. Because the function tbl2array can't be any kind of scope, the functions declared inside it will be globally declared. I think the solution is to take the functions like compname() out of tbl2array and declare them really global. On Thu, 19

[PHP] usort will not take variable

2002-09-19 Thread Robert Miller
Hello, Do you know the answer to this got'tcha? I want to call usort with a variable function name. Basically, I want usort to sort any field I specify. Currently, I'm stuck declaring a pile of functions and calling usort from if/elseif statements. :-( Current: function compname ($a, $b)

[PHP] Re: redefining a function

2002-09-19 Thread David T-G
Tim, et al -- ...and then Tim Ward said... % % is using classes an option? I don't know. I suppose I need to learn about classes :-) Where do I start? % % Tim Ward % www.chessish.com TIA HAND :-D -- David T-G * It's easier to fight for one's

[PHP] File Access...

2002-09-19 Thread Brian McGarvie
How could you redirect somone from directly accessing a file... Meaning... if an engine spiders www.domain.com/some.php How could you make some.php redirect to index.php However... the site is framed, and the menu uses content.php to display the selected content. Any ideas? -- PHP General

Re: [PHP] editor php

2002-09-19 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've used Quantaits an opensource project. http://quanta.sourceforge.net/ ~Pauly On Thursday 19 September 2002 11:57 am, Gian Michele wrote: Hi, does any body knows a cool editor for php that run under redhat 7.x and where i can find? tanks

[PHP] Re: File Access...

2002-09-19 Thread Stephan Seidt
I guess it is sth. like : ?php header('Redirect: http://www.domain.com/index.php'); ? If it doesnt work try www.php.net/header, there is an example. On Thu, 19 Sep 2002 17:21:15 +0100 [EMAIL PROTECTED] (Brian McGarvie) wrote: How could you redirect somone from directly accessing a file...

Re: [PHP] File Access...

2002-09-19 Thread Marek Kilimajer
put this to the begining of your some.php if (eregi(some.php,$PHP_SELF)) { Header(Location: index.php); die(); } Brian McGarvie wrote: How could you redirect somone from directly accessing a file... Meaning... if an engine spiders www.domain.com/some.php How could you make some.php

[PHP] Is php even right for this design?

2002-09-19 Thread William
I am interested in writing a large scale, cross platform payroll/hr/gl appl entirely in php + mysql Innodb (for transaction support). I have 2 php programmers 1 asp/foxpro/access programmer to help me. I see 4 big hurdles to overcome in my php design: Large Libraries, Long Processes,

Re: [PHP] Is php even right for this design?

2002-09-19 Thread Adam Voigt
1. Never had any problems with big includes before. 2. Maybe add a console based prog which sits in the background and process's jobs if you don't want to leave the web page open while it works, etc. 3. Make them PDF's (pdflib), we use it, and once you get programming in it, it's fairly easy. 4.

[PHP] Best practice question

2002-09-19 Thread Jon Haworth
Hi list, What are peoples' thoughts on one should always return a value from a function, even if it's always going to be true? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best practice question

2002-09-19 Thread Adam Voigt
One extra variable to be declared to catch the true (if you do try and catch it) and one extra line (the return line in the function), I'd say skip it if you know your never returning anything different. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-09-19 at 13:17, Jon Haworth wrote: Hi list,

RE: [PHP] Best practice question

2002-09-19 Thread Jon Haworth
Hi Adam, What are peoples' thoughts on one should always return a value from a function, even if it's always going to be true? I'd say skip it if you know your never returning anything different. Yeah, that's what I was leaning towards :-) What prompted the question was a

[PHP] Apache not parsing without .php on url?

2002-09-19 Thread Stefan
Hello, I have a new Apache 2.0.40 with PHP 4.2.3 installation on a Solaris x86 box. Configered in httpd.conf with: AddType application/x-httpd-php .php and LoadModule Parsing url´s with .php works fine, but i can´t figure out why it dosen´t work if i leave out the .phpextension in

[PHP] PDF Library Download

2002-09-19 Thread César Aracena
Hi all, As I told yesterday, I'm setting my first home server with PHP and would like to start adding libraries at runtime (if possible). I would like to start with the PDF library but don't even have a clue where to get it or any of the rest. Can anyone help me please? It would also help to

Re: [PHP] Is php even right for this design?

2002-09-19 Thread Geoff Hankerson
3)Reporting. I think I can get by with HTML reports for the most part. however checks and tax forms require precisely positioned reporting abilities. I think that I will be better off using an external reporting application (crystal,access,FoxPro etc) to generate these reports. But if

Re: [PHP] pardon the previous mis-topic

2002-09-19 Thread Tony Earnshaw
tor, 2002-09-19 kl. 05:27 skrev Monique Y. Herman: I'd started another question, realized the answer to it, and typed in another question without checking the subject ... mea culpa! The only one in the whole wide world I've ever seen apologize for this. Straight out, the only one. Go

Re: [PHP] PHP Installation

2002-09-19 Thread Tony Earnshaw
ons, 2002-09-18 kl. 20:00 skrev Sascha Braun: It told me at last something about the cgi installation and some things i dont understand, so i feel very insecure. Please help me a little. A ... den stakkars, stakkars Sascha :-( In the directory in which you ran './configure', did you by

[PHP] Re: PHP source code

2002-09-19 Thread Oliver Witt
Stephan Seidt schrieb: On Thu, 19 Sep 2002 16:50:16 +0200 [EMAIL PROTECTED] (Oliver Witt) wrote: Hi, Is there any way to read php source code? I didn't think so until I heard about people you have done that... Kind regards, Oliver If you mean php's source, download it ;) Well,

[PHP] Variables Case Sensitivity??

2002-09-19 Thread Georgie Casey
is there any way to make variables NOT case sensitive?? A partner is posting information to one of my PHP scripts and cant gurantee that variables passed will be lowercase -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP source code

2002-09-19 Thread Stephan Seidt
Then be sure that nobody is able to read it. Should be no problem ;) There is no possibility to read php source, the webserver will always count it as php file and the file will be parsed by php. Sure its possible to get the file over ftp, ssh, imap, etc, but this is the problem with all the

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Robert Cummings
Georgie Casey wrote: is there any way to make variables NOT case sensitive?? A partner is posting information to one of my PHP scripts and cant gurantee that variables passed will be lowercase Sure, whatever you use make it lower case, whataever he send, cook to lower case. Cheers, Rob. --

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Georgie Casey
yea, i probably didnt make that clear its the variables NAMES that he can't gurantee to be lowercase eg hell pass http://www.server.com/test.php?NAME=JohnIDNumber=12 when im expecting $name and $idnumber sorry Robert Cummings [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] PHP source code

2002-09-19 Thread 1LT John W. Holmes
Hi, Is there any way to read php source code? I didn't think so until I heard about people you have done that... Kind regards, Oliver I tend to read it left to right, but to each his own ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Robert Cummings
Georgie Casey wrote: yea, i probably didnt make that clear its the variables NAMES that he can't gurantee to be lowercase eg hell pass http://www.server.com/test.php?NAME=JohnIDNumber=12 when im expecting $name and $idnumber $lowerVars = array(); foreach( $_POST as $key = $value ) {

Re: [PHP] Re: PHP source code

2002-09-19 Thread Support @ Fourthrealm.com
A solution that I use is to put important information in an include file, and store it in a User-Authentication protected folder, ie. /admin/ This adds one extra layer of protection to your files, and keeps the average joe-surfer from being able to get the files. Peter At 08:24 PM

Fw: [PHP] Variables Case Sensitivity??

2002-09-19 Thread Kevin Stone
You could concievably use the get_defined_vars(); function to impliment a forced-variable-case machine at the start of your script. http://www.php.net/manual/en/function.get-defined-vars.php -Kevin - Original Message - From: Georgie Casey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] about $_post

2002-09-19 Thread 1LT John W. Holmes
$_POST[ID] Since there are no quotes around the variable name ID and no dollar sign in front of it, PHP will look for a constant named ID and if one is not found it will blow chow. Depending on your error_reporting() level whether this warning is reported or not. Better to not use this

Re: [PHP] In a shared environment...

2002-09-19 Thread 1LT John W. Holmes
Relative newbie here, and I am just coming to grips with something that I think is a very bad thing... Please tell me I am wrong. When using PHP, it is the Apache user that actually performs things, and therefore needs permissions. For example, if I want to write data to a file, I have to

RE: [PHP] Is php even right for this design?

2002-09-19 Thread David Buerer
1) Large Includes 200K of includes? Piece of cake! Remember, it is the server that is doing all of the work, not your clients. The issue is how many requests can your server simultaneously process and is there enough overhead to do it. With respect to speed, your server will cache the files

[PHP] Click....download and update

2002-09-19 Thread Christian Ista
Hello, I'd like when I click on a link a href=http://www.website.com/file.zip update a table and start the download without change the page. Could you tell me how to do ? Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FPDF and MySQL

2002-09-19 Thread Chuck Payne
Hi, I found a free pdfclass called FPDF http://www.fpdf.org, that I can use with PHP to create pdf files with. Before someone tells me Read The Manual, I have read their page and used Google to search for notes on how called mysql into a PDF and I am lost. Does anyone know where there is a

[PHP] pass var through URL String

2002-09-19 Thread Gary
Hi All, Using a link a href=\bla.php?bname=$bname\$bname/a I could pass $bname to another page and using SELECT * FROM table WHERE bname = \$bname\; I could get all I need from the db on the new page. Now that globals have been turned off and superglobals are replacing them. How should I pass

Re: [PHP] pass var through URL String

2002-09-19 Thread Kevin Stone
Pass the vars the same way. Use $_GET['bname'] to retrieve the var. -Kevin - Original Message - From: Gary [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 1:54 PM Subject: [PHP] pass var through URL String Hi All, Using a link a

Re: [PHP] Click....download and update

2002-09-19 Thread Kevin Stone
Christian, You'll need to prompt the download by sending the appropriate headers. Something like.. a href=http://www.mydomain.com/downloadmyfile.phpDownload/a ? // downloadmyfile.php header(Content-Type: application/zip); header(Content-Disposition: attachment); readfile(file.zip); ? This is

RE: [PHP] Click....download and update

2002-09-19 Thread Christian Ista
You'll need to prompt the download by sending the appropriate headers. Something like.. a href=http://www.mydomain.com/downloadmyfile.phpDownload/a ? // downloadmyfile.php header(Content-Type: application/zip); header(Content-Disposition: attachment); readfile(file.zip); ? It's not

[PHP] Calling on functions in a url

2002-09-19 Thread Tom Ray
I have a question that I have yet to figure out. Let's say I have a PHP script with multiple fuctions, how do I call on the script to perfom specific functions through a url? Ex: http://www.sample.com/script.php?fucntion1 TIA -- PHP General Mailing List (http://www.php.net/) To

[PHP] Stop PHP from displaying Content-Type info

2002-09-19 Thread [-^-!-%-
I just installed a new PHP server, and forget how to stop it from displaying the page Content-type info at the top of the page. Please help. =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. --

Re: [PHP] pass var through URL String

2002-09-19 Thread Gary
Tried that already and get an error using $_GET['bname'] T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING using $_GET[bname] without the quotes Undefined index: bname Gary Kevin Stone wrote: Pass the vars the same way. Use $_GET['bname'] to retrieve the var.

[PHP] Re: Calling on functions in a url

2002-09-19 Thread Stefan
http://www.sample.com/script.php?fucntion=1 http://www.sample.com/script.php?fucntion=2 Then do a 'case' or 'if' on $_GET['fucntion'] Tom Ray [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a question that I have yet to figure out. Let's say I have a

Re: [PHP] Calling on functions in a url

2002-09-19 Thread Peter J. Schoenster
On 19 Sep 2002 at 16:13, Tom Ray wrote: I have a question that I have yet to figure out. Let's say I have a PHP script with multiple fuctions, how do I call on the script to perfom specific functions through a url? Ex: http://www.sample.com/script.php?fucntion1 I wouldn't say this is a

Re: [PHP] pass var through URL String

2002-09-19 Thread Kevin Stone
There's obviously something wrong with the way you're handeling the new variable. Do extract($_GET); and go back to the way you were handeling it before. echo $bname; -Kevin - Original Message - From: Gary [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 2:50

Re: [PHP] pass var through URL String

2002-09-19 Thread Gary
I don't think it is being passed. I think I am going to have to figure out how to pass bname in the link using pear.With pear bnname=0 while ($row = $res-fetchRow()){ $bname = $row[0]; $owner = $row[1]; echo lia

Re: [PHP] PHP Execution Timer

2002-09-19 Thread Chris Shiflett
Here is a function I sometimes use to log that will show you the time that has passed since the last log entry. I find it very useful, so that you can test a section of code's execution time simply by surrounding it with calls to this function. Maybe it will be useful to you. Chris function

Re: [PHP] Stop PHP from displaying Content-Type info

2002-09-19 Thread Chris Shiflett
php -q I just installed a new PHP server, and forget how to stop it from displaying the page Content-type info at the top of the page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session cookies

2002-09-19 Thread Jeff Bluemel
OK guys... here's my question - I'm using 4.2.3 and apache 1.3.26, and I've got sessions setup. however, it seems to be using an SID attached to the URL, and I want to force it to use a cookie that points to a transparent SID on my system. I've got the following options in my php.ini, but the

Re: [PHP] session cookies

2002-09-19 Thread Chris Shiflett
Jeff Bluemel wrote: I want to force it to use a cookie that points to a transparent SID on my system. Can you elaborate on this? I have no idea what you mean. I've got the following options in my php.ini, but the system doesn't seem to ever use a cookie, and the sessions don't die. (that's

Re: [PHP] session cookies

2002-09-19 Thread Chris Shiflett
I also just noticed that you have session.use_only_cookies = 1, so unless you get the session ID back in a cookie, the session will restart. Chris Shiflett wrote: I've got the following options in my php.ini, but the system doesn't seem to ever use a cookie, and the sessions don't die.

Re: [PHP] pass var through URL String

2002-09-19 Thread Gary
I was wrong, it is passing $bname. I have got it down to a syntax error by using. $sql = SELECT * FROM bugs WHERE bname = {$_GET['bname']}; gary Gary wrote: I don't think it is being passed. I think I am going to have to figure out how to pass bname in the link using pear.With pear

RE: [PHP] PHP Execution Timer

2002-09-19 Thread Beau Hartshorne
This function: function getmicrotime() { list($usec, $sec) = explode( ,microtime()); return ((float)$usec + (float)$sec); } is provided on this page: http://www.php.net/manual/en/function.microtime.php and is needed for the code below to work properly. Beau ? $timerOn = 1; //

RE: [PHP] Stripping specific tags

2002-09-19 Thread John Holmes
I was wondering is there a way to strip ONLY the tags that you specify from a page, rather than having to include all the tags you do want (using strip_tags() ) A regular expression or str_replace() would be best for this. Realize this isn't a good method, though. What if you're trying to

RE: [PHP] Loop through POST-result

2002-09-19 Thread John Holmes
I would like to get all the data from a POST-result into an array. Is there a function like that adds all the vars from the post into an array where Key is the name of the form-field and Value is the value entered in this field. Like this: array('firstname' = 'fname', 'lastname' =

[PHP] php_mcrypt library

2002-09-19 Thread [-^-!-%-
I've looking for pre-built php_mcrypt library. Does anyone know where I can get one. I'm basically looking for something that would not require me to reload or recompile php [shared hosting issues...]. The environment is : PHP 4.1.2/Linux /Apache 1.3.26. Any help would be greatly appreciated.

  1   2   >