RE: [PHP] Re: mysql statement (still a semi newbie)

2002-08-14 Thread César Aracena
Tim's right about NULL. You can either specify what exactly are the fields of the row you want to update/insert using SET before VALUE (seek the manual at www.mysql.com for more info) or you can just write NULL (without any quotes) where the fields are automatic like *auto_increment* or like *time

[PHP] Re: ADVANCED PHP (SOCKETS)

2002-08-14 Thread J Smith
Although pcntl and fork() were mentioned, you might want to look at socket_select() as an alternative. Using socket_select(), you can set up a multiplexer to handle multiple sockets at the same time. (Or roughly the same time...) J Gustavo Almeida wrote: > > > I would like to know, what

[PHP] html parsing from html file through php

2002-08-14 Thread victor
Hello, I am making an app that read from an html file outputted by MS word (ya its for those people that need to make webpages but don't know how o write html) anyway, using MS word is a requirement; After the user saves their .doc file as a web page (now and htm file) the php will take that html

[PHP] Re: Simple Mail

2002-08-14 Thread Tim Stoop
Dave Leather wrote: > Something is VERY weird with trying to send mail. I am running Apache for > windows and trying to send mail... using a line such as I think you need a local SMTP-server, or at least your SMTP-server configured in PHP (don't know exactly what you need to change in php.ini

[PHP] Re: mysql statement (still a semi newbie)

2002-08-14 Thread Tim Stoop
Alexander Ross wrote: > That first column is an auto_incrementing column so i don't want any data > INSERT INTO cast VALUES(DEFAULT, 'Rick', 'Blaine', 'Humphrey', 'Bogart', > 'male'); I think you need to use NULL instead of DEFAULT... I'm not 100% sure. Just try it :) -- Kind regards, Tim --

RE: [PHP] mysql statement (still a semi newbie)

2002-08-14 Thread vic
U must write: mysql_query(INSERT INTO cast SET Rick='$Rick', Blaine='$Blaine', Humphrey='$Humphrey', Bogart='$Bogart', male='$male'); The stuff with the $ before them are variable that contain the info u want to put into the word that don't have the $ those words are the cells in your database.

[PHP] Re: PHP AND JAVA

2002-08-14 Thread Tim Stoop
Alexandra Aguiar wrote: > may i use php with JAVA (note. not JAVASCRIPT , but JAVA APPLETS) !?! Depends on what you want to achieve. As long as the final is correct (i.e. the one that is sent to the client, after php-parsing), no problem at all. -- Kind regards, Tim -- PHP General Mailing

[PHP] Simple Mail

2002-08-14 Thread Dave Leather
Something is VERY weird with trying to send mail. I am running Apache for windows and trying to send mail... using a line such as mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3"); But I get an error of Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\c

[PHP] [Class] "global" again, not working?

2002-08-14 Thread Tim Stoop
Hi people, Again, a problem with "global". Maybe you can shed a light on this one... Consider this part of a class (with [...] I marks things I left out, which aren't important for the problem, FAFAIK): class FotoView { [...] var $fotos; var $cats; var $start;

[PHP] mysql statement (still a semi newbie)

2002-08-14 Thread Alexander Ross
What is wrong with the statement below? Am I using DEFAULT incorrectly? That first column is an auto_incrementing column so i don't want any data to get inserted there. Thanks for you help. INSERT INTO cast VALUES(DEFAULT, 'Rick', 'Blaine', 'Humphrey', 'Bogart', 'male'); Thanks! Alex -- PH

[PHP] apache seg fault (sig 11)

2002-08-14 Thread Pete James
Wondering if any of the gurus out there have any insight... I'm running a set of php scripts using nested output buffering + sessions and I'm getting sporadic seg faults. If I turn off output buffering it seems to work fine, which would be great if I didn't need it. I'd post code, but there's a

Re: [PHP] sessions

2002-08-14 Thread Adam Williams
I think you'll need to use header ("Location: url?".print SID); Adam On Wed, 14 Aug 2002, apollo wrote: > hi, > > after submit i use: > > if (isset($submit)) > header ("Location: url?".sid); > > i want continue my session in next page, but SID (my session's unique id) is

[PHP] Re: ADVANCED PHP (SOCKETS)

2002-08-14 Thread Philip Hallstrom
Take a look at the pcntl functions. In particular the pcntl_fork() function. On Wed, 14 Aug 2002, Gustavo Almeida wrote: > > > 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

[PHP] sessions

2002-08-14 Thread apollo
hi, after submit i use: if (isset($submit)) header ("Location: url?".sid); i want continue my session in next page, but SID (my session's unique id) is lost in nex page, so i can't. What's wrong ? Any ideas ? apollo, just me -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] problem with $_POST

2002-08-14 Thread Bas Jobsen
Op woensdag 14 augustus 2002 20:57, schreef Adam Williams: > Does anyone know why it is not working with $_POST but works fine with > $_GET? I don't know, but maybe you has to put "" around POST, method="POST". It works then with GET, cause that's default. Maybe something else is wrong, so met

Re: [PHP] Array question

2002-08-14 Thread Bas Jobsen
> How can I echo the name of the of the second array (subArray)? The name for value array('1','2'.'3'), 'c'=>array('6','5'.'4'), 'd'=>array('8','9'.'10'), ); $r=next($test); echo $r[0].' or :'."\n"; foreach

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

2002-08-14 Thread Julio Nobrega
@ Edwin em Wednesday 14 August 2002 14:51 foi agraciado com uma resposta por: > 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...) Yes ;-) It connects to 12 different mysql databases and has a few Linux

