RE: [PHP] SMTP server response: 550 5.7.1 Unable to relay for

2003-08-27 Thread Chris W. Parker
Àlex Camps on Wednesday, August 27, 2003 12:04 PM said: > i have windows xp with apache,php and argomail > but i cant send emails from php why? According to your subject it looks like the computer you are trying to use to send the email does not allow relaying. >

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread Leif K-Brooks
Steve Todd wrote: Is this a bug or can we legally use it. Please RTFM before posting! http://php.net/variables.variable -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread Chris Sherwood
No its not a bug basically what you did was assign a value to a value of a variable a $$ is how you access the value of a variable as a variable - Original Message - From: "Steve Todd" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 27, 2003 1:27 PM Subject: [PHP] I

RE: [PHP] IS THIS A BUG?

2003-08-27 Thread Chris W. Parker
Steve Todd on Wednesday, August 27, 2003 1:28 PM said: > Is this a bug or can we legally use it. It's legal. And here is an article that explains it: http://www.phphideout.com/articleview.php/5 (read near the bottom) Chris. -- PHP General Mailing List (http://w

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread Chris Shiflett
--- Steve Todd <[EMAIL PROTECTED]> wrote: > Is it possible to define a variable, such as: > $foo = "bar"; > > and then do as follows to create a totally different variable: > $$foo = "text here"; > > this seems to mean $bar = "text here";. > > Is this a bug or can we legally use it. It is n

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

2003-08-27 Thread Ryan . K . Look
John, that is EXACTLY what i want, now the question is...have you seen this implemented somewhere? so php would pass the data to a database and when a user/client wants to see that data again, php would "re-generate" the form with the data that is being requested right? and that is what FDF can

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

2003-08-27 Thread John W. Holmes
Chris Boget wrote: All the information is on www.php.net/fdf. I just read the above page and I can't for the life of me figure out why anyone would want to do this. Of course, it's likely that I am simply being myopic. Would anyone who's actually used fdf enlighten as to the need to do it this wa

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread John W. Holmes
Steve Todd wrote: Is it possible to define a variable, such as: $foo = "bar"; and then do as follows to create a totally different variable: $$foo = "text here"; this seems to mean $bar = "text here";. Is this a bug or can we legally use it. Yes it's legal. http://us2.php.net/manual/en/lan

Re: [PHP] IS THIS A BUG?

2003-08-27 Thread Curt Zirzow
* Thus wrote Steve Todd ([EMAIL PROTECTED]): > Is it possible to define a variable, such as: > $foo = "bar"; > > and then do as follows to create a totally different variable: > $$foo = "text here"; > > this seems to mean $bar = "text here";. > > Is this a bug or can we legally use it. perf

Re: [PHP] Re: Website templating schemes

2003-08-27 Thread John W. Holmes
rush wrote: While PHP is often considered as template system in it self, I think it is is not very strong, or efficient one. Wow... where'd you pull that from?? Any facts to back that up? :) FYI: I've got a template benchmark site running at http://sepodati.realxl.net/tpl_bench/ Any interest in

[PHP] Re: php equivalent to asp's instr()

2003-08-27 Thread DvDmanDT
Hmm... Are you sure strpos doesn't work for you? Sure worked for me when I wanted something like that Otherwise, checkout following: http://se2.php.net/strings function instr($needle, $haystack,$case_sensitive=true) { return (($case_sensitive?strpos($needle,$haystack):stripos($needle,$haystack))!=

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

2003-08-27 Thread Curt Zirzow
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): > 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";)

[PHP] php equivalent to asp's instr()

2003-08-27 Thread Chris W. Parker
Hi. I don't know why but I've had the darndest time trying to find an easy equivalent of asp's InStr() function in PHP. I know there is preg_match(), strpos(), and strstr(), but none of them work like I want them to. In fact, except for maybe preg_match(), I can't get any of them to work right.

Re: [PHP] dealing with arrays

2003-08-27 Thread Curt Zirzow
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]): > On 27 August 2003 04:22, Aris Santillan wrote: > > > I Have > > Entry One > > > > > > > > The way to combat this is to use explicit subscripts in your form field names, like > so: > > Entry One > > > I would also add

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

2003-08-27 Thread Curt Zirzow
* Thus wrote Cesar Cordovez ([EMAIL PROTECTED]): > Yes you can! > > All the information is on www.php.net/fdf. You don't reall need to compile --with-fdftk, to generate fdf files. If you're not doing really fancy stuff (just filling out a form) then, be sure to take a look at the notes on this

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

2003-08-27 Thread Curt Zirzow
* Thus wrote Chris Boget ([EMAIL PROTECTED]): > > Yes you can! > > All the information is on www.php.net/fdf. > > I just read the above page and I can't for the life of me figure out > why anyone would want to do this. Of course, it's likely that I am > simply being myopic. > Would anyone who's a

[PHP] How to exec PHP as CGI

2003-08-27 Thread Lowell Allen
My PHP script for updating some static HTML pages no longer works on a commercial host that changed their setup so PHP can't write files to the public_html directory. The host's tech support says that a PHP script executed as a CGI can still write to public_html. The site has PHP 4.3.2 on Apache 1

[PHP] Re: IS THIS A BUG?

