RE: [PHP] Odd behavior with unset, array indexes, and types

2004-06-18 Thread Michael Sims
Curt Zirzow wrote: To simplify things: $a[2] = '1'; $k = (double)2; echo isset($a[$k]); unset($a[$k]); echo isset($a[$k]); echo - expect 1\n; Result: 11 - expect 1 Yeah, my version was just a wee bit verbose. :) It's the behavior that is specific to unset() that I'm

Re: [PHP] Regular Expression - it works but uses way too much memory ?

2004-06-18 Thread Ulrik S. Kofod
Sorry to post this again but it's a little urgent. The preg_replace in my script allocates a little memory every time it is called and doesn't free it again untill the script ends. I don't know if it is normal behaviour for preg_replace or if it is my reg. exp. that causes this. The problem is

[PHP] function for string to array (map)?

2004-06-18 Thread Pete Forman
Is there a standard function that converts a string to an array with proper keys, not auto generated integers? I've found myself calling explode() twice. split(), etc. do not seem to offer any improvement. $str = a:x,b:y,c:z; $arr = explode(,, $str); foreach ($arr as $item) { list($key,

[PHP] Re: function for string to array (map)?

2004-06-18 Thread Aidan Lister
No, because that's not a standard format. You'll have to write your own function (as you've done). If you're looking to store an array as a string, look at serialize() Pete Forman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is there a standard function that converts a string to

[PHP] getimagesize() not working between Dirs?

2004-06-18 Thread Theisen, Gary
Hi all, I've got two web forms that handle photo uploads. In one directory ... getimagesize() works fine, in the other... it doesn't: Directory that it works. /php/webForm1.html (has action to /php/submitForm.php) /php/submitForm.php Directory that doesn't work. /otherDir/webForm2.html

[PHP] Re: DBG Debugger

2004-06-18 Thread Lester Caine
Gary wrote: I've downloaded DBG but can't get it to work with any of the IDEs it supposedly works with. Can anyone supply links to an IDE and a DBG version that integrate and work together correctly? I have PHPEdit 7.1.132 running with the 2.11.26 and that all runs fine, and I'm not going to

[PHP] Please Help, returning path

2004-06-18 Thread me2resh
is there a function to detect the path of the directory i need my file to detect the path it is on it, not the http path but the path on server please help me with that IncrediMail - Email has finally evolved - Click Here

[PHP] Re: Please Help, returning path

2004-06-18 Thread Manuel Lemos
Hello, On 06/18/2004 05:40 AM, Me2resh wrote: is there a function to detect the path of the directory i need my file to detect the path it is on it, not the http path but the path on server please help me with that getcwd() or dirname($_SELF); -- Regards, Manuel Lemos PHP Classes - Free ready to

Re: [PHP] This weird behavior is killing

2004-06-18 Thread Torsten Roehr
Daniel Silva [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Php.Net wrote: The way PHP handles includes is very weird, for example: - create a folder, name it f ex includes - create 2 sub-folders, call them level1 and level2 - now lets create a file, includes.php

Re: [PHP] function for string to array (map)?

2004-06-18 Thread Dascalu Marius
- Original Message - From: Pete Forman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 17, 2004 7:22 PM Subject: [PHP] function for string to array (map)? Is there a standard function that converts a string to an array with proper keys, not auto generated integers? I've

[PHP] Computer algebra in PHP

2004-06-18 Thread Chris Sangwin
Does anyone know of any PHP scripts which perform simple computer algebra functions in PHP? For example, (using a Maple-like syntax) expand( (2*x-2)^4 ); diff( sin(x^2), x); factor( x^2+2*x+1, x); and so on. Many thanks Chris Sangwin -- PHP General Mailing List (http://www.php.net/) To

[PHP] How to determine animated status of gif ?

2004-06-18 Thread Pascal Landeau
Hi, No php function found to determine if a gif is animated or not ! May you help me to do that ? -- [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Solaris - IPlanet - Initialized PHP Module frequently

2004-06-18 Thread masro
Hi all, Produktion System: SunOS su6-5 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R IPlanet 4.1 sp 14 gcc version 3.1 ist not possible to create a Backtrace, we’ve also more then one Problem i think, ok Step by Step: Our Problem: Iplanet Webserver is terminated with Signal SIGBUS

[PHP] Anyone have experiences with OCI9 and PHP ??

2004-06-18 Thread masro
Hi all, is it possible to use an actuall Oracle-Client (Version = 9) with PHP ?? Dose anyone habe experiences here ? Regards Christian -- /\ /\/ \/\ Powerd by llbc.de - letz board it,

Re: Re: [PHP] Regular Expression - it works but uses way too much memory ?

2004-06-18 Thread Robin Vickery
On Fri, 18 Jun 2004 08:57:19 +0200 (CEST), Ulrik S. Kofod [EMAIL PROTECTED] wrote: Sorry to post this again but it's a little urgent. The preg_replace in my script allocates a little memory every time it is called and doesn't free it again untill the script ends. I don't know if it is

Re: [PHP] How to determine animated status of gif ?

2004-06-18 Thread Marek Kilimajer
Pascal Landeau wrote --- napsal:: Hi, No php function found to determine if a gif is animated or not ! May you help me to do that ? -- [EMAIL PROTECTED] IIRC the information is stored at a fixed offset in the file. Read the specification. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How to determine animated status of gif ?

2004-06-18 Thread Marek Kilimajer
Marek Kilimajer wrote --- napsal:: Pascal Landeau wrote --- napsal:: Hi, No php function found to determine if a gif is animated or not ! May you help me to do that ? -- [EMAIL PROTECTED] IIRC the information is stored at a fixed offset in the file. Read the specification. Well, I just

[PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
Hi I am running Suse Linux 8.2, Apache 1.3.28, MySQL 4 and PHP 4.3.3 - all installed from source as I couldn't get the necessary integration when using rpms. I have several production systems working with this configuration. However, I now need to set up another one, and this one can't find

Re: [PHP] Anyone have experiences with OCI9 and PHP ??

2004-06-18 Thread André Ventura Lemos
I've used PHP with Oracle 10g. On Sex, 2004-06-18 at 10:46, [EMAIL PROTECTED] wrote: Hi all, is it possible to use an actuall Oracle-Client (Version = 9) with PHP ?? Dose anyone habe experiences here ? Regards Christian -- Lego my ego, and I'll lego your knowledge. signature.asc

Re: [PHP] Re: Please Help, returning path

2004-06-18 Thread Robin Vickery
On Fri, 18 Jun 2004 05:46:12 -0300, Manuel Lemos [EMAIL PROTECTED] wrote: On 06/18/2004 05:40 AM, Me2resh wrote: is there a function to detect the path of the directory i need my file to detect the path it is on it, not the http path but the path on server please help me with that

[PHP] Re: SQL Query Statement for MySQL... (DataType -- TEXT vs BLOB)

2004-06-18 Thread Matt Richards
Scott, As the quote suggests. If you require the ability to query those fields use TEXT, if you do not, use BLOB. Scott Fletcher wrote: I'm wrestling over deciding on which data type to go with, TEXT or BLOB. I have one table with one column of 400 characters, I was thinking that TEXT may be

[PHP] Re: crazy readdir bug

2004-06-18 Thread Peter Clarke
Matt Richards wrote: Imagine the following: 362class someClass { 363 function someFunction() { 364if($rDirectory = opendir(/templates)) { 365 while(false != ($strFile = readdir($srDirectory))) { 366print $strFile.br /; 367 } 368 } 369 } 370} line 364 $rDirectory line 365

[PHP] borrowing cookies

2004-06-18 Thread Sejmitar
Hello... Instead posting a code I'll post short description of situation; now I'm totally stuck with no ideas, so there's no way of talking aoute code ... If you want to skip it, (that cursed) question is at the bottom of the text. Problem : There's a Site (called later a ... site :) ) which is

[PHP] Getting values?

2004-06-18 Thread Robert Sossomon
I have a form that uses -$i in it to create multiple write boxes for editing the information. It then passes that information to another script that read through and modifies the DB based on the information. I have this code in my parsing script and I know it is BC of the way I am accessing

RE: [PHP] Getting values?

2004-06-18 Thread Jay Blanchard
[snip] I have a form that uses -$i in it to create multiple write boxes for editing the information. It then passes that information to another script that read through and modifies the DB based on the information. I have this code in my parsing script and I know it is BC of the way I am

Re: [PHP] Getting values?

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 20:38, Robert Sossomon wrote: if ($_POST[comment-$i] != ) Put double-quotes around your array subscripts. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development

Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 18:07, michael watson (IAH-C) wrote: So, my question is, having not compiled php with that switch in the first place, how can I get the functionality I need into PHP without breaking everything else? In general, you can recompile PHP to your hearts content without

[PHP] Threading under win32

2004-06-18 Thread Simon Fredriksson
I'd like to know if there is any way to thread code in PHP under Windows. I need to write to two or more streams at the same time. It's not crucial that they are exactly synced, but I can't wait for one stream to finish and then let the other do the same. They have to be somewhat synced

RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
Hi Jason Thanks for your response - I did just as you suggested, and here is the result: On my test server I installed php 4.3.8 (with --with-gettext) On my production server, the old version of php (4.3.3 without --with-gettext) exists On the test server, if I execute /usr/local/bin/php

[PHP] create emailaccount using php

2004-06-18 Thread Syed Ghouse
Hi Everybody (B (Bi want to know how to create an email account in the mails server using php.Also how (Bto manage the mails usng php (B (Bregards (BSyed

RE: [PHP] create emailaccount using php

2004-06-18 Thread Jay Blanchard
[snip] i want to know how to create an email account in the mails server using php.Also how to manage the mails usng php [/snip] http://www.php.net/mail Does anyone read the manual anymore? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting values?

2004-06-18 Thread Robert Sossomon
THANKS!! Worked like a charm. Robert -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 8:52 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Getting values? On Friday 18 June 2004 20:38, Robert Sossomon wrote: if ($_POST[comment-$i] != ) Put

Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 21:10, michael watson (IAH-C) wrote: Test.php (which merely executes ? Phpinfo(); ? seems to think I still have PHP version 4.3.3, vene though the output of /usr/local/bin/php -v is 4.3.7. If I log in as my apache user, and execute which php, it tells me

RE: [PHP] http to https

2004-06-18 Thread Ryan Schefke
Hitek - I tried adding the exit; after the header ('Location... Andre - Your idea about sending them to another page is a good one. I tried it, without any luck. What could the issue still be? To simplify my problem, I have a simple script: ?php header ('Location

[PHP] OT?? - calling frames within frames

2004-06-18 Thread Robert Sossomon
I have two frames (A and main) When I pull up one page it reloads main with the full page, however what I need the system to do when I click off that page is to jump to main.html and load item.html in the top. Main.html currently loads 2 other pages at the beginning. I have tried to jump them in

Re: [PHP] create emailaccount using php

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 21:19, Syed Ghouse wrote: (B (B i want to know how to create an email account in the mails server using (B php. (B (B1) Refer to the documentation for your mail system (B2) After you've done step 1 then you can read php manual Program Execution (BFunctions (B (B

RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
So in that case, if I want to upgrade the php that apache and mod_php use, I have to re-install apache, mod_php and php all over again? -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 14:20 To: [EMAIL PROTECTED] Subject: Re: [PHP] Call to undefined

[PHP] Can I make make email accounts in vpopmail using PHP

2004-06-18 Thread Mr. Bogomil Shopov
Can I make make email accounts in vpopmail using PHP. Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] wierd sendmail/mail problems

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 04:38, [EMAIL PROTECTED] wrote: am baffled...I've got a function to email a message that works perfectly as a simple function. I've written it 2 ways, (1) using mail and (2) writing the message to a tempfile and then sending the tempfile to sendmail both ways work.

RE: [PHP] Can I make make email accounts in vpopmail using PHP

2004-06-18 Thread Jay Blanchard
[snip] Can I make make email accounts in vpopmail using PHP. Thank you [/snip] Yes. You're welcome http://catb.org/~esr/faqs/smart-questions.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] executing php script from sql field.

2004-06-18 Thread Chuck
Hello I am trying to get some php code that's in a mysql field to execute...all I can get it to do is print the php code as human readable... I'm trying somthing like this..: print $sql[data]; where data has something like this in it: Hello, this is ? print $name;? anyone have any

Re: [PHP] Can I make make email accounts in vpopmail using PHP

2004-06-18 Thread Mr. Bogomil Shopov
Thanks Smarty ;))) I would like to know How I can make user email accounts using vpopmail, but Not using PECL extension. Regards Bogomil Jay Blanchard wrote: [snip] Can I make make email accounts in vpopmail using PHP. Thank you [/snip] Yes. You're welcome

Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 21:26, michael watson (IAH-C) wrote: So in that case, if I want to upgrade the php that apache and mod_php use, I have to re-install apache, mod_php and php all over again? No. Assuming you installed apache-module of php using apxs then recompiling php and 'make

RE: [PHP] executing php script from sql field.

2004-06-18 Thread Jay Blanchard
[snip] Hello I am trying to get some php code that's in a mysql field to execute...all I can get it to do is print the php code as human readable... I'm trying somthing like this..: print $sql[data]; where data has something like this in it: Hello, this is ? print $name;? anyone have any

RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
Hi Jason Sorry to be a pain. I didn't use apxs, I installed apache and php from source using a devshed.com recipe. Mick -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 14:46 To: [EMAIL PROTECTED] Subject: Re: [PHP] Call to undefined function:

RE: [PHP] http to https

2004-06-18 Thread R'twick Niceorgaw
Hi Ryan, you have an error in your script. Quoting Ryan Schefke [EMAIL PROTECTED]: ?php header ('Location https://www.tgwedding.com/payment6.php'); exit; ? correct one is ?php header ('Location: https://www.tgwedding.com/payment6.php'); ? Note the : after Location. HTH -R'twick --

RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
Hi So I stopped apache, then for php: ./configure --with-mysql=/usr/ --with-xml --with-gettext --with-apxs=/usr/local/apache/bin/apxs make make install Everything worked fine apart from I am in exactly the same situation. Apache is working with one version of php and the command line version is

Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 21:50, michael watson (IAH-C) wrote: Sorry to be a pain. I didn't use apxs, I installed apache and php from source using a devshed.com recipe. It's been years since I last did a non-apxs install. OK you was using the soothingly... guide. Basically repeat the necessary

RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
Hi Jason I tried that. I am still left with two versions of php - the one from the command line which has gettext compiled into it (4.3.7), and the one which apache uses, which hasn't (4.3.1). Mick -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 15:17

Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread John Nichel
michael watson (IAH-C) wrote: Hi Jason I tried that. I am still left with two versions of php - the one from the command line which has gettext compiled into it (4.3.7), and the one which apache uses, which hasn't (4.3.1). Mick Did you restart Apache after you compiled the newer version? -- John

Re: [PHP] Intermittent PHP operation

2004-06-18 Thread Carson Evans
... where then does it get displayed? Why is it that I have to click the refresh button several times to get my pages to load the way they are supposed to load? What do you mean by correctly? Is it giving errors or just not rendering correctly/at all? Find out where your httpd error logs are

Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 22:15, michael watson (IAH-C) wrote: ./configure --with-mysql=/usr/ --with-xml --with-gettext --with-apxs=/usr/local/apache/bin/apxs make make install Everything worked fine apart from I am in exactly the same situation. Apache is working with one version of php and

RE: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread michael watson (IAH-C)
OK, that worked :-) Now, do I really trust myself to do rm -rf /usr/local/apache/ on my production server? *strokes chin* Thanks for the help guys :-) -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 15:40 To: [EMAIL PROTECTED] Subject: Re: [PHP] Call to

Re: [PHP] Call to undefined function: bindtextdomain()

2004-06-18 Thread Jason Wong
On Friday 18 June 2004 22:44, michael watson (IAH-C) wrote: OK, that worked :-) Now, do I really trust myself to do rm -rf /usr/local/apache/ on my production server? *strokes chin* mv /usr/local/apache /some/directory/that/will/never/be/accidently/deleted -- Jason Wong - Gremlins

[PHP] php

2004-06-18 Thread ck
Hi, can i ask what is the difference between writing and getting data from files and from SQL. will retrieving data from files have a problem like if 2 person access the same file at the same time and causing the data to crush? or will the situation be the same to SQL? because i will

Re: [PHP] php

2004-06-18 Thread John Nichel
[EMAIL PROTECTED] wrote: Hi, can i ask what is the difference between writing and getting data from files and from SQL. will retrieving data from files have a problem like if 2 person access the same file at the same time and causing the data to crush? or will the situation be the same to

Re: [PHP] Anyone have experiences with OCI9 and PHP ??

2004-06-18 Thread RypTide
Yes, it's possible. http://www.php.net/oracle On Fri, 18 Jun 2004 11:21:22 +0100, André Ventura Lemos [EMAIL PROTECTED] wrote: I've used PHP with Oracle 10g. On Sex, 2004-06-18 at 10:46, [EMAIL PROTECTED] wrote: Hi all, is it possible to use an actuall Oracle-Client (Version = 9)

RE: [PHP] php

2004-06-18 Thread Michael Sims
[EMAIL PROTECTED] wrote: will retrieving data from files have a problem like if 2 person access the same file at the same time and causing the data to crush? If you're only going to be reading the file you should be fine. Otherwise you've got a bit of research to do. Here's a starting point:

[PHP] php and unidata

2004-06-18 Thread Matt Giddings
Hello, Anybody out there in php land succesfully use php with the unidata database running on unix? We're going to be starting a project that requires php to unidata communication and I'm looking for pointers or any other useful information that will help this project get off to a smooth

[PHP] Apache Content Negotiation / PHP / HTTP Headers

2004-06-18 Thread Wolfgang Ulmer
Hi, i've tested Apache Content Negotiation with a PHP Content Managment System. Apache works correctly, but doesn't tell PHP what it has done. Example: I have a directory with two files: - test.de.htm - test.en.htm As Apache is configured for Content Negotiation I can enter test in my

RE: [PHP] Anyone have experiences with OCI9 and PHP ??

2004-06-18 Thread Rick Fletcher
is it possible to use an actuall Oracle-Client (Version = 9) with PHP ?? Dose anyone habe experiences here ? It's absolutely possible, and where most of my work lies day to day. Our DBA has chosen to hold off upgrading to 10g until it's better tested, so we still use 9i. (He cites a past

Re: [PHP] Ld error

2004-06-18 Thread Andrew Hauger
I found this thread in a php news archive. I am fairly new to compiling php on a Unix system, and I am having the same problem described in this thread. I am trying to compile php 4.3.4 on a Solaris 9 system. I have fixed my path, and I do not have GNU sed installed on the system. I am still

[PHP] in data

2004-06-18 Thread Robert Sossomon
I have data with something in it and when I pull that data and dump it into an HTML form I am losing everything that is after the first . Has anyone encountered this before, and have a way to patch it? TIA RObert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] in data

2004-06-18 Thread Jay Blanchard
[snip] I have data with something in it and when I pull that data and dump it into an HTML form I am losing everything that is after the first . Has anyone encountered this before, and have a way to patch it? [/snip] Yes, we have all encountered it. You need to escape the character and other

RE: [PHP] in data

2004-06-18 Thread Chris W. Parker
Robert Sossomon mailto:[EMAIL PROTECTED] on Friday, June 18, 2004 10:27 AM said: I have data with something in it and when I pull that data and dump it into an HTML form I am losing everything that is after the first . Has anyone encountered this before, and have a way to patch it? can

Re: [PHP] in data

2004-06-18 Thread Torsten Roehr
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I have data with something in it and when I pull that data and dump it into an HTML form I am losing everything that is after the first . Has anyone encountered this before, and have a way to patch it? [/snip] Yes, we

[PHP] internal server error

2004-06-18 Thread Bob Lockie
I'm getting an 'Internal Server Error' when I run: http://216.15.235.3/cgi-bin/testphp.php I've added AddType directives, this is not my first install of PHP but it is my first install with the latest versions. Is anybody using the php-install mailing list? I got tons of SPAM when I posted

RE: [PHP] in data

2004-06-18 Thread Kelly Hallman
Jun 18 at 12:29pm, Jay Blanchard wrote: [snip] I have data with something in it and when I pull that data and dump it into an HTML form I am losing everything that is after the first . Has anyone encountered this before, and have a way to patch it? [/snip] Yes, we have all encountered it.

[PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Pablo Gosse
Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the size of an uploaded file which exceeded the upload_max_filesize? I'd like to be able to tell the user the size of the file they tried to upload, in addition to telling them the

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Ashwin Purohit
$userfile=$_FILES['userfile']['tmp_name']; $userfile_error=$_FILES['userfile']['error']; if ($userfile_error 0) {echo 'Problem: '; switch($userfile_error) {case 1: echo 'File exceeded upload maximum filesize'; break; case 2: echo 'File exceeded maximum file size'; break; case 3: echo 'File only

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Ashwin Purohit
Here's a professional explanation: http://de3.php.net/manual/en/features.file-upload.errors.php On Fri, 18 Jun 2004 10:50:04 -0700, Pablo Gosse [EMAIL PROTECTED] wrote: Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Marek Kilimajer
Pablo Gosse wrote --- napísal:: Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the size of an uploaded file which exceeded the upload_max_filesize? I'd like to be able to tell the user the size of the file they tried to upload,

Re: [PHP] internal server error

2004-06-18 Thread Marek Kilimajer
What installation instructions did you follow. Did you install cgi or module version? Bob Lockie wrote --- napísal:: I'm getting an 'Internal Server Error' when I run: http://216.15.235.3/cgi-bin/testphp.php I've added AddType directives, this is not my first install of PHP but it is my first

[PHP] where can we downlaod PHP modules??

2004-06-18 Thread Nguyen, Long P (Mission Systems)
Anyone know where can I download the following PHP modules? Sablotron XSLT processor (command-line utility and PHP plugin) PHP DOMXML support compiled-in (libxml version) PHP XML support compiled-in (expat version) PHP XMLRPC support compiled-in Thank you!! -- PHP General Mailing List

RE: [PHP] in data

2004-06-18 Thread Robert Sossomon
I tried the addslashes on the pages and in combination of using quot; to bring in the data to begin with, it works somewhat, where I am running into a problem now is the 2nd time it pulls the data out (it adds it back in with ) I am getting the same errors. I have tried using the addslashes and

RE: [PHP] in data

2004-06-18 Thread Jay Blanchard
[snip] I guess I need to figure out how to read my $_POST[data] and parse that to put in quot; because that seems to work, but not sure how to make PHP do that. [/snip] INSERT INTO table htmlentities($_POST['yourStuff']); then when it comes out you should be good -- PHP General Mailing List

RE: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Pablo Gosse
Ashwin Purohit wrote: $userfile=$_FILES['userfile']['tmp_name']; $userfile_error=$_FILES['userfile']['error']; if ($userfile_error 0) {echo 'Problem: '; switch($userfile_error) {case 1: echo 'File exceeded upload maximum filesize'; break; case 2: echo 'File exceeded maximum file size';

RE: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Pablo Gosse
Marek Kilimajer wrote: Pablo Gosse wrote --- napísal:: Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the size of an uploaded file which exceeded the upload_max_filesize? I'd like to be able to tell the user the size of

RE: [PHP] in data

2004-06-18 Thread Robert Sossomon
Nope, I wish it was so, but it is not to be... It puts it into the mySQL table as only, which it was doing before, it is in the extracting from there that I am having the issue. My code for extraction: $item_desc = addslashes($Quote['sel_item_desc']); The value in the HTML document:

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Marek Kilimajer
Pablo Gosse wrote --- napísal:: Marek Kilimajer wrote: Pablo Gosse wrote --- napísal:: Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the size of an uploaded file which exceeded the upload_max_filesize? I'd like to be able to

RE: [PHP] in data

2004-06-18 Thread Chris W. Parker
Robert Sossomon mailto:[EMAIL PROTECTED] on Friday, June 18, 2004 12:30 PM said: My code for extraction: $item_desc = addslashes($Quote['sel_item_desc']); you don't need to addslahes() when retrieving. just htmlentities() the data before you display it. do a simple test: ?php

[PHP] Programming User-Customized Categories ??

2004-06-18 Thread Monty
Hi, I need to add the ability for users to define and set up their own categories and sub-categories that can be used to group contacts they enter into a database. Here's an example of how the data might be stored... NameMain Category Sub Category -

Re: [PHP] Programming User-Customized Categories ??

2004-06-18 Thread Marcel Tschopp
Hey Why don't you make a second table 'categories' and have the two tables in relation? For example: Table 'contacts': id name category_id -- 0 John Doe3(Category New York Office) 1 Jane Smith 4(Category Orlando

Re: [PHP] Programming User-Customized Categories ??

2004-06-18 Thread Matt Matijevich
[snip] I need to allow users to define the types of Main Categories they want, and to also define whether or not those Main Categories will have Sub Categories, which they can also define. [/snip] if I follow you correctly, I would do it like this users table user_id primary key name etc... not

Re: [PHP] Programming User-Customized Categories ??

2004-06-18 Thread Marek Kilimajer
Monty wrote --- napísal:: Hi, I need to add the ability for users to define and set up their own categories and sub-categories that can be used to group contacts they enter into a database. Here's an example of how the data might be stored... NameMain Category Sub Category

[PHP] Re: Computer algebra in PHP

2004-06-18 Thread Justin Patrin
Chris Sangwin wrote: Does anyone know of any PHP scripts which perform simple computer algebra functions in PHP? For example, (using a Maple-like syntax) expand( (2*x-2)^4 ); diff( sin(x^2), x); factor( x^2+2*x+1, x); and so on. Many thanks Chris Sangwin :-) That would be nice. -- paperCrane

RE: [PHP] wierd sendmail/mail problems

2004-06-18 Thread Pam Derks
No, nothing fancy all on same machine, running on Apache... -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, June 18, 2004 6:30 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] wierd sendmail/mail problems On Friday 18 June 2004 04:38, [EMAIL PROTECTED] wrote:

Re: [PHP] internal server error

2004-06-18 Thread Bob Lockie
On 06/18/04 14:24 Marek Kilimajer spoke: What installation instructions did you follow. Did you install cgi or module version? I fixed it, I had the test file in the cgi-bin directory. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can I make make email accounts in vpopmail using PHP

2004-06-18 Thread raditha dissanayake
Mr. Bogomil Shopov wrote: Thanks Smarty ;))) I would like to know How I can make user email accounts using vpopmail, but Not using PECL extension. Jay had answered the question you asked :-) -- Raditha Dissanayake. -

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Red Wingate
Right, guess i saw some kind of JS that determined the size of the selected file and wrote it into an hidden field. Maybe you try it that way. -- red Marek Kilimajer wrote: Pablo Gosse wrote --- napísal:: Marek Kilimajer wrote: Pablo Gosse wrote --- napísal:: Hi folks. I'm just tweaking the file

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Marek Kilimajer
Red Wingate wrote --- napísal:: Right, guess i saw some kind of JS that determined the size of the selected file and wrote it into an hidden field. Maybe you try it that way. Maybe ActiveX, JS cannot do that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: OT?? - calling frames within frames

2004-06-18 Thread Red Wingate
Allright, even if it's OT Many ways to handle it, first would be to add a function within the frameset which handles redirects to the frames: script language=javascript function handleFrameRedirect ( frame , url ) { document.frames[ frame ].document.location.href = url ; }

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread raditha dissanayake
Red Wingate wrote: Right, guess i saw some kind of JS that determined the size of the selected file and wrote it into an hidden field. Maybe you try it that way. Hi folks. I'm just tweaking the file manager portion of my CMS, and am wondering if there is any way I can identify the size of an

[PHP] [Newbie Guide] For the benefit of new members

2004-06-18 Thread Ma Siva Kumar
=== Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it offline also. Please also try

[PHP] triggering scripts through apache configuration

2004-06-18 Thread Chris Wagner
hello, wondering how you might go about triggering PHP scripts from an apache configuration file, for certain events... for instance, how might i trigger a script whenever a file was accessed within a given directory. and, would it be possible to know which file was accessed? if the above is

[PHP] UPLOAD scripts refuse to function

2004-06-18 Thread cory
ok, someone please lend me some advice here. I am trying create a upload form for my site. Sure that sounds easy right? well I have tried at least 10 different php scripts as well as a handful of cgi. Same resuls with everyone of them...nothing in my specified tmp folder. After contactig my

Re: [PHP] triggering scripts through apache configuration

2004-06-18 Thread Curt Zirzow
* Thus wrote Chris Wagner: hello, wondering how you might go about triggering PHP scripts from an apache configuration file, for certain events... This would be more of an apache question. As far as I know you can't do such a thing. for instance, how might i trigger a script whenever a

Re: [PHP] UPLOAD scripts refuse to function

2004-06-18 Thread Curt Zirzow
* Thus wrote cory: ok, someone please lend me some advice here. I am trying create a upload form for my site. hmm.. another upload question... they all seem to pop up all at once for some reason. Sure that sounds easy right? well I have tried at least 10 different php scripts as well as

Re: [PHP] where can we downlaod PHP modules??

2004-06-18 Thread Curt Zirzow
* Thus wrote Nguyen, Long P (Mission Systems): Anyone know where can I download the following PHP modules? What your looking for arn't the modules, but the libraries that the modules depend on. Sablotron XSLT processor (command-line utility and PHP plugin) See Installation:

Re: [PHP] in data

2004-06-18 Thread Curt Zirzow
* Thus wrote Chris W. Parker: $data = htmlentities($data); // should work echo input type=text value=$data /; s/should/will Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the

  1   2   >