[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

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

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 f

[PHP] php and xml problem

2002-08-14 Thread Pafo
i got 2 problems with this code: ServerStatusPopulation< /TR>\n"; print "$da_server"; if ($da_type) { print "($da_type)"; } print ""; print "$da_status"; print "$da_population\n"; print "\n"; print "LastguildupdateLastcharupdate< /TR>\n"; print "$da_lastguildupdate$da_lastcharupda

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

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 my

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

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

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 (?) DL Neil wrote: > Hi Monte, > > >>Hi, I have a question about fgets(), it seems to pick up an extra line >>at

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 clas

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 P

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 TR

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 o

[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

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

[PHP] Sessions...

2002-08-14 Thread Kondwani Spike Mkandawire
'; if(empty($verif)){ Display Some message... $counter++; fputs($file, "\r\n"); } else{ Display SomeOther message... $counter++; fputs($file, "\r\n"); } } else{ reset counter to 0 destroy session... } I want this set up such that gi

[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

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

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

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

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]

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

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: >> >>>$fd = fopen ("test","r"); >>while (!feof ($fd)) { >> $buffer = fgets($fd, 4096); >> echo "buffer is $buffer"; >>}

[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 (htt

[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

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 (extra)

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

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

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 reques

[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

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

[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

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 f

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 Andre

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

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

[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

[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; ... $pregmatchstrin

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 give

[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

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

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

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 e

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 i

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

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 t

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: {$color}"; } ?> Season to taste :) Justin French on 14/08/02 2:30 PM, Brian & Shannon Windsor ([EMAIL PROTECTED]) wrote: > Hi, > > I

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

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

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

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 desi

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

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

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

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] 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] 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() {

[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] 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, 2002-08-14

[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 8bpp(bitsperpixel),

[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

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 distrib

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

[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

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

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 eff

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

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

[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

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

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 I

[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] 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 d:\inetpub\wwwro

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

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

[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: SSL/sessions & password question

2002-08-14 Thread Jean-Christian Imbeault
Wayne wrote: > > All you need is: > 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] 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] 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 email form Forum and on the 'newpage.php' if($content == "emailform") { //Put your stuff to be displayed here } elseif ($conte

<    1   2   3   >