[PHP] How does one reply to messages on this list?

2010-12-16 Thread Sam Smith
If I just hit 'Reply' I'll send my reply to the individual who created the message. If I hit 'Reply All' my reply will be sent to: Govinda < govinda.webdnat...@gmail.com>, PHP-General List and the creator of the message. Neither option seems correct. What's up with that? Thanks

[PHP] PDO: good, popular?

2010-12-14 Thread Sam Smith
Searching for "PHP CRUD" in hopes of learning the best way to access databases and to use PEAR or what I came across PDO. I want to know the communities opinion of PDO: everyone uses it or no one uses it or it's great or what? Thanks

[PHP] preg_replace insert newline

2010-06-02 Thread Sam Smith
$string = 'text with no newline'; $pattern = '/(.*)/'; $replacement = '${1}XX\nNext line'; $string = preg_replace($pattern, $replacement, $string); echo $string; Outputs: text with no newlineXX\nNext line Instead of: text with no newlineXX Next line How does one insert a newline with preg_replace

[PHP] Parse info from 1,000 files to file

2010-06-02 Thread Sam Smith
Can someone briefly point me to the functions I'll need to parse some information from thousands of files in a single directory and then prepare the extracted info into a single file for SQL import? Like file() or readfile() and some regex and writefile?? Thanks -- PHP General Mailing List (htt

[PHP] Website crawler auto image downloader

2009-01-16 Thread Sam Smith
I need a script that will crawl a list of websites and download all .jpg, .gif, .png files. I can think of some ways how to start like, fopen() or maybe curl(). And it downed on me I'd need to handle files writing over with the same name. And it would be cool to save the full URL to the file in a

[PHP] FDF > PDF - Content-type: application/vnd.fdf

