[PHP] Re: Stopping the browser from continuing to load

2001-10-19 Thread Lucas Chan
Try this: header(Connection: close); Or: Register_ShutDown_Function(); Regards, [ niveus ] Adam Whitehead [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All- I have a script in which I use ignore_user_abort() to perform some extensive processing

[PHP] Server performance

2001-10-19 Thread Michael Bonfert
We are using the LAMP configuration. Frequently we get a high server load. I am sure the server load is caused by a php script using mysql. We've a lot of scripts running out there, so i can't locate the 'bad' script. Is there any product that can track the cpu/mem usage of php scripts or helps

Re: [PHP] Stopping the browser from continuing to load

2001-10-19 Thread Christopher William Wesley
For a process that takes a long time, I usually break the user interaction the processing apart. For instance, when the user makes a submission from the browser interface, the PHP takes the submitted data and stores it someplace on the file system or in a database. This being a quick

Re: [PHP] InterBase transaction ...

2001-10-19 Thread Christopher William Wesley
Just use one argument or the other ... not both. ibase_commit($myTrans); OR ibase_commit($myDB); g.luck, ~Chris /\ \ / September 11, 2001 X We Are All

[PHP] Re: InterBase transaction ...

2001-10-19 Thread Kal Amry
For future reference, the [] in the parameter are means either or (it list the options you have) Yoel Benitez Fonseca [EMAIL PROTECTED] wrote in message 00a601c1585d$7fb33ba0$[EMAIL PROTECTED]">news:00a601c1585d$7fb33ba0$[EMAIL PROTECTED]... Hi! Someone can explain me (or give me an

[PHP] PHP4 doesn´t work with apache_1.3.22-win32-no_src.msi

2001-10-19 Thread Carsten Bernstein
No php4-support in this msi? Bah! Or did I miss something? Apache tells me that it can´t load the module php4apache.dll - no such module. Perhaps my LoadModule entry for php4 is wrong, though it´s the same I used for 1.3.20 (LoadModule php4_module C:\php\sapi\php4apache.dll)? Or perhaps I need

[PHP] Re: Web portals

2001-10-19 Thread Daniel Masur
would intresst me too, cose i want to biuld my own portal [EMAIL PROTECTED]; [EMAIL PROTECTED] schrieb im Newsbeitrag 20011018124135.17694.1001.qmail@server0021">news:20011018124135.17694.1001.qmail@server0021... Hi ! I am looking for an efficient web portal, sutable for medium/big

[PHP] Fwd: [PHP-DEV] 4.1.0RC1 out

2001-10-19 Thread Andrey Hristov
-- Forwarded Message -- Subject: [PHP-DEV] 4.1.0RC1 out Date: Fri, 19 Oct 2001 09:27:58 +0200 From: Stig S. Bakken [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Hi, 4.1.0RC1 is out, download it from http://www.php.net/~ssb/php-4.1.0RC1.tar.gz - Stig -- PHP

[PHP] Fwd: Re: [PHP-DEV] 4.1.0RC1 out

2001-10-19 Thread Andrey Hristov
-- Forwarded Message -- Subject: Re: [PHP-DEV] 4.1.0RC1 out Date: Fri, 19 Oct 2001 09:51:22 +0200 (CEST) From: Derick Rethans [EMAIL PROTECTED] To: Stig S. Bakken [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Hello, RC1 doesn't compile if --with-zzip is used,

Re: [PHP] Fwd: Re: [PHP-DEV] 4.1.0RC1 out

2001-10-19 Thread Rasmus Lerdorf
Andy, please stop forwarding these. If people on php-general were interested in the QA process they would be on the QA list, or if they were interested in -dev issues they would be on that list. -Rasmus On Fri, 19 Oct 2001, Andrey Hristov wrote: -- Forwarded Message --

[PHP] Q: How one can pass throught sessions arrays with no use of mysql or files ?

2001-10-19 Thread ArsenKirillov
How one can pass throught sessions arrays with no use of mysql or files ? help me to advance pls. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] ask for help about php+mysql install: /usr/local/php-4.0.5/main/internal_functions.c:60: undefined reference to`mysql_module_entry', thanks in advance.

2001-10-19 Thread Harrison
Hi there, I encounter the following problem when trying to build a LAMP Box with Mysql-4.0.0+PHP-4.0.5+Apache-1.3.22. 1. Mysql Installed ok 2. when trying to make php with ./configure --with-apache=/home/user/apache_1.3.22 --with-mysql=/usr/local/ db/mysql

[PHP] Re: How one can pass throught sessions arrays with no use of mysql or files ?

2001-10-19 Thread Kal Amry
The best way (to get around cookies) is to pass it on the URL a href=phpFile.php??=SID? or a href=phpFile.php?? echo SID; ? Notice no $ before SID Kal Arsenkirillov [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How one can pass throught sessions arrays

[PHP] parse_str and parse_url

2001-10-19 Thread Olexandr Vynnychenko
Hello php-general, I need a function which is opposite to parse_str or parse_url, i.e. it makes string containing URL with passed variablenames and variablevalues. Did someone see such function? I can't find it in th manual. Thank's. -- Best regards, Olexandr Vynnychenko

[PHP] Undefined variable

2001-10-19 Thread Tshering Norbu
Dear list, I test the following script on local web server and it runs fine. But when I upload the script to the real web server I get the following error/message, but the script works fine. Do you know why? Here is the error/message I get: Undefined variable : id in test.php on line 6 And

RE: [PHP] Undefined variable

2001-10-19 Thread Boaz Yahav
it's a warning, not an error... you should check if it is set before you use it : If(IsSet($id)) { Do something... } Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Tshering Norbu [mailto:[EMAIL

Re: [PHP] Undefined variable

2001-10-19 Thread Dimitris Kossikidis
This should work ... if ( IsSet($id) ) { . sql statement }else{ . } - Original Message - From: Tshering Norbu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 12:22 PM Subject: [PHP] Undefined variable Dear list, I test the following

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Rasmus Lerdorf
The obvious hack would be to simply make the link: http://your.domain.com/script.php/filename_you_want.pdf -Rasmus On Fri, 19 Oct 2001, George Pitcher wrote: Hi all, I am delivering my PDF files from a non-internet directory. The file gets delivered but the filename is always changed to

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Arpad Tamas
On Friday 19 October 2001 11:52, George Pitcher wrote: Hi all, I am delivering my PDF files from a non-internet directory. The file gets delivered but the filename is always changed to the name of the php script. Can anyone tell me how to get the file delivered so that the name stays as

[PHP] Call to undefined function: pfpro_init()

2001-10-19 Thread Kal Amry
Anyone knows how I can use pfpro_init(); It is giving me an error right away saying: Fatal error: Call to undefined function: pfpro_init() in PATH_TO_FILE.php on line 3 Where can I find a support for these functions? Thanks, -- PHP General Mailing List (http://www.php.net/) To

[PHP] Dividing too integers...

2001-10-19 Thread Seb Frost
Sorry for the stupid question... I want to do $this=$foo/$bar; (All are integers.) where this is always rounded up. I tried the obvious $this = ceil($foo/$bar) but I just always get 0. cheers, - seb --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

Re: [PHP] Call to undefined function: pfpro_init()

2001-10-19 Thread Richard Baskett
Did you check out?: http://www.php.net/manual/en/ref.pfpro.php These functions are only available if PHP has been compiled with the --with-pfpro[=DIR] option. You will require the appropriate SDK for your platform, which may be downloaded from within the manager interface once you have

Re: [PHP] Dividing too integers...

2001-10-19 Thread Richard Baskett
I don't see why that doesnt work... I would echo your values first to make sure the values you want in $foo and $bar are the right ones... It looks to me that your expression is correct... Rick Sorry for the stupid question... I want to do $this=$foo/$bar; (All are integers.)

[PHP] Mysql export

2001-10-19 Thread Roman
Please help me, how to export mysql table to the xls table ? Thanks for all Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

RE: [PHP] Dividing too integers...

2001-10-19 Thread Seb Frost
Cheers Rich! I had $numrows instead of $num_rows - Doh! I said too instead of two - double Doh! - seb -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED]] Sent: 19 October 2001 11:30 To: Seb Frost; PHP General Subject: Re: [PHP] Dividing too integers... I don't see

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Rasmus, Thanks for the suggestion but it didn't change anything. George - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 10:54 AM Subject: Re: [PHP] Delivering NAMED pdf files The

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Arpi, Thanks for the suggestion but it didn't change anything. George - Original Message - From: Arpad Tamas [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, October 19, 2001 11:13 AM Subject: Re: [PHP] Delivering NAMED pdf files On Friday 19

AW: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Sebastian
Hi George I had the same problem a while ago. The only solution i found was to change the link to : www.blabla.com/pdffile/test.pdf test.pdf does not exist, but in /pdffile/ there is a .htaccess which redirects the 404 to the php script that reads/generates the pdfs. And for my purpose checks

[PHP] kindly help adding days on a date

2001-10-19 Thread Krushna Kumar R
Hi, I have 2 fields on a table as shown below 1. period int- we enter no of days as number/integer 2. lastdatedate - here i'll have to add period to todays(current) date and store in the table i used dateadd it was working on mysql prompt, but when i used it with PHP, it doesnt

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread speedboy
Thanks for the suggestion but it didn't change anything. It won't. Put them in a web accessible directory and don't use custom header calls because they do not work reliably. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Sebastian, Just tried it - it dosn't work for me. George - Original Message - From: Sebastian [EMAIL PROTECTED] To: 'George Pitcher' [EMAIL PROTECTED]; 'Php-General [EMAIL PROTECTED] Sent: Friday, October 19, 2001 12:19 PM Subject: AW: [PHP] Delivering NAMED pdf files Hi George I had

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Thanks for the [non] suggestion. I will not host these in a web-accessable directory. They are copyright materials. I've done this type of hosting previously using Frontier on a Mac and it worked fine. I thought that php was better than Frontier, though. George - Original Message -

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox
can you paste the full text of the code as you have it? I don't see anywhere where you define the name of the file. James Cox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Politicalia admin and editor e: [EMAIL PROTECTED] :: w: http://www.politicalia.com/

Re: [PHP] Mysql export

2001-10-19 Thread Andrey Hristov
PhpMyAdmin (on http://www.phpwizard.net") has the capability to export mysql table ot CSV, then import the CSV or maybe this will help you too(on small tables, otherwise the HTML code is big) $dump=''; $separator=','; $the_query="select * from $table;"; $res=mysql_query($the_query); if ($res){

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
James, I can. The text in square brackets is a pdf filename referenced in full from a Filemaker database using Lasso. Form action=fileaccess.php method=post input type=hidden name=fp value=[field:'Doc_filename'] input type=Submit value=Download PDF file /form And the php page which is

[PHP] session ID does not delete itself

2001-10-19 Thread Peter
Hi, I have been experimenting with PHP4 using sessions and one of my books says that session ID's are created in the /tmp directory so I take a look in there and I find are about 10 sessions that have not been deleted dated earliest to about being week old ie.

[PHP] Re: kindly help adding days on a date

2001-10-19 Thread _lallous
you can use it like that: see the mysql's date_add() usage: SELECT DATE_ADD(NOW(), INTERVAL 5 DAY) or 5 YEAR or n MONTH Krushna Kumar R [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have 2 fields on a table as shown below 1. period int-

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread MrBaseball34
And the php page which is fileaccess.php: ?php $fp1 = D:\\Pdf\\ . $fp; $len = filesize($fp1); header(Content-Type: application/pdf); header(Content-Disposition: inline; filename=$fp1); header(Content-Length: $len); readfile($fp1); ? Have you CHECKED the value of $fp? -- PHP

[PHP] PHP for shell scripting: weird error.

2001-10-19 Thread Alexander Deruwe
Hey all, When running PHP scripts from the command line, I get this error: Content type: text/html PHP Fatal error: Unable to start session mm module in Unknown on line 0 The script doesn't run, or so it seems. I also get this error when I run generic stuff such as 'php4 --help', or just

Re: [PHP] sscanf() question...

2001-10-19 Thread Christian Reiniger
On Wednesday 17 October 2001 23:25, Uchendu Nwachukwu wrote: I am trying to write a script to convert a MySQL timestamp (MMDDhhmmss) to a unix timestamp. SELECT UNIX_TIMESTAMP(timefield) AS MyTime FROM xy -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) These are the

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Yes, If I download the file as it is named, it is the file I expected, only not named the way I wanted. George MrBaseball34 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... And the php page which is fileaccess.php: ?php $fp1 = D:\\Pdf\\ . $fp; $len =

[PHP] Problems with get URL from script (post without forms)

2001-10-19 Thread Silvia Mahiques
Hi I´m interested in launching an HTML page directly from another page. The former has php code and I´d also like to pass some arguments to it. I´m using the getURL code to do this job but I had some problems: After launched, the page looks quite weird. When I look at the source code, the

Re: [PHP] PHP for shell scripting: weird error.

2001-10-19 Thread Jon Farmer
I'm running PHP v4.0.7RC3 (from package php4-cgi) on Linux 2.4.10-ac11. Distribution debian unstable. I would recommend 4.0.6 compiled from source. Thats what I use and its very stable. Regards jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP

[PHP] phpPgAdmin joins SourecForge

2001-10-19 Thread Dan Wilson
For full story, please visit http://sourceforge.net/forum/forum.php?forum_id=117841 It looks like a previous post didn't go through, so if this is a duplicate, please forgive me. -Dan [EMAIL PROTECTED] http://sourceforge.net/projects/phppgadmin -- PHP General Mailing List

[PHP] How to convert text/html mail into readable thing ?

2001-10-19 Thread Rafa Zawadzki
I am using PHP @ Red Hat. And i have got one big problem: I am writing interface for pop3 accounts. Everything is ok, when mail are normal, it means their has got attachments, or not. But when i am reading mail which has been written in html, and it has got also attachment, i got for example:

RE: [PHP] Timestamp math and format

2001-10-19 Thread Alfredeen Johan K
Thanks, That was just what I needed, ie: SELECT DATE_FORMAT(DATE_SUB(insert_date, INTERVAL 2 HOUR), '%b %e (%r)') Johan On 17-Oct-2001 Alfredeen Johan K wrote: I store a timestamp in a database of when a record was inserted. When I pull it out, I format it like this SELECT

[PHP] how to know if email sent

2001-10-19 Thread Alexander Jäger
hi everybody i'm making an automatic booking system in php. for the hotelier it's also possible to calculte offers and send them to his gasts. we send the email with @mail and although we put in a right-formated (with @ in it etc.) but wrong email adress the function results true. so we tried to

[PHP] weird session problem

2001-10-19 Thread Ross Barefoot
Summary: when I write scripts using sessions and run them on my web host the session is created, a session file is opened, but the session file is 0 bytes and therefore the session variables are not being passed. When the tech support guys at the host run the same script they work, even when

[PHP] Searching for a word in a string

2001-10-19 Thread Brandon
Hello, How can I search for a certain word in a string? Thanks Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Searching for a word in a string

2001-10-19 Thread Boget, Chris
How can I search for a certain word in a string? strpos() ereg() preg() and similar functions. Chris

RE: [PHP] how to know if email sent

2001-10-19 Thread David Pearson
By default you'll never know if the email you sent gets through. You could set up a bounced email tracking system. There is an Errors-To header in the email messages that you can have send to a specially set up account on your system. Then have a cron job process that looking for bounced

[PHP] array to string

2001-10-19 Thread René Fournier
Just trying to convert an array to string before writing the whole thing back out to a file. (Trying to do a simple database-less database, using text files). $fcontents = file($name..db); // THE ENTIRE TABLE $fcontents[$update] = $updatedstring; // THE ROW TO BE UPDATED

Re: [PHP] array to string

2001-10-19 Thread Steve Werby
René Fournier [EMAIL PROTECTED] wrote: Just trying to convert an array to string before writing the whole thing back out to a file. (Trying to do a simple database-less database, using text files). $fcontents = file($name..db); // THE ENTIRE TABLE $fcontents[$update] = $updatedstring; //

[PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Tom Beidler
I'm running a query that pulls up automotive makes for a given year and orders them alphabetically. One of the options is no make specified which I would like to always move to the end of the mysql_fetch_array. So my while loop would pull up AMC Ford Volkswagon No make specified Instead of

Re: [PHP] Re: mysql transactions/rollback

2001-10-19 Thread Heikki Tuuri
Hi! Job Miller wrote in message [EMAIL PROTECTED]... yes, thank you though. not in MyISAM tables, which is what mine are, and again according the manual, you slow things down significantly for transaction support. Transactional InnoDB tables are actually faster in many simple benchmarks than

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread James Cox
George, your best bet is to have a table in your database which looks up the name of the file, based on a more friendly name. James . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Politicalia admin and editor e: [EMAIL PROTECTED] :: w: http://www.politicalia.com/

RE: [PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Mark Charette
Don't bother with doing it in PHP, do it in MySQL with a functional ordering: Select Make from your_db order by if(left(Make,7)='no make','',Make) -Original Message- From: Tom Beidler [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 11:53 AM To: php list Subject: [PHP]

Re: [PHP] how to move one element of an array to the end of thearray

2001-10-19 Thread Christopher William Wesley
Splice the array at the point in your result array where No make specified is, for one element, then append it back onto the result array. Here ... $noMake = array_splice( $resultArray, array_search( No make specified, $resultArray ), 1); // This should be one line, sorry :) $newResults =

Re: [PHP] Dividing too integers...

2001-10-19 Thread R'twick Niceorgaw
try this.. $temp = ($foo%$bar); $this=$temp/$bar; - Original Message - From: Seb Frost [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 6:20 AM Subject: [PHP] Dividing too integers... Sorry for the stupid question... I want to do $this=$foo/$bar; (All

[PHP] Articles on OO apps in PHP, also Object-Relational mapping in PHP?

2001-10-19 Thread Chris Bailey
I'm wondering if there are any articles or other material describing how to design PHP web applications in a highly object oriented fashion? Specifically, object relational mapping, using classes for nearly everything (as appropriate), etc. The articles don't have to be PHP specific, but PHP's

[PHP] html files with ext .php3 and upgrade to php4

2001-10-19 Thread sgibbs
We just upgraded to php4 but many of our html files end with the extension .php3 - will this be a problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

RE: [PHP] html files with ext .php3 and upgrade to php4

2001-10-19 Thread MINI2
No, just make sure you configure the .php3 extension as you would .php, .phtml, etc. You could make it .MyWierdExtension as long as Apache knows that files of that type are PHP and need to be processed. Cheers Casey Swenson [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED]

Re: [PHP] array to string

2001-10-19 Thread R'twick Niceorgaw
try this $fupdatecontents=''; while ( list($key,$value) = each($fcontents) ) { $fupdatecontents .=$value; } $fcontents = $fupdatecontents; or just write $fupdatecontents into the file. You may need to add a \n after each line ( which I'm not sure);. If you need you can change the

Re: [PHP] how to move one element of an array to the end of thearray

2001-10-19 Thread Tom Beidler
Trying to use the solution without positive results First need to clarify, I'm actually trying to order the model. Here's my original query; $make_query = SELECT make.make, model.model, application.make_id, application.model_id FROM application INNER JOIN make ON make.id = application.make_id

[PHP] Re: Searching for a word in a string

2001-10-19 Thread Chris Lee
php.net/strstr if ( strstr($string, $search) ) echo TRUE; else echo FALSE; -- Chris Lee [EMAIL PROTECTED] Brandon [EMAIL PROTECTED] wrote in message 001e01c158b3$91579170$5a52a040@wi">news:001e01c158b3$91579170$5a52a040@wi... Hello, How can I search for a certain word in a

[PHP] Windows 2000 Permissions error

2001-10-19 Thread King, Justin
While trying to use dir() on a certain directory, I get the error Warning: OpenDir: Invalid argument (errno 22) in c:\inetpub\wwwroot\search\update.php on line 71. I'm aware this is most likely a permissions error, but I've already given SYSTEM, SELF, and SERVICE full control over the

Re: [PHP] how to move one element of an array to the end of the array

2001-10-19 Thread Mark
On Fri, 19 Oct 2001 12:17:48 -0700, Tom Beidler wrote: Trying to use the solution without positive results First need to clarify, I'm actually trying to order the model. Here's my original query; $make_query = SELECT make.make, model.model, application.make_id, application.model_id FROM

[PHP] Re: session ID does not delete itself

2001-10-19 Thread Chris Lee
in php.ini session.gc_probability= 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime= 604800 ; after this number of seconds,

[PHP] A case of client that affects the speed of the server

2001-10-19 Thread Carlos Henrique Barbosa Gonçalves
Hello, people. I'm trying to configure Apache+PHP on a Linux Red Hat machine(Pentium III, IP 130.94.20.132) in order to leave the machine I'm currently using (Pentium II, www.etapa.net) To evaluate the difference in performance, I ran the same PHP script in both machines. Much to my

RE: [PHP] Windows 2000 Permissions error

2001-10-19 Thread King, Justin
Well the code actually traverses a group of directories and errors on that directory (the only one I've changed the permissions to) so I'm pretty sure it's not the code. Here's a snippet of the traversing code.. ---code start--- function listDirs($startDir) { echo Checking $startDir...br;

RE: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Bill Rausch
George, Rasmus' suggestion is correct, but he was terse as usual :) and you might not have understood what he was saying. My solution is to present a list of the filenames available as LINKS (to non-existent files). Then the script does what you've already got. The problem is that some

[PHP] Error compiling pdflib extension

2001-10-19 Thread Eric Thelin
I recently tried to recompile PHP-4.0.6 and my pdflib extension stopped working. I was building it in directly but the module wasn't being listed on phpinfo() and of course the pdf functions didn't work. So after many attempts I decided to try another approach and build it as a shared module.

[PHP] Help converting ASP-PHP

2001-10-19 Thread MrBaseball34
PHP Newbie, so please don't flame me bg! I am converting an organizer example from an ASP book to PHP and need some help. Need some help with the following code : /* intMonth and intYear are variables passed into a function datCurrent, intCurrentMonthDays and intWorkDays are local

[PHP] test

2001-10-19 Thread Kurth Bemis
system test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Visual PHP Studio--comments?

2001-10-19 Thread Alex Shi
Where you find it? Why not show up the link? Actually I have been always thinking of a php studio. I think at least following things could be integrated into such a studio: a php IDE bundled with a web authority tool, and port to SQL server and web server. Alex - Original Message -

[PHP] Re: Help converting ASP-PHP

2001-10-19 Thread MrBaseball34
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Goto yahoo and do a search for ASP2PHP - it is a script that converts asp pages to php. Never used it so I can't say how good it works, but I'm guessing it will do all the basic stuff really well, but db stuff might get a bit messy. Worth

[PHP] Deleting HTTP auth...

2001-10-19 Thread Lic. Rodolfo Gonzalez Gonzalez
Hello list, Is it possible to delete the data from an Apache's HTTP authentification directly from a PHP script?. I know that the username/password pair is stored in two variables which are sent by the client to the server, right?. is it possible to alter them from PHP¿?. Thanks a lot, Rodolfo.

[PHP] Re: Help converting ASP-PHP

2001-10-19 Thread Curt A. Gilman
You should be able to do everything with PHP's date functions: http://www.php.net/manual/en/ref.datetime.php Pay particular attention to the mktime, date, and getdate functions. The script below might be helpful to you. ? function begin_month($timestamp) { $a = getdate($timestamp);

[PHP] Error on session_start()

2001-10-19 Thread Zavier Sheran
When I try to start a session or authenticate with HTTP headers, I get the following error: Warning: Cannot send session cache limiter - headers already sent (output started at /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php:1) in

Re: [PHP] Error on session_start()

2001-10-19 Thread p.whiter
Hi Be sure that you are placing the session_start() before the (html)head section of your script, best to put it right at the top of the page, also make sure there is no white space before opening php tags. HTH Paul - Original Message - From: Zavier Sheran [EMAIL PROTECTED] To: [EMAIL

Re[2]: [PHP] Visual PHP Studio--comments?

2001-10-19 Thread WebDev
Hello Alex, www.visualphpstudio.com /Merle Friday, October 19, 2001, 6:19:30 PM, you wrote: AS Where you find it? Why not show up the link? AS Actually I have been always thinking of a php studio. I think at least AS following AS things could be integrated into such a studio: a php IDE

[PHP] Re: How to change the newline (br) into dot and br ?

2001-10-19 Thread c
$var = str_replace(\n, br, $var); sometimes \r\n , but Im not sure... :) c [EMAIL PROTECTED] (Manisha) wrote in news:[EMAIL PROTECTED]: I am having the text fetched from mySQL database. I converted newline to br with nl2br function. I need to detect br and need to put 'dot' in front of

[PHP] contstant in heredoc

2001-10-19 Thread Pierce
is it possibe to include defined constant in heredoc block? for example: define(_ACONST_,CONSTVAL); $str = EOL value is _ACONST_ EOL; echo $str; *Normal* variables usage in {} doesn't woks :(( =-=-=--= P. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: Articles on OO apps in PHP, also Object-Relational mapping in PHP?

2001-10-19 Thread Lucas Chan
This may be of some use to you? http://www.devshed.com/Server_Side/PHP/ExtensibleMenuClass/page1.html Regards, [ lucas ] Chris Bailey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm wondering if there are any articles or other material describing how to

[PHP] Re: Windows 2000 Permissions error

2001-10-19 Thread Fredrik Arild Takle
I guess you have to set EVERYONE. (Don't now for sure) Fredrik A. Takle Justin King [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... While trying to use dir() on a certain directory, I get the error Warning: OpenDir: Invalid argument (errno 22) in

[PHP] regular expresion

2001-10-19 Thread Richard
Hi, I want to validate that a variable only contains numbers. I came up with this code $variable = 154545; - must give me true. $variable = $%54545; - must give me false $variable = $%54545; - must give me false $variable = 4545;#; - must give me false $variable = 004545; - must

[PHP] XML: Expat or DOM?

2001-10-19 Thread Daniele Baroncelli
Hi guys, I would like to start the new development of my site in XML. Can anyone with experience tell me the real difference in speed between the Expat and DOM parser? Also, is it really risky to develop in DOM, considering the module is experimental, and in theory it could change ? Any

[PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread Brad Melendy
Hi All, I'm stumped. I've got the following code: ?php if(isSet($domain)) { for ( $counter=0; $counter = strlen($domain); $counter++ ) { $nChar = ord(strtolower(substr($domain, $counter, 1))); if (($nChar 47 And $nChar 58) or ($nChar 96 And $nChar 123) or $nChar = 45); { print

[PHP] Re: regular expresion

2001-10-19 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Richard) wrote: Hi, I want to validate that a variable only contains numbers. I came up with this code $variable = 154545; - must give me true. $variable = $%54545; - must give me false $variable = $%54545; - must give me false

RE: [PHP] Re: regular expresion

2001-10-19 Thread Mark Charette
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Richard) wrote: Hi, I want to validate that a variable only contains numbers. I came up with this code I came up with this code: is_numeric($var) mark C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread David Pearson
Could it be the semi colon at the end of the 'if' line, at '... $nChar = 45); { ...' ? Looks like the if statement ends there, the ' { print OK.; } ' is a block on it's own and the 'else' is now out of context. -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Re: Mysql export

2001-10-19 Thread Nikhil Goyal
I've found the best way is to set up a MyODBC link. You can download MyODBC from http://mysql.com/downloads/api-myodbc.html It's a bit complicated, but you get excellent results! - Nikhil Roman wrote: Please help me, how to export mysql table to the xls table ? Thanks for all

Re: [PHP] Can I have If...Else inside a For Loop???

2001-10-19 Thread Brad Melendy
arrh! I don't think I can say much else. Thanks so much for pointing that out David. ;-) .Brad David Pearson [EMAIL PROTECTED] wrote in message 003101c1591a$e00ec290$320110ac@david">news:003101c1591a$e00ec290$320110ac@david... Could it be the semi colon at the end

Re: [PHP] Disable Back Button

2001-10-19 Thread Richard S. Crawford
Can you imagine the trouble you'd get into if you could? At 09:47 PM 10/19/2001, Chip Landwehr wrote: Is there any way to do this in PHP4? Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford It is only with the heart

Re: [PHP] Disable Back Button

2001-10-19 Thread Chip Landwehr
lol! True, so true... Richard S. Crawford [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can you imagine the trouble you'd get into if you could? At 09:47 PM 10/19/2001, Chip Landwehr wrote: Is there any way to do this in PHP4? Sliante, Richard S. Crawford

[PHP] IRC Channel

2001-10-19 Thread Chip Landwehr
Is there a PHP IRC channel? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: PHP 4.0.6 Mysql 4.0

2001-10-19 Thread Yasuo Ohgaki
Jeroen Geusebroek wrote: Hi there, Does the current stable PHP (4.06) support the use of the newly released Mysql 4? No. Not even with CVS version AFAIK. -- Yasuo Ohgaki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Re: Annotated PHP Manual

2001-10-19 Thread Yasuo Ohgaki
Khalid Hazmi wrote: How I can download the current Annotated PHP Manual??? _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp There is no such thing... AFAIK. -- Yasuo Ohgaki -- PHP General

[PHP] Re: !!! URGENT [PHP] php mail() function Problem

2001-10-19 Thread Yasuo Ohgaki
If your sendmail is set up correctly, you should be able to send mail. Check your sendmail. Look for sendmail Manul, FAQ, etc, since it's not PHP problem. -- Yasuo Ohgaki Simos Varelakis wrote: Hi to everyone i have problem with php4 mail() function. Os:mandrake 7.2 Mailprog:Sendmail

[PHP] Re: Variable Configuration Problem

2001-10-19 Thread Yasuo Ohgaki
I guess you are using php.ini-optimized, right? Take a look at http://www.php.net/manual/en/language.variables.external.php I suggest to read PHP Manual :) -- Yasuo Ohgaki Patrick Quaedackers wrote: Hello all! I installed PHP 4.0.6 om my server (Winnt server, Apache), and I started testing

  1   2   >