[PHP] Re: Using mod_rewrite and PHP

2003-02-27 Thread Dan Phiffer
At the advice of a friendly php-general reader, I tried the following: RewriteEngine on Options +FollowSymlinks RewriteBase/issues/ RewriteCond%{REQUEST_FILENAME} -d RewriteRule ^(.+)([/]?)$ $1/ [R] RewriteRule ^([0-9]/[a-z]/[a-z0-9])([/]?) /index.php?year=$1\month=$2\article=$3 And

Re: [PHP] Re: Using mod_rewrite and PHP

2003-02-27 Thread Peter Janett
You can do this in your PHP code by itself, no need to use Apache. Search for search engine safe or search engine friendly. Fusebox.org has some default code that does this (follow the links for PHP fusebox). HTH, Peter Janett New Media One Web Services New

[PHP] global value (php.ini) settings override with local (virtualhost) value

2003-02-27 Thread Davide Giunchi
In php.ini i've set open_basedir = /usr/local/lib/php/:/tmp/ in vhost.conf (VirtualHost include file) i set php_admin_value open_basedir /web/htdocs/linuxtest4.aruba.it/home/ So if i execute phpinfo i view: LOCAL MASTER

RE: [PHP] date, first of next month?

2003-02-27 Thread Jon Haworth
Hi Bryan, $t = mktime(0,0,0,date('m')+1,1,date('Y')); Gives you timestamp of first day, next month. Format accordingly with date(). is there such a say to now get the date of the first weekday after that date? You can brute force it: // grab the timestamp $t =

Re: [PHP] mysqldump

