[PHP] Pipe an email to PHP

2003-08-27 Thread Thomas Tremain
I'm sure this question has been visited before, but I've had some troubles searching through the archives. This is at least a two part question. I wish to use a pipe instead of the pop3 class, because I wish the email to start the script instead of waiting for a cronjob. 1) The pipe

[PHP] If empty don't display...

2003-08-27 Thread Frank Keessen
Hi there, Can you please have a look at the following code: I've got two questions; 1. I'm trying not to display the fields that are empty with: if (!empty($row9-prijs4pk)){ But it's still display the line and there is no value in PRIJS4PK field. 2. How can i reduce the amount of Queries??

Re: [PHP] verifying sql INSERTs

2003-08-27 Thread CPT John W. Holmes
From: Curt Zirzow [EMAIL PROTECTED] I should instead just try to perform the INSERT and then if it fails I know I've already got a record. If it doesn't I know everything is cool. I've debated with myself several times if this is really a good method to not have duplicates in the database.

Re: [PHP] PHP Interview questions

2003-08-27 Thread Gabriel Guzman
On Tue, 2003-08-26 at 11:35, Curt Zirzow wrote: * Thus wrote Richard Baskett ([EMAIL PROTECTED]): on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote: This smells like a trick question... Are the switches connected to the same light bulb? You've only mentioned one light

RE: [PHP] Website templating schemes

2003-08-27 Thread Joel Konkle-Parker
Quoting Chris W. Parker [EMAIL PROTECTED]: And I completely don't understand Option #2. What does body() do and why do you call it? Can you show some pseudo code to help us (or maybe it's just me) understand how Option #2 works? Browser calls index.php -- #index.php programming tasks..

Re: [PHP] Website templating schemes

2003-08-27 Thread Joel Konkle-Parker
With method 2 it seems like your template file would become redundant because every one of them would have to contain the header and footer code. I would use 3 template files, header.php, footer.php, and body_index.php index.php would: 1. PERFORM LOGIC 2. include header 3. include

Re: [PHP] PHP Interview questions

2003-08-27 Thread CPT John W. Holmes
From: Curt Zirzow [EMAIL PROTECTED] toggle_light(1); sleep(120); toggle_light(1); toggle_light(2); move('self', 'room/'); if ($lightbulb['temp'] $room['temp']) { echo switch #1; } elseif ($lightbulb['ison']) { echo switch #2; } else { echo switch #3; } hm.. i had to keep

[PHP] sessions on 4.3.2, register_globals On

2003-08-27 Thread Jason Jacobs
Hi all. I am switching a site I built to a new server, and the old site was written with register_globals on. I believe the php version was the same, but I'm not sure (and I can't check). The way I understand it, for older versions of php, one had to use session_register($foo) and could use

[PHP] speed of mail() on two servers

2003-08-27 Thread David T-G
Hi, all -- I'm working up a [cli] script to send a personalized (ugh) email to some [often large] number of web site subscribers. Unfortunately, I'm getting lousy performance, running about 0.54 sec per email. My partner has a mail script implemented on another machine and he's running

Re: [PHP] Image Magick

2003-08-27 Thread David T-G
Mike -- ...and then Mike At Spy said... % % Anyone here familiar with the installation of Image Magick and what files it % installs on your machine? Yep. % % I had an admin put it on, and then took it off - but took it off by removing Why take it off? Tsk, tsk! You'll miss it ;-) % what

RE: [PHP] PHP Interview questions

2003-08-27 Thread Martin Towell
Just to throw a spanner (where'd that come from, that wasn't part of the question) into the works... What is the state of the light bulb before the test? If it's on and it's connected to switch #1, then the logic below would result in switch #2 being displayed... (maybe.., I don't know how long

Re: [PHP] PHP Interview questions

2003-08-27 Thread Curt Zirzow
* Thus wrote Gabriel Guzman ([EMAIL PROTECTED]): On Tue, 2003-08-26 at 11:35, Curt Zirzow wrote: * Thus wrote Richard Baskett ([EMAIL PROTECTED]): on 8/26/03 9:57 AM, Robert Cummings at [EMAIL PROTECTED] wrote: unfortunately, this won't work... you need to loop through the lightbulbs...

Re: [PHP] dynamical balancing text in two colums

