[PHP] Help needed Postgresql and PHP

2004-10-05 Thread suma parakala
Hi I am developing an application using php and postgresql . My problem is I need to retrieve name and addresses from table(postgres sql table) and print letter (body of letter will be same). Kindly help /Suggest how i can do this Thanks Suma

RE: [PHP] Recursive Interpolation

2004-10-05 Thread Chuck Wolber
On Mon, 4 Oct 2004, Michael Sims wrote: Chuck Wolber wrote: The method I've come up with in the meantime, I believe is much more effective than heredocs, but still an ugly hack: function interpolate ($text, $msg_variable) { $msg_key = '_FP_VAR_'; foreach

RE: [PHP] Help needed Postgresql and PHP

2004-10-05 Thread Warren Vail
Extracting name and addresses from postgres as a comma separated values CSV file should be doable with postgress utilities or scripts. Assuming you have access to a word processor like Microsoft Word, that has a Mail Merge capability, where your letter can be merged and printed with names and

[PHP] validate a tag

2004-10-05 Thread Pahlevanzadeh Mohsen
Dear,I have a input text tag that it named question. Also i have a 2 radio bottum. When i receive their value,I want to test that question tag is empty or not.If empty,I again send to client until client fill out this tag. Can u solve my problem? ?php function display_form() { echo form

[PHP] Math problem with modulus

2004-10-05 Thread Christoph Schwadorf
Hello. I have some problems with basic math in the function below. function Custom_Round($Digit, $Divisor) { return (($Digit / $Divisor) - (($Digit % $Divisor) / $Divisor)); } Custom_Round(23, 10) returns float(2) as expected. Same for Custom_Round(22, 10). BUT when you compare the both

[PHP] checkbox arrays and validation

2004-10-05 Thread Angelo Zanetti
Hi all, this might be slightly off-topic in a way but Im looking for help not flaming. Ok I have a checkbox array that I populate from a DB using php: while ($row = mysql_fetch_array($result)) echo(input type=checkbox name=chkmodels[] value= . $row['models_id'] . . $row['models_type'] .

RE: [PHP] checkbox arrays and validation

2004-10-05 Thread Ford, Mike
On 05 October 2004 11:10, Angelo Zanetti wrote: Hi all, this might be slightly off-topic in a way but Im looking for help not flaming. Ok I have a checkbox array that I populate from a DB using php: while ($row = mysql_fetch_array($result)) echo(input type=checkbox

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread John Holmes
Angelo Zanetti wrote: but what I want to clarify is that if I change my PHP echo statement to: echo(input type=checkbox name=chkmodels value= . $row['models_id'] . . $row['models_type'] . br); basically without the [] then it is still recognised as an array. But when the array is passed back it

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Marek Kilimajer
Angelo Zanetti wrote: Here is the OT part. how do I reference the checkboxes in javascript if the chkmodels[] is used? I have tried many things like: myCheckboxArray = document.forms[0].elements[chkmodels[]]; The above should work. Is it really the first form on the page? -- PHP General Mailing

[PHP] Re: Math problem with modulus

2004-10-05 Thread M. Sokolewicz
Christoph Schwadorf wrote: Hello. I have some problems with basic math in the function below. function Custom_Round($Digit, $Divisor) { return (($Digit / $Divisor) - (($Digit % $Divisor) / $Divisor)); } Custom_Round(23, 10) returns float(2) as expected. Same for Custom_Round(22, 10). BUT

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Angelo Zanetti
its the only form on the page... Based on the other responses I will have to use chkmodels[] and need to get the javascript working. Is it not possible to use the forms name when referencing the array? thank again. Angelo Marek Kilimajer [EMAIL PROTECTED] 10/5/2004 1:52:02 PM Angelo Zanetti

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Marek Kilimajer
Angelo Zanetti wrote: its the only form on the page... Based on the other responses I will have to use chkmodels[] and need to get the javascript working. Is it not possible to use the forms name when referencing the array? You should be able to use: document.formName document.forms[0]

Re: [PHP] checkbox arrays and validation

2004-10-05 Thread Angelo Zanetti
Hi Marek, I try to access the array like this: document.frmft.elements[chkmodels[]]; but doesnt work. I also tried this: models = document.forms['frmft'].elements[chkmodels[]]; is there not a problem with the elements part? thanks Marek Kilimajer [EMAIL PROTECTED] 10/5/2004 2:19:26 PM

RE: [PHP] checkbox arrays and validation

2004-10-05 Thread Ford, Mike
On 05 October 2004 13:55, Angelo Zanetti wrote: Hi Marek, I try to access the array like this: document.frmft.elements[chkmodels[]]; but doesnt work. I also tried this: models = document.forms['frmft'].elements[chkmodels[]]; is there not a problem with the elements part? So long

[PHP] Re: email templating system

2004-10-05 Thread Manuel Lemos
Hello, On 10/04/2004 10:35 PM, Adwinwijaya wrote: Currently I use Smarty for page templating system, and I am happy with this. But is there any way to produce a file with smarty instead of displaying it as a page. I want to use this as email templating, I want to create an email and I have a

[PHP] Session Problem

2004-10-05 Thread Kevin Javia
Hi there, I have got PHP 5 installed on IIS6 with 'register_globals = on'. When run my page with session variable at top of the page ? $_SESSION['_user'] == .. ? I got notice like Notice: Undefined index: _user in E:\Projects\. What can be the reason and what is the solution?

Re: [PHP] Session Problem

2004-10-05 Thread raditha dissanayake
Kevin Javia wrote: Hi there, I have got PHP 5 installed on IIS6 with 'register_globals = on'. consider switching it off. your application will be impossible to install on any other server if you keep working on it with register global s on. When run my page with session variable at top of

RE: [PHP] checkbox arrays and validation

2004-10-05 Thread Angelo Zanetti
thanks Mike, worked like a charm!! and thanks to the others who replied! Ford, Mike [EMAIL PROTECTED] 10/5/2004 3:09:32 PM On 05 October 2004 13:55, Angelo Zanetti wrote: Hi Marek, I try to access the array like this: document.frmft.elements[chkmodels[]]; but doesnt work. I

Re: [PHP] Recursive Interpolation

2004-10-05 Thread l0t3k
if you check the internals archive, i think Sara said she had an interpolator on her plate... Chuck Wolber [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 4 Oct 2004, Michael Sims wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Procmail + PHP Problem

2004-10-05 Thread Hidayet Dogan
Hi, I wrote a small PHP script that reads input from php://stdin. And, i'm using it in .procmailrc (with using pipe) to get e-mail content and parse. The problem is PHP script does not read body part of e-mails. Reading process stops before the body part of e-mail (i can get all other header

[PHP] PEAR Auth

2004-10-05 Thread Pahlevanzadeh Mohsen
I was working with Auth class.That was working good. But i receive following errror: Fatal error: Undefined class name 'db' in /var/www/html/votting/Auth/Container/DB.php on line 130 Please guide me. = -DIGITAL SIGNATURE--- ///Mohsen Pahlevanzadeh

Re: [PHP] validate a tag

2004-10-05 Thread Greg Donald
On Tue, 5 Oct 2004 01:59:12 -0700 (PDT), Pahlevanzadeh Mohsen [EMAIL PROTECTED] wrote: Dear,I have a input text tag that it named question. Also i have a 2 radio bottum. When i receive their value,I want to test that question tag is empty or not.If empty,I again send to client until client

[PHP] Re: PEAR Auth

2004-10-05 Thread M. Sokolewicz
Pahlevanzadeh Mohsen wrote: I was working with Auth class.That was working good. But i receive following errror: Fatal error: Undefined class name 'db' in /var/www/html/votting/Auth/Container/DB.php on line 130 Please guide me. = -DIGITAL SIGNATURE--- ///Mohsen

Re: [PHP] PHP make install writes to httpd.conf

2004-10-05 Thread Greg Donald
On Mon, 04 Oct 2004 18:32:01 -0400, Robert Cummings [EMAIL PROTECTED] wrote: Anyway to choke PHP's behaviour of adding the following to httpd.conf when you make install: LoadModule php4_module /some_dumb_location/libphp4.so Before make install do: cp httpd.conf httpd.conf.bak Then after

[PHP] Read word documents on a Linux server

2004-10-05 Thread Jacob Larsen
Can I via Php read word documents on a Linux server? I see COM, but that's only available for the Windows version of PHP. Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR Auth

2004-10-05 Thread Greg Donald
On Tue, 5 Oct 2004 07:06:53 -0700 (PDT), Pahlevanzadeh Mohsen [EMAIL PROTECTED] wrote: I was working with Auth class.That was working good. But i receive following errror: Fatal error: Undefined class name 'db' in /var/www/html/votting/Auth/Container/DB.php on line 130 Please guide me.

RE: [PHP] Recursive Interpolation

2004-10-05 Thread Michael Sims
Chuck Wolber wrote: On Mon, 4 Oct 2004, Michael Sims wrote: What's ugly about it? I saw your earlier post I was actually planning on responding and suggesting something exactly like you just came up with. The main problem (aside from performance, which you addressed) is that it does not

[PHP] Re: validate a tag

2004-10-05 Thread Ben Ramsey
I just glanced at your code, and your usage of empty() looks correct and should work just fine. However, you're calling the function recursively (from within itself), so you'll probably wind up in a loop. Pull that test out and do it at the top of your script instead of within the function.

[PHP] Re: validate a tag

2004-10-05 Thread Ben Ramsey
Pahlevanzadeh Mohsen wrote: Dear,I have a input text tag that it named question. Also i have a 2 radio bottum. When i receive their value,I want to test that question tag is empty or not.If empty,I again send to client until client fill out this tag. Can u solve my problem? I also forgot to

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

2004-10-05 Thread Greg Donald
On Tue, 5 Oct 2004 09:55:20 +0530, Gnanavel [EMAIL PROTECTED] wrote: 8. When you want to start a new topic, open a new mail composer and enter the mailing list address [EMAIL PROTECTED] instead of replying to an existing thread and replacing the subject and body with your message. I think it

[PHP] mapping a directory to a script like a servlet

2004-10-05 Thread Roger Hyam
Hi, I hope some one out there can help me. I have been looking around for a solution to this and just getting confused. I want to run a php script like it was a servlet. At the moment I have a little application where the urls look like this:

Re: [PHP] mapping a directory to a script like a servlet

2004-10-05 Thread Petar Nedyalkov
On Tuesday 05 October 2004 18:03, Roger Hyam wrote: Hi, I hope some one out there can help me. I have been looking around for a solution to this and just getting confused. I want to run a php script like it was a servlet. At the moment I have a little application where the urls look like

Re: [PHP] mapping a directory to a script like a servlet

2004-10-05 Thread Greg Donald
On Tue, 5 Oct 2004 08:03:55 -0700 (PDT), Roger Hyam [EMAIL PROTECTED] wrote: I have done this kind of thing before with servlets and asp.net but can't figure how to do it with Apache + PHP. I was looking at mod_rewrite but then got scared! That's the way I've done it in the past. A friend of

[PHP] opendir and IIS

2004-10-05 Thread ccma
Hi All, Currently Im battling a opendir on IIS(2003 server). The manual says to set your path to \\server\share\directory So i set it up $path=zice\\itdept\$\\Mis; Setting it that way results in: failed to open dir: Invalid argument error. tried reversing the slashes, same deal. tried via

Re: [PHP] opendir and IIS

2004-10-05 Thread Greg Donald
On Tue, 5 Oct 2004 10:22:56 -0500, ccma [EMAIL PROTECTED] wrote: Anyone know the exact phrasing that will work for me? I have r,w, directory browsing set on the shared servers dir for both the remote IIS machine name as well as the IWPG account of the remote machine. I fixed this issue

Re: [PHP] Read word documents on a Linux server

2004-10-05 Thread raditha dissanayake
Jacob Larsen wrote: Can I via Php read word documents on a Linux server? I haven't tried this but I guess probably not. My suggestion would be to look at the star office sdk from sun you will need to use java though. I see COM, but that's only available for the Windows version of PHP. Thanks,

Re: [PHP] Session Problem

2004-10-05 Thread Brian
Make sure you are doing a session_start first. On Tue, 5 Oct 2004 19:00:57 +0530, Kevin Javia [EMAIL PROTECTED] wrote: Hi there, I have got PHP 5 installed on IIS6 with 'register_globals = on'. When run my page with session variable at top of the page ? $_SESSION['_user'] ==

Re: [PHP] Can anyone help me with Attachments?

2004-10-05 Thread PHP Junkie
Ave, I didn't find any php warnings... Instead there was a whole bunch of coding much of which seemed like junk. I ran a search but no php warnings anywhere.. When I open the pdf in a text editor. What else can be wrong? Thanks, Junkie On 10/4/04 4:46 PM, Marek Kilimajer [EMAIL PROTECTED]

RE: [PHP] Can anyone help me with Attachments?

2004-10-05 Thread Jay Blanchard
[snip] I didn't find any php warnings... Instead there was a whole bunch of coding much of which seemed like junk. I ran a search but no php warnings anywhere.. When I open the pdf in a text editor. [/snip] So, you saw the binary information in the text editor? Can you open the file with Adobe?

Re: [PHP] Recursive Interpolation

2004-10-05 Thread Chuck Wolber
Ah yes, thanks. Looks like it's mentioned here: http://marc.theaimsgroup.com/?l=php-devm=109405450709578w=2 Doesn't look like it's going to happen too soon though based on Sara's comment: and I havn't personally had the motivation to actually get it done. Looks like there's some traction for

Re: [PHP] Can anyone help me with Attachments?

2004-10-05 Thread Marek Kilimajer
PHP Junkie wrote: Ave, I didn't find any php warnings... Instead there was a whole bunch of coding much of which seemed like junk. I ran a search but no php warnings anywhere.. When I open the pdf in a text editor. Send a text file as an attachement, it will be easier to spot the error. You can

Re: [PHP] Can anyone help me with Attachments?

2004-10-05 Thread PHP Junkie
Ave, Exactly, that's the problem. I can very well see the binary information in the attached PDF in a text editor ... But when I open it in Adobe... The file does open, it's just that it's all blank. White pages. All wiped off. All information erased!! On 10/5/04 12:21 PM, Jay Blanchard [EMAIL

Re: [PHP] Question about handling credit cards

2004-10-05 Thread Gary Hotko
Could you provide more information, code example or a how to to do this.. Thanks On Mon, 04 Oct 2004 15:03:31 -0700, Matthew Fonda [EMAIL PROTECTED] wrote: The best way to store credit card numbers is to have them encrypted when they are stored in the database, and decrypted when they need

Re: [PHP] Can anyone help me with Attachments?

2004-10-05 Thread PHP Junkie
Ave, The text file went through fine! Absolutely perfect... I attached a normal text file with just one sentence. I sent it and it arrived in my mailbox without any problems.. It opened and it had the sentence.. And no warnings or errors. Using my code, I'm able to send the HTML mail with 2

[PHP] Re: UPS Online Tools and PHP?

2004-10-05 Thread Manuel Lemos
Hello, On 10/04/2004 08:34 PM, Ed Lazor wrote: Has anyone integrated the UPS Online Tools with their site using PHP? http://www.ups.com/content/us/en/bussol/offering/technology/automated_shippi ng/online_tools.html You may want to take a look at this class that supports UPS:

[PHP] Re: [PHP Attachement Problems

2004-10-05 Thread Manuel Lemos
Hello, On 10/04/2004 10:24 AM, Php Junkie wrote: I created a form which can accept 2 file attachments and send an HTML Email... Everything works great... The files even get attached and sent, the ONLY problem is... The PDF file I'm sending attached open up empty! They are all blank.. Like

[PHP] Re: PHP (anti) crash policy?

2004-10-05 Thread Manuel Lemos
Hello, On 10/04/2004 11:53 AM, Olaf Van Der Spek wrote: Why? I think a large number of data handling functions would benefit from such a function. And it'd make PHP more robust. Because it is an hack to work around the lack of support for detection of corrupted data in zlib. In the end you

Re: [PHP] Question about handling credit cards

2004-10-05 Thread Paul Waring
On Tue, 5 Oct 2004 12:29:53 -0400, Gary Hotko [EMAIL PROTECTED] wrote: Could you provide more information, code example or a how to to do this.. Have a look at the Mcrypt functions in PHP (you need to complie support for this extension to access these features):

[PHP] --disable-url-fopen-wrapper gone?

2004-10-05 Thread Marten Lehmann
Hello, one account of a user on our webserver was compromised using a feature of fopen to load external sources. As of the documentation, there shall be a configure option called --disable-url-fopen-wrapper. Unfortunately, this option doesn't seem to exist in 4.3.9. How can I set a default for

[PHP] sort multidim array

2004-10-05 Thread Kevin Coyner
I've been banging my head against the wall on this one. Probably trivial to the knowledgeable, but I'm stumped despite trying the various sort functions as advertised on php.net. I've got the following fields: retailer city state telephone distance Sample data looks like: BLIND BROOK

Re: [PHP] sort multidim array

2004-10-05 Thread Jasper Howard
This was just discusses in quite some detail. Everyone decieded that usort() was the best and a couple peopel agreed that array_multisory() works just fine. Check out that convo to get some pretty good details on how to do this. On Tue, 05 Oct 2004 13:04:44 -0400, Kevin Coyner [EMAIL PROTECTED]

Re: [PHP] Best and easy html text area replacement tool?

2004-10-05 Thread Scott Chapman
On Monday 04 October 2004 01:50 pm, Bosky, Dave wrote: I'm looking for an easy to use html textarea replacement script and figured this was the place to locate the most popular. Dave, I've done some research on this issue. There are a few out there to look at: HTMLArea

[PHP] shiflett-clock.gif

2004-10-05 Thread Greg Donald
Did anyone ever solve the shiflett-clock.gif puzzle? If so, what was the solution? If not, are we going to be told at some point? Thanks, -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] BOA and PHP

2004-10-05 Thread Dan
Is it possible to run PHP with a BOA webserver? What have I to change to make them work togehther? Feedback is appriciated, thanks, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] shiflett-clock.gif

2004-10-05 Thread Jay Blanchard
[snip] Did anyone ever solve the shiflett-clock.gif puzzle? If so, what was the solution? If not, are we going to be told at some point? [/snip] I/we am/are apparently really ridiculously close. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Best and easy html text area replacement tool?

2004-10-05 Thread Jason Davidson
Whats this to do with PHP.. this should be in the javascript list. Jason Scott Chapman [EMAIL PROTECTED] wrote: On Monday 04 October 2004 01:50 pm, Bosky, Dave wrote: I'm looking for an easy to use html textarea replacement script and figured this was the place to locate the most

Re: [PHP] shiflett-clock.gif

2004-10-05 Thread Chris Boget
Did anyone ever solve the shiflett-clock.gif puzzle? What's the puzzle? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() and Verizon

2004-10-05 Thread Sam Smith
The solution was a simple -f (see it in the extra headers just before the last [EMAIL PROTECTED]). Sets the envelope sender address when using sendmail with the -f sendmail option. mail([EMAIL PROTECTED], [EMAIL PROTECTED], Testing the simple mail functions, Did you get this one?, From:

[PHP] PHP on Windows CE

2004-10-05 Thread Tomás Liendo
I wondered if is possible to run PHP applications in a PDA with Windows CE. Do you know? Ahead of time, thak you very much, Tom. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shiflett-clock.gif

2004-10-05 Thread Daniel Purdy
[snip] Did anyone ever solve the shiflett-clock.gif puzzle? What's the puzzle? [/snip] Go to http://shiflett.org and scroll down to the race begins. The puzzle is the clock. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General

RE: [PHP] Re: UPS Online Tools and PHP?

2004-10-05 Thread Ed Lazor
Thanks Manuel, I'll check it out. -Ed -Original Message- http://www.ups.com/content/us/en/bussol/offering/technology/automated_ship pi ng/online_tools.html You may want to take a look at this class that supports UPS: http://www.phpclasses.org/shiptrack -- PHP General

Re: [PHP] Re: PHP Attachement Problems

2004-10-05 Thread PHP Junkie
Ave, I just tried your php mime class. I tried the test_attachment_message file. It did the same to the pdf attachment. Initially, it tested with a text and an image. The text attachment opened without a problem but the image was giving an error in opening. I left the text file attachment as is

Re: [PHP] Re: PHP Attachement Problems

2004-10-05 Thread Greg Donald
On Tue, 05 Oct 2004 15:04:14 -0400, PHP Junkie [EMAIL PROTECTED] wrote: I just tried your php mime class. I tried the test_attachment_message file. It did the same to the pdf attachment. Have you tried sending other PDFs by chance? Have you tried opening the PDF with other PDF viewers after

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread PHP Junkie
Ave, On a hunch.. I uploaded my original php script AND the php mime class to a normal linux server with Apache web server... And all the scripts are running fine! The PDF attachments go through fine. So I finally found out.. It's a MAC issue! Using my scripts on the MAC server is causing the

[PHP] Re: sending html email using php script

2004-10-05 Thread nipepsi
Ann a écrit : Hi, I am trying to send a html email from a php script. This script emails a common information to all the members in the database. The only problem is I cannot specify colors, hyperlinks etc..Html tags like h1/h1, br/, b etc works though.. Could any one tell me what i might be doing

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread PHP Junkie
Manuel, Really appreciate your help. I created a new empty php file and put your given code in it. Upon running the test.php in my browser, it prints exactly this in my browser: could not open file I have a PowerMac G5 Machine, with MacOS X. I have PHP 5 installed from entropy.ch and have the

[PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Aaron Wolski
Hi guys, I have this code Javascript code: if (document.images) { img1on = new Image(); img1on.src = ?php echo $base_url; ?Graphics/?php echo $img_home_on; ?; img2on = new Image(); img2on.src = ?php echo $base_url; ?Graphics/?php echo $img_programdetails_on; ?; img3on

Re: [PHP] something wrong with $_SERVER var

2004-10-05 Thread Merlin
Chuck Wolber wrote: On Tue, 5 Oct 2004, Merlin wrote: I am experiencing a strange behaviour with $_SERVER vars. Somehow the var: $_SERVER[SERVER_PORT] seems to be 443 even if it is 80. I had following statement inside my app: if ($_SERVER[SERVER_PORT] == '443' AND !$SSL){

Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread John Nichel
Aaron Wolski wrote: Hi guys, I have this code Javascript code: snip When I include it in the main page it works without any problems. When I link it as an external file it doesn't work. As a side note, the following code example works in an external JS file: img1off = new Image(); img1off.src =

RE: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Jay Blanchard
[snip] I have this code Javascript code: [/snip] And the web has these JavaScript lists! Quaint, no? Anyhow, to make this work you will need to generate your JavaScript code with PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread PHP Junkie
Ave, I replaced the code and added my PDF file in the required place, and this is what it displays now: Size 35823 Read 36704 I'll put in your address and send out the mail your way with the PDF attachment using the class script. Thanks a lot, Junkie On 10/5/04 3:51 PM, Manuel Lemos [EMAIL

RE: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Aaron Wolski
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: October 5, 2004 3:52 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] why this doesn't work as an external file but does internally? [snip] And the web has these JavaScript lists! Quaint, no? [/snip] If you look

RE: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Jay Blanchard
[snip] If that was true then why does this work: img1off = new Image(); img1off.src = ?php echo $base_url; ?Graphics/home_off.gif; I certainly didn't generate it with PHP and it was included as an external file. [/snip] If this is true then your problem is solved. if not echo img1off =

Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread John Nichel
Please reply to the list, and not just an individual person. Aaron Wolski wrote: -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: October 5, 2004 3:51 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] why this doesn't work as an external file but does internally? What is

Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Matthew Sims
Hi guys, I have this code Javascript code: if (document.images) { img1on = new Image(); img1on.src = ?php echo $base_url; ?Graphics/?php echo $img_home_on; ?; img2on = new Image(); img2on.src = ?php echo $base_url; ?Graphics/?php echo $img_programdetails_on; ?; snip

RE: [PHP] why this doesn't work as an external file but does inte rnally?

2004-10-05 Thread Vail, Warren
Right on, a .js file is probably not processed by the PHP engine, but while it's imbedded in a .php file, it is. Apples and Oranges, no? Warren Vail -Original Message- From: Aaron Wolski [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 1:01 PM To: 'Jay Blanchard'; [EMAIL

Re: [PHP] Read word documents on a Linux server

2004-10-05 Thread Rory Browne
I'd also try and find a way of automating openoffice. Check first though, to ensure that the quality of the converted document is up to scratch. Having that said, OO.o has a pretty good reputation for this. On Tue, 05 Oct 2004 21:49:01 +0600, raditha dissanayake [EMAIL PROTECTED] wrote: Jacob

RE: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Aaron Wolski
File with the JS code is called: jsstuff.php Aaron -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED] Sent: October 5, 2004 4:12 PM To: 'Aaron Wolski'; 'Jay Blanchard'; [EMAIL PROTECTED] Subject: RE: [PHP] why this doesn't work as an external file but does internally?

[PHP] A question of style....

2004-10-05 Thread bclem
So I'm sitting here writing code and I'm thinking about my own style of writing and formatting my php code(I use a mix of the pear standard and my own flava). What else do you guy's use? What style should I base my code formatting on in order to be accepted widely by the php community at large?

[PHP] Upload problems

2004-10-05 Thread Pablo Gosse
Hi, folks. I'm running into a strange upload problem and am not sure if it's a php or apache issue. I can't seem to upload any files bigger than 511k. 511k will upload fine, but 512k returns a Document contains no data error. I've tried this with a text file, adding and removing lines until it

[PHP] Order of extensions in php.ini matters?

2004-10-05 Thread CSN
I'm trying to use the EXIF extension (PHP 5, Windows XP). Order didn't seem to matter before (PHP 4). But now, if my php.ini is like: extension=php_exif.dll extension=php_mbstring.dll PHP gives an unable to load module error. But if I put the mbstring extension before exif in php.ini, it works.

RE: [PHP] A question of style....

2004-10-05 Thread Jay Blanchard
[snip] So I'm sitting here writing code and I'm thinking about my own style of writing and formatting my php code(I use a mix of the pear standard and my own flava). What else do you guy's use? What style should I base my code formatting on in order to be accepted widely by the php community at

RE: [PHP] Upload problems

2004-10-05 Thread Jay Blanchard
[snip] Hi, folks. I'm running into a strange upload problem and am not sure if it's a php or apache issue. I can't seem to upload any files bigger than 511k. 511k will upload fine, but 512k returns a Document contains no data error. I've tried this with a text file, adding and removing lines

Re: [PHP] Upload problems

2004-10-05 Thread PHP Junkie
Ave, What's the upload_max_filesize set to in your php.ini ? Under File Uploads in the php.ini, you will find this value. Junkie On 10/5/04 4:33 PM, Pablo Gosse [EMAIL PROTECTED] wrote: Hi, folks. I'm running into a strange upload problem and am not sure if it's a php or apache issue.

RE: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Aaron Wolski
-Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: October 5, 2004 4:06 PM To: PHP Mailing Lists Subject: Re: [PHP] why this doesn't work as an external file but does internally? Please reply to the list, and not just an individual person. No. I turn my

RE: [PHP] A question of style....

2004-10-05 Thread Ed Lazor
Chapter 1 of Advanced PHP Programming, by George Schlossnagle, ISBN 0-672-32561-6. http://www.blueshoes.org/en/developer/coding_guidelines/ -Original Message- So I'm sitting here writing code and I'm thinking about my own style of writing and formatting my php code(I use a mix of

RE: [PHP] Order of extensions in php.ini matters?

2004-10-05 Thread Ed Lazor
You have the correct order. Exif relies on functionality provided by mbstring.dll, therefore it must be loaded after it. -Original Message- I'm trying to use the EXIF extension (PHP 5, Windows XP). Order didn't seem to matter before (PHP 4). But now, if my php.ini is like:

RE: [PHP] Upload problems

2004-10-05 Thread Pablo Gosse
[snip] What's the upload_max_filesize set to in your php.ini ? Under File Uploads in the php.ini, you will find this value. [/snip] That's not it. That's set to 30M. This domain was just transferred over to a new server, and this problem did not exist on the old one, so while I am pretty

Re: [PHP] Read word documents on a Linux server

2004-10-05 Thread Jacob Larsen
Jacob Larsen wrote: Can I via Php read word documents on a Linux server? I see COM, but that's only available for the Windows version of PHP. I found this: http://word2x.sourceforge.net/ But I had hopped to find a Php class, so that I can be sure that it will work in a web-hotel. Thanks, Jacob

Re: [PHP] Re: [PHP Attachement Problems - MAC ISSUE!!

2004-10-05 Thread Marek Kilimajer
PHP Junkie wrote: Ave, On a hunch.. I uploaded my original php script AND the php mime class to a normal linux server with Apache web server... And all the scripts are running fine! The PDF attachments go through fine. So I finally found out.. It's a MAC issue! Using my scripts on the MAC server

Re: [PHP] Question about handling credit cards

2004-10-05 Thread Andrew Kreps
On Mon, 4 Oct 2004 14:49:44 -0700, Ed Lazor [EMAIL PROTECTED] wrote: I'm looking at online stores and it seems like a lot of them maintain copies of credit card numbers. Is this true? That seems like a bad thing to me, especially in terms of liability and risk of hackers. On the flip side,

RE: [PHP] Upload problems

2004-10-05 Thread Pablo Gosse
[snip] Look in your php.ini for max_upload_size or something like it. [/snip] 'Twas an apache problem. Thanks the help. Cheers, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread Curt Zirzow
* Thus wrote Aaron Wolski: What error messages are produced? What does the remotely included file output? Does the second variable have value? Can you provide a link to where we can see the issue at play? So on, and so forth. Look at the source of your page that doesn't work,

Re: [PHP] mail() and Verizon

2004-10-05 Thread Sam Smith
The solution was a simple -f (see it in the extra headers just before the last [EMAIL PROTECTED]). Sets the envelope sender address when using sendmail with the -f sendmail option. mail([EMAIL PROTECTED], [EMAIL PROTECTED], Testing the simple mail functions, Did you get this one?, From:

Re: [PHP] why this doesn't work as an external file but does internally?

2004-10-05 Thread John Nichel
Aaron Wolski wrote: Ok.. here are 3 links: https://celestica.tristarpromotions.com/NEW/index2.php This link... you'll see that the rollover effects on the top menu work. The external JS file (called: jsstuffnew.php) has code that looks like: img1on = new Image(); img1on.src = ?php echo

Re: [PHP] A question of style....

2004-10-05 Thread John Nichel
Jay Blanchard wrote: Anything that doesn't use the word 'flava' :) What if I name all my variables after Rocky characters? ;) Now for the real can of worms... On odd lines, I use spaces, and on even lines, I use tabs. serious mode The above is an attempt at humor. The below is an attempt at

RE: [PHP] Upload problems

2004-10-05 Thread Dennis Gearon
Would you mind sharing what it was so that it hits the archives and a few 'enquiring minds'? Pablo Gosse [EMAIL PROTECTED] wrote: quote --- [snip] Look in your php.ini for max_upload_size or something like it. [/snip] 'Twas an apache problem.

Re: [PHP] Upload problems

2004-10-05 Thread raditha dissanayake
Dennis Gearon wrote: Would you mind sharing what it was so that it hits the archives and a few 'enquiring minds'? it probably was the LimitRequestBody apache directive which is set to 512 Kb in some 'out of the box' installations. -- Raditha Dissanayake.