[PHP] Strange Problem

2003-07-14 Thread Haseeb
Hi all, thisis a very strange problem. i don't know where i amdoing something that is causing this. the problem is that i am working on a web portal entirely in php. i have a few hidden pages. that do the queries to the DB. now when i redirect toany page for query i get this error CGI

Re: [PHP] Strange Problem

2003-07-14 Thread Curt Zirzow
Haseeb [EMAIL PROTECTED] wrote: Hi all, this is a very strange problem. i don't know where i am doing something that is causing this. the problem is that i am working on a web portal entirely in php. i have a few hidden pages. that do the queries to the DB. now when i redirect to any

[PHP] Re: Code and Good Design Methods

2003-07-14 Thread rush
Dan J. Rychlik [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am reading PHP and MySQL web development 2nd edition book. Chapter 6 talks about displaying dynamic web content using class objects. For the type of project that I am building, this is not optimal. How do I keep my self

[PHP] SquirrelMail + Writable Directories

2003-07-14 Thread Jasper Bryant-Greene
My question is simple - I want to install Squirrelmail on my webserver, but I can't chmod or chown the data directory. Is there any way to stop Squirrelmail from trying to write to the directory without limiting functionality too much, or is there a way to allow it to write without using

Re: [PHP] Grabbing info from other Sites

2003-07-14 Thread SLanger
Hello The only way I can imageine is using curl and doing standard post get requests. But this will put you at the mercy of the other dep. since a change in design may force a change in your logic. If you can, try to build a separate interface for your app which you can use to interface the

[PHP] PHP and JAVA

2003-07-14 Thread J.F.Kishor
Hello all, I would like to know if there is a possibility in php to invoke JAVA RMI from php by enabling some options in php in php.ini file. If there is a possibility please let me know, where I can get a document about it. If any one of you have tried this then please send me a sample

[PHP] mail()

2003-07-14 Thread Tim Thorburn
Hi, I've made a script that loops through a MySQL database and sends a message to all users with an email address on file. My client is now not certain if all their email addresses are accurate and would like to know which ones are and which ones are not. Is there a way, using mail() to tell

Re: [PHP] mail()

2003-07-14 Thread Jasper Bryant-Greene
mail() returns true if the email delivery worked, false if it failed. However, occasionally the email delivery will work, but will fail at a later stage (a delivery failed message will be returned to the sender) - you can check for this by having a script check the mailbox that was sent from,

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread David Otton
On Mon, 14 Jul 2003 00:24:03 -0400, you wrote: Looking for opinions. Can a spoofed uploaded file hurt a script or a webserver?? Reason why Im asking is because, I looked over the magic.mime file on my server, and I see that it doesn't support flash files (I may be wrong), of which I currently

[PHP] BigEndian to integer

2003-07-14 Thread Gerard Samuel
A bit off topic Im trying to figure out how to convert BigEndian byte words to integers. For example - 0 0 0 18 = 18 The only way I know how to convert this is by writing down on paper, and writing 8 4 2 1 above the numbers and adding up the values. Trying to figure out a way via plain old

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread Marek Kilimajer
David Otton wrote: On Mon, 14 Jul 2003 00:24:03 -0400, you wrote: ... The show-resource.php script just has to set the correct mime type header and stream out the contents of the file. And it is safe to use the browser supplied mime type here. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] imagecreate() error

2003-07-14 Thread Marek Kilimajer
Do you get any error at apache start up or in error logs? Michelle Bernard wrote: Hi Philip, Thanks for your response, I tried those steps, still no go, getting that same error -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] BigEndian to integer

2003-07-14 Thread Marek Kilimajer
http://www.php.net/pack Gerard Samuel wrote: A bit off topic Im trying to figure out how to convert BigEndian byte words to integers. For example - 0 0 0 18 = 18 The only way I know how to convert this is by writing down on paper, and writing 8 4 2 1 above the numbers and adding up the

Re: [PHP] PHP and JAVA

2003-07-14 Thread Marek Kilimajer
Have you tried looking at http://www.php.net/java ? J.F.Kishor wrote: Hello all, I would like to know if there is a possibility in php to invoke JAVA RMI from php by enabling some options in php in php.ini file. If there is a possibility please let me know, where I can get a document