2003-08-27 Thread Miles Thompson
We tried something like this in the spring. If the paragraphs are uniform in length you can get columns roughly balanced - but never with a high degree of certainty. We also knew our subscribers would be printing out the copy, and that's where we gave up on two column layout, as we had no

[PHP] DOM setting encoding attribute

2003-08-27 Thread Maciek Ruckgaber Bielecki
Hi there everybody !! i have been trying to set the encoding attribute in the ?xml version=1.0? document definition, using the DOM model any idea about some info ??? Thanks in advance!!! -- Maciek Ruckgaber Bielecki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Pipe an email to PHP

2003-08-27 Thread Greg Donald
I'm sure this question has been visited before, but I've had some troubles searching through the archives. This is at least a two part question. I wish to use a pipe instead of the pop3 class, because I wish the email to start the script instead of waiting for a cronjob. 1)

[PHP] can pdf forms be used to submit data into db?

2003-08-27 Thread Ryan . K . Look
hi guys and gals, aloha from hawaii, Not sure if this is the right place to ask, but i just need to know if it is technically possible to have a pdf form be filled out online and then once the user hits submit, php takes the data and puts it into a db or some sort of db technology and if the need

[PHP] can pdf forms be used to submit data into a db?

2003-08-27 Thread Ryan . K . Look
hi guys and gals, aloha from hawaii, Not sure if this is the right place to ask, but i just need to know if it is technically possible to have a pdf form be filled out online and then once the user hits submit, php takes the data and puts it into a db or some sort of db technology and if the need

[PHP] Looping through a list - Newbie question

2003-08-27 Thread James Johnson
Hi, I have a list contained in a session var. I want to loop through the list, getting the value of the current item, then do a query based on that value. Is there an easy way to do this, or do I need to convert the list to an array first? In the code below, $id isn't being set. Here's my code

Re: [PHP] webserver for mac

2003-08-27 Thread Joel Rees
I am doing some php work for a local company who uses a mac. I was telling them that I use apache as my webserver and they want to know what they can use as their webserver. I know nothing about Macs and don't think you an run apache but I may be all wrong...what do mac owners use for a

[PHP] dealing with arrays

2003-08-27 Thread Aris Santillan
hi I Have pEntry One input type=text name=name[] input type=text name=tel[] input type=checkbox name=check[] value=1 pEntry Two input type=text name=name[] input type=text name=tel[] input type=checkbox name=check[] value=1 pEntry Three input type=text name=name[] input type=text name=tel[]

[PHP] SQL Query request is just hanging.

2003-08-27 Thread Larry_Li
I'm using IIS5.0 on W2k. I have upgraded w2k to sp4 and ms sql server to sp3. I created a new table and just do a simple query in php program. But it seems sql server doesn't return any query result. I'm using mssql_fetch_array() function, but no any return. PHP program is just pending there.

[PHP] Re: speed of mail() on two servers

2003-08-27 Thread Manuel Lemos
Hello, On 08/26/2003 07:39 PM, David T-G wrote: I'm working up a [cli] script to send a personalized (ugh) email to some [often large] number of web site subscribers. Unfortunately, I'm getting lousy performance, running about 0.54 sec per email. My partner has a mail script implemented on

[PHP] Frames: how to get the url of the top frame?

2003-08-27 Thread Jean-Christian IMbeault
I am providing content for an other site. My content is getting shown in side a frame. My content contains links to other content I provide. It also has forms that the user can use to submit information. The form's submit action depends on some information that the main site send to me in the

[PHP] Re: Looping through a list - Newbie question

2003-08-27 Thread Jean-Christian IMbeault
explode() and then foreach are your friends :) explode() using the comma as your separator and then traverse the array using foreach. Jean-Christian Imbeault James Johnson wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cannot pass values from one page to another

2003-08-27 Thread [EMAIL PROTECTED]
Hi, Ok this is a major vulnerability that you are coding. Register globals on and password being stored in the session is like having a banner on your home page saying 'come and hack me'. murugesan wrote: My register_globals in set to ON in php.ini file. I cannot use HTTP_COOKIE_VARS because

[PHP] dealing with arrays

2003-08-27 Thread Aris Santillan
hi I Have pEntry One input type=text name=name[] input type=text name=tel[] input type=checkbox name=check[] value=1 pEntry Two input type=text name=name[] input type=text name=tel[] input type=checkbox name=check[] value=1 pEntry Three input type=text name=name[] input

