Re: [PHP] upgrading error

2002-08-14 Thread EdwardSPL
If you want to upgrade php by RPM packages, you may try this site : http://rpms.arvin.dk/php/source/ Alex Shi wrote: I have PHP 4.0.4p11 on RH Linux 7.1. Today I downloaded PHP 4.1.2-7 rpm packages (10 packages) from RH web site. These packages are come with RH Linux 7.3. I don't want to

Re: [PHP] Seemingly simple header problem, isn't!

2002-08-14 Thread Robert Orenstein
Hi, Edwin. Of course... thanks! Apache version 1.3.23. Definitely not IIS. Robert Orenstein Perforce Software Try running ?php phpinfo(); ? and I'm sure you'll find out something about the Apache version. (If, indeed, you're running Apache... Could it be that you're running IIS and Apache

Re: [PHP] Seemingly simple header problem, isn't!

2002-08-14 Thread @ Edwin
Well, then, in that case, your original problem about the header() has nothing to do with an earlier post (about IIS). Perhaps, you can try installing the latest Apache + the latest PHP and everything might just work. I've ask a friend to try it on his Win2K(sp2)+Apache2+php4.2.2 and the code

[PHP] Re: Troubles with Classes

2002-08-14 Thread lallous
try to put any code inside the new class' constructor part, - move the this code: $DBQuery = new DBQueries; --- this is line 134 $DBQuery-attrib[type] = select; $DBQuery-attrib[query] = SELECT ID_Secpage, PageType, into

[PHP] Variable

2002-08-14 Thread Remon Redika
this is the form -- insert.php tr td width=105Nama Satu/td td width=289 input type=text name=namasa size=40 /td /tr td width=105Nama Dua/td td width=289 input type=text name=namadu size=40 /td /tr td

RE: [PHP] Variable

2002-08-14 Thread Michael Egan
Some quick thoughts: Is the $Namak variable being correctly passed to the query? Have you tried to echo out the query just to see precisely what is being passed to MySQL? On the first line of the query: $query =Insert into Kel (NIP,Id_kel,Nama,Status); You might need a space after

[PHP] Re: Session, error occurs

2002-08-14 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I have jsut recently installed a php development kit on my windows platform. Im interested in using the session functions but I am recieving this error when I use session_start(): Warning:

[PHP] Re: newbie PHP/HTML pull down menu problem

2002-08-14 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi, I want to pull information out of my mySQL database and use it as a pull down menu ona web page. There are two sets of information that I need, one is a color, and the other is the color_id, so I want to use it in the way below

[PHP] crypt(): How to make it use blowfish?

2002-08-14 Thread Jean-Christian Imbeault
I'd like to use the crypt() function and have it use Blowfish encryption. However it seems that my system doesn't support blowfish encryption since I get: CRYPT_BLOWFISH = 0 My system is a linux RH7.2 box. How can I make blowfish encryption available to PHP's crypt? Jc -- PHP General

[PHP] ldap_rename refused to work

2002-08-14 Thread Roger Thomas
built: php-4.2.2 with openldap 2.0.25 i tried using the ldap_rename function to modify the dn of my ldap db but nothing seems to happen. the record was not change at all. i have followed closely the code-snippet that was given by Mr Stig Venaas at:

[PHP] SSL/sessions password question

2002-08-14 Thread Jean-Christian Imbeault
Sorry for the vagueness of the subject line but I wasn't sure what to put. Here's what I'd like to do: 1- user comes to my web site with normal (non-SSL) connection 2- user enter login name and password 3- data is submitted to a PHP script via SSL connection to same web server 4- PHP script

[PHP] Re: wanto uninstall php manual

2002-08-14 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi, I upgraded php from 4.0.4p11 to 4.0.6 with up2date (a RedHat Update Agent). The new php includes a huge manual but I cannot find where is it after installed, and I don't know how can access it. And more, my free disk space is

Re: [PHP] crypt(): How to make it use blowfish?

2002-08-14 Thread Dan Hardiker
My system is a linux RH7.2 box. How can I make blowfish encryption available to PHP's crypt? Use mcrypt. See the manual. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

php-general Digest 14 Aug 2002 09:40:57 -0000 Issue 1524

2002-08-14 Thread php-general-digest-help
php-general Digest 14 Aug 2002 09:40:57 - Issue 1524 Topics (messages 112440 through 112504): Re: File Upload size limit 112440 by: Rasmus Lerdorf 112442 by: Oliver Schönrock 112475 by: RPS Internet Re: Need a Web Host for php/mySQl 112441 by: vic

Re: [PHP] crypt(): How to make it use blowfish?

2002-08-14 Thread Jean-Christian Imbeault
Dan Hardiker wrote: Use mcrypt. See the manual. I don't want to use mcrypt :) It requires me install a separate library. Or do you mean that the only to get crypt() to use Blowfish is to install mcrypt? What does crypt() require, on a RH7.2 Linux machine, in order to use Blowfish? Jc

[PHP] Re: SSL/sessions password question

2002-08-14 Thread Wayne
Hi, All you need is: form action=https://domain/filename method=post https is for SSL. Wayne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session, error occurs

2002-08-14 Thread Per
Daniel Canil wrote: I have jsut recently installed a php development kit on my windows platform. Im interested in using the session functions but I am recieving this error when I use session_start(): Warning: open(/tmp\sess_540ded508edf231c47fe85bd970f936a, O_RDWR) failed: m (2) in

RE: [PHP] determining which link was clicked

2002-08-14 Thread Moose Magin
If I understand what you're trying to do, just put an identifier in the url, and on the page you link to, use an if statement to display the part you want. eg a href='newpage.php?content=emailform'email form/abr / a href='newpage.php?content=forum'Forum/a and on the 'newpage.php' if($content

[PHP] Destroy session variable when IE close

2002-08-14 Thread Christian Ista
Hello, Is it possible to set to null (or destroy) the session variables when I close IE ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SSL/sessions password question

2002-08-14 Thread Jean-Christian Imbeault
Wayne wrote: All you need is: form action=https://domain/filename method=post Sounds too easy, there must be a catch ;) Thanks! Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] fopen and sort by date modified

2002-08-14 Thread electroteque
hi there i was wondering how i could fopen a directory and then sort the files by date modified is there a way ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: fopen and sort by date modified

2002-08-14 Thread lallous
checkout: opendir() readdir() fstat() closedir() Elias Electroteque [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi there i was wondering how i could fopen a directory and then sort the files by date modified is there a way ? -- PHP General Mailing

[PHP] help with making appropriate indexes.

2002-08-14 Thread lallous
give this query: SELECT table_routing.id AS routeid, table_pricing.units AS price, table_routing.providerAS providerid, table_country.nameAS countryname, table_country.id AS

[PHP] Header utilisation problem

2002-08-14 Thread Christian Ista
Hello, I'd like to know why this code not work : case : include(act_create_new_compte.php); header(Location: ../manager/index.php); break; I receive this error : Warning: Cannot add header information - headers already sent by (output started at

[PHP] Destroy session variable when IE close

2002-08-14 Thread Christian Ista
Hello, Is it possible to set to null (or destroy) the session variables when I close IE ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Header utilisation problem

2002-08-14 Thread Peter Hicks
Hi Christian I suspect act_create_new_compte.php is sending headers. Once HTTP headers have been sent, and HTML has started to be sent, you can send no more headers. Try using another method of causing the browser to reload - maybe a META tag? (urgh). Peter. On Wed, 14 Aug 2002, Christian

[PHP] Redhat Linux 7.2

2002-08-14 Thread Tim Haynes
I have just installed Redhat Linux 7.2, the installation was fine at it installed apache with php 4.0.6 as default, that runs without problems. Unfortunately I noticed that PHP was not compiled with mysql support and there was no distribution of mysql with linux so please can anyone help by

[PHP] Retrieving variables

2002-08-14 Thread Michael Hazelden
Hi all, I'm attempting to store variables inside a database and then recall them. What I want to do is store them dynamically though - so for instance - a path to a file will be stored in the DB as $_SERVER[DOCUMENT_ROOT]./path/to/file But, obviously, when I retrieve this value, it retrieves

Re: [PHP] fopen and sort by date modified

2002-08-14 Thread Bas Jobsen
Op woensdag 14 augustus 2002 13:04, schreef electroteque: hi there i was wondering how i could fopen a directory and then sort the files by date modified is there a way ? ?php // Note that !== did not exist until 4.0.0-RC2 $dir='/home'; if ($handle = opendir($dir)) { echo Directory

[PHP] Re: Retrieving variables

2002-08-14 Thread Bogdan Stancescu
You may add \$_SERVER[DOCUMENT_ROOT].\/path/to/file\ to the database and then use eval() to evaluate. The better solution is obviously to store /path/to/file and append it to $_SERVER[DOCUMENT_ROOT] whenever you need the full path. Bogdan Michael Hazelden wrote: Hi all, I'm attempting to

Re: [PHP] mailing list managers

2002-08-14 Thread David T-G
Justin, Michael, et al -- ...and then Michael Sims said... % % On Wed, 14 Aug 2002 01:09:32 +1000, you wrote: % % I was hoping that maybe there's an opensource or commercial product out % there that I can install in my doc root (ie, PHP + MySQL support) which will % handle this in a more

RE: [PHP] Re: Retrieving variables

2002-08-14 Thread Michael Hazelden
Thanks to all, What I've come up with in the end (since I want the flexibility of being able to store the $_SERVER portion or not depending on the need of the variable) is this: I retrieve the variable from the database in the following way: select concatenate('$',name,'=',value,';') as a from

[PHP] php classes

2002-08-14 Thread Tom Kohnen
Hi! Can anyone recommend me some entry-level php-classes tutorials, because the php.net page about classes is not that helpful and difficult to understand IMO. Thanks in advance, - Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Destroy session variable when IE close

2002-08-14 Thread lallous
Afaik, the session will die automatically when IE gets closed. Or at least the cookie that links to that session. Elias Christian Ista [EMAIL PROTECTED] wrote in message 000101c24384$442ab9b0$c000a8c0@p3portable">news:000101c24384$442ab9b0$c000a8c0@p3portable... Hello, Is it possible to set

Re: [PHP] Redhat Linux 7.2

2002-08-14 Thread Jason Wong
On Wednesday 14 August 2002 19:21, Tim Haynes wrote: I have just installed Redhat Linux 7.2, the installation was fine at it installed apache with php 4.0.6 as default, that runs without problems. Unfortunately I noticed that PHP was not compiled with mysql support and there was no

[PHP] Is Voice Over IP possible in PHP

2002-08-14 Thread usha
Hi Can anyone tell me if Voice Over IP is possible in PHP. Such that a client machine can voice chat to My apache Web Server. I want this to be done via web based so that the client has no overhead of installing any softwares. Regards

[PHP] imagecreatfrompng() only work for 24bits png ?

2002-08-14 Thread NoWhErEMan
Hi all, I use following script to generate a resized png image on the fly. I tried for several hours and found that it not works for every png image. And finally i found that the imagecreatfrompng() only works for 24bits png. i.e my script does not works on my abc.png which is

Re: [PHP] Is Voice Over IP possible in PHP

2002-08-14 Thread Adam Voigt
Umm, I'm fairly sure you can't do this unless you wanted to rig up a client side application in PHP, but if you want it so they don't have to get any software, I would suggest Java, check out www.dialpad.com they do something fairly cool like this. Adam Voigt [EMAIL PROTECTED] On Wed,

[PHP] Setting the line number for debugging

2002-08-14 Thread Thomas Lochmatter
Is it possible to set the line number and file name to show in error messages? I'm looking for something similar to the perl's expression #line 298 myscript.pl which tells the compiler explicitely that here is line 298 of myscript.pl. If an error occurs 5 lines later, it would show something

Re: [PHP] Setting the line number for debugging

2002-08-14 Thread Chris Boget
Is it possible to set the line number and file name to show in error messages? __FILE__ __LINE__ Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [Class] Behaviour global variables

2002-08-14 Thread Tim Stoop
Hi there, I'm forgetting something, but I can't seem to get to it... Consider the following Class. class Test { var $a; var $b; function Test() { $this-a = 2; $this-b = 5; } function Show() {

RE: [PHP] Redhat Linux 7.2

2002-08-14 Thread Daniel Masson
Usually in the RedHat cd´s you can find php-mysql-*.*.rpm, after installing this package you´re ready to go !! = Daniel. On Wednesday 14 August 2002 19:21, Tim Haynes wrote: I have just installed Redhat Linux 7.2, the installation was fine at it installed apache with php 4.0.6 as default,

RE: [PHP] [Class] Behaviour global variables

2002-08-14 Thread Richard Black
Not done any OO stuff with PHP, but I would hazard a guess that the problem is one of scope. Rather than global making available class variables, it makes available GLOBAL variables. And I'm guessing there isn't a global variable a or b, which is why they show up blank. HTH, Richy

Re: [PHP] [Class] Behaviour global variables

2002-08-14 Thread Bas Jobsen
$TEST= new TEST; $a=3; $b=4; $TEST-Show(); works, fine better to use $GLOBALS['a'] instead of global $a Op woensdag 14 augustus 2002 15:27, schreef Tim Stoop: Hi there, I'm forgetting something, but I can't seem to get to it... Consider the following Class. class Test { var $a;

[PHP] Re: [Class] Behaviour global variables

2002-08-14 Thread lallous
hmmmwhat are you missing? globals $a and $b are not defined! try to set error reporting to E_ALL and try running your code again. Elias Tim Stoop [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there, I'm forgetting something, but I can't seem to get

[PHP] Persistant Connections

2002-08-14 Thread John Wards
I am running a website which generates around 100,000 pageviews a day and I am wondering if I stop using persistent conections to the database and use normal open and close conections this would reduce the load onto my server? Most conections are either made through my main file or the phorum

Re: [PHP] $HTTP_SESSION_VARS vs $_SESSION - cont.

2002-08-14 Thread Analysis Solutions
On Tue, Aug 13, 2002 at 10:07:57AM -0700, Rasmus Lerdorf wrote: while ( list($Key, $Val) = each($_SESSION) ) { $$Key = $Val; } extract($_SESSION) is a better way to do that. Yeah. Old habits die hard! :) --Dan -- PHP classes that make web design

[PHP] Credit Card Transactions and Micropayment

2002-08-14 Thread Sascha Braun
Hello, while I'm building a very nive page for buying images over the web, but there are some parts of the site where the development not is evaluated to the end. (Hope you all understand this sentence.) One part will be the payment module. I read the parts about the creditcard security in

[PHP] Introducing eNetwizard Server: An Open Source Project for Users of PHP

2002-08-14 Thread Robert Samuel White
INTRODUCTION eNetwizard is a cutting-edge web application server and content management system. It includes an advanced runtime engine capable of rendering and managing an unlimited number of websites across an unlimited number of domains (referred to as the matrix), all from a central web

Re: [PHP] Setting the line number for debugging

2002-08-14 Thread Thomas Lochmatter
As far as I know, __LINE__ and __FILE__ are magic constants which return the current line number and file name. But what I'm looking for is a way to set these two things. I want to say on line 30 that this is not line 30, but line 40 for example. And php should then return all following errors

Re: [PHP] newbie PHP/HTML pull down menu problem

2002-08-14 Thread Justin French
You have a while loop that pulls values out of the MySQL table row by row, and for each row, you output an option in the select box. Something like: form name=tester action=script.php method=get select name=color ? $sql = SELECT color_id, color FROM colors_table ORDER BY id; $result =

Re: [PHP] Setting the line number for debugging

2002-08-14 Thread Chris Boget
As far as I know, __LINE__ and __FILE__ are magic constants which return the current line number and file name. Sorry, I misunderstood exactly what you were looking for. whole script. If now an error occurs on line 362 for example, it is not easy to find the buggy code part, because this

RE: [PHP] fopen and sort by date modified

2002-08-14 Thread electroteque
sweet , damn filemtime this was hiding from me :) -Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 8:48 PM To: electroteque; [EMAIL PROTECTED] Subject: Re: [PHP] fopen and sort by date modified Op woensdag 14 augustus 2002 13:04, schreef

Re: [PHP] determining which link was clicked

2002-08-14 Thread Gui Guy
Thanks for your help Thats what I am trying to do but the variable $content does not get over to newpage.php - Original Message - From: Moose Magin [EMAIL PROTECTED] To: Gui Guy [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, August 14, 2002 3:52 AM Subject: RE: [PHP]

Re: [PHP] Setting the line number for debugging

2002-08-14 Thread Thomas Lochmatter
How do you include the source scripts into the main scripts? By using include() or require()? IIRC, __LINE__ and __FILE__ should work in cases like that telling you the line and file name of the source script, not the main script. Unfortunately none of them. I really put them together in

RE: [PHP] fopen and sort by date modified

2002-08-14 Thread electroteque
unfortunately this isnt sorting by date modified ? -Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 8:48 PM To: electroteque; [EMAIL PROTECTED] Subject: Re: [PHP] fopen and sort by date modified Op woensdag 14 augustus 2002 13:04, schreef

[PHP] Shared network server failing to include files

2002-08-14 Thread Julio Nobrega
Hi all, I am not 100% sure if this is a PHP problem, so I apologize in advance if it is an off-topic problem. I have a Linux server where I develop my websites. A Windows 2000 takes care of our network internet connectivity. I need to show to a client the progress of our work, so I've

[PHP] Shared network server failing to include files

2002-08-14 Thread Julio Nobrega
Hi all, I am not 100% sure if this is a PHP problem, so I apologize in advance if it is an off-topic problem. I have a Linux server where I develop my websites. A Windows 2000 takes care of our network internet connectivity. I need to show to a client the progress of our work, so I've

[PHP] online petition

2002-08-14 Thread M.E. Suliman
Hi Anyone know of a online petition system in PHP similar to what is offered on www.PetitionOnline.com Thanks Mohamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ldap_rename refused to work

2002-08-14 Thread Stig Venaas
On Wed, Aug 14, 2002 at 02:18:58AM -0700, Roger Thomas wrote: built: php-4.2.2 with openldap 2.0.25 i tried using the ldap_rename function to modify the dn of my ldap db but nothing seems to happen. the record was not change at all. i have followed closely the code-snippet that was given by

[PHP] regex match problem

2002-08-14 Thread Dave [Hawk-Systems]
as part of a larger application we have a bit of code that processes whois to determine domain name expiry dates. Most formats are easily parsed, but Register.Com has thrown the little regex for a loop and I am unsure as to a clean workaround. Here is what we have; ...

[PHP] Re: requesting sites running OS X

2002-08-14 Thread Jerry
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Michael Geary) wrote: I have been asked by a rep at a large software dev company about any websites live-to-the-world running OS X. We are, but we're not exactly huge (max hits/day = approx. 1000, mostly internal). So, what sites are you

[PHP] problem with mail()

2002-08-14 Thread Gui Guy
I'm trying to send email from php and nothing happens. Sendmail is correctly setup in php.ini. When I checked the maillog file I see: ...: SYSERR(nobody): Can't create transcript file ./xfg7E9Jlr03988: Permission denied : SYSERR(nobody): Cannot create ./dfg7E9Jlr03988: Permission denied

[PHP] fgets question

2002-08-14 Thread Monte Ohrt
Hi, I have a question about fgets(), it seems to pick up an extra line at the end of a text file. example, I open a new file named test with the vi editor and make it 8 lines long like so (showing newlines as \n): 1\n 2\n 3\n 4\n 5\n 6\n 7\n 8\n I create this PHP program and run it: ?php

Re: [PHP] Shared network server failing to include files

2002-08-14 Thread Andrew Brampton
Hi, I don't think this is a PHP question, but the line Alias /cs/ //192.168.0.253/apachedir/ try Alias /cs/ \\192.168.0.253/apachedir/ Because //isn't valid for UNCs, but \\ is.. If this doesn't work, then with dos map \\192.168.0.253/apachedir/ to a network drive and point apache at that

Re: [PHP] fgets question

2002-08-14 Thread Kevin Stone
The only explaination is that 'vi' is putting an extra line in there that you're not seeing. -Kevin - Original Message - From: Monte Ohrt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 14, 2002 11:05 AM Subject: [PHP] fgets question Hi, I have a question about

[PHP] Detecting Browser Closing...

2002-08-14 Thread Kondwani Spike Mkandawire
Is there a function that can detect if anyone has closed the browser? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Detecting Browser Closing (2)...

2002-08-14 Thread Kondwani Spike Mkandawire
Sorry I din't quite phrase that right... Here goes I am manipulating variables according to various user reactions... I want to be able to alter a certain variable to its default if the user decides to say, well to hell with it and closes his browser... Are there any php functions that would

Re: [PHP] Detecting Browser Closing...

2002-08-14 Thread Chris Boget
Is there a function that can detect if anyone has closed the browser? Not in PHP. You can using JavaScript, however. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] addslashes() and stripslashes()

2002-08-14 Thread ed
Is it a good idea to always use addslashes() on a value gathered from a text field or textarea? If you use addslashes() to INSERT the stuff into a db, should you always use stripslashes() when you SELECT it from the database? tia, --ed __ Do You

Re: [PHP] Shared network server failing to include files

2002-08-14 Thread @ Edwin
And still, if this doesn't work, why not install PHP as well--with Apache... (Perhaps, there must really be some good reason why not...) I'm not sure what was meant by A Windows 2000 takes care of our network internet connectivity but if a router is present, why not just map HTTP request

RE: [PHP] addslashes() and stripslashes()

2002-08-14 Thread Matt Schroebel
-Original Message- From: ed [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 1:48 PM To: [EMAIL PROTECTED] Subject: [PHP] addslashes() and stripslashes() Is it a good idea to always use addslashes() on a value gathered from a text field or textarea? Yes, always.

Re: [PHP] Detecting Browser Closing...

2002-08-14 Thread Kondwani Spike Mkandawire
Chris Boget [EMAIL PROTECTED] wrote in message 075f01c243ba$2a9d11b0$8c01a8c0@ENTROPY">news:075f01c243ba$2a9d11b0$8c01a8c0@ENTROPY... Is there a function that can detect if anyone has closed the browser? Not in PHP. You can using JavaScript, however. Chris Thanks for the prompt

Re: [PHP] Detecting Browser Closing...

2002-08-14 Thread Chris Boget
Thanks for the prompt response... Would this mean I would embedd the Java Script in my php Script and alter the php variable accordingly... No, because JS is client side and PHP is server side. What you would need to do is have JS detect when the browser closed and make one last server

Re: [PHP] fgets question

2002-08-14 Thread Monte Ohrt
That was my first thought but that wasn't it. To be sure, I urlencoded the file and looked at it: 1%0A2%0A3%0A4%0A5%0A6%0A7%0A8%0A No extra newlines that I could see. FYI, if you run the program from the command line, you have to pipe the output to a pager or you will not see the last

[PHP] how many files are in a directory

2002-08-14 Thread Harry.de
does anybody now a way in php to read out, how many files are in a directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ADVANCED PHP (SOCKETS)

2002-08-14 Thread Gustavo Almeida
I would like to know, what I have to do to make my application handle multiple connections? My current application only handle one user per time. Sorry about my English, but i live in Brazil, if anybody could help me answer me [EMAIL PROTECTED] . Thanky you -- PHP General Mailing List

RE: [PHP] fgets question

2002-08-14 Thread Jay Blanchard
[snip] 1%0A2%0A3%0A4%0A5%0A6%0A7%0A8%0A No extra newlines that I could see. 1\n 2\n 3\n 4\n 5\n 6\n 7\n 8\n I create this PHP program and run it: ?php $fd = fopen (test,r); while (!feof ($fd)) { $buffer = fgets($fd, 4096); echo buffer is $buffer; } fclose ($fd); ? The only way that

[PHP] error reporting

2002-08-14 Thread Georgie Casey
rite, without access to the php.ini file, how can i get php to print all errors on my web server. it runs linux -- Regards, Georgie Casey [EMAIL PROTECTED] *** http://www.filmfind.tv Online Film Production Directory *** -- PHP General Mailing

RE: [PHP] online petition

2002-08-14 Thread César Aracena
I guess you could search for petition on hotscripts.com but it could take you longer to find and configure one properly, than making your own one. C. -Original Message- From: M.E. Suliman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 1:04 PM To: [EMAIL PROTECTED]

Re: [PHP] fgets question

2002-08-14 Thread DL Neil
Hi Monte, Hi, I have a question about fgets(), it seems to pick up an extra line at the end of a text file. ... 8\n ... Here is the output (showing newlines as \n): buffer is 1\n buffer is 2\n buffer is 3\n buffer is 4\n buffer is 5\n buffer is 6\n buffer is 7\n buffer is 8\n buffer

Re: [PHP] how many files are in a directory

2002-08-14 Thread Bas Jobsen
Op woensdag 14 augustus 2002 20:00, schreef Harry.de: does anybody now a way in php to read out, how many files are in a directory ?php // Note that !== did not exist until 4.0.0-RC2 clearstatcache(); $dir='/home/'; if ($handle = opendir($dir)) { echo Directory handle: $handle\n;

Re: [PHP] error reporting

2002-08-14 Thread Bas Jobsen
start your file with : error_reporting(E_ALL); Op woensdag 14 augustus 2002 20:09, schreef Georgie Casey: rite, without access to the php.ini file, how can i get php to print all errors on my web server. it runs linux -- Regards, Georgie Casey [EMAIL PROTECTED]

[PHP] !== (was Re: [PHP] how many files are in a directory)

2002-08-14 Thread Chris Boget
// Note that !== did not exist until 4.0.0-RC2 I took a quick look at the docs to find out what !== meant (because I'd never seen it before). I'm not sure I understand what it's use is. Could someone explain why you would use it and for what purpose? I couldn't really infer from the example

[PHP] Sessions...

2002-08-14 Thread Kondwani Spike Mkandawire
? setcookie(cookie, Job Postings Psyc... Created by Kondwani Mkandawire, time()+3600); session_start(); session_register(MySession); $counter=0;? ?php $file = fopen(basename($PHP_SELF), r+); if((SomeCondition is Satisfied)($counter 4)){ echo 'form name=formName action =

[PHP] problem with $_POST

2002-08-14 Thread Adam Williams
Hi, I am having a problem with $_POST which I will explain below. My configuration is Redhat 7.3 Linux 2.4.18 with Apache 2.0.39, PHP 4.2.2, and MySQL 3.23.49. I have an SQL table which was created by: CREATE TABLE testTable (id nut null primary key aut_increment, testField varchar (75)); I

[PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
Hello, To begin.. i'm new to the list... I'm trying to learn good practices in OOP based PHP. I'm actually a bit new to OOP in general, but I've done quite a bit of reading and playing around with it in the past couple of months. What I'm trying to figure out is the proper way to call a class

Re: [PHP] Persistant Connections

2002-08-14 Thread Nick Oostveen
Persistent connections are typically a good thing to use on high traffic sites as they offer better performance than opening and closing connections for each database request. The reason for this is the overhead used in opening a database connection is actually quite high. While keeping them

RE: [PHP] !== (was Re: [PHP] how many files are in a directory)

2002-08-14 Thread Jay Blanchard
[snip] // Note that !== did not exist until 4.0.0-RC2 I took a quick look at the docs to find out what !== meant (because I'd never seen it before). I'm not sure I understand what it's use is. Could someone explain why you would use it and for what purpose? [/snip] $a !== $b Not identical

RE: [PHP] PHP - class question

2002-08-14 Thread Steve Bradwell
I would suggest you write a method (called mydb() for example) that connects to your database, and if needed, call it from your constructor like: $this-mydb(); This way you can always reuse the method from other code. hth, Steve. -Original Message- From: Mark Armendariz [mailto:[EMAIL

Re: [PHP] PHP - class question

2002-08-14 Thread Nick Oostveen
If you are just trying to access a classes functions without creating an instance of it you're probably looking to use the scope resolution operator ::. For this to work all you have to do is ensure that the definition for the class you wish to use is included into the file containing the

Re: [PHP] fgets question

2002-08-14 Thread Monte Ohrt
I don't have the option of editing the text files to work right. I want to be able to read an arbitrary text file line by line and process each one. So I suppose I could do this (?) ?php $fd = fopen (test,r); while (!feof ($fd)) { $buffer = fgets($fd, 4096); if($buffer == '') {

[PHP] Re: !== (was Re: [PHP] how many files are in a directory)

2002-08-14 Thread Justin Garrett
Here is an example that might help. $a = 1; if($a) echo '1'; if($a == true) echo '2'; if($a === true) echo '3'; The first and second conditional statements execute but the third doesn't. This is because $a evaluates to true but is not of type 'boolean'. === and !== not only

[PHP] Array question

2002-08-14 Thread Brad Harriger
I have a program containing an array called $thisArray. At some point in the program, the value of next($thisArray) is an array ($subArray). How can I echo the name of the of the second array (subArray)? The name of the sub array may change at any time, so I can't just hard code it. Thanks

Re: [PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
Well, I actually have a full db class which has a connect and close method as well as query, fetch_array, etc... What I really want to know is how to use the methods in my db class from another class (myclass for example).. Do I include the db class from the myclass constructor and then set a

Re: [PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
That seems more like what I'm looking for.. Thank you, Nick... Mark Nick Oostveen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If you are just trying to access a classes functions without creating an instance of it you're probably looking to use the scope

[PHP] php and xml problem

2002-08-14 Thread Pafo
i got 2 problems with this code: ?php $insideitem = false; $insidekeep = false; $insiderelic = false; $printed = false; $printedkeep = false; $tag = ; $server = false; $da_server = ; $da_lastguildupdate = ; $da_lastcharupdate = ; $da_population = ; $da_type = ; $da_status = ; $da_relicorig = ;

Re: [PHP] regex match problem

2002-08-14 Thread Bas Jobsen
To Match: Tue, Jul 29, 2003 $pregmatchstring=/([\s])*(Renewal\DDate|Registered\sthrough|Expires|Record \sExp ires|Domain\sExpires|Expiry\sDate)([\D\s]*)(.*)/i; You can change the last part of $pregmatchstring in: Expiry\sDate)([\D\s]*|\w{3},\s\w{3}\s\d{2},\s\d{4})(.*)/i; You can feed

Re: [PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
Do you know where I can find more info on how to use the scope resolution operator? My searches aren't giving much (at leant not mcuh regarding php) and in the manual, it only shows up momentarily as a note in the operators section... Mark Nick Oostveen [EMAIL PROTECTED] wrote in message

[PHP] PHP AND JAVA

2002-08-14 Thread Alexandra Aguiar
may i use php with JAVA (note. not JAVASCRIPT , but JAVA APPLETS) !?! any helps !? thx xanda

  1   2   3   >