[PHP] How to get executed php result in variable

2003-07-14 Thread Tariq Murtaza
Dear All, I need to get results like this. ? $result = get_executed_php_file_contents.php ? Looking for some solutions TM

Re: [PHP] How to get executed php result in variable

2003-07-14 Thread Chris Hayes
At 11:31 14-7-03, you wrote: Dear All, I need to get results like this. ? $result = get_executed_php_file_contents.php ? I use: ob_start(); include('modules/file.php'); $result=ob_get_contents(); ob_end_clean(); -- PHP General

Re: [PHP] How to get executed php result in variable

2003-07-14 Thread Ryan Gibson
Hi, Put a return statement at the end of file 'get_executed_php_file_contents.php' that returns the value you need, then use: ? $result = include(get_executed_php_file_contents.php); ? On 14/7/03 10:31 am, Tariq Murtaza [EMAIL PROTECTED] wrote: Dear All, I need to get results like

Re: [PHP] About fopen() for write and PHP settings

2003-07-14 Thread Marek Kilimajer
George Papatheodorou wrote: First of all I apology for my poor use of English of my newbish(?) questions because I didn't find any solutions the first time I e-mailed this list. What my problem is: I am on a server that has these configurations like these: http://kainga.quasarnet.org/php.php .

[PHP] Validating two variables

2003-07-14 Thread Ron Allen
if ($user!='monganl') is what I have this is what I want to do if ($user!='monganl' or 'wilsonma') what would be the proper format for this! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to get executed php result in variable

2003-07-14 Thread Haseeb
hi, or if you want to get parsed result of a php page. which may contain HTML you can use CURL for this purpose.open your page with curl and it will give you result in a variable or you could use socket functions.everyone here will present you with different idea'scoz there are different

Re: [PHP] Validating two variables

2003-07-14 Thread David Otton
On Mon, 14 Jul 2003 12:04:54 +0200, you wrote: if ($user!='monganl') is what I have this is what I want to do if ($user!='monganl' or 'wilsonma') what would be the proper format for this! if ($user != 'monganl' || $user != 'wilsonma') however, this condition would never fire, as $user is

[PHP] Missing php.ini file