[PHP] Sessions and frames

2003-08-27 Thread Jean-Christian IMbeault
I'm having problems getting a session to start when my script is loaded in a frame. I provide some content that another web site loads up in a frame. I have set session.autostart to true in my php.ini file so that sessions are always started automatically and use cookies. The problem is that

RE: [PHP] Pipe an email to PHP

2003-08-27 Thread Thomas Tremain
I have attempted to create a .procmailrc that looks like: :0 * [EMAIL PROTECTED] | $HOME/emailtest.php I have also removed the forwarder from my /etc/valiases file. Now I get: The following address(es) failed: [EMAIL PROTECTED] Can I be sure Procmail is even handling my email? I thought Exim

AW: [PHP] Re: pear problem

2003-08-27 Thread Moritz Steiner
Hi, yes, the directory the /usr/php/pear/share/pear is included, the error message is: Warning: main(PEAR.php): failed to open stream: No such file or directory in /usr/php/pear/share/pear/SOAP/Base.php on line 37 Fatal error: main(): Failed opening required 'PEAR.php'

[PHP] Re: Sessions and frames

2003-08-27 Thread Jean-Christian IMbeault
A little update, seems I was wrong about the session cookie being set when the page is first access. The first time the page is accessed no session cookie or /tmp file is generated. I think this may be because the site that is loading my content in a frame is also generating a cookie. Is that a

php-general Digest 27 Aug 2003 07:54:28 -0000 Issue 2261

2003-08-27 Thread php-general-digest-help
php-general Digest 27 Aug 2003 07:54:28 - Issue 2261 Topics (messages 160847 through 160875): Re: OO PHP question 160847 by: Ralph Guzman Pipe an email to PHP 160848 by: Thomas Tremain 160860 by: Greg Donald 160873 by: Thomas Tremain If empty don't

[PHP] Extracting EXIF/IPTC info from jpeg/tiff image files

2003-08-27 Thread Binay Agarwal
Hi everybody I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After that i have to allow my client to modify and put them back in jpeg/tiff files. I want to know whether php has got built-in support in terms of libraries to achieve the goal or i will have to load

[PHP] Re: Sessions and frames

2003-08-27 Thread Jean-Christian IMbeault
After much head banging I found the answer. I had set my browser to only allow cookies from the originating site to be set. (This prevent banner ads from setting cookies). Of course the first time my frame was loaded the browser was seeing it as content not from the originating site and hence

[PHP] Implode slows down file reading? [was: str_replace performance in large mailing script]

