Re: [PHP] READ BEFORE REPLYING TO : Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2004-10-02 Thread Kevin Waterson
This one time, at band camp, Robert Restad [EMAIL PROTECTED] wrote: I am posting, obviously, the 26th message in this thread. (or maybe higher). Look, he knew what he was getting into when he subscribed. There's no backing out now. I say, make him stick it out! Kevin - Democracy is

Re: [PHP] php script run by cron job

2004-10-02 Thread Merlin
Andrew Kreps wrote: On Fri, 01 Oct 2004 08:18:55 +0200, Merlin [EMAIL PROTECTED] wrote: Here is the how I did it: 14 8 * * * root /usr/local/bin/php /home/www/cron/statistics.php Does anybody see an error in this? I'm not familiar with a crontab format that allows you to specify a username

Re: [PHP] Detecting Mysql server is running

2004-10-02 Thread Marek Kilimajer
barsalou wrote: I know I can see if php has the ability to talk with the Mysql server, but is there a way to determine if the Mysql server is running. In some cases, I wouldn't have passwords, so a mysql_connect wouldn't work. I'm sure, at any given time, there is a mysql server running somewhere

Re: [PHP] array sort question

2004-10-02 Thread Jasper Howard
On Fri, 1 Oct 2004 22:44:50 -0400, Paul Bissex [EMAIL PROTECTED] wrote: On Fri, 1 Oct 2004 19:12:30 -0700, Ed Lazor [EMAIL PROTECTED] wrote: Any ideas on how I could sort this array by Title? $menu[1][ID] = 5; $menu[1][Title] = Test 1; $menu[2][ID] = 3; $menu[2][Title] = Test 4;

Re: [PHP] array sort question

2004-10-02 Thread Jasper Howard
Sorry for the empty reply (miss slide of the finger on my touch pad). You can use array_multisort(); The code would look something like this, remember, this is untested code so be warned before any flaming is done: //CODE //You need to restructure your array like this: $menu[ID][1] = 5;

Re: [PHP] Session handlers

2004-10-02 Thread Ewout de Boer
- Original Message - From: Shawn McKenzie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 02, 2004 2:11 AM Subject: [PHP] Session handlers Just curious, what is the advantage of using a custom session handler, such as saving session data in MySQL? security ! The

[PHP] Re: Office document upload to website (and inserting in MySQL if possible)

