[PHP] Session

2002-12-12 Thread Boris Kolev
Hello php-general, Can i have the same var in 2 diferent session? (f.e. CONTER, WEB CHAT etc.) Best regards, Boris mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Execute a cgi inside of php?

2002-12-12 Thread matty rozen
you can use the curl library to execute the cgi. Richard Creech [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello List, Is there a way to execute a cgi inside of php? This is what a customer wants to do: include(!--#exec

[PHP] Compiling php-4.2.3 with gd - make error

2002-12-12 Thread GoodnGo.de \(R\) Zentrale
Hi List, I compiled php-4.2.3 on my RH7.3 box that way ./compile ... --with-gd=/usr ... gd and gd-devel are from RH7.3 base installation I get the following error whil running - make : In file included from gd.c:83: gd_ctx.c: In function `_php_image_output_ctx': gd_ctx.c:70: structure has no

[PHP] Update query

2002-12-12 Thread Steve Jackson
How do you update MySQL in the following way? I have designed a form which has all the fields in the database available to edit based on a user query. The query is a field called $ItemCode. If the user wants to change that $ItemCode field how do I update it? In other words how do I use PHP to

Re: [PHP] GD installation - Simple Question

2002-12-12 Thread info
Hello Phillip, hello Sean, thank you very much, for answering the question of --with-gd - compiling. I am not using 4.3 . I did it with php-4.2.3 Did I got it right - to use the bundled-gd I have to use the compiling-flag: --enable-gd ?? But when I run ./configure --help there isn´t

Re: [PHP] Update query

2002-12-12 Thread Tim Ward
The best way would be to design the table so that it had an item_id field that was an auto-incremented integer and not updateable. It shouldn't be too late to add such a field, then it can be passed from the form as a hidden field (as I assume you're currently doing with $oldItemCode). Tim Ward

Re: [PHP] Update query

2002-12-12 Thread Jason Wong
On Thursday 12 December 2002 17:00, Steve Jackson wrote: How do you update MySQL in the following way? I have designed a form which has all the fields in the database available to edit based on a user query. The query is a field called $ItemCode. If the user wants to change that $ItemCode

Re: [PHP] 2 dates, difference in days AARGH!!

2002-12-12 Thread Steve Yates
Curtis Gordon [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ?$today = getdate();? ?$now_date = mktime (0,0,0,$today['mon'],$today['mday'],$today['year']);? Why not use $now_date = mktime(0,0,0,date('m'),date('d'),date('Y')); ? Also, do you really use ? ? on

[PHP] Returning multiple values from function

2002-12-12 Thread Lisi
Is it possible to return multiple values from a function? I have a function that queries a MySQL database for column names (SHOW COLUMNS) and then I go through the values return and create two arrays - one containing column names and one containing column types. Is it possible to return two

Re: [PHP] Returning multiple values from function

2002-12-12 Thread Tim Ward
you can always return an array of arrays ... return array($array1, $array2, ...); but in your case why not make the column names the array keys so the one array holds both column names and types. Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Lisi

[PHP] Re: Building apache, php mysql, should I use apache 2.0?

2002-12-12 Thread conbud
Hey, I've been using Apache 2.0.43, PHP, MySQL on Linux machine. Ive been using for a production site that gets good traffic but nothing real major. Has multi threading so the speed is really nice. Apache 2 and PHP are still experimental at the time. However, I havn't ran into any difficulties

[PHP] Restarting a daemon in PHP

2002-12-12 Thread Daniel Fabian
Hi, I'm trying to write a webinterface that allows helldesk to restart a daemon in case it crashes. I use the following commands: if ($action == restartsnrdaemon) { print pStopping old daemon processesbr\n; exec(killall snrdaemon.pl); print pStarting the process

[PHP] reading pre-extension file

2002-12-12 Thread Luca
How to read pre-extension of file with regular expression? Example: name.preextension.doc I need to read preextension Tanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reading pre-extension file

2002-12-12 Thread Ernest E Vogelsinger
At 18:40 11.12.2002, Luca spoke out and said: [snip] How to read pre-extension of file with regular expression? Example: name.preextension.doc I need to read preextension [snip] Assuming that preextension is

[PHP] Re: Restarting a daemon in PHP

2002-12-12 Thread Martijn
Daniel Fabian [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... It works just fine, the daemon is started, but apache does not respond any more in the current session. Only if I close the brower and restart it, I can access the website again. Does anyone know of

Re: [PHP] Re: Restarting a daemon in PHP

2002-12-12 Thread Dan Hardiker
It works just fine, the daemon is started, but apache does not respond any more in the current session. Only if I close the brower and restart it, I can access the website again. Does anyone know of a good workaround? I encountered the same behaviour after sending mail from a PHP webmail

[PHP] Performance issues

2002-12-12 Thread KaReL
I'm having a lot of trouble with loading times... Let me explain in detail: I've a full huge coded website based upon a mysql database... mysql entries: at least 2M php code: at least 1M lines (longest file about 25k, without includes) about 2 months ago we resetted the entire database and

[PHP] Cybercash/Verisign and PHP possible?

2002-12-12 Thread Jean-Christian Imbeault
My company wants to set up online credit card functionality and we are thinking of going with a company called Veritrans (I believe they are the japanese branch or cybercash for Verisign in Japan). However they do not support PHP. They only offer kits for Perl and Java. Unfortunately for me

RE: [PHP] Update query

2002-12-12 Thread Steve Jackson
It doesn't work in that it doesn't update the database. I have a form which when loaded takes a variable ItemCode from the previous page (which gets the Itemcode from the DB) and puts it into a hidden field which I call oldItemCode, then when I try to update the $ItemCode row in the database with

Re: [PHP] Update query

2002-12-12 Thread Bastian Vogt
Hi, did you echo $query; and put the output into phpmyadmin? Perhaps there's an error message that may help you HTH, Bastian Steve Jackson schrieb: It doesn't work in that it doesn't update the database. I have a form which when loaded takes a variable ItemCode from the previous page

[PHP] Re: [PHP-DEV] Re: PHP 4.3.0RC3

2002-12-12 Thread electroteque
firstly where can i add stuff to the cvs ? i have made a few posts before about an issue that hasnt changed , you guys still dont have it patched #if HAVE_LIBGD204 io_ctx-gd_free(io_ctx); #else io_ctx-free(io_ctx); #endif HAVE_LIBGD204 - this obviously means

[PHP] Proposal: New list etiquette/rule

2002-12-12 Thread DL Neil
Spam Arrest Sender VerificationYesterday we held an amusing discussion which highlighted the futility of using (badly implemented) technological 'solutions' to a social problem... Herewith I attach a response received pursuant to a list contribution. Does this 'gentleman' seriously expect

Re: [PHP] Performance issues

2002-12-12 Thread KaReL
1megabyte of code :) not 1M lines sorry about that confusion there and the problem began slow, not noticable... But it's now worse then ever. Jon Haworth [EMAIL PROTECTED] wrote in message

RE: [PHP] Performance issues

2002-12-12 Thread Jon Haworth
Hi Karel, mysql entries: at least 2M php code: at least 1M lines More than a million lines of code? That's a *big* app. 1megabyte of code :) not 1M lines Aha :-) and the problem began slow, not noticable... But it's now worse then ever. Are you doing something that degrades,

[PHP] Re: Session

2002-12-12 Thread matty rozen
what do you mean - same 2 vars ? if you mean 2 session vars, than they will be availble on every web page which uses session calls. else, let me know what do you mean exactly. Boris Kolev [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello php-general,

[PHP] Count lines from php files

2002-12-12 Thread Antti
How can I count how many code lines I have written? I have many php files in one directory. I'm using linux.Do you know any non-php way to count the lines. thanks, antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Count lines from php files

2002-12-12 Thread Jean-Christian Imbeault
Antti wrote: How can I count how many code lines I have written? I have many php files in one directory. I'm using linux.Do you know any non-php way to count the lines. from a directory one level above where all your files lie do this: (assuming all you files are in a directory called php)

Re: [PHP] Re: Session

2002-12-12 Thread Boris Kolev
Hello matty, Thursday, December 12, 2002, 2:43:44 PM, you wrote: mr what do you mean - same 2 vars ? mr if you mean 2 session vars, than they will be availble on every web page mr which uses session calls. mr else, let me know what do you mean exactly. mr Boris Kolev [EMAIL PROTECTED] wrote

[PHP] filemtime -help

2002-12-12 Thread Mekrand
i have a problem with filemtime function, i want script print out the date of file last modified. here is code, $fp=fopen(ex.txt,r); echo date(j F Y H:i, filemtime($fp)); fclose($fp); it turns out; 1 January 1970 02:00 everytime , i modified file, but this doesnt change, lastly i deleted and

[PHP] filemtime -help

2002-12-12 Thread Mekrand
i have a problem with filemtime function, i want script print out the date of file last modified. here is code, $fp=fopen(ex.txt,r); echo date(j F Y H:i, filemtime($fp)); fclose($fp); it turns out; 1 January 1970 02:00 everytime , i modified file, but this doesnt change, lastly i deleted and

Re: [PHP] Re: Session

2002-12-12 Thread 1LT John W. Holmes
No i meen one var in two diferent session! (For example: Counter of all user available in this moment on the site or all users nicks) I think what your after is an Application variable. One variable that's available to every script that's running, or session, or something like that? There's

[PHP] shaun@mania.plus.com

2002-12-12 Thread Vivek Kedia
use Mysql front its a GUI for Mysql and make these kinds of tasks very easy vivek __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Free MySQL Hosting...again

2002-12-12 Thread Adam Voigt
I'm getting Connection Refused on that website, sure your not still having problems? On Wed, 2002-12-11 at 15:33, PHP Mailing List wrote: I had a little trouble with my cable modem before, but the Free MySQL Hosting is back up if any of you are interested. =)

[PHP] include question

2002-12-12 Thread RClark
Hello all, I am passing a variable like so: a href=link.php?foo=bar.php On the link.php page, I have this simple code: ?php $job = $_GET['foo']; echo $job; // for error checking include 'path/to/$job'; ? The 'echo $job;' statement works just fine, but the outbout for the include statement

[PHP] Re: Cybercash/Verisign and PHP possible?

2002-12-12 Thread matty rozen
i do not really know how they are working, but i'll give you some sort of a solution. by using the 'curl' module, you can use any calls needed to any type of scripts. you can use curl to talk with the cgi. another option is using sockets (depends on their toolkit) and passing all the information

Re: [PHP] include question

2002-12-12 Thread Leif K-Brooks
Variables don't get parsed in single quotes, use double quotes. RClark wrote: Hello all, I am passing a variable like so: a href=link.php?foo=bar.php On the link.php page, I have this simple code: ?php $job = $_GET['foo']; echo $job; // for error checking include 'path/to/$job'; ? The

Re: [PHP] include question

2002-12-12 Thread Tom Rogers
Hi, Friday, December 13, 2002, 12:07:05 AM, you wrote: R Hello all, R I am passing a variable like so: R a href=link.php?foo=bar.php R On the link.php page, I have this simple code: R ?php R $job = $_GET['foo']; R echo $job; // for error checking R include 'path/to/$job'; ? R The 'echo

Re: [PHP] Free MySQL Hosting...again

2002-12-12 Thread Rick Emery
The page would not display for me. It did, however send the following HTML. Please note that the ?PHPSESSID is not enclosed in ? ? delimiters. Also, PHPSESSID needs to be $PHPSESSID. Could that be the problem? Finally, dump the FRAMES. htmlheadtitleFree MySQL Hosting/titlemeta

[PHP] phpinfo page doesn't display anything

2002-12-12 Thread Jody Cleveland
Hello, I need to change something in my php.ini file, and in searching for where it is, I found three. So, to find the real one, I made a page that only has this in it: ? phpinfo(); ? and called it info.php. Well, when I bring up that page, it's completely blank. Any ideas? -Jody Cleveland

RE: [PHP] include question

2002-12-12 Thread Ronald Clark
Thanks! Works perfect with double quotes! RC -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 8:21 AM To: Ronald Clark Cc: [EMAIL PROTECTED] Subject: Re: [PHP] include question Hi, Friday, December 13, 2002, 12:07:05 AM, you wrote: R

Re: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread 1LT John W. Holmes
I need to change something in my php.ini file, and in searching for where it is, I found three. So, to find the real one, I made a page that only has this in it: ? phpinfo(); ? and called it info.php. Well, when I bring up that page, it's completely blank. Any ideas? You're calling it

[PHP] Re: phpinfo page doesn't display anything

2002-12-12 Thread Marc Werther
hi, try to change ur line into: ?php phpinfo(); ? Jody Cleveland [EMAIL PROTECTED] schrieb im Newsbeitrag 84CFA712F666B44A94CE6BE116BAF4B0B4E09F@MAIL">news:84CFA712F666B44A94CE6BE116BAF4B0B4E09F@MAIL... Hello, I need to change something in my php.ini file, and in searching for where it is,

[PHP] fsockopen problem

2002-12-12 Thread Marc Werther
hi all, i tried to write a script, which check if a Server is online or offline. The servers are build by friends for onlinegaming voicesoftware (Battlecom or Gamevoice). My Script works fine for Battlecom Servers, because there i only have to check if the server is online on a TCP Port(47624).

RE: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread Jody Cleveland
You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Jody -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread 1LT John W. Holmes
You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Do any other PHP pages work, like just echo hello world; ?? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread Jody Cleveland
Do any other PHP pages work, like just echo hello world; ?? Ok, hello world doesn't work, but I'm running squirrelmail which all the pages used for that are php, and they work fine. Jody -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Escaping '#' Sign

2002-12-12 Thread Mike Smith
That didn't do it either. I should have been more specific. I can display correct results in a HTML table. I have a Edit (A href) link to edit the current record. ie... ?php include('../db/junction.php'); //DB Connection - MSSQL 2000 include('header.php'); ... $sql = SELECT tblcustomer.id,

Re: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread Leif K-Brooks
I'm guessing you don't have the short start tag enabled, try ?php phpinfo(); ? Jody Cleveland wrote: You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Jody -- The above message is encrypted with double rot13 encoding. Any unauthorized

[PHP] Session

2002-12-12 Thread Davíð Örn Jóhannsson
Hi I think it is possible to use sessions without having to insert sid=$sid into every link i print out but I don’t get it to work any Ideas about what I could be doing wrong? I have a login form on a page called login.php, and if login is ok, then it sets $sid = session_id(); and prints out

Re: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread Martijn Grendelman
Jody Cleveland [EMAIL PROTECTED] schreef in bericht 84CFA712F666B44A94CE6BE116BAF4B0B4E0A5@MAIL">news:84CFA712F666B44A94CE6BE116BAF4B0B4E0A5@MAIL... You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Look at the HTML source of that page: -- PHP

Re: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread Martijn Grendelman
Jody Cleveland [EMAIL PROTECTED] schreef in bericht 84CFA712F666B44A94CE6BE116BAF4B0B4E0A5@MAIL">news:84CFA712F666B44A94CE6BE116BAF4B0B4E0A5@MAIL... You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Look at the HTML source of that page: ?

Re: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread hacook
Maybe you should check the CHMOD (authorizations). Check if the Execute level is on. Jody Cleveland [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Jody -- PHP General

Re: [PHP] Linux and Graphics

2002-12-12 Thread Todd Cary
Are there any instructions on how to configure the GD libraries and compile PHP? I guess then I will have to recompile Apache so that it includes the "new" PHP?? Todd Scott Hurring wrote: With RedHat, AFAIR you have to compile PHP from source *after* first configuring the GD libraries.

RE: [PHP] phpinfo page doesn't display anything

2002-12-12 Thread Jody Cleveland
I'm guessing you don't have the short start tag enabled, try ?php phpinfo(); ? Thank you!!! That did it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reading pre-extension file

2002-12-12 Thread Justin French
Does it HAVE to be done with a regexp? ? $file = foo.bah.cat.dog.php; $pre = count($segments = explode('.',$file)) - 2; echo $segments[$pre]; ? You'd have to do a test to see which is quicker (regexp or this method), but I *think* this would be quicker. Better still, it's future proof by

[PHP] Error: (8) Undefined variable:

2002-12-12 Thread Dubravko Kakarigi
Under what conditions would you see Error: (8) Undefined variable: when running a PHP script on the web? ...thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] take text before '-' and after it

2002-12-12 Thread Antti
How can I take some text before the mark - and after it and put them for example in array. The purpose of this is to read trough mp3 files which are in the form of artist - song.mp3 and put them into a text file so I can put them into mysql db. antti -- PHP General Mailing List

Re: [PHP] Out with the new, In with the old

2002-12-12 Thread John Nichel
You can prepend a file to your site by using a .htaccess file. Scott Houseman wrote: Hi Try and get them (your hosting company)to configure your site with a prepend file e.g. prepend.php for your domain. in this file, do something like: ?php // // DECLARE ARRAYS // $_GET = array( ); $_POST =

Re: [PHP] take text before '-' and after it

2002-12-12 Thread ed
Wouldn't it be simpler to just remove the '-'? $var = str_replace(-,,$var); Ed On Thu, 12 Dec 2002, Antti wrote: How can I take some text before the mark - and after it and put them for example in array. The purpose of this is to read trough mp3 files which are in the form of artist -

[PHP] Re: filemtime -help

2002-12-12 Thread @ Edwin
Hello, (B (B"Mekrand" [EMAIL PROTECTED] wrote in message (B[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... (B i have a problem with filemtime function, i want script print out the date (B of file last modified. (B here is code, (B $fp=fopen("ex.txt","r"); (B echo date("j F Y H:i",

Re: [PHP] take text before '-' and after it

2002-12-12 Thread Michael Montero
You can use split() or explode(). $string = 1234-5467 ; list( $before_dash, $after_dash ) = explode( -, $string ) ; or $array = explode( -, $string ) ; On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote: Wouldn't it be simpler to just remove the '-'? $var = str_replace(-,,$var); Ed On

Re: [PHP] take text before '-' and after it

2002-12-12 Thread 1LT John W. Holmes
How can I take some text before the mark - and after it and put them for example in array. The purpose of this is to read trough mp3 files which are in the form of artist - song.mp3 and put them into a text file so I can put them into mysql db. $array = explode(-,$song); ---John Holmes...

[PHP] protect downloadable files

2002-12-12 Thread Jan Grafstrm
Hi, I have some zipfiles in a directory and wonder how to protect the files? I send the customer to a downloadpage with links after succsessfull login. What is best to do? chmod the files when I upload them and change chmod if I have a verifief user? Any suggestions? -- Regards Jan Grafstrom

Re: [PHP] take text before '-' and after it

2002-12-12 Thread Antti
[EMAIL PROTECTED] wrote: Wouldn't it be simpler to just remove the '-'? $var = str_replace(-,,$var); Ed On Thu, 12 Dec 2002, Antti wrote: How can I take some text before the mark - and after it and put them for example in array. The purpose of this is to read trough mp3 files which are

Re: [PHP] protect downloadable files

2002-12-12 Thread Adam Voigt
Make the download link a PHP page: download.php?fileid=199 Then check to make sure there session is valid, and what not and then use the header function to make the browser know it's supposed to give a save dialog box. I don't specifically know the code, but I know this will work.

[PHP] ExpertRating launches PHP Certification Exam

2002-12-12 Thread Pete Patil
Good news for the PHP developer community- a href=http://www.expertrating.com;ExpertRating/a, the global skills assessment provider has launched an online PHP Certification exam. Candidates who pass the exam will be mailed a hardcopy certificate of accomplishment. The launch of this exam has

Re: [PHP] take text before '-' and after it

2002-12-12 Thread Richard Baskett
$song = They Might Be Giants - No!.mp3 $arr = explode(' - ', $song); $length = strlen($arr[1]); // gets char length of song $artist = $arr[0]; $song = substr($arr[1], 0, ($length-4); // deletes the .mp3 off of song name Cheers! Rick He who is devoid of the power to forgive is devoid of the

Re: [PHP] take text before '-' and after it

2002-12-12 Thread Antti
$array = explode(-,$song); ---John Holmes... Ok, I got this. But still I don't know how to read the files from a directory and put them into an array so I can explode them. antti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD installation - Simple Question

2002-12-12 Thread Philip Olson
No, GD is only bundled as of PHP 4.3.0. Regards, Philip On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote: Hello Phillip, hello Sean, thank you very much, for answering the question of --with-gd - compiling. I am not using 4.3 . I did it with php-4.2.3 Did I got it right - to use the

Re: [PHP] take text before '-' and after it

2002-12-12 Thread 1LT John W. Holmes
$array = explode(-,$song); ---John Holmes... Ok, I got this. But still I don't know how to read the files from a directory and put them into an array so I can explode them. examples here: http://www.php.net/manual/en/ref.dir.php ---John Holmes... -- PHP General Mailing List

[PHP] Re: protect downloadable files

2002-12-12 Thread Martijn Grendelman
Jan grafström [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have some zipfiles in a directory and wonder how to protect the files? I send the customer to a downloadpage with links after succsessfull login. What is best to do? chmod the files when I

Re: [PHP] fgetcsv Help

2002-12-12 Thread @ Edwin
Hello, Justin French [EMAIL PROTECTED] wrote: [snip] Sample line from your CSV should look like this: --- 1,foo,harry said \what is it?\,foo 1,bah,\don't know\ said sally,something --- When echoing these values to the browser, you would strip the slashes. [/snip] The double quotes

Re: [PHP] Forms

2002-12-12 Thread @ Edwin
Hello, Chris Hewitt [EMAIL PROTECTED] wrote: [snip] GET or POST method (I'm not sure whether there is a default). [/snip] GET is the default... should be... I guess... - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Need to place a comma into a string of 4 or 5 digits

2002-12-12 Thread rw
Hello All! I am racking my brain and scouring the books and I can't seem to find a solution to this simple problem. Any help is appreciated. Thanks Ruusvuu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can PHP do this...?

2002-12-12 Thread @ Edwin
Hello, 1LT John W. Holmes [EMAIL PROTECTED] wrote: OK. I think I understand this, but let me ask just to be sure. So if I setup in my page something to this effect: if ($_SERVER['!HTTPS']) { echo Switching over to SSL...; echo META redirect to SSL; } else { echo **Rest of Page**;

Re: [PHP] Need to place a comma into a string of 4 or 5 digits

2002-12-12 Thread ed
IF you're looking to break digits into thousands by use of a comma search the manual for number_format. Ed On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote: Hello All! I am racking my brain and scouring the books and I can't seem to find a solution to this simple problem. Any help is

Re: [PHP] Error: (8) Undefined variable: - figured out

2002-12-12 Thread Dubravko Kakarigi
Due to my newbie PHP status I posted that question, but I now learned how to deal with it. Thanks to all who read it (no one responded, probably out of distaste for such a basic question :-) ...thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] overview of current app frameworks

2002-12-12 Thread James Johnson
I'd also add Fusebox for PHP (www.fusebox.org, http://sourceforge.net/projects/php-fusebox/) AND the tone of the user's on the various mailing lists. The people on the PHP Fusebox list are considerate and helpful. I made the mistake of posting a newbie PHP question on the Smarty list and was

[PHP] Re: filemtime -help

2002-12-12 Thread Mekrand
thanks @ Edwin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Mekrand [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... i have a problem with filemtime function, i want script print out the date of file last modified.

Re: [PHP] Need to place a comma into a string of 4 or 5 digits

2002-12-12 Thread rw
Thank you! I knew it would be a snap! The problem no longer exists. Quoting [EMAIL PROTECTED]: ### ### IF you're looking to break digits into thousands by use of a comma ### search ### the manual for number_format. ### ### Ed ### ### ### On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote: ###

[PHP] socket_set_blocking()

2002-12-12 Thread poliva
I was not able to get php's ftp functions working for me, they were uploading zero byte files, so I am now attempting to use fsockopen to accomplish the task. I found this script: http://www.phpbuilder.com/mail/php-general/2001102/1333.php It uses the function: socket_set_blocking(), and

Re: [PHP] socket_set_blocking()

2002-12-12 Thread @ Edwin
Hello, [EMAIL PROTECTED] wrote: I was not able to get php's ftp functions working for me, they were uploading zero byte files, so I am now attempting to use fsockopen to accomplish the task. I found this script: http://www.phpbuilder.com/mail/php-general/2001102/1333.php It uses the

[PHP] Re: Objects and Classes?

2002-12-12 Thread Shawn McKenzie
Very cool! Thanks! Christopher Raymond [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Shawn: I beleive I can clarify the purpose of objects/classes for you and enrich my clarification with a couple of examples. THE DIFFERENCE BETWEEN OBJECT AND CLASS:

[PHP] Include?

2002-12-12 Thread Shawn McKenzie
It seems that if I create a php file in my dir at my hosting provider and do include('/etc/passwd'); then wow, I see the contents of etc/passwd! Is this expected behavior??? I am looking at creating a script that takes a var in the url and includes the requested file. The purpose would be for

Re: [PHP] Include?

2002-12-12 Thread Adam Voigt
The passwd file is frequently world-readable so programs that rely on it don't need root permissions. Now if you can view /etc/shadow, then that would be a problem since that's where the actual passwords are stored (encrypted). On Thu, 2002-12-12 at 12:53, Shawn McKenzie wrote:

[PHP] Problems connecting to a MySQL database

2002-12-12 Thread eric
Greetings! I have a script which attempts to connect to the database in three different segments of code. I'm using this code to connect to the database: $db = mysql_connect(the_host, the_user, $cfg['Servers'][0]['password']); . . . . mysql_close($db); The first time I connect ok, retrieve

[PHP] Cookies Help

2002-12-12 Thread Sean Mayhew
Ive created a log in that essentially if the username and password are found in the database it displays one section of code and if its not found it display another log in form Im able to log in and my verifylogin() function works because if the username and password are not found it displays the

Re: [PHP] Include?

2002-12-12 Thread Chris Hewitt
Shawn McKenzie wrote: Is this expected behavior??? Settings such as safe_mode come into play. There is a difference between what a webhost provider expects from someone trusted with an account, and what is expectd of a user of your website. The best advice I've heard is to assume a user of

[PHP] Re: Problems connecting to a MySQL database

2002-12-12 Thread Jeff Bluemel
have you tried connected to the mysql database from a prompt before using php??? Eric [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Greetings! I have a script which attempts to connect to the database in three different segments of code. I'm using this

[PHP] Re: problems with jsp php

2002-12-12 Thread Jeff Bluemel
somebody has to have an answer to this... Jeff Bluemel [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I cannot figure out where my problem is with the following script. I know I've used this syntax successfuly in the past. when I take out the variables, and

[PHP] Re: Problems connecting to a MySQL database

2002-12-12 Thread eric
A prompt? Not sure I understand. The first time around it connects ok with PHP. I can retrieve all the rows. It's the 2nd time where it doesn't. Jeff Bluemel wrote: have you tried connected to the mysql database from a prompt before using php??? Eric [EMAIL PROTECTED] wrote in

Re: [PHP] Re: problems with jsp php

2002-12-12 Thread Chris Wesley
I'm pretty sure everyone else is as confused by your description as I am. (Hence, I didn't answer.) It looks like you're trying to generate JavaScript w/ PHP, but your subject mentions JSP. In a nutshell, I don't know if what you're doing is over my head, or just not explained clearly. I can

[PHP] Fw: [SMARTY] JavaScript / PHP syntax problems

2002-12-12 Thread James Johnson
My mistake for posting to the wrong list. Meant to go to php-general. I've got it working now. There's an option in Dreamwever for escaping quotes with % 's or not. Jim - Original Message - From: Hoffman, Geoffrey [EMAIL PROTECTED] To: James Johnson [EMAIL PROTECTED] Sent: Thursday,

[PHP] Mail() Not working right

2002-12-12 Thread Tom Culpepper
I am trying to get the mail() function to work right on my system and while I get no PHP errors the mail is never sent. Running on a linux server with PHP3 and I have confirmed that the command line mail function does work along with a few perl scripts that send mail as well. Here is the code

[PHP] Paging / Navigation Help

2002-12-12 Thread William Martell
Hello ALL. Can anyone tell me why the number of rows is always 1 and count is the total number of records in my database. Thanks in Advance, William [snip] HTML HEAD TITLE/TITLE /HEAD BODY ?php $db = mysql_connect(localhost, root); mysql_select_db(dallas, $db); $result =

[PHP] changing endianness

2002-12-12 Thread Marek Kilimajer
Hello, Does anyone know a way to change endianness of a binary string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Paging / Navigation Help

2002-12-12 Thread 1LT John W. Holmes
Ummm... because that's exactly what you're asking for. Look over your code again. COUNT(*) returns one record in one column, one row. ---John Holmes... - Original Message - From: William Martell [EMAIL PROTECTED] To: phplist [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL

[PHP] PHP Redirects

2002-12-12 Thread James Johnson
Hi, In ColdFusion, I can redirect to another page with the tag cflocation url=somepage.ext. Is there an equivalent in PHP? Thanks, Jim Johnson

Re: [PHP] PHP Redirects

2002-12-12 Thread Richard Baskett
Sure is: header(Location: somepage.ext); exit; Cheers! Rick If you think you're too small to have an impact, try going to bed with a mosquito in the room. - Anita Koddick From: James Johnson [EMAIL PROTECTED] Date: Thu, 12 Dec 2002 12:30:19 -0800 To: [EMAIL PROTECTED] Subject: [PHP] PHP

Re: [PHP] PHP Redirects

2002-12-12 Thread Clint Tredway
Look at this: ?php header(Location: http://www.example.com/;); /* Redirect browser */ exit; /* Make sure that code below does not get executed when we redirect. */ ?This needs to be before anything else being outputted or you can use javascript to

  1   2   >