2003-08-27 Thread frederik feys
Hi all, I thought str_replace caused slow down of my mailing script, but it seems to be this line of code: $fd = implode(,file(http://www.domain.org/store/min/Mailing_template.html;) ); I first put the mailing template in $fd (only once) and then replace (str_replace) elements of it to

[PHP] Re: Frames: how to get the url of the top frame?

2003-08-27 Thread Catalin Trifu
Hi, Server side there si no way to get the parent's URL you could however client side with JS Cheers, Catalin Jean-Christian Imbeault [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am providing content for an other site. My content is getting shown in side a frame. My

[PHP] Re: dealing with arrays

2003-08-27 Thread Catalin Trifu
Hi, Insteand of using the same value for checked, you should use different values for the checked parameter like value=entryOneChecked value=entryTwoChecked And it's a good idea to use quoting around variable names at least. Cheers, Catalin Aris Santillan [EMAIL PROTECTED]

[PHP] problem with a mysql query with data from a form

2003-08-27 Thread Vincent Fievet
hi, i am a newbie to php and mysql, i run the easyphp kit ( php 4.2.0, Mysql 3.23.49 and phpmyadmin 2.2.6 ) i would like to use a select * from mytable where my variable like '%$mystring%' where $mystring come from a form form action=show.php method=post name=form1 target=_blank table

RE: [PHP] speed of mail() on two servers

2003-08-27 Thread Javier Tacon
I think that may be 'problem' from sendmail .. mail() function under linux only interacts with sendmail, it doesn't contact to the remote SMTP to leave the mail. Do you have the same sendmail version in two machines? You should compare both sendmail configuration and try to check the speed from a

[PHP] Extracting EXIF/IPTC info from jpeg and tiff files

2003-08-27 Thread Binay Agarwal
Hi everybody I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After that i have to allow my client to modify and put them back in jpeg/tiff files. I want to know whether php has got built-in support in terms of libraries to achieve the goal or i will have to load

[PHP] mail mime attachment

2003-08-27 Thread Moritz Steiner
Hi, has somebody a working code example of sending a mail with attachment, my code is unfortunately not working... My Code: require 'Mail.php'; require 'Mail/mime.php'; $headers['From']='[EMAIL PROTECTED]'; $headers['Subject']='mueedddee'; $body = 'brauc ich nicht'; $to = [EMAIL PROTECTED];

Re: [PHP] speed of mail() on two servers

2003-08-27 Thread David T-G
Javier, et al -- ...and then Javier Tacon said... % % I think that may be 'problem' from sendmail .. mail() function under % linux only interacts with sendmail, it doesn't contact to the remote Right. Only it doesn't make much sense, because qmail is FAST. % SMTP to leave the mail. Do you

[PHP] Can we control the content of MS Outlook Express

2003-08-27 Thread Jack
Dear all Here is the question: I had a link which will open user's outlook express and let the user to type the content and send it to me! Now i want to set some content which will appear on the outlook express and then user will type the rest of the content to it and send it to me! is this

[PHP] session.cookie_domain

2003-08-27 Thread Shu Chow
We're having a problem with a site that recently upgraded to php 4.3.3. Ever since the upgrade, session variables won't pass between pages. Looking at the php.ini file, I see that session.cookie_domain is set to server.hostingcompany.com while our site is www.ourdomain.com. If the

RE: [PHP] speed of mail() on two servers

2003-08-27 Thread Javier Tacon
May be the machine of your friend has a better network output than your machine :) -Mensaje original- De: David T-G [mailto:[EMAIL PROTECTED] Enviado el: miercoles, 27 de agosto de 2003 11:59 Para: PHP General list CC: Javier Tacon Asunto: Re: [PHP] speed of mail() on two servers

Re: [PHP] speed of mail() on two servers

2003-08-27 Thread David T-G
Javier -- ...and then Javier Tacon said... % % May be the machine of your friend has a better network output than your % machine :) Heh :-) Hey, stranger things have happenned! But check my other followup for an interesting twist. Thanks again HAND :-D -- David T-G

[PHP] Re: php.ini sendmail settings (was Re: [PHP] speed of mail() ... )

2003-08-27 Thread David T-G
Hi again, everyone -- I have a feeling that our problem is a lousy php.ini configuration. For both module and CLI php we're using /usr/local/lib/php.ini, so I look in there and I see [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL

[PHP] Linking to files outside the directory structure...?

2003-08-27 Thread Tristan . Pretty
I wanna protect a few files from reandom downloads. I'm moving hosts soon, and will loose my mod_auth_mysql module that let it talk to the .htaccess file. What I want to do is store a number of files, outside of my web folder, say one level under it, but still get my browser to retrive that

Re: [PHP] PHP if exit Q

2003-08-27 Thread Marek Kilimajer
You should fix your logic, or put additional if in. Or you can use while and break, but this is somewhat sick: while( condition ) { // code here if( codition ) { } else { break; } // more code here break; // break at the end so while() becomes if()

Re: [PHP] PHP Interview questions

2003-08-27 Thread Ivo Fokkema
Gabriel Guzman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 2003-08-26 at 10:00, CPT John W. Holmes wrote: PHP is server side, so it obviously cannot control light bulbs. Use javascript. maybe the lightbulbs are connected to the server :) as seems to be the case right

RE: [PHP] If empty don't display...

2003-08-27 Thread Jay Blanchard
[snip] 1. I'm trying not to display the fields that are empty with: if (!empty($row9-prijs4pk)){ But it's still display the line and there is no value in PRIJS4PK field. [/snip] You are testing to see if $row9-prijs4pk is NOT empty. If it is not empty you print it. You have not specified an

[PHP] Re: Can we control the content of MS Outlook Express

