[PHP] '--enable-track-vars' php.ini file on Mac OS X

2002-06-11 Thread Mario A. Salinas
Hi Folks, Let me begin with the direct question to save you time. If you want more info read more about the issue by reading 'The Problem:' below. The question: Is there any way to '--enable-track-vars' in my Macintosh laptop running Mac OS-X 10.1.5 and a version 4.2.1 installation of PHP

Re: [PHP] '--enable-track-vars' php.ini file on Mac OS X

2002-06-11 Thread Jason Wong
On Tuesday 11 June 2002 15:02, Mario A. Salinas wrote: Let me begin with the direct question to save you time. If you want more info read more about the issue by reading 'The Problem:' below. Let me begin by saying: Please do not reply to an existing post when trying to start a new topic

[PHP] addslashes for db search?

2002-06-11 Thread andy
Hi there, I have some db records starting with a ' E.g: 'Aimburu Now I am wondering how to retrieve this records. without a addslashes it returns an error. So I did add a slash, but then it does not find this record. I tryed this query: ...like '\'Aimburu %' ... Do I have to change this db

RE: [PHP] SMS with PHP

2002-06-11 Thread Brian McGarvie
another solution would be to by a cellular modem, which can be set up on the windows/*nix machine and used to relay the message. If not - depending on where you are based - some mobile providers do let you interface with their sms devices. You could also have a look at - OpenSMS from

[PHP] catching plurals

2002-06-11 Thread Zac Hillier
Hi I'm trying to write a function to catch and remove plurals from a search feature, can anyone suggest how I can efficiently remove 'ies' and 's' from the right hand end of each word within an array? Thanks, Zac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] catching plurals

2002-06-11 Thread Dan Hardiker
I'm trying to write a function to catch and remove plurals from a search feature, can anyone suggest how I can efficiently remove 'ies' and 's' from the right hand end of each word within an array? Your best bet is to use a phonetic search (for speed) looking up against a dictionary file

[PHP] the curse of the period

2002-06-11 Thread hugh danaher
This is certainly not a php question so boil me in oil the next time we meet. I have a php page which gets a file upload from the user and attempts to put the file in a remote directory. It is failing big time with the following warning: Warning: Unable to create

[PHP] RegExp - Replacing 'RB' with 'RB'

2002-06-11 Thread Neil Freeman
Hi, For all you Unix gurus this should be run of the mill stuff but us Windows boys tend to get confused easily :) How can I easily match occurrences of text along the lines of RB and replace it with RB ? The regular expression s///g obviously replaces any occurrence of an ampersand with a

[PHP] Reading information from images

2002-06-11 Thread Bård Tommy Nilsen
Does anyone know about a script that is easy searches in folders for In image files for given information: Excample: I know that a field in a .jpg file is named Author: value I want to search in the author value for a text. Bård Tommy Nilsen -- PHP General Mailing List

Re: [PHP] the curse of the period

2002-06-11 Thread Jason Wong
On Tuesday 11 June 2002 17:04, hugh danaher wrote: I have a php page which gets a file upload from the user and attempts to put the file in a remote directory. It is failing big time with the following warning: Warning: Unable to create '../landmark/photos/8000.jpg': No such file or

Re: [PHP] the curse of the period

2002-06-11 Thread hugh danaher
Thank you Jason, I'll give it a try. Hugh dot dot slash slash Oh what a relief it is! - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 2:33 AM Subject: Re: [PHP] the curse of the period On Tuesday 11 June 2002 17:04, hugh

Re: [PHP] '--enable-track-vars' php.ini file on Mac OS X

2002-06-11 Thread Stefan Rusterholz
Hi I suppose you mean register_globals is off and should be on, right? Ok, to make this short, do following: create a file php.ini on your desktop and write following into it: register_globals=on Make sure you have unix-linebreaks (use BBedit for example, or pepper) and a linebreak at the end

[PHP] Re: SMS with PHP

2002-06-11 Thread Craig Donnelly
You need to have an SMS gateway..Have a look on hotscripts.com here: http://www.hotscripts.com/search/?query=smscategory=php Regards, Craig Alexandra Aguiar [EMAIL PROTECTED] wrote in message 025f01c210a6$d1657ce0$[EMAIL PROTECTED]">news:025f01c210a6$d1657ce0$[EMAIL PROTECTED]... Hello ppl...

[PHP] Re: Thank you.

2002-06-11 Thread Jason Wong
HI Mario On Tuesday 11 June 2002 15:32, you wrote: Jason, Thank you for the information. I'm not sure how I sent this posting incorrectly. I thought I had cleared the subject and the body of the first posting. Regardless... Thank you for the suggestion. To cut a long story, if you are

[PHP] apache/oracle/php

2002-06-11 Thread Michael P. Carel
Hi to all, Is there anyone who could give me some reasons why does my php script with oracle function does'nt work if i run apache as nobody/nobody? My script only work if i run apache as oracle/dba. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Name of script

2002-06-11 Thread Christoph Starkmann
Hi there! I don't find the function or variable returning/containing the name of the script itself; like: echo Hi, my name is . $SCRIPT_NAME; Anyone can help? (I did RTFM...) Kiko -- It's not a bug, it's a feature. [.nfq] christoph starkmann tel.: 0821 / 56 97 94 34 fax.: 0821 / 56 97

[PHP] Name of file

2002-06-11 Thread Christoph Starkmann
I found the __FILE__ now, but this is not exactly what I want: I would like to have one script generating links to itself, only with different variables sent via GET like this: http://www.mydomain.tld/myscript.php?request=showcontent But __FILE__ gives me a file://-path... Do you have a smart

Re: [PHP] Name of script

2002-06-11 Thread Liam MacKenzie
$PHP_SELF - Original Message - From: Christoph Starkmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 8:00 PM Subject: [PHP] Name of script Hi there! I don't find the function or variable returning/containing the name of the script itself; like:

Re: [PHP] Name of script

2002-06-11 Thread Ren Moonen
Christoph Starkmann wrote: Hi there! I don't find the function or variable returning/containing the name of the script itself; like: echo Hi, my name is . $SCRIPT_NAME; Anyone can help? (I did RTFM...) Kiko $PHP_SELF see Language Reference chapter 7 Variables René -- PHP General

RE: [PHP] Name of script

2002-06-11 Thread Christoph Starkmann
Hi Liam, hi René! Great, thanx alot, this gets me rid of all thinking ;) At least concerning this... ;) $PHP_SELF see Language Reference chapter 7 Variables Cheers, Kiko -- It's not a bug, it's a feature. christoph starkmann mailto:[EMAIL PROTECTED] http://www.gruppe-69.com/ ICQ:

Re: [PHP] RegExp - Replacing 'RB' with 'RB'

2002-06-11 Thread Michael Weinberger
$x = preg_replace( /([^\s])([^\s])/, $1$2, $x ); should do the job. Michael Neil Freeman [EMAIL PROTECTED] schrieb: Hi, For all you Unix gurus this should be run of the mill stuff but us Windows boys tend to get confused easily :) How can I easily match occurrences of text along the

RE: [PHP] the curse of the period

2002-06-11 Thread David Freeman
The directory and file name: museum/trees/admin/upload2.php The directory I want to store the uploaded file is: museum/landmark/photos/ I've found that if you need more control over directory paths than something fairly simple then you're often best off just declaring a set

[PHP] Possible MSSQL error PHP4.2.0?

2002-06-11 Thread Jeremy Coates
Hi All, I'm not sure if this is a bug or not: Using MSSQL Server 2000 on WinNT (fully patched). PHP 4.2.0 using ini_set('mssql.datetimeconvert',0) Date fields get returned with an extra character on the end output from var_dump: string(20) 2002-08-06 11:45:02---^

Re: [PHP] RegExp - Replacing 'RB' with 'RB'

2002-06-11 Thread Neil Freeman
That's perfect Michael. Thanks a lot for your help :) Neil Michael Weinberger wrote: ** This Message Was Virus Checked With : SAVI 3.58 May 2002 Last Updated 11th June 2002

[PHP] Installation and/or configuration problems w 4.2.1 on NT

2002-06-11 Thread George Pitcher
Hi all, I have PHP running happily on three of my servers (NT/2000/Linux) and need to set it up on NT on a server 400 miles away. I have remote access to the server. I have followed the instructions for both the ISAPI version and the CGI version with no success. This is the error message I get

[PHP] Re: apache/oracle/php

2002-06-11 Thread David Robley
In article 00cb01c2112c$a1530140$[EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi to all, Is there anyone who could give me some reasons why does my php script with oracle function does'nt work if i run apache as nobody/nobody? My script only work if i run apache as oracle/dba. Does

[PHP] include_once(blah); vs $blah=blah; include($blah);

2002-06-11 Thread Henry
My web hosting company is running php 4.0.4pl1 Why should it be that these are different ?php global $root; include_once(include\blah.php); ? and ?php global $root; $blah=include\blah.php; include_once($blah); ? When I say different I mean; 1) global variable are not avaiable in the

RE: [PHP] include_once(blah); vs $blah=blah; include($blah);

2002-06-11 Thread Jonathan Rosenberg
Out of curiosity, try ?php global $root; $blah=include\blah.php; include_once $blah; ? see if it behaves differently (i.e., no parens around the include file name). -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

[PHP] Question about tag ??

2002-06-11 Thread Nightshade
Hi there, I'm working with PHP since 3 weeks, so I'm newbie and maybe I could say some bull :-) That's my question: Let's suppose that I make a ...mmm...forum. Now, in a Textbox i write my comment and I add also this ? //some instruction to erase my site's root directory ? So I post all I

[PHP] mysql problems, need help quick

2002-06-11 Thread Hawk
I'm filling a database with info, and I'm using id as identifiers in the list, the id is auto increment, and I deleted one entry, now I have a hole in the database, is there any way to fix this? lets say I have 1 2 3 4 5 6 And I deleted 6 Now it looks like 1 2 3 4 5 7 8 9 and so on is there

RE: [PHP] mysql problems, need help quick

2002-06-11 Thread Jon Haworth
Hi Hawk, (snip auto-incrementing PKs) is there somewhere the next number is located ? No. Why would you care, anyway? The thing about PKs is that they have to be unique, not sequential. If you're *really* bothered by it, you'll have to dump the contents of the table to a file, drop the

[PHP] Newbie needs some help picking a php editor.

2002-06-11 Thread Al
I spent a good bit of time looking at editors to help me prepare and modify php scripts. I've found it very time consuming to evaluate them. In general, I've found you have to download, install and play with them some just to determine if they fit your needs. And I know from experience,

[PHP] comparing strings does not work

2002-06-11 Thread andy
Hi there, I would like to compare 2 strings. I do always get a 0 return (not equal) but they are difinatelly equal, I double checked it. They are just in two different vars. Here is how I did it: if (strcmp($city, $city_new) != 0) $error = true; Does anybody see the error? Or am I going

[PHP] Converting binary data

2002-06-11 Thread Lucijan
Hi I'm retriving some binary data from a Interbase blob field (a custom format to do some drawing) into a php variable like this: $blh = ibase_blob_open($row[4]); while ($blob = ibase_blob_get($blh, 400)) $Objects .= $blob; ibase_blob_close($blh); Now I want to tell php to

[PHP] Determine if variable is set

2002-06-11 Thread J. Anderson Scarbrough
This is probably an easy answer, but I cannot seem to find it. Is it possible to determine whether a variable is set with either $_POST or $GET without having to do: if(isset($_POST['foo']) || isset($_GET['foo'])) //do something

Re: [PHP] Help with header function

2002-06-11 Thread Shane Kelly
LOL...thanks ed...figured it out last night... don't need to do a file_exists since i capture file_name in my db...I do a query before the insert to see if the file_name entered in the form, matches any of the file_names stored in mySQL. if the count of the record set 0 then the file exists,

Re: [PHP] include_once(blah); vs $blah=blah; include($blah);

2002-06-11 Thread Henry
I did as you suggest with an interesting result: include_once blah.php; worked var $blah=blah.php; include_once $blah; gave the following error: Parse error: parse error in including file on line line number Where the including file is the file that was doing the include! Previously

RE: [PHP] comparing strings does not work

2002-06-11 Thread Jonathan Rosenberg
strcmp returns 0 if the two strings are equal. In any case, why not just do if ($city == $city_new) $error = true; -Original Message- From: andy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:10 AM To: [EMAIL PROTECTED] Subject: [PHP] comparing strings does not

[PHP] Re: Possible MSSQL error PHP4.2.0?

2002-06-11 Thread Jeremy Coates
In message [EMAIL PROTECTED] [EMAIL PROTECTED] (Jeremy Coates) wrote: string(20) 2002-08-06 11:45:02@ ---^ Extra character seems to be ASCII 00 Forgot that would screw up in an email! I've placed an @ sign where the ASCII 00 is appearing. Ideas?

RE: [PHP] include_once(blah); vs $blah=blah; include($blah);

2002-06-11 Thread Jonathan Rosenberg
Hmmm ... does the line number in the error message point to something in the includeD file? I.e., might you have some error in the file you are including? -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 9:11 AM To: [EMAIL PROTECTED] Subject:

Re: [PHP] include_once(blah); vs $blah=blah; include($blah);

2002-06-11 Thread Henry
No, the line number is just of the line in the includING file of the include_once statement. It's very odd, is this a known limitation of PHP i..e. includes cannot have variable or functional file names. i.e. It's ok to do include_once(include/reallyimportantstuff.php); But it's not ok to do

[PHP] Re: mysql problems, need help quick

2002-06-11 Thread Shane Kelly
not on auto increment...thats the point! why would you need to get the #6 back anyway... this is the fundementals of database theory... chances are the database is using this autoincrement field as the PRIMARY KEY...in which case no duplicates are allowed.. In terms of records...your id#7 has

[PHP] Re: Newbie needs some help picking a php editor.

2002-06-11 Thread Shane Kelly
Hi Al... I use Macromedia Dreamweaver UltraDev with PHAkt plugin (you'll have to add it from the dreamweaver ultradev extensions @ www.macromedia.com/exchange Macromedia UltraDev is available for 30 day free trial at their site it has brilliant php support..you barely have to know a stitch

Re: [PHP] mysql problems, need quick help

2002-06-11 Thread Adam Voigt
Primary Key's, by nature, are designed to always be uniqiue, which means that even if you delete row 6, the next row you insert will be 10 because there is no id 10. If you simply need to get the list of items in a query, in the order they were inserted, I would suggest using something like:

[PHP] hi

2002-06-11 Thread Bjorn Abt
unsubscribe

RE: [PHP] include_once(blah); vs $blah=blah; include($blah);

2002-06-11 Thread Jonathan Rosenberg
The examples in the online manual indicate that it is ok to use the value of a variable for the file name: http://www.php.net/manual/en/function.include.php it also shows examples without the parentheses. Looks like (yet another) PHP bug to me. Maybe someone more knowledgeable can

[PHP] Re: Converting binary data

2002-06-11 Thread l0t3k
you may want to look at http://www.php.net/manual/en/function.unpack.php Lucijan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi I'm retriving some binary data from a Interbase blob field (a custom format to do some drawing) into a php variable like this:

Re: [PHP] Determine if variable is set

2002-06-11 Thread Analysis Solutions
On Tue, Jun 11, 2002 at 09:06:34AM -0400, J. Anderson Scarbrough wrote: possible to determine whether a variable is set with either $_POST or $GET without having to do: if(isset($_POST['foo']) || isset($_GET['foo'])) if ( isset($_REQUEST['foo']) ) { --Dan -- PHP classes

Re: [PHP] Re: capturing bouncers.

2002-06-11 Thread Analysis Solutions
On Tue, Jun 11, 2002 at 01:40:04AM -0400, Analysis Solutions wrote: On Tue, Jun 11, 2002 at 02:07:38AM -0300, Manuel Lemos wrote: On 06/10/2002 02:08 PM, Subhendu Mohapatra wrote: The bounce address can't be set with headers. Please elaborate. I've successfully used the From:

RE: [PHP] Setting Cookies

2002-06-11 Thread Ford, Mike [LSS]
-Original Message- From: Scott 'INtense!' Reismanis [mailto:[EMAIL PROTECTED]] Sent: 08 June 2002 04:52 Anyhow basically what is happening, is that cookies are been set fine, however say I try to set two cookies in the one script i.e. setcookie(username,

[PHP] download

2002-06-11 Thread Kris Vose
are there any php functions that handle downloads. For Instance I want to create a link that contains a url string. In this string a variable is defined as a file. This file will be downloaded when the user clicks on the link. How do you handle this file in php? Is there a function that

Re: [PHP] Re: Newbie needs some help picking a php editor.

2002-06-11 Thread Lewis Watson
DreamWeaver MX, it has php support built in... - Original Message - From: Shane Kelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 8:52 AM Subject: [PHP] Re: Newbie needs some help picking a php editor. Hi Al... I use Macromedia Dreamweaver UltraDev with

[PHP] limit to number of mail function headers?

2002-06-11 Thread SCOTT . NOVINGER
is there a limit to the number of headers you can use in the mail ( ) function? it seems as though the data is not being passed from the form fields to the variables in the headers. for instance $contact does display in the resulting html. see code below. also, just upgraded to apache 1.3.24,

[PHP] download link

2002-06-11 Thread Kris Vose
are there any php functions that handle downloads? For Instance I want to create a link that contains a url string. In this string a variable is defined as a file. This file will be downloaded when the user clicks on the link. How do you handle this file in php? Is there a function that

Re: [PHP] download link

2002-06-11 Thread Adam Voigt
You mean like: ?php $file = whatever.exe; echo a href=\downloads/$file\Get This File/a; ? Which would make a download link for downloads/whatever.exe in HTML? Adam Voigt [EMAIL PROTECTED] On Tue, 2002-06-11 at 11:43, Kris Vose wrote: are there any php functions that handle downloads? For

[PHP] Passing a Variable to PHP Via the URL

2002-06-11 Thread jsegovia
My understanding is that when passing a querystring to PHP via the URL with the GET method, PHP will automatically create a variable with the name and value from the querystring. I'm trying to do this and it's not working. Here's my code from an online tutorial (angle braces replaced with

[PHP] dbugging via DBG

2002-06-11 Thread Philipp Melab
Das anybody know a good tutorial which tells me how to install and use the DBG php-debugger? yours Philipp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hi

2002-06-11 Thread Liam MacKenzie
Err, that's not going to unsubscribe you mate... Follow the directions at the bottom of the email. - Original Message - From: Bjorn Abt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 12:07 AM Subject: [PHP] hi unsubscribe -- PHP General Mailing List

Re: [PHP] Passing a Variable to PHP Via the URL

2002-06-11 Thread Philip Olson
My understanding is that when passing a querystring to PHP via the URL with the GET method, PHP will automatically create a variable with the name and value from the querystring. I'm trying to do this and it's not working. Yes, if you have: example.com/foo.php?id=33 In the old days,

[PHP] Different Problem [Re: Passing a Variable to PHP Via the URL]

2002-06-11 Thread jsegovia
I found out that in fact PHP is creating a variable with the name and value I'm passing through a URL from the querystring. But it's still not working as planned. The url server/test.php?id=1 creates the following results in my code: printf(Variables: %s\nbr, $HTTP_GET_VARS[id]); This line

Re: [PHP] download

2002-06-11 Thread Chris Hewitt
Kris, If I understand what you mean correctly, this is just an ordinary anchor (nothing to do with php). For example, a href=http://mybox.domain.com/myfile.xls;Click to download/a When clicked, if .xls is in /etc/mime.types as application/vnd.ms-excel.xls then it will either download or

[PHP] Re: Different Problem [Re: Passing a Variable to PHP Via the URL]

2002-06-11 Thread jsegovia
Sorry - I solved my own problem. I had to set register_globals = On in php.ini. The ini file says this is not the best practice for security reasons so maybe I'll turn it off after doing these test scripts. Jesse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Question about tag ??

2002-06-11 Thread Kevin Stone
The only way to execute code stored in a varaible (string) is to send it to the eval() function. Assuming you're not doing this then you're perfectly safe. Learn more about the eval function.. http://www.php.net/manual/en/function.eval.php -Kevin - Original Message - From: Nightshade

Re: [PHP] Different Problem [Re: Passing a Variable to PHP Viathe URL]

2002-06-11 Thread Jason Soza
Rather than just setting globals on in php.ini, try this: Your printf() line is: printf(Variables: %s\nbr, $HTTP_GET_VARS[id]); And your if() statement is: if($id) {} Where is $id set? It's probably not. $HTTP_GET_VARS[id] doesn't set $id. If you want the id variable in your if(), you need:

[PHP] subscription problem

2002-06-11 Thread Doug DeVries
Why am I getting all the messages from this newsgroup delivered to my mailbox? I subscribed to the newsgroup -- or at least that is all I wanted. Thanks. -Doug - Original Message - From: Jason Soza [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 11,

Re: [PHP] download

2002-06-11 Thread Rodolfo Gonzalez
On Tue, 11 Jun 2002, Kris Vose wrote: are there any php functions that handle downloads. For Instance I want to create a link that contains a url string. In this string a variable is defined as a file. This file will be downloaded when the user clicks on the link. How do you handle this

[PHP] Error Loading File

2002-06-11 Thread Bryan Gintz
I am getting this error with a new install of PHP4.2.1 and Zend Optimizer 1.3.1: The file '/tmp/phpr4WYQY' must be in the database directory or be readable by all I just updated PHP and the Zend Optimizer, and it had worked previously with PHP4.1.2, Any ideas?? Thanks -- PHP General

RE: [PHP] the ?PHPSESSID=spoofme 'bug'

2002-06-11 Thread Johnson, Kirk
OK, I have questions. A session *file* is created, but it is empty. I know of only one way to get data into it, that is through a session variable. Session variables are controlled by the programmer, so unless the programmer is careless with their validation or register_globals setting, I don't

[PHP] register_globals flag in some directories

2002-06-11 Thread Ahmed Abdalla
I am sorry if this is asked before, but I have apache 2.0.36 with php 4.2.1 in the php.ini file register_globals is set off, but i want to turn it on in some directories I tried to create .htaccess file in that directory and put in it php_flag register_globals on but its not working, so did i

[PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Doug DeVries
Subject: include() statement goofing me up - help Can anyone let me know what I am doing incorrectly on the following page: http://www.solomonsporch.org/test.php The news clips that should appear are a service from another site and I simply want to include them on my page, but I am

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Jay Blanchard
[snip] Can anyone let me know what I am doing incorrectly on the following page: http://www.solomonsporch.org/test.php The news clips that should appear are a service from another site and I simply want to include them on my page, but I am getting an error. [/snip] Without the code from

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Jay Blanchard
you are getting the error Fatal error: Call to undefined function: show() in e:\solomonsporch.org\test.php on line 9 show() is not a function, try include() Jay Wouldn't it be great if lists were like the Magic 8 Ball or a Quija board? -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Leotta, Natalie (NCI/IMS)
That may be the case, but I had assumed the show() was a function in the file that should be included. When I include files and it doesn't work (I've only started trying today and discovered the beauties of the include_path) it says: Fatal error: Failed opening required 'includeFile.inc'

[PHP] 405 Method Not Allowed with Post Request on PWS

2002-06-11 Thread jsegovia
I'm running PHP 4.2.1 and PWS on my Windows98 system and I think I'm configured correctly, but the first time I tried to submit a Post request I got a '405 Method Not Allowed' error (full error at the bottom of this email). I've searched and found lots of similar posts but so far nothing that

Re: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Doug DeVries
I've changed the source file on this issue. Slightly different error, but still no joy. Thanks for taking the time with this. html head /head body test area should show 4 lines of news ?php include (http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yeslimit=4;) ? /body /html -

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Leotta, Natalie (NCI/IMS)
At least it makes more sense now that you're getting the failed to open error. I'd try putting a small file in the php4/pear directory and see if you can include that. If so, then it's still a path problem - like maybe it's looking to php4/pear/http:// Since I don't have anything including

Re: [PHP] Different Problem [Re: Passing a Variable to PHP Via the URL]

2002-06-11 Thread jsegovia
Jason Soza [EMAIL PROTECTED] wrote: Rather than just setting globals on in php.ini, try this: Thanks a lot. Your and Philip Olson's responses have got me thinking in the direction of better security and code. I am going to turn register_globals off and rewrite the code. Now if only I can

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Jay Blanchard
[snip] ?php include (http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yeslimit=4;) ? [/snip] Where is your semi-colon? ?php include(http://www.gospelcom.net/mnn/includes/pubNewsTease.php?li=yeslimit =4); ? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] get pwd on windows

2002-06-11 Thread Shane Wright
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Ok, I need to write this little script to run on a Windows box (don't ask...), but I'm getting completely shafted by the inconsistent use of long filenames. I need to get the current directory, but it must have long filenames and not be

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Jay Blanchard
[snip] When I include files and it doesn't work (I've only started trying today and discovered the beauties of the include_path) it says: Fatal error: Failed opening required 'includeFile.inc' (include_path='.:/opt/net/utils/lib/php') in /prj/web/.../file.php on line 4 [/snip] Send some of your

[PHP] Get the part_number of mail attachements?

2002-06-11 Thread Takacs Istvan
Hi, I have to parse some mails into our DB. The important part of the mails are in the text attachements. I'm afraid I don't understand how can I get the number of attachements for the particular mail. I would use imap_fetchbody ( int imap_stream, int msg_number, string part_number [, flags

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Leotta, Natalie (NCI/IMS)
Thanks, but I just figured it out - I stupidly saved the file to be included up a folder from the one I was working with (my mind must still be reeling from the horrible defeat of the Canes last night...). I don't quite understand why it's not looking at /opt/net/... but it's working so I'm not

Re: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Kevin Stone
Doug, it seems to work fine here. So long as the remote server has PHP installed (which it looks like they do) then include() should work the same as a local file. Could it be a configuration issue perhaps? Test: http://www.helpelf.com/test/test.php Code: http://www.helpelf.com/test/test.phps

Re: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Kevin Stone
Doh! Sorry, Natalie not Doug, and I'm glad to see you got it working. -Kevin - Original Message - From: Kevin Stone [EMAIL PROTECTED] To: Doug DeVries [EMAIL PROTECTED]; Leotta, Natalie (NCI/IMS) [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 11:59 AM Subject: Re:

RE: [PHP] Fw: include() statement goofing me up - help

2002-06-11 Thread Jay Blanchard
No, I created this file as a test file and it works for me. Perhaps you need to do something on your server for include files. Have you checked your php.ini to make sure that includes are allowed? In my setup (/etc/apache/php.ini) there is a line that says include_path = If I can think of

[PHP] browser timeouts with file upload

2002-06-11 Thread Dave
have created multiple file upload scripts in the past... all work like a charm, always used with files less than a meg or two. have a use for it now where the user requires upload of a 6-10mb file and we are running into problems with browser timeouts(for obvious reasons). We have the

[PHP] dumping only selected records into another table

2002-06-11 Thread andy
Hi there, I have some data in one table which I have to move to another. No I thought of a mysqldump with a where clause. The problem though is, that it also tryes to insert the ID which is a autoinc. primary key and already in use by another record. How can I produce a insert statement withouth

[PHP] dumping only selected records into another table

2002-06-11 Thread andy
Hi there, I have some data in one table which I have to move to another. No I thought of a mysqldump with a where clause. The problem though is, that it also tryes to insert the ID which is a autoinc. primary key and already in use by another record. How can I produce a insert statement withouth

[PHP] dumping only selected records into another table

2002-06-11 Thread andy
Hi there, I have some data in one table which I have to move to another. No I thought of a mysqldump with a where clause. The problem though is, that it also tryes to insert the ID which is a autoinc. primary key and already in use by another record. How can I produce a insert statement withouth

RE: [PHP] dumping only selected records into another table

2002-06-11 Thread Jay Blanchard
[snip] I have some data in one table which I have to move to another. No I thought of a mysqldump with a where clause. The problem though is, that it also tryes to insert the ID which is a autoinc. primary key and already in use by another record. How can I produce a insert statement withouth the

Re: [PHP] Determine if variable is set

2002-06-11 Thread 1LT John W. Holmes
Just note that REQUEST accounts for COOKIE, POST, and GET data...the settings for which overrides which are in php.ini. ---John Holmes... - Original Message - From: Analysis Solutions [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 10:25 AM Subject: Re:

Re: [PHP] mail() function hangs

2002-06-11 Thread Septic Flesh
Well I get this message Fatal error: Maximum execution time of 30 seconds exceeded in c:\nusphere\apache\htdocs\shop\order_fns.php on line 140 but the message is sent ok.. Windows/nusphere/modem56k. -- Sapilas@/dev/pinkeye Peterhead Info [EMAIL

[PHP] cut text?

2002-06-11 Thread Hawk
I've been looking on the php.net page, but I don't know what to look for.. I found string mb_strcut ( string str, int start [, int length [, string encoding]]) and it looks like the thing I'm looking for, but I don't know how to use it :) can anyone tell me? :P Håkan -- PHP General Mailing

[PHP] Store/Retrieve Word Documents in MySQL/PHP?

2002-06-11 Thread Håkan Askengren
Hi I have managed to load images to database through php, but what about other file types as MS Word (yes I dare to mention it here...) What headers etcetera are needed? Does somebody have any examples? Håkan Askengren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Comments / Question about XML?

2002-06-11 Thread Scott Fletcher
Hi! I'm going to start programming for XML but I have never done it before. I also found out that I would need to recompile PHP with the --xml option. That's suck! Will have to do it while the server is on live site. Hopefully nothing will go wrong. (Cross my finger!). By the way, know of

Re: [PHP] cut text?

2002-06-11 Thread Chris Hewitt
What exactly are you trying to do? If you tell us more, we can help better. Chris Hawk wrote: I've been looking on the php.net page, but I don't know what to look for.. I found string mb_strcut ( string str, int start [, int length [, string encoding]]) and it looks like the thing I'm looking

[PHP] Getting info from a realvideo file.

2002-06-11 Thread Rodolfo Gonzalez
Hello list, I'm wondering if there's any way to get the info of a realvideo file (resolution, author, and so on). I know rm is a closed format, but maybe you know of something, done either in PHP or in another language. Thank you, Rodolfo. -- PHP General Mailing List

Re: [PHP] register_globals flag in some directories

2002-06-11 Thread Chris Hewitt
Ahmed. If you changed the AllowOverride setting in httpd.conf, you will need to restart apache. I tried what I suggested here (on a RedHat 7.3 system) so I know its OK. In httpd.conf there can be many instances of AllowOverride, one per directory. Are you sure you changed the right one? Just

Re: [PHP] cut text?

2002-06-11 Thread Hawk
Lets say I have a news text, and in a menu, I just want to print the first.. lets say 30 letters, and maybe add a ... after, and link it to the full text. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cut text?

2002-06-11 Thread Jason Wong
On Wednesday 12 June 2002 03:36, Hawk wrote: Lets say I have a news text, and in a menu, I just want to print the first.. lets say 30 letters, and maybe add a ... after, and link it to the full text. substr(), wordwrap() -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source

  1   2   >