2003-07-14 Thread Chris Blake
Greetings learned PHP(eople), My php.ini file has gone awol, how or why I don`t know The only php.ini file I can find on my system (MDK 9.1) is located in '/usr/local/ZEND/bin' and only contains the following entries : === zend_extension=/usr/local/Zend/lib/ZendDebuggerLocal.so

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread Nadim Attari
So, check $_FILES['userfile']['type'] against a set of allowed file types, and you're set... What about this: array getimagesize ( string filename [, array imageinfo]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] elegant way of doing something else the last time through a loop?

2003-07-14 Thread Petre Agenbag
HI list Is there an elegant way to know when the last time through the loop is going to be and to do something else? I want to search through a table by exploding the search string and then compounding my own sql string by working through the array. From my example below, you can see I use a

Re: [PHP] BigEndian to integer

2003-07-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 14 Jul 2003 at 09:00, lines prefixed by '' were originally written by you. A bit off topic Im trying to figure out how to convert BigEndian byte words to integers. For example - 0 0 0 18 = 18 The only way I know how to convert

[PHP] custom changeable templates

2003-07-14 Thread electroteque
hi there i was wondering how i could go about changing the templates of a site with a tool and also tooling the css colours for some of the pages dynamically , let me know thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Upgrading 4.2.2 to 4.3.2

2003-07-14 Thread Dave [Hawk-Systems]
any takers on this? -Original Message- From: Dave [Hawk-Systems] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 11:09 AM To: [EMAIL PROTECTED] Subject: [PHP] Upgrading 4.2.2 to 4.3.2 Live server was previously a 4.0.4 install that we upgraded to 4.2.2 Am getting ready to

[PHP] Extended CfP of Intl. PHP Conference 2003

2003-07-14 Thread Björn Schotte
Hi all, it seemed that because of LinuxTag some people didn't manage to send their CfPs just in time. :-) So we decided to extend the CfP until the end of this week. Just submit your session at http://www.phpconference.de/kt/input/ TIA, Björn. -- - Chairman im Test. Infos unter [EMAIL

RE: [PHP] Upgrading 4.2.2 to 4.3.2

2003-07-14 Thread electroteque
all i can say it why not rerun the configure i'm sure it'll come up with some breakages like library versions and dependancies etc .. -Original Message- From: Dave [Hawk-Systems] [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 9:28 PM To: [EMAIL PROTECTED] Subject: RE: [PHP]

Re: [PHP] elegant way of doing something else the last time through a loop?

2003-07-14 Thread Tom Rogers
Hi, Monday, July 14, 2003, 9:11:11 PM, you wrote: PA HI list PA Is there an elegant way to know when the last time through the loop is PA going to be and to do something else? PA I want to search through a table by exploding the search string and PA then compounding my own sql string by

Re: [PHP] elegant way of doing something else the last time through a loop?

2003-07-14 Thread David Otton
On 14 Jul 2003 13:11:11 +0200, you wrote: Anyway, as you can see my problem lies with the SQl when the last element is reached, then it should NOT add another and or or. The short answer is implode(). Any help with my logic, ie, how do/would you guys do this? if ($_POST[any_all] == any) {

Re: [PHP] elegant way of doing something else the last timethrough a loop?

2003-07-14 Thread Petre Agenbag
Sheer genius my man! Thanks! On Mon, 2003-07-14 at 13:38, Tom Rogers wrote: Hi, Monday, July 14, 2003, 9:11:11 PM, you wrote: PA HI list PA Is there an elegant way to know when the last time through the loop is PA going to be and to do something else? PA I want to search through a

RE: [PHP] session data missing

2003-07-14 Thread Ford, Mike [LSS]
-Original Message- From: ulf sundin [mailto:[EMAIL PROTECTED] Sent: 13 July 2003 23:37 I'm not the admin on the server, so I'll have to manage with the software provided. And that is php 4.0.6. Ah, right. Me, too, actually, which is why I still have the 4.0.6 manual on my PC!

Re: [PHP] elegant way of doing something else the last time througha loop?

2003-07-14 Thread Marek Kilimajer
I always do it this way: $condition=''; foreach ($phrases as $key=$val) { if (($val != the) ($val != and)) { $condition.= name like '%$val%' $logic; } } $condition=substr($condition, 0, strlen($condition) - strlen($logic)); $sql .= $condition; $length =

Re: [PHP] About fopen() for write and PHP settings

2003-07-14 Thread papirakl
Marek Kilimajer [EMAIL PROTECTED] said: George Papatheodorou wrote: First of all I apology for my poor use of English of my newbish(?) questions because I didn't find any solutions the first time I e- mailed this list. What my problem is: I am on a server that has these

Re: [PHP] Missing php.ini file

2003-07-14 Thread John W. Holmes
Chris Blake wrote: My php.ini file has gone awol, how or why I don`t know You can normally just get a new php.ini from here: http://cvs.php.net/co.php/php4/php.ini-dist but it's giving a 505 error right now. May have to wait a bit. First, create a PHP page with just the function ?

Re: [PHP] Missing php.ini file

2003-07-14 Thread Chris Blake
On Mon, 2003-07-14 at 14:13, John W. Holmes wrote: . You can normally just get a new php.ini from here: http://cvs.php.net/co.php/php4/php.ini-dist but it's giving a 505 error right now. May have to wait a bit. First, create a PHP page with just the function ? phpinfo(); ? on it.

RE: [PHP] REGULAR EXPRESSION HELP

2003-07-14 Thread Ford, Mike [LSS]
-Original Message- From: John [mailto:[EMAIL PROTECTED] Sent: 12 July 2003 07:31 I need to match a pattern, not in a single-line but from a HTML page, which obviously has loads of lines. I need to match 2 lines from this HTML page: 1) HTMLTITLEFirstVariable - Second

Re: [PHP] elegant way of doing something else the last timethrough a loop? SOLVED

2003-07-14 Thread Petre Agenbag
Following works nicely for me now, thanks all! ?php include (main_class.php); $db = new my_db_class; $db -connect(localhost,user,password,table); $table_name = main; if ($_POST[any_all] == any) { $logic = or; } elseif ($_POST[any_all] == all) { $logic = and; } elseif