2003-08-27 Thread DvDmanDT
Yes, mailto:[EMAIL PROTECTED]body=Some_text_in_the_body... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Jack [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Dear all Here is the question: I had a link which will open user's outlook express and let the user to

RE: [PHP] PHP Interview questions

2003-08-27 Thread Jay Blanchard
[snip] toggle_light(1); sleep(120); toggle_light(1); toggle_light(2); move('self', 'room/'); if ($lightbulb['temp'] $room['temp']) { echo switch #1; } elseif ($lightbulb['ison']) { echo switch #2; } else { echo switch #3; } hm.. i had to keep it OT somehow :) [/snip] :7) Curt. However,

Re: [PHP] webserver for mac

2003-08-27 Thread Justin French
On Wednesday, August 27, 2003, at 04:49 AM, Richard Baskett wrote: on 8/26/03 10:50 AM, Edward Peloke at [EMAIL PROTECTED] wrote: Hello all, I am doing some php work for a local company who uses a mac. I was telling them that I use apache as my webserver and they want to know what they can

[PHP] mail function and php.ini file

2003-08-27 Thread Angelo Zanetti
Hi guys I am new to the mail function. I have looked in the manual however there isnt much about the mail function. I am trying to use the function and get returned this error: Warning: mail() [function.mail]: Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port

Re: [PHP] dynamical balancing text in two colums

2003-08-27 Thread Justin French
To throw a huge spanner in the works: 1. tables are not intended for layout 2. devices other than a PC/Windows web browser may be more suited to q well structured XHTML based, table-less format with CSS for styling. 3. columns work well in a newspaper, but do not translate well to the web,

RE: [PHP] If empty don't display...

2003-08-27 Thread Thijs Lensselink
Shouldn't it be if (empty($row9-prijs4pk)){ -Oorspronkelijk bericht- Van: Frank Keessen [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 26 augustus 2003 22:14 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] If empty don't display... Hi there, Can you please have a look at the following code:

Re: [PHP] can pdf forms be used to submit data into a db?

2003-08-27 Thread Marek Kilimajer
Look here: http://sk2.php.net/manual/en/ref.fdf.php Thanks you fixed the missing indefinite article, I was not going to answer the original. [EMAIL PROTECTED] wrote: hi guys and gals, aloha from hawaii, Not sure if this is the right place to ask, but i just need to know if it is technically

[PHP] Problem with readfile

2003-08-27 Thread French, Alastair
Hi all I am using the following to pass a file to the client snip header(Content-type: . $row['filetype'] ); $path = ROOT_PATH . file_uploads/; $real_filename = $path . $row['location'] . '/' .$row['filename']; header(Content-Disposition: attachment; filename= . $row['filename']);

Re: [PHP] Pipe an email to PHP

2003-08-27 Thread David T-G
Thomas -- ...and then Thomas Tremain said... % % I'm sure this question has been visited before, but I've had some troubles % searching through % the archives. What sort of trouble? Just trouble finding a helpful answer, or actual trouble performing a search? % % This is at least a two

RE: [PHP] Looping through a list - Newbie question

2003-08-27 Thread Javier Tacon
There are a lot of methods. The most common is using an array: $_SESSION['sv_CampusList'] = Array (1,2,3,4,5); foreach($_SESSION['sv_CampusList'] as $id) { echo $id; } If you want to use sv_CampusList as string: $_SESSION['sv_CampusList'] = 1,2,4,5; $tmpArr =

Re: [PHP] dealing with arrays

2003-08-27 Thread Marek Kilimajer
Then you must include keys: input type=text name=name[1] input type=text name=tel[1] input type=checkbox name=check[1] value=1 input type=text name=name[2] input type=text name=tel[2] input type=checkbox name=check[2] value=1 and so on. This is needed bacause only checked checkboxes are send on

RE: [PHP] dynamical balancing text in two colums

2003-08-27 Thread Dynamical.biz
Thanks Justin and Miles for your ideas. It can take a looong time and a huge quantity of beer to disscuss them. I was asking for some other ideas just about the code, how to solve this problem technicaly not if this is a good idea to use one / two colums, tables or DIVS, print vs screen etc.

Re: [PHP] Looping through a list - Newbie question

2003-08-27 Thread CPT John W. Holmes
From: James Johnson [EMAIL PROTECTED] I have a list contained in a session var. I want to loop through the list, getting the value of the current item, then do a query based on that value. Is there an easy way to do this, or do I need to convert the list to an array first? In the code below,

Re: [PHP] dealing with arrays

2003-08-27 Thread CPT John W. Holmes
You need to name the elements a little differently. You're on the right track with making them an array, but if I check the third box, that'll make $check[0] = 1, and if I put in a name in the first box, that'll make $name[0] = 'John'... so you have no way of relating the name from entry one to

RE: [PHP] SQL Query request is just hanging.

2003-08-27 Thread Jay Blanchard
[snip] I'm using IIS5.0 on W2k. I have upgraded w2k to sp4 and ms sql server to sp3. I created a new table and just do a simple query in php program. But it seems sql server doesn't return any query result. I'm using mssql_fetch_array() function, but no any return. PHP program is just pending

Re: [PHP] Re: speed of mail() on two servers

2003-08-27 Thread David T-G
Manuel, et al -- ...and then Manuel Lemos said... % % Hello, Hi! % % On 08/26/2003 07:39 PM, David T-G wrote: % I'm working up a [cli] script to send a personalized (ugh) email to some % [often large] number of web site subscribers. Unfortunately, I'm getting % lousy performance, running

Re: [PHP] Cannot pass values from one page to another

2003-08-27 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] Ok this is a major vulnerability that you are coding. Register globals on and password being stored in the session is like having a banner on your home page saying 'come and hack me'. Please explain how you've come to this conclusion... ---John Holmes... -- PHP

[PHP] WYSIWYG online editor for Macintosh?

2003-08-27 Thread Adrian Teasdale
Hi there. Slightly OT, but it's for a PHP project... We normally use a plug-in WYSIWYG editor so that our clients can manage their content in a word-like interface. Normally this works fine, but this time when we've completed the site we've discovered they have an entire department that is 100%

RE: [PHP] dealing with arrays

2003-08-27 Thread Ford, Mike [LSS]
On 27 August 2003 04:22, Aris Santillan wrote: I Have pEntry One input type=text name=name[] input type=text name=tel[] input type=checkbox name=check[] value=1 pEntry Two input type=text name=name[] input type=text name=tel[] input type=checkbox name=check[] value=1 pEntry Three

Re: [PHP] Pipe an email to PHP

2003-08-27 Thread Marek Kilimajer
Is emailtest.php executable, does it start with #!/usr/bin/php, is $HOME set? Thomas Tremain wrote: I have attempted to create a .procmailrc that looks like: :0 * [EMAIL PROTECTED] | $HOME/emailtest.php I have also removed the forwarder from my /etc/valiases file. Now I get: The following

[PHP] mail() function

2003-08-27 Thread Matthias Wulkow
Hi php-general, I have a question about the mail function. In the API I saw, that when running on linux, I just need the binary sendmail, usually located on /usr/sbin. Windows users need a running mail-server. I have php working on a linux machine. Why do I need to have postfix running then to

Re: [PHP] Re: Sessions and frames

2003-08-27 Thread Marek Kilimajer
It has nothing to do with the other site. Browser makes a separate request for the frame content and you can set cookies without any problem. You should check if the cookie is realy set and if the cookie parameters are right (eg. in Mozilla's cookie manager). Jean-Christian IMbeault wrote: A

Re: [PHP] Extracting EXIF/IPTC info from jpeg/tiff image files

2003-08-27 Thread Marek Kilimajer
search for exif on phpclasses.org Binay Agarwal wrote: Hi everybody I need to extract the information (EXIF and IPTC) from jpeg/tiff image files. After that i have to allow my client to modify and put them back in jpeg/tiff files. I want to know whether php has got built-in support in terms of

Re: [PHP] Implode slows down file reading? [was: str_replace performance in large mailing script]

2003-08-27 Thread CPT John W. Holmes
From: frederik feys [EMAIL PROTECTED] I thought str_replace caused slow down of my mailing script, but it seems to be this line of code: $fd = implode(,file(http://www.domain.org/store/min/Mailing_template.html;) ); I first put the mailing template in $fd (only once) and then replace

Re: [PHP] speed of mail() on two servers

2003-08-27 Thread Curt Zirzow
* Thus wrote David T-G ([EMAIL PROTECTED]): It seems to be the mail() call itself, because I can make a system call (system, exec, passthru) to just echo the current data and it rips through my list in nothin' flat. So how do I tune mail() to make it faster? Or do I need to give up and

Re: [PHP] Cannot pass values from one page to another

2003-08-27 Thread [EMAIL PROTECTED]
Hi, Didn't know this was the army :-) first unless you got your variable ordering (POST, GET, Env, Sesssion etc). the values in the session can be easily overridden with a simple old query string. Sure would hate to have my username and password passed along to each page. remember that when you

Re: [PHP] Cannot pass values from one page to another

2003-08-27 Thread Murugesan N
I think you don't get me. I am not registering the password. Just I use $_SESSION['uname']=$uname; and I need to get the value $_SESSION['visnme'] in the next new page without passing the uname in the URL itself.( form action=?uname=$uname ) as query parameter What I need is that I want to

Re: [PHP] Can we control the content of MS Outlook Express

2003-08-27 Thread Duncan
Dear all Here is the question: I had a link which will open user's outlook express and let the user to type the content and send it to me! Now i want to set some content which will appear on the outlook express and Why do that when you could do it all in the browser with a form? -- PHP

Re: [PHP] speed of mail() on two servers

2003-08-27 Thread [EMAIL PROTECTED]
having you tried ezmlm or to directly inject the message into the que? Javier Tacon wrote: I think that may be 'problem' from sendmail .. mail() function under linux only interacts with sendmail, it doesn't contact to the remote SMTP to leave the mail. Do you have the same sendmail version in

Re: [PHP] Linking to files outside the directory structure...?

2003-08-27 Thread [EMAIL PROTECTED]
Hello, This is very much a possibility. first you 'fopen' the file and then you do an 'fpassthru' it will send the file to the client. You do need to create the correct headers (content-type and content-disposition) to match the file type etc. All the best [EMAIL PROTECTED] wrote: I wanna

RE: [PHP] Looping through a list - Newbie question

2003-08-27 Thread James Johnson
I need to loop through a list that is generated by a select tag, so I can query a lookup table. I managed to come up with this, ?php session_start(); $_SESSION['sv_CampusList'] = 1,2,4,5; // set elsewhere. Here for demo/testing purposes $lst=

Re: [PHP] can pdf forms be used to submit data into db?

2003-08-27 Thread Cesar Cordovez
Yes you can! All the information is on www.php.net/fdf. Cesar [EMAIL PROTECTED] wrote: hi guys and gals, aloha from hawaii, Not sure if this is the right place to ask, but i just need to know if it is technically possible to have a pdf form be filled out online and then once the user hits

[PHP] Warning - Page has expired error

2003-08-27 Thread Tony Pagliocco
On a website I am working on, when I go to a page that pulls a query , then click back to choose another option, I get an error that says Warning: page has expired then I have to click back twice to get back to the drop down menu to make a new choice of query. Is there anywhere around this? Let

Re[2]: [PHP] PHP Interview questions

2003-08-27 Thread Tom Rogers
Hi, Wednesday, August 27, 2003, 9:48:38 PM, you wrote: JB [snip] JB toggle_light(1); JB sleep(120); JB toggle_light(1); JB toggle_light(2); JB move('self', 'room/'); JB if ($lightbulb['temp'] $room['temp']) { JB echo switch #1; JB } elseif ($lightbulb['ison']) { JB echo switch #2; JB }

RE: Re[2]: [PHP] PHP Interview questions

2003-08-27 Thread Jay Blanchard
[snip] JB You are presented with three crates. One is labled 'apples', one is JB labled 'oranges', one is labled 'apples and oranges'. The lables have JB been mis-applied with none of the lables being on the correct crate. To JB be perfectly clear ( :7) Brian! ) one crate contains apples, one JB

[PHP] Re: Website templating schemes

2003-08-27 Thread rush
Joel Konkle-Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm trying to make a PHP-backed website, and I'm trying to decide between two templating schemes: Neither sounds very exciting to me :) . While PHP is often considered as template system in it self, I think it is is

[PHP] including .shtml file within my php script

2003-08-27 Thread Gronquist, Jim M
I have an open source php script to add items to a mysql database. I want to wrap the page using a .shtml file Currently, the .shtml file is: http://bursar.indiana.edu/gotcha/index.shtml The php script is: http://bursar.indiana.edu/gotcha/g_add_gotcha.php I believe that I should be

Re: [PHP] Extracting EXIF/IPTC info from jpeg/tiff image files

2003-08-27 Thread Vahan Yerkanian
Hi, Some time ago I needed to read IPTC info from jpeg files, and I ended up with a function to read these fields from JPEG header. Another approach is to use ImageMagick to read the exif/iptc from jpeg/tiff. Here is the function, I hope it'll be useful: function get_IPTC($path) { $size =

Re: [PHP] Cannot pass values from one page to another

2003-08-27 Thread [EMAIL PROTECTED]
Hi, I see that Jay has already pointed out that session_register() is the correct approach and not $_SESSION['uname']=$uname; if you have already tried session_register and had no luck few other things you could look at are 1) make sure that client is configured to accept cookies. 2) if the

RE: [PHP] Website templating schemes

2003-08-27 Thread Chris W. Parker
Joel Konkle-Parker mailto:[EMAIL PROTECTED] on Tuesday, August 26, 2003 1:51 PM said: Does that make any sense? Yes, and that's what I kind of thought you meant but just couldn't envision it completely. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Pipe an email to PHP

2003-08-27 Thread Thomas Tremain
I am actually real close now... Thanks to your help. The email pipes to the PHP, and I get an email response from PHP so I can look at output. However, I still get a non-delivery message at the same time: == This message was created automatically by mail delivery

Re: [PHP] webserver for mac

2003-08-27 Thread MIKE YRABEDRA
on 8/27/03 8:40 AM, Justin French at [EMAIL PROTECTED] wrote: Actually, to the best of my knowledge you cannot run a decent server on Mac OS 10 (X), and certainly can't run PHP/MySQL, which is the main reason I upgraded to OSX. But if they're running anything less than a G4, Mac OSX may be

[PHP] PHP5 Old style classes

2003-08-27 Thread Gerard Samuel
Im currently testing with PHP5.0.0b2-dev Aug 27 2003 08:07:21 on windowsXP, Apache2. I have a class that acts as the DB layer, of which I pass all objects by reference. It works like a dream in PHP 4. Not sure if this is the expected behaviour, or an unwanted side effect. --- start psuedo snip

RE: [PHP] Need Help - past deadline

2003-08-27 Thread Jay Fitzgerald
Ok - Thanks to Jim Lucas off list - I am almost to where i want to be, but i am unable to reach him for further assistance. Can someone tell me where in this code I can add a grey table row seperator? AND how come only the first seat from my database is being displayed as taken? $alphabet =

Re: [PHP] Cannot pass values from one page to another

2003-08-27 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] Didn't know this was the army :-) Yeah, I signed you up last week. You report to basic training in November. I hope you're ready! :) first unless you got your variable ordering (POST, GET, Env, Sesssion etc). the values in the session can be easily overridden with a

