[PHP] Re: php5 methode + num parameters

2003-07-07 Thread Greg Beaver
Hi Yann, In my experience, PHP 4 only complains if you pass in too few arguments, not too many. If you would like an exception, you could try class MyException extends Exception { private $_msg; function __construct($msg = '';) { $this->_msg = $msg; } public function

Re: Re[4]: [PHP] daemonized php

2003-07-07 Thread Greg Donald
> But I sill wan't to hear from you php experts. Anybody do such thing in > real example or this is can only be my dream. Although I may not be the PHP expert you seek, I do have lots of command line PHP scripts: mailings, spam filter, db maintenance.. I even have an IRC bot written in PHP. -

Re: Re[2]: [PHP] daemonized php

2003-07-07 Thread Greg Donald
> Ok let be more specific about my idea. Because I'm better php programer > than C I decided to write this in php. I use comandline php. > > I want to write some daemon to be started > > ./myprog & > > Than this has to be run until I cancel it. But I also want to check > somehow, what this proc

Re: [PHP] Call by reference to function arguments

2003-07-07 Thread David Otton
On Mon, 7 Jul 2003 17:36:26 +0100, you wrote: >I want to write a function (as I have written in several other languages) that >obtains it's arguments dynamically (using func_get_arg()) and then assigns to that >argument. Think of the way that scanf() works -- that sort of thing. > >I have distille

[PHP] Re: Session start problem

2003-07-07 Thread Mathieu Dumoulin
Problem was that the TMP dir was full and we couldn'T write down the session file... Seems this jams the server completly. Be aware that if anything like that happen to you that you have to check fro the TMP files that might be overflooding your partition. "Mathieu Dumoulin" <[EMAIL PROTECTED]> wr

[PHP] php5 methode + num parameters

2003-07-07 Thread Yann Larrivee
Hi i have the fallowing code (simplified) class FormElement { private $element_id = null; private $element_name = null; private $element_type = null; private $element_style = null; private $element_string = null; public function FormElement($properties) { $this->SetStyle($properties["def

Re: [PHP] mail() function

2003-07-07 Thread Adam Voigt
Yeah, umm, thats a weird error message. What server platform / OS? On Mon, 2003-07-07 at 12:58, Mike At Spy wrote: > Is anyone familiar with the mail function and how it works on the server? I > can't get it to work on a client's server, and this error shows up in the > error log: > > PHP Warni

[PHP] mail() function

2003-07-07 Thread Mike At Spy
Is anyone familiar with the mail function and how it works on the server? I can't get it to work on a client's server, and this error shows up in the error log: PHP Warning: U1À‰å]Éö¼': Unable to initialize module Module compiled with debug=144, thread-safety=135 module API=1119810252 PHP com

[PHP] Call by reference to function arguments

2003-07-07 Thread Alain Williams
Hi, I want to write a function (as I have written in several other languages) that obtains it's arguments dynamically (using func_get_arg()) and then assigns to that argument. Think of the way that scanf() works -- that sort of thing. I have distilled what I want to do in the code below. foo adds

Re: [PHP] instanceof on class (not objects) php 5

2003-07-07 Thread Greg Beaver
Hi, I can't instantiate the class, as there is no way to guarantee that the constructor doesn't require arguments, and I don't want to halt program execution if it doesn't implement tester Greg Marek Kilimajer wrote: Maybe if (new MyClass instanceof_equiv tester) { ... } ?> -- PHP

Re: [PHP] php pages without .php extension on linux and windows

2003-07-07 Thread Jeff Harris
On Jul 7, 2003, "Heiko Mundle" claimed that: |I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K). | |On Linux I can access the PHP scripts without adding the .php extension. |E.g. |http:///?para1=TRUE |for |http:///.php?para1=TRUE |But on Windows it doesn't work (page not found

Re: [PHP] Re: Embedding an image in an email

2003-07-07 Thread Marek Kilimajer
Hugh Bothwell wrote: First, it's a bad idea... if you *must* show images, it's far better to stick them on a web server and refer to them from your email. In fact this is discouraged. This is the way spammers get confirmation of active email addresses, so most mail clients loading of remote ima

[PHP] Session start problem

2003-07-07 Thread Mathieu Dumoulin
We are using php 4.0.6 here on a dev server and we are getting a weird session_start() problem. After setting up the login on another page, if we register any of our three required varaibles to go on, the session_start() will simply crash and loop endlessly. We have tested everything: - setting v

[PHP] Catch Signals

2003-07-07 Thread Adam Voigt
I have a PHP script that is running constantly in the background, and I've used CYGWIN to register it as a service, but the problem is when I try to stop/start (restart) it from the service control manager, it just sits and spins on the stop portion. I'm fairly sure this is because the PHP program

[PHP] Re: Embedding an image in an email

2003-07-07 Thread Hugh Bothwell
"Todd Cary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I would like to encode and embed an image in a file that can be > emailed. Is there some documentation on how to do this? First, it's a bad idea... if you *must* show images, it's far better to stick them on a web server

[PHP] Embedding an image in an email

2003-07-07 Thread Todd Cary
I would like to encode and embed an image in a file that can be emailed.  Is there some documentation on how to do this? Todd -- <>

[PHP] Re: Connect Active Directory using LDAP... please help :)

2003-07-07 Thread The.Rock
Try this and see if it works. I had the same problem until I did a little reading. I had to use [EMAIL PROTECTED] as username then I didn't get the credential errors anymore. hope this helps, its very basic but hopefully it gets you started. * Config.php** **

Re: [PHP] daemonized php

2003-07-07 Thread Marek Kilimajer
Uros wrote: Than this has to be run until I cancel it. But I also want to check somehow, what this proces is doing right now. If you want it to be realy nice, use shared memory. But this extension is not enabled by default and is available only on unices. -- PHP General Mailing List (http://

Re[4]: [PHP] daemonized php

2003-07-07 Thread Uros
Hello Adam, I was thinking about using parent and child proces. So when i start server it will call some child process and that I can ask parent what his child is doing. I found some examples on php.net. But I sill wan't to hear from you php experts. Anybody do such thing in real example or this

[PHP] print vs heredoc

2003-07-07 Thread Sparky Kopetzky
Hi, again!! I'm looking for opinions as to which is better/faster, print or heredoc. print makes the code layout look nice and eazy to debug, where heredoc IS faster but makes the code look like a nightmare with everything jammed against the left side of the code. I'm pretty picky about what lo

Re: Re[2]: [PHP] daemonized php

2003-07-07 Thread Adam Voigt
Umm, have your PHP program output a integer to a file somewhere, and just map the integer to a status, example, if "1" exists in the file, it's doing step 1, etc. On Mon, 2003-07-07 at 09:30, Uros wrote: > Hello, > > ok what about checking status what this program is doing right now. > > can t

Re[2]: [PHP] daemonized php

2003-07-07 Thread Uros
Hello, ok what about checking status what this program is doing right now. can this be done with http://www.php.net/manual/en/ref.pcntl.php tia Uros Monday, July 7, 2003, 3:16:35 PM, you wrote: AV> #!/usr/local/bin/php -q AV> set_time_limit(0); AV> while(true) AV>

RE: [PHP] fsockopen -> returning results from port 80, 8080 and 443 requests

2003-07-07 Thread Dave [Hawk-Systems]
any takers on this, before I give up and drop to curl for those types of requests? Dave >Creating a quick script where we can poll the services on a particular >server to >verify if they are running or not. this will be included in a larger scope >application once the details are worked out. > >

RE: [PHP] How to insert a variable into a PHP template.

2003-07-07 Thread Steve Jackson
mysql_insert_id(); How would I call that in my query? Because I tried that and I get resource ID=2 Also putting it into a string and writing it to a file, sounds good to me, that's what I was thinking but how do you do it? Can it just be written as: $string ="all my code including ";''=}{[] et

Re: [PHP] daemonized php

2003-07-07 Thread Adam Voigt
#!/usr/local/bin/php -q Then: chmod u+x scriptname ./scriptname & On Mon, 2003-07-07 at 08:41, Uros wrote: > Hello! > > Can somebody give me any workable example how to run some script written in > PHP in Unix console. > > I wan't to write some server aplication. So it has to be run in the >

Re: Re[2]: [PHP] daemonized php

2003-07-07 Thread Dan Anderson
Remember to http://us4.php.net/manual/en/function.set-time-limit.php That will allow your PHP program to run infinitely long -- and not time out after x seconds. -Dan On Mon, 2003-07-07 at 09:08, Uros wrote: > Hello, > > Ok let be more specific about my idea. Because I'm better php programer

Re: [PHP] what licence for documentation ?

2003-07-07 Thread Dan Anderson
Check out: http://www.php.net/license/ -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] daemonized php

2003-07-07 Thread Uros
Hello, Ok let be more specific about my idea. Because I'm better php programer than C I decided to write this in php. I use comandline php. I want to write some daemon to be started ./myprog & Than this has to be run until I cancel it. But I also want to check somehow, what this proces is doing

Re: [PHP] How to insert a variable into a PHP template.

2003-07-07 Thread Andrew McCombe
- Original Message - From: "Steve Jackson" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Monday, July 07, 2003 1:34 PM Subject: [PHP] How to insert a variable into a PHP template. > Hi, > > I want to write a PHP template with a variable number of the last > recordset i

Re: [PHP] daemonized php

2003-07-07 Thread Greg Donald
> Can somebody give me any workable example how to run some script written in > PHP in Unix console. #!/usr/local/bin/php -q > I wan't to write some server aplication. So it has to be run in the > backgroud. Have a look at the process control functions: http://php.net/pcntl -- Greg Donald h

RE: [PHP] Refresh in PHP [solved]

2003-07-07 Thread Gary Ogilvie
Yeah I found that out eventually. Thanks :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what licence for documentation ?

2003-07-07 Thread E.D.
Hi, I'd like to know which licence has the documentation. PHP licence ? free licence ? public domain ? other ? In other words, I want to include some parts in a commercial product, can I ? Please answer only if you *know*, I can't go with suppositions. -- E.D. -- PHP General Mailing List (h

Re: [PHP] daemonized php

2003-07-07 Thread David T-G
Uros -- ...and then Uros said... % % Hello! Hi! % % Can somebody give me any workable example how to run some script written in % PHP in Unix console. Sure. php -q /path/to/script/name (assuming you have the command-line version of php, which you may not, and that your script doesn't nee

Re: [PHP] daemonized php

2003-07-07 Thread Dan Anderson
start your PHP files with: #! /usr/bin/php Replace /usr/bin/php with the path to php. You will need to make the file executable by chmod ing it. (try: $ chmod +x ./yourscript.php ) As a side note, starting any text file with #! followed by the path to a language interpreter, and chmoding the

[PHP] Re: PHP and MYSQL

2003-07-07 Thread Cybot
Here is the script for what it's worth. ... IS IT WORKING? and the result is IS IT WORKING? are your trying to fool the list? whate else do you expect than > when you write > ?? would ASP work if your write "<% [ASP-CODE] %>" ?? i think not, in short just write < and

Re: [PHP] Refresh in PHP

2003-07-07 Thread Greg Donald
> My user has reported a problem when he loads a page. The page grabs data > from MSSQL and displays this on the screen. However, it is not updated. > Is there any way in getting the page to automatically refresh itself > ONCE when it is loaded, without ending up in a loop? Javascript will do tha

[PHP] daemonized php

2003-07-07 Thread Uros
Hello! Can somebody give me any workable example how to run some script written in PHP in Unix console. I wan't to write some server aplication. So it has to be run in the backgroud. -- Best regards, Uros -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] How to insert a variable into a PHP template.

2003-07-07 Thread Steve Jackson
Hi, I want to write a PHP template with a variable number of the last recordset in a MySQL DB being the number referenced in the file. This is so my file can be saved as a PHP page looking at the right content in a database for a content management system. I am stuck on the way to do it. The code

RE: [PHP] Frustrating problem with log-in script - DOHHH - Solved

2003-07-07 Thread George Pitcher
Sorry guys, I wasted your time if you looked at this. The local.php as copied from my local machine and had 'localhost' as the base url rather than the proper web address. Meet Dumbererer! George -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Frustrating problem with log-in script

2003-07-07 Thread George Pitcher
Hi, I' running a self-registration script. On the login page are 2 fields: 'username' and 'paswd'. The contents are checked against a db. New users must enter 'new' and 'user' into these fields and that will skip the db check and dump them into a registration page. On testing (after it worked f

[PHP] PHP and MYSQL

2003-07-07 Thread Bob G
Please help I am going quite mad. I am trying to install PHP-4. I purchased the PHP and MySQL web development book to this end. I am running under Win2000 and IIS. I downloaded from the PHP web site to get the latest versions. I first tried to do a manual installation but this appeared to fail so

[PHP] Security-other than safe mode?

2003-07-07 Thread MIKE YRABEDRA
Hello, I have many of my clients set up in 'safe_mode' mainly for security reasons. Well, as many of you know, that limits the way PHP functions. Especially on complex apps. Here is what I include in their httpd configs now... php_admin_flag safe_mode on php_admin_flag registe

[PHP] Re: Having problems with an IF statement, just doesn't make sense

2003-07-07 Thread Valentina
I've tried...print nothing in my browser then it seems to me correct. The condition "ELSE" is satisfied. bye. codeused: if (isset($theme)) { print("Current theme is $theme"); require "content/header_$theme.php"; } else { print("$theme"); require "content/header.php"; } codeused. "Bobb" <[

[PHP] ANNOUNCING: Rekall V2.0.0 for Linux/UNIX, Windows, and the Sharpe family of Linux PDAs

2003-07-07 Thread john
Hi Do you want to create, edit, or update your PHP databases remotely within a nice Graphic User Interface without having to use your Web Browser, well you can do that with Rekall and last week Rekall V2.0.0 was finally released for KDE3. QT3-only, Windows and Sharp Zaurus. We even have a run time

[PHP] Richiedo contributo per sapere come interfacciare php con un server di posta., nel mio caso un server di posta in arrivo(POP).

2003-07-07 Thread Valentina
Salve spero di aver chiarito nell'oggetto del messaggio il problema. Se così non fosse per rendere l'idea : ho un server di posta in arrivo a cui vorrei accedere(avendo le dovute autorizzazioni chiaramente) tramite php e sul quale vorrei poter leggere i messaggi presenti. Nel mio caso mi aspetto de

[PHP] php pages without .php extension on linux and windows

2003-07-07 Thread Heiko Mundle
I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K). On Linux I can access the PHP scripts without adding the .php extension. E.g. http:///?para1=TRUE for http:///.php?para1=TRUE But on Windows it doesn't work (page not found - HTTP 404) How do I switch on 'adding .php' on window

[PHP] Read a file and scroll it?

2003-07-07 Thread Dave Carrera
Hi All I know that some level of JS will be needed for this but how can I do this. 1) I have a script that writes to a file. All ok there ;-) 2) I want to load this contents of the file, line by line, so that it scrolls upwards. So how can I do that. What JS would I need and how do I read the f

[PHP] Re: Having problems with an IF statement, just doesn't make sense

2003-07-07 Thread Harry Wiens
> if (isset($theme)) { > print("Current theme is $theme"); > require "content/header_$theme.php"; if you try to send headers in "header_$theme.php", this wont work, because you can't send headers after you've printed or echoed something. try this: if (isset($theme)) { require "content/header

Re: [PHP] instanceof on class (not objects) php 5

2003-07-07 Thread Marek Kilimajer
Maybe if (new MyClass instanceof_equiv tester) { ... } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 7 Jul 2003 09:52:10 -0000 Issue 2161

2003-07-07 Thread php-general-digest-help
php-general Digest 7 Jul 2003 09:52:10 - Issue 2161 Topics (messages 154146 through 154162): Re: Warning: Invalid argument supplied for foreach() 154146 by: Sævar Öfjörð 154147 by: Dave [Hawk-Systems] 154148 by: Philip Olson Re: Having problems with an IF statement,

[PHP] Refresh in PHP

2003-07-07 Thread Gary Ogilvie
Hi Everyone, My user has reported a problem when he loads a page. The page grabs data from MSSQL and displays this on the screen. However, it is not updated. Is there any way in getting the page to automatically refresh itself ONCE when it is loaded, without ending up in a loop? Many thanks --

[PHP] php 4.3.2 problem

2003-07-07 Thread user
Hi We're trying to upgrade to php-4.3.2. when we install libphp.so and restart apache, it fails to start with the error "Invalid command 'php_admin_value', perhaps mis-spelled" I don't understand what's wrong. The syntax of our httpd.conf is working just fine with our current version (4.2.3).

[PHP] Request Network ID

2003-07-07 Thread Haitham A. Khaiyat
Hi, I need you help please. I am looking for a function can give the Network ID from LAN. For example, our LAN is based on Windows 2000. How can I get user network account. VB.NET has this built in function Request.ServerVariables("LOGON_USER") Can you help?:

Re: [PHP] error on array loop through foreach?

2003-07-07 Thread Lars Torben Wilson
On Mon, 2003-07-07 at 00:16, Micah Montoy wrote: > I'm using the foreach to loop through a array that is passed from a form. > The form has a multiple select field and the field sends a list of selected > image locations (i.e. c:\\myimages\\rabbit.gif). All the fields are > selected by use of Java

[PHP] error on array loop through foreach?

2003-07-07 Thread Micah Montoy
I'm using the foreach to loop through a array that is passed from a form. The form has a multiple select field and the field sends a list of selected image locations (i.e. c:\\myimages\\rabbit.gif). All the fields are selected by use of JavaScript before the form is submitted. Anyway, I am gettin

<    1   2