[PHP] Uploading Multiple Files

2003-07-14 Thread Martin E. Koss
I'm having a little struggle getting a PHP file to upload 2 files simultaneously. The code follows. The first image always gets uploaded but the second one sometimes does but when it does it is a duplicate of the first image but named as the second. There's probably a real simple solution but

[PHP] PHP, server load and optimize

2003-07-14 Thread Jon Shoberg
Is there a way to execute a few continuous lines of PHP code before the engine load user defined functions from a PHP script? We need to find a way to controll server load. the code of the script itself has been optimized completely. thanks -- PHP General Mailing List

RE: [PHP] PHP, server load and optimize

2003-07-14 Thread Adrian Teasdale
Jon You should look at some of the caches available as these will help. Hotscripts has a good list: http://www.hotscripts.com/cgi-bin/search.cgi?bool=ANDquery=cachecatid=2 as well as: http://apc.communityconnect.com/ and this one has quite a following: http://www.turcksoft.com/en/e_mmc.htm

RE: [PHP] Couple of questions form a PHP newbie

2003-07-14 Thread Jay Blanchard
[snip] First question: I'm creating a custom content manager for a small site. It will basically be used to store short articles (several paragraphs each). Now my question is, is storing these to a text file going to work or am I going to have problems later on when the file gets to be a

[PHP] PHP, Excel, jpgraph - can the graph be included in the Excel output?

2003-07-14 Thread Jay Blanchard
Good morning! I have several reports that are generated using PHP MySQL for which I would like to include a graph using the excellent jpgraph (http://www.aditus.nu/jpgraph/) class for PHP. ?php ob_start(); // excel headers header(Content-Type: application/vnd.ms-excel);

Re: [PHP] elegant way of doing something else the last time through a loop?

2003-07-14 Thread Curt Zirzow
Marek Kilimajer [EMAIL PROTECTED] wrote: I always do it this way: $condition=''; foreach ($phrases as $key=$val) { if (($val != the) ($val != and)) { $condition.= name like '%$val%' $logic; } } $condition=substr($condition, 0, strlen($condition) -

[PHP] Send mail using external server

2003-07-14 Thread Maria Garcia Suarez
Hi there! I'm developing a program that has a kind of mail client from where users can send mails and get a blind copy in their e-mail boxes. The program uses mail() in those servers having a SMTP installed in the very same server. I would like to let people send mails even if the server is not

Re: [PHP] PHP, Excel, jpgraph - can the graph be included in theExcel output?

2003-07-14 Thread Marek Kilimajer
You need a class that can create xls files with images. Or you can create a Web Archive: http://officeupdate.microsoft.com/office/webarchive.htm Jay Blanchard wrote: Good morning! I have several reports that are generated using PHP MySQL for which I would like to include a graph using the

RE: [PHP] PHP, Excel, jpgraph - can the graph be included in the Excel output?

2003-07-14 Thread Jay Blanchard
[snip] You need a class that can create xls files with images. Or you can create a Web Archive: http://officeupdate.microsoft.com/office/webarchive.htm [/snip] Thanks! We have looked at this, but have arrived at the problem of opening the file for the user. Here is the process in a nutshell...

[PHP] Re: Send mail using external server

2003-07-14 Thread Pete Morganic
http://phpmailer.sourceforge.net/ This is what I use and makes life much much easier Pete Maria Garcia Suarez wrote: Hi there! I'm developing a program that has a kind of mail client from where users can send mails and get a blind copy in their e-mail boxes. The program uses mail() in those

Re: [PHP] Send mail using external server

2003-07-14 Thread Juan Nin
From: Maria Garcia Suarez [EMAIL PROTECTED] The problem is that blind copies don't reach destination, mails in the To: field arrive well, mails in the BCC: desappear and never reach the mailbox (nor get back :-? [...] talk2server(MAIL FROM: .$from.\n); if (listen2server() == 250)

Re: [PHP] PHP, Excel, jpgraph - can the graph be included in theExcel output?

2003-07-14 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] You need a class that can create xls files with images. Or you can create a Web Archive: http://officeupdate.microsoft.com/office/webarchive.htm [/snip] Thanks! We have looked at this, but have arrived at the problem of opening the file for the user. This should

[PHP] Logging PHP Execution time to a file?

2003-07-14 Thread Lasse Laursen
Hi all, We are debugging some web applications to try to determine where the problems with long execution time is. Is it possible to log the execution time of each script executed to a logfile? The PHP processes are run as FastCGI under Zeus. Regards -- Lasse Laursen VP, Hosting Technology

Re: [PHP] Send mail using external server

2003-07-14 Thread Maria Garcia Suarez
Hola Juan! Thanks for your help Juan :-) A simple but must-be-asked question... --- Juan Nin [EMAIL PROTECTED] wrote: From: Maria Garcia Suarez [EMAIL PROTECTED] The problem is that blind copies don't reach destination, mails in the To: field arrive well, mails in the BCC: desappear

