Re: [PHP] Cannot add header information

2003-02-19 Thread G
no i tried that :( i think it somthing with my apache server -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax question

2003-02-19 Thread Jason k Larson
Anthony - The column list is a comma seperated list, the last column cannot have a comma after it or the SQL server will expect another column to be listed. However in that code segment it is not trying to determine if there is or is not a column, it is simply attempting to add the (length)

[PHP] mysql query manipulation vs php results manipulation

2003-02-19 Thread Larry Brown
How do you determine whether or not it is faster/more efficient to run a complicated query or to run multiple simple queries and join / manipulate the results with PHP? Larry S. Brown Dimension Networks, Inc. (727) 723-8388

Re: [PHP] Date/Time Logic

2003-02-19 Thread Brent Baisley
It sounds like you're asking for triggers, which are available yet. But you could setup a cron job to run every night to update the database. It would be no different than doing a nightly dump for backup. You could even have it email you the accounts that were closed and those that will be

Re: [PHP] mysql query manipulation vs php results manipulation

2003-02-19 Thread Mark Charette
On Wed, 19 Feb 2003, Larry Brown wrote: How do you determine whether or not it is faster/more efficient to run a complicated query or to run multiple simple queries and join / manipulate the results with PHP? By empirical methods ... -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] mysql query manipulation vs php results manipulation

2003-02-19 Thread Larry Brown
My apologies for the prior html version, I forgot to change back to txt. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 On Wed, 19 Feb 2003, Larry Brown wrote: How do you determine whether or not it is faster/more efficient to run a complicated query or to run multiple simple

[PHP] Re: sending uploaded images as mail attachments

2003-02-19 Thread David Feldman
Thanks. I'll take a look at it. It seems, though, as if the basic PHP installation with the mail() function and base64 encoding support ought to be able to do this without the need for such an extensive API. As I said, I've got the mail to the point where all the different parts are recognized

[PHP] Adding slashes

2003-02-19 Thread Joachim Krebs
PHP seems to automatically be escaping quotes on my $_POST variables. Am I talking rubbish, or is this some setting? It is annoying me greatly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] invalid path when a page calls itself again

2003-02-19 Thread enediel
Hi everyone: Suppose please this example: /var/www/html/system/index.php /var/www/html/system/subd1/page1.php The users should call index.php to see the other pages into the /var/www/html/system/ directory the index.php calls itself using a form to authenticate the user Inside page1.php I

[PHP] Re: Replacing JSP with PHP?

2003-02-19 Thread Jiann-Ming Su
Okay, found a workaround. This doesn't really answer my original question, which may not have an answer, but this did what we wanted: http://www.phpbuilder.com/mail/php-general/2001032/1269.php It may also be necessary to use HttpServletResponse.encodeRedirectURL before using sendRedirect in

[PHP] PHP form help

2003-02-19 Thread Steven M
Hi, I have created a form that passes details to the next page so the user can see the details they have submitted before clicking confirm to submit to the database. The problem is that the details dont seem to get passed to the script after they have appeared on the confirmation page. I know

[PHP] problem in PHP with ADODB connection, Microsoft JET Database

2003-02-19 Thread pei_world
when I try to connection to the access file using Microsoft Jet Engine. it come up with following error! can anyone help me? $conn = new COM(ADODB.Connection); $conn-Open(Provider=Microsoft.Jet.OLEDB.4.0; Data Source=$database); $query = SELECT * FROM user; $result = $conn-Execute($query) or

RE: [PHP] PHP form help

2003-02-19 Thread Jonathan Villa
How is the information being kept? Sessions? You'll either want to store them in a session or create hidden fields on the confirmation page, then when they click on confirm, you'll have access to the fields on the new page, (the page where your processing script is) --- Jonathan

Re: [PHP] Adding slashes

2003-02-19 Thread Larry E. Ullman
PHP seems to automatically be escaping quotes on my $_POST variables. magic_quotes_gpc is set to On in your php.ini file. You can use stripslashes()to undo its effect or alter this behavior on a script-by-script basis using ini_set(). Larry -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] invalid path when a page calls itself again

2003-02-19 Thread Kevin Stone
I don't know for sure but I believe commands like (../) may not work in the require() or include() functions. Just code the exact path from the home directory and you should be good to go.. require(/var/www/html/system/index.php); By the way I'd think twice about the way in which you're