2003-02-27 Thread Sunfire
just make a php file with system calls in it to do mysqldump how secure that is is a different question - Original Message - From: John Taylor-Johnston [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:43 PM Subject: [PHP] mysqldump Anyone do MySQLDump

[PHP] Re: mysqldump

2003-02-27 Thread Niels Andersen
There mey, but need not be a space. As far as I know, the option scanner in mysqldump ignores spaces between short options and their values. John Taylor-Johnston [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks! exec(mysqldump -c -q database -u user -ppassword, $sql); Why

[PHP] How to phpize?

2003-02-27 Thread Niels Andersen
I want to compile an extension, let's say the zip extension. So I do the following: cd /usr/src/php-4.2.3/ext/zip phpize Now, I understand that this should result in a shared library being produced, but I can't find it. Also, during the phpize process, I get following warnings: perl: warning:

Re: [PHP] imagecreate()

2003-02-27 Thread Marek Kilimajer
Tell us what is in the logs, they are in logs\ in the apache installation directory Anthony Ritter wrote: Chris, The function I'm trying to get...it's: imagecreate() I am using MS Win 98 / PHP 4 and Apache. I tried running the following script but got an undefined call to imagecreate() The

[PHP] including db content as part of script

2003-02-27 Thread Dennis Heuer
Hello - One single question. Is including() a script on runtime only possible with files or can I include() code from a database? greetings Dennis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHPed 3.0.0 debug problem. Plz help

2003-02-27 Thread Kristijan Marin
Hi! My problem is that if I try to debug my php file , not all the lines seams to be debugged cause not all the lines have that blue dot on the left side. Why?? If I try step by step I can see that some lines are skipped and some lines that actually don't have the code are executed Plz, help.

RE: [PHP] including db content as part of script

2003-02-27 Thread Niklas Lampén
Well, you could use temporary files for this. I've never done this by myself, but I think it's worth giving a try. :) Fetch the data from the database, write your code to temporary file and then include this temporary file. After that you can destroy the temporary file. Niklas -Original

[PHP] Escape Characters

2003-02-27 Thread Sysadmin
Hi All, I'm running a script that reads the contents of images and stores them in a MySQL database. The problem I'm running into is that my server is seeing \ as escape characters and stripping them out. I assume this has something to do with Magic Quotes or something of that nature but I'm

Re: [PHP] PHP list problems?

2003-02-27 Thread David T-G
Sebastian -- ...and then Sebastian said... % % every so often i get a blank email that contains an attachment, a ATTxyz.dat % and ATTxyz.txt why? Don't know that for sure, but ... % % I just got a reply from David T-G, Thread Deleting a page after viewing it % and its blank with an

Re: [PHP] Escape Characters

2003-02-27 Thread 1LT John W. Holmes
I'm running a script that reads the contents of images and stores them in a MySQL database. The problem I'm running into is that my server is seeing \ as escape characters and stripping them out. I assume this has something to do with Magic Quotes or something of that nature but I'm not

[PHP] classes and functions in include files

2003-02-27 Thread Sunfire
just a fast question here.. and the lotic probably isnt to bright on my part and i think i know the answer to this question too but just to make sure... if you can include variables in an include file and use them outside that file (in the file that includes that file that is) then can you do the

Re: [PHP] PHP list problems?

2003-02-27 Thread Sebastian
Hmm... i cannot see your message,.. see it's blank below .. Seems to be only happening to your emails. warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com - Original Message - From: David T-G [EMAIL PROTECTED] To: PHP General list [EMAIL PROTECTED] Cc: Sebastian

Re: [PHP] PHP list problems?

2003-02-27 Thread Sebastian
haha, okay, I see now. your message was attached to a text file. thanks. warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com - Original Message - From: David T-G [EMAIL PROTECTED] To: PHP General list [EMAIL PROTECTED] Cc: Sebastian [EMAIL PROTECTED] Sent:

[PHP] Re: problem in writing into an html text file

2003-02-27 Thread Alejandro Trujillo J.
what software are you using ??? -- Alejandro Trujillo J. Cube Systems LTDA. web : csltda.com Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File upload problem - permission denied

2003-02-27 Thread Frans Bakker
Hello everybody, I am relatively new to PHP and for quite some days I am trying to get a file upload system going through a standard html form. To test it I use an html page called Test2.php with a form in it with enctype=\multipart/form-data\. Here is the source code: ?php $AppImageDir =

Re: [PHP] classes and functions in include files

2003-02-27 Thread 1LT John W. Holmes
just a fast question here.. and the lotic probably isnt to bright on my part and i think i know the answer to this question too but just to make sure... if you can include variables in an include file and use them outside that file (in the file that includes that file that is) then can you do

RE: [PHP] File upload problem - permission denied

2003-02-27 Thread Niklas Lampén
Seems that php does not have write access to that directory. Set it right and it should work. Niklas P.S. Tip: It's much quicker to create plain html without echo. Just do it like form name=blah, not like ? echo form name=\blah\; ? :) -Original Message- From: Frans Bakker

Re: [PHP] File upload problem - permission denied

2003-02-27 Thread Frans Bakker
All right then. ¿Where do I set that permission for PHP? On my local Windows machine it is usually in IIS. However the whole ..\inetpub\wwwroot\.. directory already has read and write permissions. Apart from PHP I use Cold Fusion. With Cold Fusion I don't have any permission problems... Niklas

RE: [PHP] File upload problem - permission denied

2003-02-27 Thread Niklas Lampén
On linux you can do it in shell with chmod command. Do 'chmod 766 direcory'. You can find out more about chmod-command at http://www.die.net/doc/linux/man/man1/chmod.1.html. Niklas -Original Message- From: Frans Bakker [mailto:[EMAIL PROTECTED] Sent: 27. helmikuuta 2003 16:03 To:

RE: [PHP] Mail (), BBC: recipients not receiving my Newsletter

2003-02-27 Thread Ricardo Fitzgerald
I'll Try that instead :) Thnx! Rick Off Price Closeouts 1700 W 8 Ave Miami, FL 33010 (305) 888 2555 FAX (305) 884 1761 -Mensaje original- De: Jason k Larson [mailto:[EMAIL PROTECTED] Enviado el: Wednesday, February 26, 2003 5:59 PM Para: Ricardo Fitzgerald CC: [EMAIL PROTECTED]

[PHP] Re: classes and functions in include files

2003-02-27 Thread rush
Sunfire [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] just a fast question here.. and the lotic probably isnt to bright on my part and i think i know the answer to this question too but just to make sure... if you can include variables in an include file and use them outside that

[PHP] Reading files

2003-02-27 Thread Chris Blake
Greetings... When the following runs.. === ?php $handle = fopen (fopen.txt, r); $date = date(l dS of F Y h:i:s: A); while (!feof ($handle)) ; { $buffer = fgets($handle, 4096); echo 'textarea'. $buffer.

Re: [PHP] File upload problem - permission denied

2003-02-27 Thread 1LT John W. Holmes
Make sure whatever user the _web server_ is running as has access to write to that directory. With IIS, this is the IUSR_computer_name account. $AppImageDir = Web/Images; You've got a error in that line, also, hopefully it's just a typo, though. ---John Holmes... - Original Message -

RE: [PHP] Emacs?

2003-02-27 Thread Larry Brown
Oops...I stand corrected. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Matt Giddings [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 12:26 AM To: 'Larry Brown'; 'PHP List' Subject: RE: [PHP] Emacs? Don't you mean 42? -Original

Re: [PHP] Reading files

2003-02-27 Thread Ferhat Can
Hi Chris, You should delete the ; after the while statement because it causes an infinite loop. - Original Message - From: Chris Blake [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 16:29 Subject: [PHP] Reading files Greetings... When the

Re: [PHP] Reading files

2003-02-27 Thread 1LT John W. Holmes
while (!feof ($handle)) ; Take that semi-colon away. You're running this loop continously. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: classes and functions in include files

2003-02-27 Thread David Eisenhart
yes (as has been said); the code in the included file adopts 'the scope in the place at the point of the include statement'. Hence if you were to put the the include statement in a function the vars in the included file would have the scope of that function; included outside a function they'll

[PHP] post xml

2003-02-27 Thread Diana Castillo
I am sending an xml request as part of the url using urlencode to encode my xml. It doesnt work like that so the server that is receiving it doesnt seem to like the data in the query string. However, if I send it from a form using the method post then it works fine. Is there a way to send it by

[PHP] How do I display the script file name?

2003-02-27 Thread Stephen Ford
How can I display the script file name? Presumably something like-: ?php echo $ScriptFileName; ? While I'm learning php and developing various Web page versions, I want to be sure the that the display is from the appropriate script. Regards Stephen Ford, Surrey, UK -- PHP General Mailing

[PHP] Re: How do I display the script file name?

2003-02-27 Thread Mark Harwood
echo $_SERVER['PHP_SELF']; Stephen Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How can I display the script file name? Presumably something like-: ?php echo $ScriptFileName; ? While I'm learning php and developing various Web page versions, I want to be sure the that

php-general Digest 27 Feb 2003 15:24:05 -0000 Issue 1908

2003-02-27 Thread php-general-digest-help
php-general Digest 27 Feb 2003 15:24:05 - Issue 1908 Topics (messages 137335 through 137399): mysqldump 137335 by: John Taylor-Johnston 137336 by: Joseph Szobody 137337 by: Joseph Szobody 137355 by: John Taylor-Johnston 137370 by: Sunfire

[PHP] Preventing the hijacking of pictures

2003-02-27 Thread merlin
Hi there, I recently discovered the reason why the traffic is rising so high on my server. Some people are stealing bandwidth. They include the link of an image into a forum posting. Now everytime somebody reads this threat on the other site this image is served by my server!! No one cares about

[PHP] Does PHP supports threads?

2003-02-27 Thread C. F. Scheidecker Antunes
Hello all, I have a few scripts writen and I wonder if PHP does support threads like a Java Program. What I mean is, with Java I can have multiple threads of tasks running at the same time and I would like to know if I could accomplish the same with PHP although the books I have and the

RE: [PHP] How do I display the script file name?

2003-02-27 Thread Rich Gray
How can I display the script file name? Presumably something like-: ?php echo $ScriptFileName; ? While I'm learning php and developing various Web page versions, I want to be sure the that the display is from the appropriate script. Regards Stephen Ford, Surrey, UK Try any of these to

Re: [PHP] post xml

2003-02-27 Thread Mincu Alexandru
yes you can connect to the server from your PHP script and send a post request .. here is a function that would help: --- PHP -- function http_post($server, $port, $url, $vars) { // example: // http_post( // www.fat.com, // 80, // /weightloss.pl, // array(name =

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Stephen Ford
emailed posted Thanks I'll post back with results. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Php, Blob, Oracle

2003-02-27 Thread M.ALPER KARASAHIN
Hi, How can i display a blob column that contins a MS word object. OR How can i display a blob column that contins a bitmap object. function foo() { $this-statement = OCIParse($this-db_con_id, SELECT blobcolumn FROM XX ); if (!$this-statement) {

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Jason k Larson
The 'magic constant' __FILE__ is one way. ?PHP echo __FILE__; ? or even better: ?=__FILE__;? HTH, Jason k Larson Stephen Ford wrote: How can I display the script file name? Presumably something like-: ?php echo $ScriptFileName; ? While I'm learning php and developing various Web page versions,

[PHP] messed up browser?

2003-02-27 Thread The Gabster
Hi all... I keep getting this error in trying to view a snippet code from the www.phpbuilder.com site: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.

[PHP] + com (formating excel cells)

2003-02-27 Thread DJ GJ
hi, all, does anybody know: how to merge excel cells from php code? how to make excel columns autofited from php code? where to find the information about all of this kind tricks? appreciated for any useful answer. gytis -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] PHP+COM (formating excel)

2003-02-27 Thread DJ GJ
Hi, All, I would be very appreciated if you could help me to find information about formating excel cells (like merge cells, Autofit columns, etc.). I am using excel from php like com object. Thanks in advance. gytis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Does PHP supports threads?

2003-02-27 Thread Justin Garrett
PHP does not support threading. Depending on what you're trying to do you may find the process control functions useful http://www.php.net/manual/en/ref.pcntl.php Justin Garrett C. F. Scheidecker Antunes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, I have a few

Re: [PHP] Php, Blob, Oracle

2003-02-27 Thread Thies C. Arntzen
On Thu, Feb 27, 2003 at 05:51:01PM +0200, M.ALPER KARASAHIN wrote: Hi, How can i display a blob column that contins a MS word object. OR How can i display a blob column that contins a bitmap object. function foo() { $this-statement = OCIParse($this-db_con_id,

[PHP] sort mixed array

2003-02-27 Thread Jim Long
Hi, I have an array with an html link as key and different $vars as val: $list = array ( 'a href=http://someplace.com/;some place/a' = $vendor1_total, 'a href=http://anotherplace.com/;another place/a' = $vendor2__total, [snip] etc.. some vals are numeric and some vals are n/a asort works to

RE: [PHP] Mail (), BCC: recipients not receiving my Newsletter

2003-02-27 Thread Ricardo Fitzgerald
It's not working either ... Rick Off Price Closeouts 1700 W 8 Ave Miami, FL 33010 (305) 888 2555 FAX (305) 884 1761 -Mensaje original- De: Jason k Larson [mailto:[EMAIL PROTECTED] Enviado el: Wednesday, February 26, 2003 5:59 PM Para: Ricardo Fitzgerald CC: [EMAIL PROTECTED] Asunto:

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Stephen Ford
Partial success. The code and output are shown below. There are no errors. What does the .' '. do pls. Have tried a variety of combinations to see the effect. Nothing to see... :-( ===PHP== ?php echo PLine #1 .' '.$_SERVER['PHP_SELF'], /P; echo PLine #2/P; echo PLine #3/P; echo

[PHP] HELP PLEASE ! Need PHP Advice !!!

2003-02-27 Thread justin brenton
can anyone give me some good advise on how abouts I should go about maintaining a newspaper website. here is what is currently in place and how i want it to be managed right now the newspapers are published in a quark file from that file pictures have to be placed in photoshop and resized ,

[PHP] PHP abandoning 64-bit platforms?

2003-02-27 Thread Morty
Was 4.2.3 really the last release for sparc/alpha/power platforms? There was an ftp site in France that had a set of patches to get 4.3.x working on 64-bit chips, but that it has been offline for days at least. I didn't see anything in CVS that indicated any attempt at 64-bit cleanliness was in

Re: [PHP] including db content as part of script

2003-02-27 Thread Ernest E Vogelsinger
At 13:28 27.02.2003, Dennis Heuer spoke out and said: [snip] One single question. Is including() a script on runtime only possible with files or can I include() code from a database? [snip] If you have code in your

RE: [PHP] Emacs?

2003-02-27 Thread Ernest E Vogelsinger
Nope. It's 41 (I don't use Emacs) At 15:30 27.02.2003, Larry Brown spoke out and said: [snip] Oops...I stand corrected. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Matt Giddings [mailto:[EMAIL PROTECTED] Sent:

[PHP] When is garbage collection initiated?

2003-02-27 Thread Johnson, Kirk
I need a better understanding of when garbage collection is initiated under PHP's default session handling. It is not clear to me if the gc_probability is based on: - each *request* to the server, or, - each time a *new session file is created*, or, - each time a request causes a *session file

[PHP] form with multiple lines to insert

2003-02-27 Thread Don Hicks
Hello, I'm working on a form that will submit multiple lines of data to a database. The form's style is that of an order form, where there are lines for each item available, and a single submit button at the foot of the page. For example: === Item Quantity

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Jason k Larson
. is a string concatenation operator. ' or are strings. Read http://www.php.net/manual/en/language.operators.string.php By the way, __LINE__ is available in addition to __FILE__. Hope that helps, Jason k Larson Stephen Ford wrote: Partial success. The code and output are shown below. There

RE: [PHP] php_flag session.auto_start 0 not working

2003-02-27 Thread John W. Holmes
I am using php_flag session.auto_start 0 in an .htaccess file to stop sessions from auto starting. It works on all but the one below, it still auto starts. The session replaces linked style sheets on the page through some links. Can anyone see the problems? session_start(); if (

RE: [PHP] post xml

2003-02-27 Thread John W. Holmes
I am sending an xml request as part of the url using urlencode to encode my xml. It doesnt work like that so the server that is receiving it doesnt seem to like the data in the query string. However, if I send it from a form using the method post then it works fine. Is there a way to send

Re: [PHP] When is garbage collection initiated?

2003-02-27 Thread Jason k Larson
My understanding is: - each time a request causes a *session file to be created or accessed*. -- Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to create an empty array

2003-02-27 Thread Michael Zornek
I want to create an empty array so I can add elements to it later I'm currently using: $catergory_list[] =array(); But when I try to print this list I discover the element zero has the string Array in it. How can I create a truly empty array? ~ Mike -- MikeZornek.com New blog, new QA column,

Re: [PHP] How to create an empty array

2003-02-27 Thread Adam Voigt
$category_list = array(); On Thu, 2003-02-27 at 12:17, Michael Zornek wrote: I want to create an empty array so I can add elements to it later I'm currently using: $catergory_list[] =array(); But when I try to print this list I

RE: [PHP] Preventing the hijacking of pictures

2003-02-27 Thread John W. Holmes
I recently discovered the reason why the traffic is rising so high on my server. Some people are stealing bandwidth. They include the link of an image into a forum posting. Now everytime somebody reads this threat on the other site this image is served by my server!! No one cares about one

RE: [PHP] Re: Mail (), BBC: recipients not receiving my Newsletter

2003-02-27 Thread Ricardo Fitzgerald
Hi Manuel, I've dl your class and read some of your test scripts, but it's not working at all I tested using test_personalized_bulk_mail.php And I got :'Error: it was not possible to send email message' Thank you, Rick Off Price Closeouts 1700 W 8 Ave Miami, FL 33010 (305) 888 2555 FAX (305)

RE: [PHP] form with multiple lines to insert

2003-02-27 Thread John W. Holmes
I'm working on a form that will submit multiple lines of data to a database. The form's style is that of an order form, where there are lines for each item available, and a single submit button at the foot of the page. For example: === Item Quantity

RE: [PHP] Emacs?

2003-02-27 Thread John W. Holmes
I'm fairly certain we decided not to count you anyhow. ;) John Nope. It's 41 (I don't use Emacs) At 15:30 27.02.2003, Larry Brown spoke out and said: [snip] Oops...I stand corrected. Larry S. Brown Dimension Networks, Inc. (727) 723-8388

[PHP] Counting table fields having specific values

2003-02-27 Thread rentAweek support
I have a table where the row named hide can have a value 0 or 1. I want to obtain a count of all the rows where hide has value 0. The following works on mysqladmin: SELECT SUM( hide = 0 ) FROM `names` LIMIT 0, - 1 Giving SUM( hide = 0 ) 7 The PHP script statements generated are: $sql =

RE: [PHP] How do I display the script file name?

2003-02-27 Thread M.A.Bond
With the output you are getting you will not see the output from the .' '. As it inserts a space into the ouputted text. There is an error after the $_SERVER['PHP_SELF'] the , should be a . (is this just a typo in the e-mail?) Thanks Mark -Original Message- From: Stephen Ford

Re: [PHP] Counting table fields having specific values

2003-02-27 Thread Tim Ward
if ($array = mysql_fetcharray($result)) {echo $array[SUM( hide = 0 )]; } although for readability I'd prefer an AS sum_hide in the query and then use $array[sum_hide] in general for reading from a mysql result ... // for a single return row (or the just the first row) if ($result =

[PHP] how do I strptime?

2003-02-27 Thread Paul Chvostek
I currently do this: $raw=Nov 28 18:26:35 2002; $when=`date -jf '%a %b %e %T %Y' $raw '+%s'`; when I'd much rather do this: $raw=Nov 28 18:26:35 2002; $when=strptime($raw, '%a %b %e %T %Y'); which is of course a non-existent function in PHP. I'd like to stop calling a

Re: [PHP] Problem wit doing ldap_add and modify in same script

2003-02-27 Thread Bill MacAllister
--On Wednesday, February 26, 2003 06:05:20 PM -0500 Jim Greene [EMAIL PROTECTED] wrote: So you suggest turning the $info into an array... How would I go about using the: No, I don't suggest turning the $info into any array. It already is an array. Quoting from the www.php.net

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Jason k Larson
Actually, echo can handle multiple arguments, which it thinks those are. echo 'foo', bar, $foobar; //one example //echo x3 echo 'foo'; echo bar; echo $foobar; echo 'foo'.bar.$foobar; //yet another echo example There are even more complex ways too and, of course, the use of ()s ... but I think

RE: [PHP] Counting table fields having specific values

2003-02-27 Thread Rich Gray
Mike Try ... ? $res = mysql_query('select count(*) from names where not hide'); $row = mysql_fetch_row($res); echo $row[0]; ? Rich -Original Message- From: rentAweek support [mailto:[EMAIL PROTECTED] Sent: 27 February 2003 17:32 To: [EMAIL PROTECTED] Subject: [PHP] Counting table

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Stephen Ford
I've checked up on strings, and it seems like the quoting is like the Korn shell. You can see below that I found basename() which works fine with __FILE__, but $_SERVER['PHP_SELF'] etc print nothing. Any ideas? Stephen =PHP== ?php echo 'P$_SERVER[\'PHP_SELF\']=

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Jason k Larson
I disagree. While I tend to stay away from short tags in general, the use of the short echo tag has yet to cause any trouble for me. And it makes code exceptionally easier to read, which proves to be a valueable asset. Maybe you could provide and example where a short tag is causing some

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Leif K-Brooks
The ?xml tag not being allowed outside of PHP tags in one example. Code that relies on short tags also causes problems with portability, since it can't be moved to a server with short tags turned off. Jason k Larson wrote: I disagree. While I tend to stay away from short tags in general, the

Re: [PHP] Re: Mail (), BBC: recipients not receiving my Newsletter

2003-02-27 Thread Manuel Lemos
Hello, On 02/27/2003 02:22 PM, Ricardo Fitzgerald wrote: I've dl your class and read some of your test scripts, but it's not working at all I tested using test_personalized_bulk_mail.php And I got :'Error: it was not possible to send email message' You most likely have a PHP configuration

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Stephen Ford
By including \n the html source looks like this, which is fine. I'll RTFM about $_SERVER and post back if in trouble. Thanks for help. Stephen P$_SERVER['PHP_SELF']= /P P$_SERVER['SCRIPT_NAME'] (etc)= /P P__FILE__=/path/sfindex03.php/P P$SCRIPT_FILENAME=/path/sfindex03.php/P

RE: [PHP] Preventing the hijacking of pictures

2003-02-27 Thread Sysadmin
What about using a MySQL database? Insert the picture into a field in a table, then use a php script to call the data. I've been working on something like this. Is it practical, or am I barking up the wrong tree? -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]

[PHP] Re: How to create an empty array

2003-02-27 Thread Jun
Use $category_list = array() instead. When you do $category_list[] = array(), you are creating an array of arrays. $category_list becomes an array with 1 element and this element is an empty array. So use $category_list = array(); Michael Zornek [EMAIL PROTECTED] wrote in message news:[EMAIL

RE: [PHP] HELP PLEASE ! Need PHP Advice !!!

2003-02-27 Thread Victor Stan
First of all, are they paying you to automate or to repurpose the content for the web? Taking a page designed for print and then automating it into a page for the web is the wrong approach, your problem is not technical it is a design problem. Technically it is easy, I think, does Quark not have

Re: [PHP] post xml

2003-02-27 Thread Mincu Alexandru
you can provide only one variable in the array: http_post( '195.57.250.36', 80, '/barceloDS/interface/xml', array( xml=$xml ) ); On some date, Diana Castillo wrote: thanks a lot I have a question, how would I specifiy the name of the variable I am sending if I am

RE: [PHP] Preventing the hijacking of pictures

2003-02-27 Thread Daniel Kushner
Hi Merlin, What you are describing is named Hot Linking. A quick search on Google gave me this: http://www.htmlbasix.com/disablehotlinking.shtml Regards, Daniel Kushner Need PHP Training? http://www.nyphp.org/training.php -Original

[PHP] make error on solaris

2003-02-27 Thread R'twick Niceorgaw
Hi all, I'm trying to get a vanila installation of php 4.3.1(only the cli version) on a solaris 8 system. This is my first day on a solaris box so I don't know much about it. I'm running into some errors in the final linking stage. Any one experienced this problem and got any idea to fix it?

[PHP] PHP graphs

2003-02-27 Thread K
Hi guys, I would like to read the IP address from a PC that connects to my web site. Any function does that in PHP? Secondly, I'd like to trace a basic X/Y graph with data provided from a DB, any PHP help? Thx. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] restating plea for help with sort

2003-02-27 Thread Jim Long
Hi, I have an array with an html link as key and different $vars as val: $list = array ( 'a href=http://someplace.com/;some place/a' = $vendor1_total, 'a href=http://anotherplace.com/;another place/a' = $vendor2__total, [snip] etc.. some vals are numeric and some vals are n/a asort works to

Re: [PHP] PHP graphs

2003-02-27 Thread Jordan Elver
Secondly, I'd like to trace a basic X/Y graph with data provided from a DB, any PHP help? JPGraph is good. -- Jordan Elver Put the key of despair into the lock of apathy. Turn the knob of mediocrity slowly and open the gates of despondency - welcome to a day in the average office. -- David

Re: [PHP] restating plea for help with sort

2003-02-27 Thread Kevin Stone
Hmm well upon first glance looks like all you need to do is loop that array and start a new array within the loop. An If/Else construct checks If the value is n/a then append to the back of the new array Else prepend to the front of the new array.You append the values manually or use

[PHP] htmlentities()

2003-02-27 Thread Liam Gibbs
I seem to be having trouble with htmlentities(). Maybe someone has a clue I can borrow. Here's my function: function FitForHTML($string) { $asciitable = get_html_translation_table(HTML_ENTITIES); $string = htmlentities($string, ENT_COMPAT); $string =

[PHP] php3 and php4

2003-02-27 Thread Ozete C.Filho
My friends, why this program no function in php4, just in php3? Pessoal, esse algoritmo é conhecido como Dijkstra, ele calcula o melhor caminho entre pontos( num grafo, por exemplo), mas nao consigo rodar ele no php4, so funciona no 3. Alguem sabe me dizer se há algo errado? ? $neighbors[a] =

Re: [PHP] restating plea for help with sort

2003-02-27 Thread Kevin Stone
To append my own answer. In order to sort the non n/a values you're going to have to build a separate array and perhaps this will simplfy the problem. So instead of what I suggested below.. loop the array and start TWO new arrays within the loop. One array for n/a values and one for non-n/a

[PHP] Restate: using php to rotate ad banners

2003-02-27 Thread Joseph Bannon
Anyone? Reply? I recently created some scripts to rotate ad banners on my site. One script is called show.php, which serves the banner. The other is called click.php, which redirects the people to the proper site for the banner they clicked on. Some people have noticed that when they click on

Re: [PHP] Re: using php to rotate ad banners

2003-02-27 Thread Joseph Bannon
Why don't you just use phpAdsNew? Because I prefer to write it myself so I can learn more. J. = RisingMusic.com 450,000 registered users. 14,000 registered bands and artists. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips,

[PHP] Re: Re: Re: Editors

2003-02-27 Thread James Hatridge
HI Paul,,, On Wednesday 26 February 2003 22:10, Paul Nicholson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 26 February 2003 02:19 pm, James Hatridge wrote: [snip] Thanks for the address. I looked into it closer and I find that it is only for Windows. Pity. It

Re: [PHP] Restate: using php to rotate ad banners

2003-02-27 Thread Daniel Guerrier
Don't reinvent the wheel :) http://www.phpadsnew.com/one/ --- Joseph Bannon [EMAIL PROTECTED] wrote: Anyone? Reply? I recently created some scripts to rotate ad banners on my site. One script is called show.php, which serves the banner. The other is called click.php, which redirects the

[PHP] Re: Does PHP supports threads?

2003-02-27 Thread J Smith
Actually, there's a threads extension in PECL: http://cvs.php.net/cvs.php/pear/PECL/threads J Justin Garrett wrote: PHP does not support threading. Depending on what you're trying to do you may find the process control functions useful http://www.php.net/manual/en/ref.pcntl.php Justin

Re: [PHP] Restate: using php to rotate ad banners

2003-02-27 Thread Jason k Larson
Have you seen phpAdsNew ? It really kicks ass. High quality development going on with that project. Plus, they've already worked out all the issues you are having with cookies and what not by using sessions. It's really fast too, and they have some caching options to make performance even

[PHP] HELP!! with array's

2003-02-27 Thread Richard Kurth
Hello , I need a way to read the following text file and add to or delete from or change the data. I have been able to move it all into an array using this code $groups= file(group); for ($i=0; $i$number_in_group; $i++){ } But I can not figure out how to search the array and delete from or add to

[PHP] Automatic .htaccess Authentication?

2003-02-27 Thread Nick Oostveen
I'm looking for a way to have php automatically log a user into an htaccess protected directory. My problem is as follows. I currently have a large number of php scripts which use a database authentication system. Unfortunately, there are also a number of old CGI scripts which need to be

[PHP] Newbie look for some content specific tutorials

2003-02-27 Thread Hunter, Jess
Greets all, First time poster here and a 1 week old PHP/Mysql programmer I have bought several books and scoured the net for any and all PHP/MySQL tutorials. Here is the problem I am running into: 1. The docs tell how to access MySql through the MySql monitor 2. any docs that tutor how to make

  1   2   >