Re: [PHP] Missing php.ini file

2003-07-14 Thread Philip Olson
On 14 Jul 2003, Chris Blake wrote: On Mon, 2003-07-14 at 14:13, John W. Holmes wrote: . You can normally just get a new php.ini from here: http://cvs.php.net/co.php/php4/php.ini-dist but it's giving a 505 error right now. May have to wait a bit. First, create a PHP page

Re: [PHP] Missing php.ini file

2003-07-14 Thread CPT John W. Holmes
You'll be waiting a long time, until the end of time :) Because the php4 module is now named php-src, so change that in the url and you'll be set. Thanks. Someone needs to change the link in the Configuration chapter of the manual, too, b/c that's how I always find it. :) ---John Holmes...

Re: [PHP] Send mail using external server

2003-07-14 Thread Juan Nin
From: Maria Garcia Suarez [EMAIL PROTECTED] Hola Juan! Hola! :) (Hi!) Thanks for your help Juan :-) de nada!!! (you are welcome) What should I change in the script in order to make it work? after the RCPT TO for the $to variable, you should check if $cc is defined, if it is, then do

Re: [PHP] Send mail using external server

2003-07-14 Thread Curt Zirzow
Maria Garcia Suarez [EMAIL PROTECTED] wrote: [...] talk2server(MAIL FROM: .$from.\n); if (listen2server() == 250) talk2server(RCPT TO: .$to.\n); You must send the rctp to's bfore you start sending the data. To be a more stable smtp client there should be more sanity

Re: [PHP] Send mail using external server

2003-07-14 Thread Curt Zirzow
Juan Nin [EMAIL PROTECTED] wrote: From: Maria Garcia Suarez [EMAIL PROTECTED] [...] but, IMHO, that script isn't well coded as you have already seen, and I also don't like the way it's programmed, it's very rudimentary... I would use phpmailer as someone told you before instead.. Agreed! :D

[PHP] Re: Logging PHP Execution time to a file?

2003-07-14 Thread \[cz\]Emo
I use this: function getmicrotime() { list($usec, $sec) = explode( ,microtime()); return ((float)$usec + (float)$sec*1000); } // Start script $time=getmicrotime(); ... ... ... // Script finished echo Page was generated in .sprintf(%01.7f,((getmicrotime()-$time)/1000)). seconds.; You

Re: [PHP] Send mail using external server

2003-07-14 Thread Maria Garcia Suarez
Hi there! --- Curt Zirzow [EMAIL PROTECTED] wrote: Juan Nin [EMAIL PROTECTED] wrote: From: Maria Garcia Suarez [EMAIL PROTECTED] [...] but, IMHO, that script isn't well coded as you have already seen, and I also don't like the way it's programmed, it's very rudimentary... I would

Re: [PHP] Send mail using external server

2003-07-14 Thread Juan Nin
From: Curt Zirzow [EMAIL PROTECTED] You must send the rctp to's bfore you start sending the data. To be a more stable smtp client there should be more sanity checking before blindy doing this: if ($cc != ) { $CC = split(',', $cc); foreach ($CC as $ccemal) { talk2server(RCPT TO:

Re: [PHP] Is it possible to test an uploaded file to check thetype?