[PHP] get insert_id in odbc

2003-02-19 Thread Jonathan Villa
Using MySQL, one can use mysql_insert_id to get the value of an auto_increment column. How would I do this using ODBC and Access? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Cron Job help Needed

2003-02-19 Thread Pushpinder Singh Garcha
Hello All, I need to ask you about some resources for cron jobs. Please suggest some online help Thanks Pushpinder Singh Garcha _ Web Architect

Re: [PHP] PHP form help

2003-02-19 Thread Ray Hunter
Please provide more information...ie source code so we can find the problem. Ray On Wed, 2003-02-19 at 13:14, Steven M wrote: Hi, I have created a form that passes details to the next page so the user can see the details they have submitted before clicking confirm to submit to the

[PHP] Re: Cron Job help Needed

2003-02-19 Thread Paul Chvostek
On Wed, Feb 19, 2003 at 03:36:33PM -0500, Pushpinder Singh Garcha wrote: I need to ask you about some resources for cron jobs. Please suggest some online help This isn't really a PHP thing. But you can always read man pages, the documentation that comes with every unix-style operating

Re: [PHP] get insert_id in odbc

2003-02-19 Thread Ray Hunter
Looks like there is not a function for it built in but you should be able to query the sequence and get the number from there by writing your own function... -- Ray On Wed, 2003-02-19 at 13:28, Jonathan Villa wrote: Using MySQL, one can use mysql_insert_id to get the value of an auto_increment

Re: [PHP] get insert_id in odbc

2003-02-19 Thread Ernest E Vogelsinger
At 21:28 19.02.2003, Jonathan Villa spoke out and said: [snip] Using MySQL, one can use mysql_insert_id to get the value of an auto_increment column. How would I do this using ODBC and Access? [snip] Assuming the ID

Re: [PHP] Cron Job help Needed

2003-02-19 Thread Ray Hunter
Do a search at google for cron jobs tutorial... http://www.google.com/search?q=cron+job+tutorials That should give you lots to read... :) -- Ray On Wed, 2003-02-19 at 13:36, Pushpinder Singh Garcha wrote: Hello All, I need to ask you about some resources for cron jobs. Please suggest

[PHP] TrueType + GD (ImageTTFBox)

2003-02-19 Thread Jesse Guardiani
Howdy list, I'm trying to install a PHP CMS package that requires GD and TrueType. I installed the latest PHP production release (4.3.1) with the following configure line: ./configure --with-mysql=/usr/local/mysql \ --with-apxs=/usr/local/apache/bin/apxs \

Re: [PHP] PHP form help

2003-02-19 Thread Steven M
Hi Johnathan Thanks I've got it now, hidden fields did the trick. :-) Steven M Jonathan Villa [EMAIL PROTECTED] wrote in message 004301c2d851$24ac2fd0$8600a8c0@inhocvince">news:004301c2d851$24ac2fd0$8600a8c0@inhocvince... How is the information being kept? Sessions? You'll either want to

RE: [PHP] get insert_id in odbc

2003-02-19 Thread Jonathan Villa
Having to query the DB again and/or create my own function is what I wanted to avoid, but looks I'll have to do it. Thanks for the replies... --- Jonathan -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:45 PM To:

Fw: [PHP] invalid path when a page calls itself again

2003-02-19 Thread enediel
Thanks Kevin for your answer: I emphasize that require (../index.php) works because I see the page index.php finally in the browser, the problem is when this page calls itself to authenticate the user, It's seems like the page tries to find itself into the /system/subd1/ directory. When I called

[PHP] define(DOC_HOME_PATH, what goes here)

2003-02-19 Thread Jonathan Villa
I want to define 3 constants DOC_HOME_PATH IMG_HOME_PATH CTL_HOME_PATH So that I can just do this img src=? echo IMG_HOME_PATH ?stuff/image.jpg a href=? echo DOC_HOME_PATH ?stuff/index.jspClick Here/a form action=? echo CTL_HOME_PATH ?stuff/process_order.php **do I need to echo? **not

Re: [PHP] PHP form help

2003-02-19 Thread Steven M
Thanks Ray but i've found the problem and sorted it. :-) Steven M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problem with mysql / auto increment fields.. ?