2004-10-02 Thread Phill
Pugi! [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I would like to upload office-document (doc, xls, ...) using a form to a website (apache, php, mysql) in a specific directory and if possible insert it into a table (MySQL-db). Is this possible. If yes, how ? You don't

Re: [PHP] Session handlers

2004-10-02 Thread Tim Van Wassenhove
In article [EMAIL PROTECTED], Ewout De Boer wrote: - Original Message - From: Shawn McKenzie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 02, 2004 2:11 AM Subject: [PHP] Session handlers Just curious, what is the advantage of using a custom session handler,

[PHP] Including function libraries

2004-10-02 Thread Andrew W
Ok, I've got a file called functions.lib which contains the following: function checkLoggedIn() { return (true); } function Test ($x) { return ($x * $x); } and a file called test.php which contains the following: ?php include 'functions.lib'; if (checkLoggedIn()) { print

[PHP] How to load another php page?

2004-10-02 Thread Arnold
Hi, How can i load another php file (another.php) directly without an action (example: clicking on a button)? I'd like to do in my php script: if(isset($var1)) { // load another.php } It is possible to include the file, but i just want to load the whole another.php file. I guess that there

Re: [PHP] How to load another php page?

2004-10-02 Thread afan
if(isset($var1)) { include 'another.php'; } Hi, How can i load another php file (another.php) directly without an action (example: clicking on a button)? I'd like to do in my php script: if(isset($var1)) { // load another.php } It is possible to include the file, but i just want to

Re: [PHP] Session handlers

2004-10-02 Thread Chris Shiflett
--- Tim Van Wassenhove [EMAIL PROTECTED] wrote: If others can read from your session.save_path, i'm pretty sure they'll be able to read the credentials you use in the scripts to connect the database too. Which makes the security argument in this case invalid. You can store the database access

RE: [PHP] Including function libraries

2004-10-02 Thread Graham Cossey
Do you have ?php and ? in functions.lib ? -Original Message- From: Andrew W [mailto:[EMAIL PROTECTED] Sent: 02 October 2004 16:52 To: php-gen Subject: [PHP] Including function libraries Ok, I've got a file called functions.lib which contains the following: function checkLoggedIn() {

Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
Does an include replace the file who called include? Arnold [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] if(isset($var1)) { include 'another.php'; } Hi, How can i load another php file (another.php) directly without an action (example: clicking on a button)? I'd like

Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
I don't think include replaces the calling php script. What i mean is that i want exactly the same as what is done by an submit action but then you have to press a button, whereafter a new phpfile is loaded and the button-press is what i want to ignore. Arnold [EMAIL PROTECTED] wrote in message

Re: [PHP] How to load another php page?

2004-10-02 Thread Lists
Hmmm, I'm not sure I am following you. Maybe: header (Location: page.php); exit; So you could do something like: if this condition then go to new page, else go to other page? -dg On Oct 2, 2004, at 9:44 AM, Arnold wrote: I don't think include replaces the calling php script. What i mean is that

Re: [PHP] How to load another php page?

2004-10-02 Thread Jason Davidson
Arnold [EMAIL PROTECTED] wrote: Hi, How can i load another php file (another.php) directly without an action (example: clicking on a button)? I'd like to do in my php script: if(isset($var1)) { // load another.php } It is possible to include the file, but i just want to load the

[PHP] Re: stand alone php

2004-10-02 Thread Gerben
search the history. questions about compiling are already asked before, so search for it. I wouldn's know. Mag [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Is there any app that converts php to a stand alone version? like a windows .exe program. Just curious. Thanks,

Re: [PHP] How to load another php page?

2004-10-02 Thread Alex Hogan
[snip] How can i load another php file (another.php) directly without an action (example: clicking on a button)? [/snip] If you're looking to check a condition and then add another php file to your existing page then; if(isset($var1)) { include ('another.php'); or

RE: [PHP] array sort question

2004-10-02 Thread Ed Lazor
Thanks for the example using array_multisort. I'd been wondering how I could use that function to do what I want. It looks like it's more flexible in the long run, but I was able to use Paul's recommendation to do what I want. Here's the code I ended up using: function cmp ($a, $b) {

[PHP] Using PHP4 or PHP5

2004-10-02 Thread Michael Lauzon
As I mentioned earlier, I am putting a team together to create a web-based RPG, different from the one I am currently playing. Would it be better to use PHP4 with it's strong developer base, or the new PHP5 which is more object oriented an in my opinion would be easier to keep the game up to

Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
This (header() function) works only if this is the first output sent to browser so later in the script this doesnt work anymore, i've tried that. After that you get error messages like: Warning: Cannot modify header information - headers already sent by (output started at

Re: [PHP] Detecting Mysql server is running

2004-10-02 Thread mbox mbarsalou
Thanks to the responses I got. One of them will surely work for me. Mike B. On Sat, 2004-10-02 at 01:35, Marek Kilimajer wrote: barsalou wrote: I know I can see if php has the ability to talk with the Mysql server, but is there a way to determine if the Mysql server is running. In some

Re: [PHP] How to load another php page?

2004-10-02 Thread Marek Kilimajer
Arnold wrote: This (header() function) works only if this is the first output sent to browser so later in the script this doesnt work anymore, i've tried that. After that you get error messages like: Warning: Cannot modify header information - headers already sent by (output started at

Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
I created another php page with html and php code in it. What i want is exact what is done in an form action when a new php file is loaded, but without letting the customer pushing a button. Include works for including php code with functions and the header() function works if it is the first

Re: [PHP] Naming conventions

2004-10-02 Thread Daniel Schierbeck
Jensen, Kimberlee [EMAIL PROTECTED] wrote: What do you use for your naming conventions for variables functions classes I'm trying to tell my students what the standard is currently. Are people using camel case or underscores or both? I use this: $a_variable ClassName a_function() aMethod() -- PHP

Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
Ok, i can live with it, include works but this doesnt replace the whole running script, only the rest of the script (what is still coming), so if a few things have been written in a.php, when include('b.php') is executed, this b.php does not replace all the (allready written) output of a.php.

Re: [PHP] How to load another php page?

2004-10-02 Thread Marek Kilimajer
Arnold wrote: Ok, i can live with it, include works but this doesnt replace the whole running script, only the rest of the script (what is still coming), so if a few things have been written in a.php, when include('b.php') is executed, this b.php does not replace all the (allready written) output

[PHP] Re: PHP (anti) crash policy?

2004-10-02 Thread Olaf van der Spek
Manuel Lemos wrote: AFAIK PHP runs safely in multi-threaded servers. What you can't expect is that PHP handles abnormal situations caused by flaws in the external libraries that PHP links with. When I link with the same library in a C app, this 'abnormal situation' just results in a normal

RE: [PHP] How to load another php page?

2004-10-02 Thread Graham Cossey
For my own clarification, would it not be possible to use output buffering and then either redirect to another script using header() or output the buffer contents? ?php ob_start(); [php code] if ($variable = 1) header(Location: script1.php); if ($variable = 2) header(Location:

[PHP] PHP5 Type Hints

2004-10-02 Thread Gerard Samuel
Im unable to find documentation on this. Does one exist? If so can you point me to it. Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to load another php page?

2004-10-02 Thread Arnold
Hi Graham, This works fine! Without the ob_start and ob_flush commands, all the header() commands have to be put before the HTML html tag, otherwise an error is displayed about header information that was already sent. Now i put ob_start() on the first line before html and i can put the header()

Re: [PHP] Including function libraries

2004-10-02 Thread Jasper Howard
it seems possible that this is the problem, you called it, checkLoggedIn() in your script then tried to call, checkloggedin(). Notice the caps aren't there when you tried to call it. On Sat, 2 Oct 2004 17:20:07 +0100, Graham Cossey [EMAIL PROTECTED] wrote: Do you have ?php and ? in

[PHP] Re: Using PHP4 or PHP5

2004-10-02 Thread Amit Arora
If you are going to develop the application on a Object Oriented Programming, then I would advice you go with PHP 5. If it is going to a healthy mix of procedural coding and OOP, then I recommend using PHP 4 right now but gradually upgrade to PHP 5. Whatever you choose, keep in mind that PHP 5

[PHP] RE: [PHP-DB] Re: Office document upload to website (and inserting in MySQL if possible)

2004-10-02 Thread Bastien Koert
here is some code i wrote for a guy. ?php session_start(); // redefine the user error constants - PHP 4 only define(FATAL, E_USER_ERROR); define(ERROR, E_USER_WARNING); define(WARNING, E_USER_NOTICE); // set the error reporting level for this script error_reporting(FATAL); //Declarations $myfile

Re: [PHP] PHP5 Type Hints

2004-10-02 Thread Curt Zirzow
* Thus wrote Gerard Samuel: Im unable to find documentation on this. Does one exist? If so can you point me to it. I dont think anything officially exist in the manual, yet. The type hint can only be an Object, and will cause a fatal error if not the paticular object isn't passed. class Foo {

[PHP] A problem of installation

2004-10-02 Thread Teng Wang
I met with a problem when installing php5.0.0 on my Federo Core 2.0 system. I use the default settings: ./configure make make install Everything is ok, but when I test my phpinfo(),it always shows the 4.3.8 version. Yet, when I type the following command php -v to show the version of php, it's

[PHP] A problem of installation

2004-10-02 Thread Teng Wang
I met with a problem when installing php5.0.0 on my Federo Core 2.0 system. I use the default settings: ./configure make make install Everything is ok, but when I test my phpinfo(),it always shows the 4.3.8 version. Yet, when I type the following command php -v to show the version of php, it's

Re: [PHP] A problem of installation

2004-10-02 Thread Robert Cummings
On Sun, 2004-10-03 at 00:05, Teng Wang wrote: I met with a problem when installing php5.0.0 on my Federo Core 2.0 system. I use the default settings: ./configure make make install Everything is ok, but when I test my phpinfo(),it always shows the 4.3.8 version. Yet, when I type the

Re: [PHP] PHP5 Type Hints

2004-10-02 Thread Gerard Samuel
Curt Zirzow wrote: * Thus wrote Gerard Samuel: Im unable to find documentation on this. Does one exist? If so can you point me to it. I dont think anything officially exist in the manual, yet. The type hint can only be an Object, and will cause a fatal error if not the paticular object isn't

[PHP] please ignore

2004-10-02 Thread Jerry M. Howell II
just testing maildrop please ignore :)

Re: [PHP] PHP5 Type Hints

2004-10-02 Thread Aidan Lister
Hi Gerald, If you did see something like that, it was a mistake in our manual :) I've documented typehinting now, though it will take a while to show up in the manual. http://php.net/language.oop5.typehinting Kind Regards, Aidan Gerard Samuel [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] PHP5 Type Hints

2004-10-02 Thread Gerard Samuel
Aidan Lister wrote: Hi Gerald, If you did see something like that, it was a mistake in our manual :) I've documented typehinting now, though it will take a while to show up in the manual. http://php.net/language.oop5.typehinting It may have been Example 18-23 at

[PHP] Regular Expression - highlighting

2004-10-02 Thread Aidan Lister
Hello list, I'm pretty terrible with regular expressions, I was wondering if someone would be able to help me with this http://paste.phpfi.com/31964 The problem is detailed in the above link. Basically I need to match the contents of any HTML tag, except a link. I'm pretty sure a lookbehind