2003-07-14 Thread Dan Anderson
There are some very good reasons to check a file's mime type. For one thing, if you send a user an executable when you meant to send them a jpg, and that executable unleashes a virus, that is no good. Not only will noone visit your site if they know you are a source of viruses, you may get sued

Re: [PHP] Strange Problem

2003-07-14 Thread Philip Olson
This is an IIS issue. The install.txt has specific information on this topic, have a look. Also, this comes up a lot and the following bug report is full of newbies asking bogus questions but it also contains some good info: http://bugs.php.net/bug.php?id=12061 So it looks like

Re: [PHP] Missing php.ini file

2003-07-14 Thread Philip Olson
You'll be waiting a long time, until the end of time :) Because the php4 module is now named php-src, so change that in the url and you'll be set. Thanks. Someone needs to change the link in the Configuration chapter of the manual, too, b/c that's how I always find it. :) Done, fixed in

Re: [PHP] elegant way of doing something else the last time through a loop?

2003-07-14 Thread Jim Lucas
- Original Message - From: Petre Agenbag [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 4:11 AM Subject: [PHP] elegant way of doing something else the last time through a loop? HI list Is there an elegant way to know when the last time through the loop is going

Re: [PHP] Logging PHP Execution time to a file?

2003-07-14 Thread Marek Kilimajer
I use this function: function echo_pt($add='') { static $pt = 0; if($pt==0) { $pt = miro_time(); return; } $time_start = explode(' ', $pt); $time_end = explode(' ', microtime()); $parse_time = number_format(($time_end[1] + $time_end[0] - ($time_start[1] +

Re: [PHP] Send mail using external server

2003-07-14 Thread Maria Garcia Suarez
Hi there! --- Juan Nin [EMAIL PROTECTED] wrote: From: Curt Zirzow [EMAIL PROTECTED] You must send the rctp to's bfore you start sending the data. To be a more stable smtp client there should be more sanity checking before blindy doing this: if ($cc != ) { $CC = split(',', $cc);

[PHP] Re: Send mail using external server

2003-07-14 Thread Manuel Lemos
Hello, On 07/14/2003 11:27 AM, Maria Garcia Suarez wrote: Hi there! I'm developing a program that has a kind of mail client from where users can send mails and get a blind copy in their e-mail boxes. The program uses mail() in those servers having a SMTP installed in the very same server. I

Re: [PHP] Send mail using external server

2003-07-14 Thread Juan Nin
From: Maria Garcia Suarez [EMAIL PROTECTED] With the proposed changes does it become something usable? it all depends on what you mean by usable!!! :oP if it works for what you want, and it satisfies your needs, then you can use it test it, and if it works ok for you, and don't want to use

[PHP] Please dirrect me -- headers ????

2003-07-14 Thread Anthony
This isn't necessarily PHP specific, but I'm looking for more information on HTTP headers. I'd like to know what headers I should send and why. I want my code to send out w3c compliant HTML. I'm confused on exactly what headers do, and the difference between HTTP headers and information

[PHP] Re: Strange Problem

2003-07-14 Thread Anthony
You'll get this in IIS if you request a page that should be parsed by the PHP CGI that does not exist. IIS trys to load the script into the CGI but gets no results since there was no page to load. I think it's an IIS bug i.e. you go to www.domain.com/page1.php but there is no page1.php

Re: [PHP] Uploading Multiple Files

2003-07-14 Thread Fejes Jozsef
it's very hard to read this code without tabs, but maybe this is an error: do_upload2($userfile,$newname); shouldn't that be $userfile2 and $newname2 ? (if this is the error, now you see why ugly code sucks :)) anyway, maybe we would known much more if we saw the whole code, e.g. where

[PHP] Odd PHP/ErrorDocument behavior

2003-07-14 Thread Stewart, Eric
I'm getting a little wierded out here because I'm seeing stuff on google that says others have had similar problems, but not my exact problem. I'm in the middle of moving from an Apache1 server to an Apache2 server. Our server heavily relies on php so much that we decided to

Re: [PHP] Is it possible to test an uploaded file to check the type?

2003-07-14 Thread Gerard Samuel
Thank you for your reply. A little background on what Im doing with file uploading. 1. Im allowing registered users to upload avatars for their own usage. 2. Im allowing image uploading for submitted articles by certain registered users. 3. And Im currently constructing a media gallery, where

[PHP] Shopping cart with Flash front end

2003-07-14 Thread Daniel Rychlik
This is off subject, but I was wondering if anyone has come across any white papers or sample .fla files I could look at to consider building a shopping cart in flash. Obviously I want to use PHP for my backend with a flash shopping cart front end. -Dan -- PHP General Mailing List

[PHP] Automatically creating an image of another website

2003-07-14 Thread Adrian Teasdale
I would like to be able to point PHP to a URL and for it to create an image (like a screenshot) of that website. We are putting together a useful links section for a client and to have this facility would be great. Anyone done this sort of thing before? Any ideas would be very useful Thanks in

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Ryan Gibson
Hi, Headers have nothing to do with the head tag, the headers are sent before the html page, ie they are not part of the html document, but something sent by the web server before the page is sent to the user Try: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html And

Re: [PHP] Turning string into a table

2003-07-14 Thread Jeff Harris
On Jul 13, 2003, zavaboy claimed that: |Is there a way to make for example: | |// (Column info) |// String 1: |[This column holds |[Col 1] |[Col 2]] |[This second column holds |[Col 3] |[Col 4]] | |// (Row) |// String 2: |[Col 1 (row1)] |[Col 2 (row1)] |[Col 3 (row1)] |[Col 4 (row1)] | |// (Row)

Re: [PHP] BigEndian to integer

2003-07-14 Thread Gerard Samuel
Marek Kilimajer wrote: http://www.php.net/pack A little background on what Im doing. Im attempting to read realaudio files for their metadata, so Im reading from a binary string, and Im currently using unpack() (Im new to using this function, so I may be wrong with its usage) to unpack the

[PHP] Can PHP Build XML Pages?

2003-07-14 Thread Jeffrey Fitzgerald
Looking for direction PHP and XML. I have a need to build a simple XML doc from a PHP set of form vars. Any tips or examples are greatly appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] reposting in textarea

2003-07-14 Thread Artoo
How do you repost data in a textarea field of a form? I've set up a session variable named old_data and want to repost the data into the textarea of a form so it can be re-editied. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reposting in textarea

2003-07-14 Thread Fejes Jozsef
use textarea ...? echo $old_data; ?/textarea or textarea ...?=$old_data?/textarea if it's enabled -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it possible to test an uploaded file to checkthe type?

2003-07-14 Thread Dan Anderson
Concerning infecting the server, if the files are chmodded without the executable bit, shouldn't that be considered *safer* It may seem that mime_content_type() isnt an option. I tried it on a flash file, and it reported it as text/plain. Well, again, everything is dependent on what

Re: [PHP] Can PHP Build XML Pages?

2003-07-14 Thread Jeff Harris
On Jul 14, 2003, Jeffrey Fitzgerald claimed that: | |Looking for direction PHP and XML. I have a need to build a simple |XML doc from a PHP set of form vars. Any tips or examples are greatly |appreciated. | You mean something like ?php header(Content-Type: text/xml); print (?xml

[PHP] Re: reposting in textarea

2003-07-14 Thread Pete Morganic
You can use the $_POST variavle in the text area eg textarea name=my_field?php echo $_POST['my_field']; ?/textarea Artoo wrote: How do you repost data in a textarea field of a form? I've set up a session variable named old_data and want to repost the data into the textarea of a form so it can

Re: [PHP] Can PHP Build XML Pages?

2003-07-14 Thread Ray Hunter
There are 2 ways that i make xml files with php. 1. Use domxml to make the docs. (RTM this is somewhat complex.) 2. Just create it similar to html but use xml tags. The second way is really easy. 1. Make sure to send header content type as text/xml. header( Content-Type: text/xml ); 2.

Re: [PHP] Logging PHP Execution time to a file?

2003-07-14 Thread Jeff Harris
On Jul 14, 2003, Marek Kilimajer claimed that: |I use this function: |function echo_pt($add='') { | static $pt = 0; | if($pt==0) { | $pt = miro_time(); | return; | } | $time_start = explode(' ', $pt); | $time_end = explode(' ', microtime()); | $parse_time =

[PHP] Templates...

2003-07-14 Thread Donatas
Does anyone know any other way used in template engines for loops but creating array first and passing it to template class? This is rather annoying and it makes work slower and code harder to read. I've made my own template class with variable and loop support. Loop handling is way different

[PHP] RE: Templates... (dumb me)

2003-07-14 Thread Donatas
http://www.mif.vu.lt/~doma2988/tpl/ From: Donatas [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 7:38 PM To: '[EMAIL PROTECTED]' Does anyone know any other way used in template engines for loops but creating array first and passing it to template

Re: [PHP] Re: reposting in textarea

2003-07-14 Thread CPT John W. Holmes
Artoo wrote: How do you repost data in a textarea field of a form? I've set up a session variable named old_data and want to repost the data into the textarea of a form so it can be re-editied. You can use the $_POST variavle in the text area eg textarea name=my_field?php echo

[PHP] How do I dump a blob or text into a mySQL Database?

2003-07-14 Thread Dan Anderson
I'm trying to split up a file and dump it into a mySQL database BLOB. Wherever I run the query: mysql_query(INSERT INTO table (field) VALUES ('{$buffer}')); Nothing ever shows up in the table -- whethere field is a text or a blob and whether I dump in text or binary. Oddly enough when I run

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Anthony
Thanks for the links, I'm going through them now as far as the location thing. I don't acutaly want to send the user to a different site, I just want to change what apears in the user's address bar. in my example, both www.mydom1.com and www.mydom.com point to the same site and weberver.

[PHP] Moving Files/ Temporary Names

2003-07-14 Thread caspar kennerdale
I was hoping someone might clarify what may seem like a basic point. I looked in the archives but didnt seem to get my answer. I am creating a basic set of functions that will form the back bone of an image gallery and a directory handler. I am trying to crate the function that will allow the

Re: [PHP] How do I dump a blob or text into a mySQL Database?

2003-07-14 Thread Brad Pauly
Dan Anderson wrote: I'm trying to split up a file and dump it into a mySQL database BLOB. Wherever I run the query: mysql_query(INSERT INTO table (field) VALUES ('{$buffer}')); Nothing ever shows up in the table -- whethere field is a text or a blob and whether I dump in text or binary. Oddly

RE: [PHP] Moving Files/ Temporary Names

2003-07-14 Thread Ford, Mike [LSS]
-Original Message- From: caspar kennerdale [mailto:[EMAIL PROTECTED] Sent: 14 July 2003 18:49 I was hoping someone might clarify what may seem like a basic point. I looked in the archives but didnt seem to get my answer. I am creating a basic set of functions that will form the

[PHP] Easier queries?

2003-07-14 Thread Shawn McKenzie
Here's what I'm thinking, just looking to see if anyone has done this or similar. - I have a MySQL DB and I create an ODBC datasource for it on my windows box - I then open MS Access and link the tables from my datasource - Access provides a graphical relationship builder, so I build relations in

Re: [PHP] How do I dump a blob or text into a mySQL Database?

2003-07-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Mon, 14 Jul 2003 at 18:48, lines prefixed by '' were originally written by you. I'm trying to split up a file and dump it into a mySQL database BLOB. Wherever I run the query: mysql_query(INSERT INTO table (field) VALUES ('{$buffer}'));

[PHP] php.ini directives question

2003-07-14 Thread Ray Hunter
Does anyone know if the local values for the php.ini directives have presidence over the master value? -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Taylor York
Cant you edit the httpd.conf? I know there might be plenty of reasons why not to...but im just checking. =) Server mydom1.com Alias mydom.com Anthony [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the links, I'm going through them now as far as the location thing. I

Re: [PHP] Please dirrect me -- headers ????

2003-07-14 Thread Chris Shiflett
--- Anthony [EMAIL PROTECTED] wrote: This isn't necessarily PHP specific, but I'm looking for more information on HTTP headers. I'd like to know what headers I should send and why. That is an admirable desire, and I wish more developers sought the same knowledge. You can learn more about HTTP

  1   2   >