2003-02-19 Thread Chad Day
On my website there are a couple places where people can sign up .. The querys after the sign up process look like $blahblah = query(insert firstname lastname) values (blah blah blah) $userid = mysql_insert_id($blahblah); $insertintoothertable = query(userid, blah blah blah) etc. it then uses

[PHP] Re: Passing emails to database

2003-02-19 Thread Bobby Patel
I have an idea that might work in theory. Provided that you have php running on a Unix based OS. You could forward all emails to an email that sits on a Unix server. There they are stored as plain text files, then just parse what you need on a daily basis and truncate that file to 0 bytes. BUT it

Fw: [PHP] invalid path when a page calls itself again SOLUTION

2003-02-19 Thread enediel
Thanks Kevin for your advice: The form included into the index.php had declared the 'action' parameter this way: action=index.php , and the error ocurred. I took your advice and changed this value by action = http://?echo $HTTP_SERVER_VARS['HTTP_HOST']?/system/index.php. In asp,

[PHP] Oracle to MySQL

2003-02-19 Thread Chris Cook
Hi all, I am working on PHP project with a MySQL backend. However, we would like update the MySQL database periodically with an Oracle database not on our server. What should I do to interface with Oracle? Do I need to install anything on our server (OS X Server running Apache)? Thanks for

Re: [PHP] Oracle to MySQL

2003-02-19 Thread John Nichel
I'm recalling this from memory, and I may not be 100% right, but it should put you on the right path. You will need to install the Oracle client libraries on the box with php (you can find these on the Oracle discs used to install the actual database). However, if I remember correctly, the

[PHP][PHP] Money Decimals

2003-02-19 Thread Dennis Cole
I am writing a script that will take amount out of a database then display them on the page. But, some of these are like 46.0 or 46 or 46.005, and they all need to look like 46.00. Is there an easy way to do this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Javascript function

2003-02-19 Thread Hans Prins
There are a lot of other handlers that can call your function: onChange, onFocus, onBlur, onMouseOver, onKeyDown, etc.. gl :) Van Andel [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] m... Try this. void function MyExampleFunction(theelement) { theelement.focus() } body

Re: [PHP][PHP] Money Decimals

2003-02-19 Thread Richard Whitney
Do you ever want to show more then .00 in the decimals place? If not, strip everything off of the number after the decimal including the decimal. then format the number on retrieval by using number_format($number,2); HTH RVW Quoting Dennis Cole [EMAIL PROTECTED]: ### I am writing a script that

[PHP] Re: Redirect without header or javascipt

2003-02-19 Thread Hans Prins
I'd say no.. but if this is about limitations of for example the header() function (where it needs to be called before anything should be output to the browser) then you could buffer your output with: ob_start() and ob_end_flush() Hans Daniel Guerrier [EMAIL PROTECTED] schreef in bericht

[PHP] Getting PHP to handle other HTTP methods

2003-02-19 Thread Sam Minnee
Hi, I want to get PHP to handle the HTTP methods PROPFIND, PUT, DELETE, MKCOL, RENAME, MOVE, and COPY. I've coded up a WebDAV server in PHP to do things that mod_dav cannot (store content in a database or filesystem, call event handlers, filtering the file list, more sophisticated permission

[PHP] safe mode on Mac OS X?

2003-02-19 Thread David Feldman
More safe mode questions: I'm using the standard binary distribution of PHP on Mac OS X -- the one managed by Marc Liyanage, not the one that ships with OS X -- and can't seem to get safe mode working. I can turn it on and it doesn't generate any errors, but it doesn't restrict access to

[PHP] Root Commands

2003-02-19 Thread Patrick Armour
I am trying to use a form (password protected of course) that will allow an administrator to add POP accounts to a linux box. The problem that I seem to have is that the form is trying to give the commands as user 'nobody' and they need to be given by either root or a superuser. Is there any

[PHP] smarty vs. patTemplate vs. includes - newbie q

2003-02-19 Thread David Caplan
Hi, I'm designing a site with about 100 different pages. I'm debating whether to use a template mechanism such as smarty or patTemplate vs just creating pages and including the body templates based on the url parameters. I realize you get a layer of abstraction using the template mechanisms, but

Re: [PHP] syntax question

2003-02-19 Thread Anthony Ritter
Many thanks Jason. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Special characters

2003-02-19 Thread Kim Kohen
G'day all, I have a directory with an Ÿ (mac Option-F) in the name which PHP processes as Ä. This change renders the files in the directory unopenable (the path is bad). Is there some sort of encoding/unencoding which will handle this character correctly? I've tried every form of encoding I can