2006-09-27 Thread Sam Smith
When loaded into a browser that can display PDF files (Win IE and Firefox, Mac Safari) the FDF file (snip below) should open linked PDF and populated it with the data from the FDF file. It works fine when the FDF file is loaded from within the browser with "Open File" (or simply double-cl

Re: [PHP] Editing an existing pdf?

2006-03-10 Thread Sam Smith
> > Thankyou for the quick reply Sam. > Infact I took this option at first but I didnot proceed because creating a > pdf form is new to me. > And also I donot have the tool. what do you advise me. I would like to hang out on a yacht off the coast of Saint Tropez where Paris Hilton and her friends

Re: [PHP] Editing an existing pdf?

2006-03-10 Thread Sam Smith
> > I wanted to add texts from an html form to existing pdf. > I was able to create a pdf but not to edit it. > > Please give me guidance how to. FDF is what you're after if I understand this brief post. Google FDF PDF PHP. PHP writes the FDF file which fills out a linked PDF form. Notice I sai

[PHP] What's a Blog?

2006-02-13 Thread Sam Smith
I have a client who wants to blog or he wants a blog on his website. I don't know anything about these blogs except it's sort of a fad I think. Isn't a blog just a simple web form with a big textarea on the blogger's side writing to a database and then the data is displayed in chronological orde

Re: [PHP] how to learn php

2006-02-11 Thread Sam Smith
I started out by getting a reference manual, one with every function describing what the function does. Just like the php.net online function reference but one that can be read lying on the couch. Now when I need some code to do something I'll remember there's a function for it (maybe) and I go t

[PHP] str_replace ? \r

2006-02-07 Thread Sam Smith
>From a on a web form I'm attempting to convert all returns(\r), from the users input, to "", for db INSERT, and then back again for display in the . (They remain as s for normal HTML web page display.) code: // From textarea to db UPDATE function addBR($tv) { $tv = addslashes($tv); $tv

[PHP] shell_exec("zip.. ?

2005-08-03 Thread Sam Smith
shell_exec("zip -r ddd ddd"); // don't work safe_mode off, works from command line php. What could it be? Details: drwxr-xr-x 2 zamzmith zamzmith 512 Aug 3 18:34 execTest/ -rw-r--r-- 1 zamzmith zamzmith 107 Aug 3 18:33 mkdir.php mkdir.php: execTest$ php mkdir.php execTest$ ls -l drw

[PHP] what is this: dirname(__FILE__)?

2005-07-31 Thread Sam Smith
I don't recognize this something(__SOMETHING__) format. I know what it's doing but I don't know how it's doing it. The whole thing is "$fdf_dir=dirname(__FILE__).'/results';" and of course it's setting that var $fdf_dir to the path to a file. Is there something significant about the double under

[PHP] PDF < FDF < $_POST

2005-07-31 Thread Sam Smith
I need PHP fill out the form fields and prepare for download a PDF from an HTML form submission. One way would be to use a PDF with pre-configured form fields where an FDF is created from PHP. The FDF 'merges' with the PDF when the FDF is opened. I got all that from:

[PHP] if(true && false) //??

2005-07-09 Thread Sam Smith
I have some code that I barrowed that works but I don't get how it could possible work, obviously I don't understand how "false" works: How can this ever pass?: if (isset($_SESSION['PrevUrl']) && false) { Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] MySQL: Collation?

2005-05-13 Thread Sam Smith
I need a new book? What's up with this filtering thing, "Collation" in phpMyAdmin? It's defaulting to latin1_swdish_ci. What can I just set it to to forget about it till I can read up on it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] phpMyAdmin authentication error

2005-05-13 Thread Sam Smith
On OS X 10.3 I installed the latest MySQL from dev.mysql.com for OS X 10.3. It was a Apple style installer package with a binary of the server and the client. The docs weren't exactly written for OS X but I survived the set up and am able to login as the root MySQL user with the command line MyS

[PHP] Best CC gateway

2005-05-12 Thread Sam Smith
Any recommendation for the easiest credit card gate way for PHP running on FreeBSD? Authorize.net? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing PDF

2005-05-10 Thread Sam Smith
> Sam Smith wrote: >> I have an existing PDF file that I want to add text to or make changes to >> text with data from an HTML form via PHP. >> >> The PDF looks like this: >> 20 0 obj<>stream >> 8;X-DgMYb:(An746bc%oU,Mo*S> -$2%Ipq]A >> aoW>

[PHP] Editing PDF

2005-05-10 Thread Sam Smith
I have an existing PDF file that I want to add text to or make changes to text with data from an HTML form via PHP. The PDF looks like this: 20 0 obj<>stream 8;X-DgMYb:(An746bc%oU,Mo*S]"SN?epNo... That is, not in plain text. If I wanted to add text to the PDF, e.g., Mr. Jones, where the heck wo

[PHP] if($var) vs. if(isset($var))

2004-11-23 Thread Sam Smith
What's the difference between: if($var) and if(isset($var)) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL > Excel

2004-11-12 Thread Sam Smith
I've got it working writing out a file (fopen) to CSV (comma delimited) and the "header('Content-Disposition: attachment; filename="myFile.csv"')" method but it's clumsy for the user to figure out how to use the file. Is there some totally slick way of spitting out a file that Excel can open righ

[PHP] POST losing SESSION vars?

2004-11-09 Thread Sam Smith
I have a page that will be redirected to a login page if the SESSION var 'authenticatedUser' is not set. The page has a form in it. When the page is loaded http://thePage the authentication works fine. When the submit button is pressed it doesn't. With POST it acts as if the required session var

Re: [PHP] Square brackets tags

2004-10-19 Thread Sam Smith
I was just reading a little on this. This is the way you build a template system. Smarty uses "{ }". Maybe you could check out the Smarty page and get an idea. Or maybe you could just use Smarty, you can change the "{ }" to anything you want. > Hi All, > > I need to wr

Re: [PHP] textarea vs. type="text" data difference?

2004-10-10 Thread Sam Smith
27;s maybe a > scope error... especially if you define the function in formProcessor and it > works fine... > > -Minuk > > - Original Message - > From: "Sam Smith" <[EMAIL PROTECTED]> > To: "PHP" <[EMAIL PROTECTED]> > Sent: Sunday,

Re: [PHP] textarea vs. type="text" data difference?

2004-10-10 Thread Sam Smith
you be a little more specific on what differences you get? > > I normally use textarea for multi-line data and input type="text" for one > line, short data... the only difference you might encounter that I can think > off the top of my head is maybe line break? > > >

[PHP] Quotes """ in form textarea fields

2004-10-08 Thread Sam Smith
I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is "high" Submitted to FROM2.php we get: Bob is \"high\" In a hidden field in FROM2.php we store the value: 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:

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] Re: mail() and Verizon

2004-10-01 Thread Sam Smith
> have you tried sending the same message, via the same path (i.e., > smtp server), but not generated via php, to this recipient? by > "same" that includes the same rfc821 "from"/return-path. I logged on to the web server where php is running and did telnet localhost 25 hello ... The mail was re

Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Sam Smith
> Hello, > > On 10/01/2004 12:47 AM, Sam Smith wrote: >> Can anyone tell why the mail (see below) is not being relayed to >> [EMAIL PROTECTED]: >> >> #Note: There were 2 "To:" addresses. Below is the header from the successful >> mail to t

[PHP] mail() and Verizon

2004-09-30 Thread Sam Smith
Can anyone tell why the mail (see below) is not being relayed to [EMAIL PROTECTED]: #Note: There were 2 "To:" addresses. Below is the header from the successful mail to the second address. Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 70862 invoked by uid 399