Re: [PHP] session.cookie_domain

2003-08-27 Thread CPT John W. Holmes
From: Shu Chow [EMAIL PROTECTED] We're having a problem with a site that recently upgraded to php 4.3.3. Ever since the upgrade, session variables won't pass between pages. Looking at the php.ini file, I see that session.cookie_domain is set to server.hostingcompany.com while our site is

RE: [PHP] Need Help - past deadline

2003-08-27 Thread Jay Fitzgerald
Ok - Thanks to Jim Lucas off list - I am almost to where i want to be, but i am unable to reach him for further assistance. Can someone tell me where in this code I can add a grey table row seperator? AND how come only the first seat from my database is being displayed as taken? $alphabet =

[PHP] Thank You for your help

2003-08-27 Thread Ryan . K . Look
Hi guys, gals, first off i just wanted to thank all of you who responded to my question, they were very helpful...but the answers bring me to several new questions: 1) has anyone seen anything like this done with the reader ver. of acrobat and not the full version of acrobat...could you point me

Re: [PHP] Cannot pass values from one page to another

2003-08-27 Thread Cesar Cordovez
CPT John W. Holmes wrote: From: [EMAIL PROTECTED] Ok this is a major vulnerability that you are coding. Register globals on and password being stored in the session is like having a banner on your home page saying 'come and hack me'. Please explain how you've come to this conclusion...

Re: [PHP] Need help - past deadline

2003-08-27 Thread Jay Fitzgerald
Ok - Thanks to everyone who has helped me so far both on and off-list - I am almost to where i want to be, but i am unable to reach him for further assistance. Can someone tell me where in this code I can add a grey table row seperator (as shown at the bottom)? AND how come only the first seat

  1   2   >