Re: [PHP] Find IP address

2003-02-19 Thread Justin French
on 20/02/03 1:08 AM, Christian Ista ([EMAIL PROTECTED]) wrote: Is there a better way to be sure, I have the IP address of the user (the ISP ip address) No. IP address' can be faked, they can be part of a firewall/network, and the browser can choose not to send them. They are helpfull, but

Re: [PHP] open_basedir Option

2003-02-19 Thread Chris Wesley
On Wed, 19 Feb 2003, Joachim Krebs wrote: How do I set the php.ini setting open_basedir on a per-directory basis? Ideally, I would like to set it using .htaccess files... open_basedir can only be set in php.ini or httpd.conf. You might be able to set it in Directory stanzas within your

Re: [PHP] Date/Time Logic

2003-02-19 Thread Justin French
I assume you talking about a logged in, validated user -- because there's no way to prevent a user from deleting their cookies, or changing their IP, or using a different computer to access the site. My only suggestion is that you create a user/pass login system, maintain it with sessions, and

Re: [PHP] Root Commands

2003-02-19 Thread Jason Sheets
Most ways require a program a with root access to execute (setuid root) this is very insecure. I would look at enabling your email program to get the account information from a database like mysql or postgres, that way you need just insert a record into the database. Jason On Wed, 2003-02-19 at

RE: [PHP] open_basedir Option

2003-02-19 Thread Luke Woollard
BE CAREFUL WITH PHP_ADMIN_VALUE AND OPENING FILES FROM /tmp DIRECTORY ON *NIX SYSTEMS. YOU WILL NOT BE ABLE TO OPEN UPLOADED FILES FOR EXAMPLE UNLESS YOU USE THE 'upload_tmp_dir' OPTION AS ANOTHER php_admin_value... -- You can configure this values for independent VirtualHosts. Just

Re: [PHP][PHP] Money Decimals

2003-02-19 Thread Justin French
Did you even bother to look on the site? To prove a point, I did a seach for the word number on PHP, and found this result within SECONDS: http://www.php.net/manual/en/function.number-format.php Justin French on 20/02/03 9:54 AM, Dennis Cole ([EMAIL PROTECTED]) wrote: I am writing a

[PHP] Re: Getting PHP to handle other HTTP methods

2003-02-19 Thread Philip Hallstrom
If you're using apache you can do it by twiddling with the Action and Handler configuration options... -philip On Thu, 20 Feb 2003, Sam Minnee wrote: Hi, I want to get PHP to handle the HTTP methods PROPFIND, PUT, DELETE, MKCOL, RENAME, MOVE, and COPY. I've coded up a WebDAV server in PHP

Re: [PHP] Root Commands

2003-02-19 Thread Patrick Armour
Great idea. However, that opens up a whole other can of worms that I'm not really prepared to dive into yet. I searched php.net for the setuid function, but didn't find anything. Is this a php function? Do you know where any documentation on it is? Thanks again Patrick - Original Message

RE: [PHP] problem with mysql / auto increment fields.. ?

2003-02-19 Thread Chris McCluskey
MySql should insert a value into that column when you update if you are using an auto_increment field. this value will always be unique. period. -Chris -Original Message- From: Chad Day [mailto:[EMAIL PROTECTED]] Sent: Wed 2/19/2003 1:16 PM

RE: [PHP] Root Commands

2003-02-19 Thread Luke Woollard
setuid is a UNIX command. try 'man setuid' on a *nix box.. LW -Original Message- From: Patrick Armour [mailto:[EMAIL PROTECTED]] Sent: Thursday, 20 February 2003 11:36 AM To: Jason Sheets Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Root Commands Great idea. However, that opens up a

RE: [PHP] Root Commands

2003-02-19 Thread CodersNightMare
I have looked into this once before, and If I remember correctly, there is a way but PHP has to be compiled as CGI and not as a module. Then you would be able to use suEXEC to force it to run as a user other than what the web server is running. Try Qmail as your mail server, this has a lot of

[PHP] excluding same field values in mysql

2003-02-19 Thread Sunfire
hi im making a mailing system for a company. i have to find all email addresses in a table and send email to all of them. the problem comes in when more than 1 company has the same email address (owned by same person). what i have to do is if more than 1 company has the same email address only use