2003-08-27 Thread DvDmanDT
Considering the manual has examples using that method (or at least had), and many tutorials, I think you can use it... When using register_globals=off, this might be off intrest: (notice $$var) while(list($var,$val)=each($_REQUEST))$$var=$val; -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PR

[PHP] SOLUTION [PHP] including .shtml file within my php script

2003-08-27 Thread Gronquist, Jim M
The solution to using .shtml files from within your PHP scripts is as simple as: include ("somefile.shtml"); Very handy if you have header, sidebar, footer templates setup using SSI. -Jim -Original Message- From: Gronquist, Jim M Sent: Wednesday, August 27, 2003 11:13 AM To: [EMAIL PR

[PHP] multiple mailings

2003-08-27 Thread Jay Fitzgerald
sorry for the multiple mailings...I'm not meaning to spam the list, but apparently when i send an email to the list, it takes almost 2 hours for me to receive a copy of it letting me know that it went through ok Jay Fitzgerald, Design Director

[PHP] IS THIS A BUG?

2003-08-27 Thread Steve Todd
Is it possible to define a variable, such as: $foo = "bar"; and then do as follows to create a totally different variable: $$foo = "text here"; this seems to mean $bar = "text here";. Is this a bug or can we legally use it. Steve

[PHP] RE:[PHP] mail mime attachment

2003-08-27 Thread Steven Murphy
I've been working on a simple mail attachment script, that is now working. Its pretty well documented in the code. You can download it at www.pfohlsolutions.com/projects/mailer/mailer.zip. It verifies fields and hides the to email address from spiders. Email me if you have any questions or suggesti

[PHP] Animating with GD?

2003-08-27 Thread Simon Fredriksson
Is it possible to create GIF animations using GD? //Simon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SMTP server response: 550 5.7.1 Unable to relay for

2003-08-27 Thread DvDmanDT
Maybe that feature is disabled or you didn't enter your DNS servers... If you add me to MSN, I can help you set that up... I had some problems myself you see (Xp, Apache, PHP, Argomail).. -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "ÀLex Camps" <[EMAIL PROTECTED]> skrev i meddel

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

2003-08-27 Thread Chris W. Parker
Jay Blanchard on Wednesday, August 27, 2003 9:13 AM said: > You are taking a fruit from the crate labeled "apples and oranges", > right? If so, you would be correct. Well done! I hate not being able to figure these things out. :( ME SAD! c. -- PHP General Maili

[PHP] PERL exec() replacement?

2003-08-27 Thread DvDmanDT
Isn't there any Perl exec() replacement (I might be wrong about the name of the function, I mean the one that lets you run a Perl command and return the expression value)? I'd really like one for different reasons (my preg_repace("#e#e",$command,"e") doesn't really work tooo great)... If there is o

[PHP] SMTP server response: 550 5.7.1 Unable to relay for

2003-08-27 Thread Àlex Camps
i have windows xp with apache,php and argomail but i cant send emails from php why? thaks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-08-27 Thread Chris Boget
> Yes you can! > All the information is on www.php.net/fdf. I just read the above page and I can't for the life of me figure out why anyone would want to do this. Of course, it's likely that I am simply being myopic. Would anyone who's actually used fdf enlighten as to the need to do it this way?

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

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... --

[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] 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 = ar

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

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

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 = ar

[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] 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 m

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 sof

RE: [PHP] Website templating schemes

2003-08-27 Thread Chris W. Parker
Joel Konkle-Parker 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: htt

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 clie

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 = GetI

[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

[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

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 J

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

[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: [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 submi

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 tag, so I can query a lookup table. I managed to come up with this, "); } ?> And have modified it to query the lookup table, then the main table. Seems to work ok. Thanks, J -Original Message- From: CPT John W. Holmes [mailt

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 pr

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 two

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? --

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.( What I need is that I want to fetch the value of $unme in the next page after login

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] 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] 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 th

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] 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 l

[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 m

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 add

RE: [PHP] dealing with arrays

2003-08-27 Thread Ford, Mike [LSS]
On 27 August 2003 04:22, Aris Santillan wrote: > I Have > Entry One > > > > > Entry Two > > > > > Entry Three > > > > > Entry Four > > > > > Entry Five > > > > > . > > i want to process entries only with checked checkbox > > how can i do this in php? This happens anyway, as

[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] 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

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] 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 t

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 t

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 b

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. thank

Re: [PHP] dealing with arrays

2003-08-27 Thread Marek Kilimajer
Then you must include keys: and so on. This is needed bacause only checked checkboxes are send on submit. Aris Santillan wrote: hi I Have Entry One Entry Two Entry Three Entry Four Entry Five . i want to process entries only with checked checkbox how can i do this in php?

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 = explode(",",$_SESSION

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 pa

[PHP] Problem with readfile

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

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 pos

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: I'v

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, sin

[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_po

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 u

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. Ho

[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

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 act

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

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() }

[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 file

[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 PROTECTED]

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

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 Javie

[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 session.co

[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 possib

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 hav

[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]";

[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 so

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] 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 '%Mike % Communication Impliquant :

[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] 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 fram

[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 indiv

[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] 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 so

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 display..

[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 pr

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' (include_path='/usr/php/

  1   2   >