Re: [PHP] problem with mysql / auto increment fields.. ?

2003-02-19 Thread Justin French
if you check on the FIRST insert (the primary table that holds master usernames) to ensure the uname doesn't exist, THEN do the other queries, there shouldn't be a problem. I think the key here is that you're using the username as the unique key, and putting that username in multiple tables...

[PHP] Re: excluding same field values in mysql

2003-02-19 Thread no-spam----me
In your query throw a 'DISTINCT' in right after your 'SELECT'; Sunfire [EMAIL PROTECTED] wrote: hi im making a mailing system for a company. i have to find all email addresses in a table and send email to all of them. the problem comes in when more than 1 company has the same email address

RE: [PHP] Re: excluding same field values in mysql

2003-02-19 Thread Luke Woollard
MORE INFORMATION: http://www.w3schools.com/sql/sql_distinct.asp -Original Message- From: larry [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, 20 February 2003 12:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: excluding same field values in mysql In your

[PHP] Simple ereg question

2003-02-19 Thread Robert E. Harvey, M.D.
Hello folks, I'd like to verify input data transferred from a form and make sure it is numeric data or null before my program executes. I am using this syntax, which doesn't work: for ($i=1;$i=3;$i++) { if (ereg('[0-9]+','$_POST[gamt_$i]')) { continue; } else {

[PHP] Skipping Image Upload if Filename is blank

2003-02-19 Thread Bryan Brannigan
I have a form for uploading images. If the browse field is empty I would like it to not process the following copy command, thus eliminating the error message it displays. I thought this would work.. but I have been proven wrong. Anyone have any insight? **snip** if

RE: [PHP] excluding same field values in mysql

2003-02-19 Thread Kelly Protsko
If you only want one email do a select distinct email that way only one email address will be brought back from you query. $query=mysql_query(select company, Email from members); $query = mysql_query(select company, distinct(Email) from members); if you want a good book for this check out MySQL

[PHP] Tamplate match system

2003-02-19 Thread Adonias Malosso
Hi! I´m building an application that extracts information from some html pages from differents sites and formatting. I´m doing it with preg but i´d like to know if is possible to design a template system that will match to files and retrive the values like in the following example: EXAMPLE OF THE

[PHP] Re: Intrigued

2003-02-19 Thread Sara Golemon
Louwtjie- In a word: Speed. Lets say that you have a PHP page generating semi-dynamic content (only changes significantly once a day). The dynamic generation process is always guaranteed to be up-to-the-minute, but it takes some amount of time to generate (search through the database,

[PHP] php ecommers site

2003-02-19 Thread Chris Knipe
Lo all, Is there any good already developed PHP based commerce solutions out there? I'm preferably looking for something with catalogues (product pics, descriptions, ratings, buyer comments, etc), online payment options, xml support (to sell via partners for example), etc etc etc. Thanks, -- me

Re: [PHP] php ecommers site

2003-02-19 Thread Justin French
phpShop.org not sure about XML, but everything else is covered Justin on 20/02/03 1:06 PM, Chris Knipe ([EMAIL PROTECTED]) wrote: Lo all, Is there any good already developed PHP based commerce solutions out there? I'm preferably looking for something with catalogues (product pics,

RE: [PHP] Simple ereg question

2003-02-19 Thread Kelly Protsko
You had it pretty close but try and make a few minor changes to it I've tested the function below and it works for what you are trying to do. I am not sure of a way to test for the null with eregi other than putting and or statement in. if (eregi('^[0-9]+$', $_POST[gamt_$i]) || $_POST[gamt_$i]

[PHP] PHP file writing to static HTML file. PLEASE HELP

2003-02-19 Thread Jonathan Moore
hello, i am in a bind.. i need to know how to make a dynamic php page write to a static html page. example: a php file pulls info from a database, such as name and location. once it grabs this information, it needs to write the data to a static html file for archiving. i have explored different

RE: [PHP] PHP file writing to static HTML file. PLEASE HELP

2003-02-19 Thread Luke Woollard
use the fopen, fputs, fclose commands. look up in PHP manual on php.net. Luke Woollard -Original Message- From: Jonathan Moore [mailto:[EMAIL PROTECTED]] Sent: Thursday, 20 February 2003 9:43 AM To: Subject: [PHP] PHP file writing to static HTML file. PLEASE HELP hello, i am in a

[PHP] Intrigued

2003-02-19 Thread Louwtjie
I agree with the solution offered, but Id love to know why one would want to extract info from a database to a HTML page and then archive it *again* Please note I am not being an Ogre here I would just really like to know. Regards, Louwtjie Taljaard Services: * IT Security

[PHP] Jumadi (Networing and Databases)

2003-02-19 Thread Louwtjie
That is a very vague question, but I am pretty sure the answer is yes it does support many networking functions of course it all depends on what you would actually like to accomplish. As for the database stuff there is a lot of info available in the manual that can get you going in a

Re: [PHP] php ecommers site

2003-02-19 Thread olinux
OS Commerce is pretty popular and will do all you ask http://www.oscommerce.com There are lots of quality options, both open source and commercial Here's a couple links to get you started http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/Shopping_Carts/

Re: [PHP] internal site search

2003-02-19 Thread Sascha Braun
You forgot this one... http://swish-e.org/ - Original Message - From: olinux [EMAIL PROTECTED] To: David Otton [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 4:53 AM Subject: Re: [PHP] internal site search Option 2b. - there are several great open source

Re: [PHP] Skipping Image Upload if Filename is blank

2003-02-19 Thread Chris Cook
I have had this problem before. Try to echo out $_FILES['imagefile']['tmp_name'] when the field is blank. Then you will know what to control for... If I recall correctly, the file name is none if there is no uploaded photo. Thus, it exists and that is why the program enters your if statement

Re: [PHP] long running PHP application

2003-02-19 Thread Lord Loh.
Is there any conflict with the server Keep-Alice time ? That is usually not more than a minute... Thank You Lord Loh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: register_globals On

2003-02-19 Thread Lord Loh.
An alternative... 1. register_globals off use the command import_request_variables(PC,_p); now you can get the variables like user as $p_user. The get variables will be ignored! Still, If a user developes a special browser, exclusively to hack, he may be able to send post variables... Any

RE: [PHP] Skipping Image Upload if Filename is blank

2003-02-19 Thread Bryan Brannigan
Chris.. you are 100% correct, that took care of it. Thanks for the help, Bryan -Original Message- From: Chris Cook [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 10:44 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Skipping Image Upload if Filename is blank

[PHP] ini_set question

2003-02-19 Thread janet
ini_set doesn't seem to work for me. I am trying with: ini_set(display_errors,Off); The manual says this one should be able to be set this way. I have tried it with all combinations of and and with Off or 0. It doesn't give an error, but it has no effect either. I can set it to off in php.ini

[PHP] define(DOC_HOME_PATH, what goes here)

2003-02-19 Thread Jonathan Villa
I want to define 3 constants DOC_HOME_PATH IMG_HOME_PATH CTL_HOME_PATH So that I can just do this img src=? echo IMG_HOME_PATH ?stuff/image.jpg a href=? echo DOC_HOME_PATH ?stuff/index.jspClick Here/a form action=? echo CTL_HOME_PATH ?stuff/process_order.php **do I need to echo? **not

[PHP] Re: Cannot add header information

2003-02-19 Thread Lord Loh.
Guys, Guys, why are you harrasing this poor chap? one sure simple way is.. at the begining ? ob_start(); Starts output beffering.. and at the end, ob_end_flush(); ? Throws out all the buffered output to the browser at the other end. now add header info any place before ob_end_flush();

[PHP] array values format

2003-02-19 Thread Michael P. Carel
hi to all I have a problem here in array manipulations. I need an output like this from the queried data : data1,data2,data3 Any idea how? thanx in advance mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sorting multi-dimensional array

2003-02-19 Thread Steve Buehler
Ahhhfinally did it with usort. Thanks to those who gave me that answer. Now here is a question for that. I would like to re-use my cmp function without having to rewrite it each time. Can it be written so that instead of divname being hard coded, that I can pass the sort field in the

[PHP] Undefined offset notices

2003-02-19 Thread Shawn McKenzie
While debugging my code, that seems to work fine, I see hundreds of these notices, many different ones with different offset numbers same line number. (I know I can turn notices off) Notice: Undefined offset: 2 in D:\apps\www\test\themes\Family\includes\autotheme.inc.php on line 275 I would

[PHP] HTTP_RAW_POST_DATA

2003-02-19 Thread Sam Minnee
Hi, I'm having a couple of problems getting PHP to accept my post data. Specifically, the data I am sending is not with POST, put with PUT and PROPFIND. I'm implementing WebDAV within PHP. How to I get PHP to set $HTTP_RAW_POST_DATA for all methods where content is sent, not just post? Thanks,

Re: [PHP] array values format

2003-02-19 Thread Michael P. Carel
as per testing it doesnt delete the last comma, i'm doing something like this: for($i=0;$isizeof($images);$i++) { $pictures .=\./archive/bannerimages/.$bid[$i]./.$images[$i].\.,; } preg_replace(/,$/,,$pictures); echo $pictures; is there something wrong with pre_replace? - Original

Re: [PHP] array values format

2003-02-19 Thread Jason Wong
On Thursday 20 February 2003 13:36, Michael P. Carel wrote: as per testing it doesnt delete the last comma, i'm doing something like this: for($i=0;$isizeof($images);$i++) { $pictures .=\./archive/bannerimages/.$bid[$i]./.$images[$i].\.,; } preg_replace(/,$/,,$pictures); echo $pictures;

Re: [PHP] Undefined offset notices

2003-02-19 Thread Ray Hunter
Try using a for loop instead of a while loop... example: for( $i = 0, $tot = count($tmpparts); $i $tot; $i++ ) { $content = ?.$tmpparts[$i]; eval($content); foreach($command as $name = $cmds) { if($tmpcmds[$i] == $name) { $docmd = $cmds;

Re: [PHP] array values format

2003-02-19 Thread Michael P. Carel
thanks it working now - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 2:40 PM Subject: Re: [PHP] array values format On Thursday 20 February 2003 13:36, Michael P. Carel wrote: as per testing it doesnt delete the last

RE: [PHP] Redirect without header or javascipt

2003-02-19 Thread Henry
with using header? you mean like this-- Header(location: http://url;); -Original Message- From: Daniel Guerrier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 7:00 AM To: php user group Subject: [PHP] Redirect without header or javascipt Is there any to redirect

[PHP] new to php, need help..

2003-02-19 Thread Jonathan
hi all, i've only begun learning php around 1 week ago, i'm having trouble with this code, html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body ? if (isset($subject)) { echo $subject[0]br /; echo $subject[1]p /; } else { $subject[0]

[PHP] Re: smarty vs. patTemplate vs. includes - newbie q

2003-02-19 Thread rush
David Caplan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, From what I understand, both smarty and patTemplate are popular and both have supporters and detractors, is one template significantly faster or more stable than the other? If I just use

Re: Re[6]: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-19 Thread Martin Marques
On Mié 19 Feb 2003 08:54, [EMAIL PROTECTED] wrote: I was wondering if you were able to check the exact RH release of your PHP package, to see if it matched mine? == rpm -q php php-4.1.2-7.3.6 MM When you run phpinfo() the output gives you the configure line MM with which php was compiled,

Re[6]: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-19 Thread role . php-general
Martin, In response to your mail of Wednesday 19 February 2003 at 11:44:52: MM When I say RH, I mean RedHat. The diference seems to be that I'm MM on 7.3, while you're on 7.1. MM Still, it should be compiled with ftp support. Yes, and we're patched with recent releases too, so I'd have thought

Re[8]: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-19 Thread role . php-general
Martin, In response to your mail of Wednesday 19 February 2003 at 12:07:01: == rpm -q php MM php-4.1.2-7.3.6 Hm.. Same version here, and also a .6 release, but for 7.1 instead of 7.3, which leads me to suspect someone at RH fudged the build last time they released a patch. I'm sure I can

Re: [PHP] Adding slashes

2003-02-19 Thread Larry Rosenman
--On Wednesday, February 19, 2003 19:42:00 + Joachim Krebs [EMAIL PROTECTED] wrote: PHP seems to automatically be escaping quotes on my $_POST variables. Am I talking rubbish, or is this some setting? It is annoying me greatly. check the smart_quotes_gpc stuff. -- PHP General Mailing

[PHP] php crashes iplanet

2003-02-19 Thread Rob
Hi, We're trying to run PHP 4.3 on a Solaris 5.8 box running IPlanet 6. We've tests our PHP app on an Apache/FreeBSD config and it runs fine. However, when we trying to get it running on the Solaris box the server crashes every few minutes with the following error message:

<    1   2