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

[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] 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] Zend Framework...where to start? -- don't.

2009-01-15 Thread Sam Stelfox
Daevid Vincent wrote: > > The pages are significantly slower than straight PHP by orders of > magnitude: http://paul-m-jones.com/?p=315 > http://www.codinghorror.com/blog/archives/001198.html I know this blog isn't specifically about PHP but he makes a good general point that can be applied to thi

[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

Re: [PHP] EXEC and SYSTEM delay

2009-07-23 Thread Sam Stelfox
Well if the server your running on is linux based (and I haven't tried this) you could try adding a nohup and background the task for example rather than doing: system('updatedb'); try system('nohup updatedb &'); It should background the task and let it continue running even when the php sc

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Sam Stelfox
tedd wrote: Everything is backed up at least three fold. I am considering online backup and waiting for the cost to go down. You should add paper backups to that list! http://ollydbg.de/Paperbak/ Sam Stelfox -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Dan Brown

2009-08-04 Thread Sam Stelfox
tedd wrote: Sam: That's interesting. I wasn't aware that paper could be used in such a fashion but I can't help but think that the cost of the paper would exceed the cost of optical disk storage for the same data. And paper is more sensitive to environmental exposure than

Re: [PHP] What type of barcode used for document management system ?

2009-09-04 Thread Sam Stelfox
As a matter of fact... For a while I was using a barcode generator to test out inventory system before getting them professionally made. I personally chose to go with Interleaved 2 of 5 as our barcode scanner was able to read them accurately and it was the same format as our campus ID cards. Th

Re: [PHP] how to strip empty lines out of a txt using preg_replace()

2009-09-04 Thread Sam Stelfox
The following snippet is untested and using Ash's regex (it is accurate \s matches any white space). $content is what is getting stripped of the new lines and $filtered is the cleansed output. See if that does the trick for you. $lines = str_split(PHP_EOL, $content); $filtered = ''; foreach ($

Re: [Fwd: [PHP] Sessions in databases]

2009-10-06 Thread Sam Stelfox
If you are distributing your application over multiple servers, using a database for session tracking allows a user to continue there session regardless of which server their request bounces too. It prevents the need for 'sticky' network connections which time out anyways. Databases can make sc

[PHP] Free tech talk by Percona tonight in Palo Alto, CA

2009-11-03 Thread Sam Ghods
post <http://blog.box.net/?p=1363> and RSVP here: http://www.socializr.com/event/665235025 Please be sure to RSVP so that we have enough food for everyone. Thanks, and hope to see you there! ---- Sam Ghods s...@box.net Box.net - Vice President of Engineering office: (877) 269-6736 e

Re: [PHP] Free tech talk by Percona tonight in Palo Alto, CA

2009-11-05 Thread Sam Ghods
You can see the slides from the talk here: http://assets.en.oreilly.com/1/event/27/Goal%20Driven%20Performance%20Application%20Paper.pdf Sam Ghods s...@box.net Box.net - Vice President of Engineering office: (877) 269-6736 ext. 60 fax: (650) 529-0392 On Nov 5, 2009, at 2:45 PM, Michael

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

RE: [PHP] Server Uptime

2005-02-07 Thread Sam Masiello
There is no function, but you could shell out and grab the output from the "uptime" command and use regex to parse the resultsor use one command line with uptime piped to awk to pull out what you need. HTH! --Sam -Original Message- From: Brad Ciszewski [mailto:[EMAIL

[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

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

[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] 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] GD createpng and getting different png formats

2004-05-14 Thread Sam Joseph
t the gd source Thanks in advance. CHEERS> SAM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD createpng and getting different png formats

2004-05-14 Thread Sam Joseph
s palette. Apologies if I'm missing something obvious, but if anybody knows about a specific function that does this I'd be very interested to hear about it. Many thanks in advance. CHEERS> SAM Galen wrote: IIRC, the goal of PNG is lossless output and it outputs that exactly with PH

Re: [PHP] GD createpng and getting different png formats

2004-05-14 Thread Sam Joseph
rkable how much better quality I can get for a given size with jpeg as opposed to png - but then I'm unable to use jpeg for my current application. Many, many thanks for your help. CHEERS> SAM Galen wrote: Sam, OK, sorry, I only had a few moments before. Let's see if this po

RE: [PHP] Re: WDDX

2004-05-17 Thread Sam Masiello
Hehe must be too early on a Monday for Craig :) --Sam -Original Message- From: Craig [mailto:[EMAIL PROTECTED] Sent: Monday, May 17, 2004 9:31 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: WDDX take a look on http://www.phpclasses.org Good luck, Craig "Dave Avent" <[EM

RE: [PHP] Function Date

2004-06-14 Thread Sam Masiello
Use the strtoupper function: http://www.php.net/strtoupper HTH! --Sam -Original Message- From: Juan Pablo Herrera [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 11:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Function Date Hi! I am using date("j M Y"), the format

RE: [PHP] PHP Hosting

2004-07-09 Thread Sam Masiello
I think you mean GEOS :) --Sam -Original Message- From: Alex Hogan [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 8:15 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] PHP Hosting > Don't you require Windows 3.1.11 for proper network support > :) - at least 3.1 was st

[PHP] xml reader/writer

2007-08-27 Thread Sam Baker
So I don't have to reinvent anything, does such a thing exist anywhere that anyone knows of: I'm looking for a php script that will read any xml file, display the contents in html, with the option of adding an entry (in the same scheme, whatever that might be) or deleting existing entries. I thi

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

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

Re: [PHP] Copy Function Errors

2008-07-17 Thread Sam Stelfox
It sounds to me like your problem is now about the authentication. By default most linux distributions do not give apache a password. I personally think using apache would be a bad idea. How about creating a user on the linux box your trying to put the files on to make it's primary group apache (ma

Re: [PHP] Copy Function Errors

2008-07-17 Thread Sam Stelfox
You need to test using regular FTP, SFTP goes over SSH, while the PHP script your trying to use is making use of regular old FTP. Make sure that the linux machine has the ports open for FTP and that you have an FTP server running on it (SSH is not one). Wei, Alice J. wrote: > It sounds to me like

Re: [PHP] Change tracking

2008-10-31 Thread Sam Stelfox
I've always used a version field (just an incrementing id) rather than an effective date field. I can see the benefits of being able to look back and see when the changes were made and if done correctly make it so things don't change until a certain date. Hmmm nifty. Stephen wrote: > -- On Fri, 10

[PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Sam Masiello
having difficulty getting that extra backslash into the string. I tried just adding the [ and ] characters to the line above between the <> and () characters, but that didn't work along with several other iterations of attempts to get it to work. Does anyone have any ideas? I am stuck.

RE: [PHP] Backslashing the [ and ] in a regex

2004-02-04 Thread Sam Masiello
Thank you for the reply, Adam, but unfortunately it didn't work. --Sam Adam Bregenzer wrote: > On Wed, 2004-02-04 at 14:06, Sam Masiello wrote: >> $rule = ereg_replace("[[:alpha:]+*/.|<>()$]", "0", $rule) ; >> >> But if the u

RE: [PHP] compile problem

2004-02-13 Thread Sam Masiello
The --with-curl directive can also take a directory (--with-curl=[DIR}). Try passing in the directory where cURL is installed to. (I am not sure where this is since you didn't mention whether cURL is installed on your system via RPM or if you did it from source). Good luck! --Sam D

[PHP] Self Submitting Form

2004-02-20 Thread Sam Masiello
am accessing the variable correctly because if I do an alert(opener.myform1.myvar1.value), I get the proper value. Any thoughts would be greatly appreciated! --Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Self Submitting Form

2004-02-20 Thread Sam Masiello
overstepping the bounds of how many characters the browser will accept in the GET string. Any other suggestions that anyone else has would be most appreciated as I am still pretty stuck on this. As always, thanks in advance! --Sam From: Toby Irmer [mailto

RE: Re[2]: [PHP] Self Submitting Form

2004-02-23 Thread Sam Masiello
to something like "hi there" (which is what I was using in my testing), it breaks. Why? The parameter needs to be urlencoded first. Thank you very much for your help and suggestions, Toby! I really appreciate your time and effort in helping me to see the light. --Sam Toby Irmer w

RE: [PHP] Php and GpG

2004-02-23 Thread Sam Masiello
What is the error that you get when you try to use gpgext? --Sam Paul Marinas wrote: > Those anyone know hoh to use php with gpg. I've tryed gpgext, but > doesn't seems to work maybe my php is not compiled with some kind of > support. > > thanks > > > Pa

RE: [PHP] Can anyone tell me why this code doesn't insert anything?

2004-02-23 Thread Sam Masiello
What happens if you echo out $query to the browser window and try to copy and paste the query into a command line mysql session (be sure to connect to the database using the same authentication credentials that you have in the script)? Does it work? --Sam Brian Dunning wrote: > This inse

RE: [PHP] saving form data

2004-02-23 Thread Sam Masiello
u are submitting. If the server does have register_globals turned on you can access the variables just as they are named in the form. For example, if you have a text input field named "lastname", you can access the value in that text box using the variable $lastname. HTH! --Sam Charl

RE: [PHP] Parsing large log files with PHP

2004-02-24 Thread Sam Masiello
Are you getting an error when trying to read/parse your log file? If so, what is that error? --Sam Pablo Gosse wrote: > Hi folks. Has anyone encountered any problems parsing large log > files with PHP? > > I've got a log file that's about 1.2 gig that I need to pars

RE: [PHP] What's wrong with this code please?

2004-02-24 Thread Sam Masiello
If you want to see the contents of an array, use the print_r function: http://www.php.net/print_r HTH! --Sam Donpro wrote: > $emails = > array("[EMAIL PROTECTED]","[EMAIL PROTECTED]",[EMAIL PROTECTED]); > $addresses = explode(",",$emails);

RE: [PHP] date functions

2004-02-24 Thread Sam Masiello
g the data after it has been output from your query. HTH! --Sam Matthew Oatham wrote: > Hi, > > You might already be fed up with my posts but I'm a complete PHP > newbie and find these groups are the best way to learn! Anyway I have > the database date in the format: -

RE: [PHP] apache mysql php windows

2004-02-24 Thread Sam Masiello
I believe you are looking for: http://www.easyphp.org HTH! --Sam Shane Nelson wrote: > Hi Folks > > A few days ago on the list I saw someone mention a package that > includes apache, mysql and php for Windows. The one install file > included all these programs. Anyone remem

RE: [PHP] Transfering a file

2004-02-24 Thread Sam Masiello
How about FTP? --Sam Mike Koponick wrote: > Hello everyone, > > I will apologize in advance if this has been discussed previously. > > I would like transfer a file that is created by PHP. Once written, I > need to transfer (or write it) to another server. The destinat

RE: [PHP] frameset und php-script in frame

2004-02-24 Thread Sam Masiello
ource of the top frame to see if the contents of your echo statement is in there. --Sam joe-at wrote: > hi pleas help me, > > when I try to use php in a frame of a frameset it dos not work. what > is wrong with my files? > > > > fameset.html: &g

RE: [PHP] frameset und php-script in frame

2004-02-25 Thread Sam Masiello
aking your top frame bigger (change the 83 to 200) to see if you can see the text? --Sam joe-at wrote: > Thanks for the hint, but the frames are wide enough. > I also tried it on my test server and on a real web server with the > same result. > > "Sam Masiello"

RE: [PHP] function.date.php

2004-02-25 Thread Sam Masiello
will overwrite your previously set year with the day of the month :) Aside from that, you can use the date function once you fix your code a bit: $mynewdate = date("F d, Y", mktime(0, 0, 0, $month, $day, $year) ; HTH! --Sam John Taylor-Johnston wrote: > Is there a way to rever

RE: [PHP] Re: Parse error ???

2004-03-04 Thread Sam Masiello
This is because the file is uploaded as the user running the web server process; apache, in this case. --Sam Mike Mapsnac wrote: > It works now. > > I run the script as user mike and mike:mike is owner of the > directory, when > I upload something to directory the owner

RE: [PHP] Link List

2004-03-04 Thread Sam Masiello
Are you sure that file exists? When I try to access it with my browser I get a 404. --Sam Lopez, Kaleb (GEAE, Foreign National, CIAT) wrote: > I'm sorry. I got confused. I'm using file. Here's a part of the code, > more or less. I don't get anything. The table is bl

RE: [PHP] odd, sporatic upload problem ...

2004-03-05 Thread Sam Masiello
How long is it before the "Page Not Found" error occurs? Is the browser possibly timing out? --Sam Kenn Murrah wrote: > Greetings. > > I have an odd (to me) problem ... from most computers, the upload > code (shown, in part, below) works just fine but from at l

RE: [PHP] odd, sporatic upload problem ...

2004-03-05 Thread Sam Masiello
You're sure that the computer in question doesn't possibly have a previous version of the page cached? Any sort of proxy server setup in that browser that isn't on the others? Sorry for the mundane questions...just trying to cover some of the obvious po

RE: [PHP] PHP logging into htaccess Auth

2004-03-08 Thread Sam Masiello
I believe that using "http://"; in the front of the URL is required when using this syntax. --Sam [EMAIL PROTECTED] wrote: > Hi there i am having issues trying to get php to log into a htaccess > protected directory. I used be able to simply have the username and > passw

RE: [PHP] Problem with cookies on new server

2004-03-09 Thread Sam Masiello
If the install on the new server is a fresh install, you might want to start by comparing the php.ini files being used on both machines to see where they differ. HTH! --Sam Teren wrote: > Hey, I'm having some trouble with one of my scripts that is on a new > server I just la

RE: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Sam Masiello
. HTH! --Sam Alistair Hayward wrote: > Thanks Chris, > > Believe me, I have been doing research non-stop for a few days now and > this is my last resort. > The problem is the language. I can't find what I'm looking for on the > net because I don't know what it

RE: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Sam Masiello
ur call to mysql_query will fail. So, I would change your code to something like this: $type = addslashes($_GET['type']); $sql = "SELECT * FROM tbCategory WHERE Type ='$type' order by style"; $resultID = mysql_query($sql, $db); HTH! --Sam Alist

RE: [PHP] I have a problem In Mail Function

2004-03-15 Thread Sam Masiello
This doesn't sound like it has anything to do with the mail function. It appears that your newsletter is getting caught by their spam filters. --Sam PHP wrote: > Hi > In a web application I need to send mail for each members whith a > different content . mail message must be in H

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Sam Masiello
This drove me nuts for a while and instead of doing $variable++ I started using ++$variable and never had the problem again. --Sam Jake McHenry wrote: >> No. >> >> $correct++; >> >> Is all you need for the second condition, it automatically sets >> itself

RE: [PHP] date()

2004-03-18 Thread Sam Masiello
Are you sure that you aren't echoing something else somewhere in your script as well? My output from this code is: 18/03/04 --Sam Khalid Judeh wrote: > hello all, > i am new to php, i am trying to call the date function this way: > and the result i get is: object18/03/04 &g

RE: [PHP] php email functionality

2004-04-02 Thread Sam Masiello
What sorts of errors are you seeing in your log? --Sam -Original Message- From: Shawn Beard [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 8:11 AM To: [EMAIL PROTECTED] Subject: [PHP] php email functionality I just upgraded to PHP 4.3.5 and now my email functionality does

[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

[PHP] MySQL > Excel

2004-11-12 Thread Sam Smith
spitting out a file that Excel can open right up? thanks sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-01-23 Thread Sam Webb
\Apache2\htdocs\Games\main.php:3) in C:\Program Files\Apache Group\Apache2\htdocs\Games\main.php on line 3 Any suggestions? Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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] 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] 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] 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] str_replace ? \r

2006-02-07 Thread Sam Smith
the first character. When resubmitted for UPDATE: mysql> SELECT jbs_jobDesA FROM jobs WHERE jbs_ID=77 \G *** 1. row *** jbs_jobDesA: Lesequam coreet la feum nulla feu facil iriure faccummolut ulput num augait 1 row in set (0.00 sec) Q. Why is that first return tre

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] 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] Listbox Data Entry

2001-02-02 Thread Sam Masiello
You need to be sure that you are defining the select list similar to this: The size field can be whatever you want to show, but you need to use the brackets in the NAME attribute to indicate an array, then treat the data submitted as an array after the form is posted. HTH Sam Masiello

Re: [PHP] Getting ASPELL to work?

2001-02-07 Thread Sam Masiello
When you compile PHP, you also need to include the --with-aspell flag (similar to how you did to include MySQL support). HTH -- Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] On 2001.02.07 14:19:38 -0500 Nicholas Pappas wrote: > Is there a secret to get

Re: [PHP] Using a variable in a variable

2001-02-13 Thread Sam Masiello
Why not just use an array? $testtext[1] = "value1" ; $testtext[2] = "value2" ; etc.. -- Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] On 2001.02.13 16:06:54 -0500 Brandon Orther wrote: > Hello, > > Is there a way to use a variabl

[PHP] RE: Your Opinion?! PHP4 coding style - Comment and Splitting source code

2001-02-13 Thread Sam Leibowitz
that you can't place require() calls in conditional blocks, so: if ($something) include($foo); // this is okay if ($something) require($bar); // this is not. Hope this helps, Sam > -Original Message- > From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] > Sent: Tuesd

[PHP] RE: Would Like to know

2001-02-13 Thread Sam Leibowitz
> Can PHP direct the output to a file > eg send the HTTP_USER_AGENT information to a file ?? Sure. Read the documentation for fopen(), flock(), and fwrite(). Then fwrite() out $HTTP_SERVER_VARS["HTTP_USER_AGENT"]. Sam -- PHP General Mailing List (http://www.php.net/

RE: [PHP] what's the difference between include and require??

2001-02-20 Thread Sam Leibowitz
those obnoxious "Cannot redefine function blah() in blah blah blah" errors. - Sam Leibowitz ([EMAIL PROTECTED]) Project Manager Business Technology Center -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] Displaying images

2003-02-22 Thread Sam A. Funk
flat file */ $img_loc_filename = "032902.jpg"; $img_width = 300; $img_height = 200; $img_description = "Description Here"; echo ""; --End Code Here Or something along those line Sam I'm a newbe to php and am trying to develop a routine to display artwork on my

Re: [PHP] Is it an apache or a php-problem?

2003-02-28 Thread Sam A. Funk
://www.php.net/unsub.php -- |Sam A. Funk http://www.samafunk.com [EMAIL PROTECTED]| |Wichita, KS Guitarist (self-proclaimed)Macintosh Fanatic| |Kansas Bluegrass Associationhttp://www.kansasbluegrass.org

[PHP] session header issue

2003-07-30 Thread Sam Folk-Williams
in.php code are below. I'm stumped here -- thanks! Sam ON EVERY PAGE IN SITE// //get name of file user is trying to view $file=$PHP_SELF."?".$_SERVER['QUERY_STRING']; // session check session_start(); if (!session_is_registered("SESSION")) {

Re: [PHP] session header issue

2003-07-30 Thread Sam Folk-Williams
Thanks, but that's not on the login.php page, only on all the protected pages. Sam Curt Zirzow wrote: * Thus wrote Sam Folk-Williams ([EMAIL PROTECTED]): Problem: instead of sending them to the page they wanted to view, they get sent to this URL: login.php?file=/dir/file_name.php?

Re: [PHP] session header issue

2003-07-31 Thread Sam Folk-Williams
fine having Location: main.php and $file contains a relative path, like "file_name.php?v1=123" and yes, I have checked that. Any other ideas? Sam - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <[EMAIL PROTECTED]> Sent: We

Re: [PHP] session header issue

2003-07-31 Thread Sam Folk-Williams
Same here.. I get new problem with "Location: main.php" Sam "Ow Mun Heng" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] The Location: header requires a correctly formed URL, ie http://... I'm running fine using only Location:home.php on Mozill

Re: [PHP] session header issue

2003-07-31 Thread Sam Folk-Williams
ow works fine. Thanks for the help. Sam "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Sam Folk-Williams <[EMAIL PROTECTED]> wrote: > > > The Location: header requires a correctly formed URL > > > > It works fin

[PHP] trigger download with left-click?

2003-06-17 Thread Sam Folk-Williams
users are not very savy and are having a hard time with the "Save target as..." concept). Thanks for your help, Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] __FILE__ plus variables?

2003-06-28 Thread Sam Folk-Williams
) but that doesn't return the variables (secondary.php?cat_id=267). Is there a way for me to get the full URL not just the filename? Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strange new problem with IE

2003-09-11 Thread Sam Folk-Williams
o open or save the page you are trying to visit. This is on a site that's been working fine for about 6 months. It seems to happen on any type of page, whether it's just grabbing DB content for display, or has a form and is updating a database. Anyone else seeing this? Any thing I

Re: [PHP] strange new problem with IE

2003-09-11 Thread Sam Folk-Williams
The server is hosted by Interland. I have a ticket opened with them. It seems to me it must be something with the server because this just started happening all of a suden. Sam - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Sam Folk-Willia

[PHP] help with message from tech support

2003-09-12 Thread Sam Folk-Williams
re it's not the code. This just suddenly started happening late last night. This seems like a server problem to me. > > Sam > > > > Solution history on ticket: > 9/11/2003 6:49:55 PM - Yemi A.: > Sam Folk-Williams, > Thanks for contacting technical support. > >

Re: [PHP] help with message from tech support

2003-09-12 Thread Sam Folk-Williams
if they just screwed up. Sam "R'Twick Niceorgaw" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sam Folk-Williams said the following on 9/12/2003 12:32 PM>> > > >Hi, > > > >I posted about the below issue yesterday, following is th

[PHP] session experation

2003-10-09 Thread Sam Folk-Williams
ion will be set to expire in one year instead of as soon as the browser closes. Is there a way to do this without altering the php.ini file? (I'm in a shared hosting env and don't think I can alter that file). Or, is there a better way to acheive this result? Thanks, Sam -- Sam Folk-Wil

[PHP] undefined function: ftp_connect()

2001-12-20 Thread Sam Schenkman-Moore
I've compiled php 4.0.6 on Darwin as CGI. "--with-ftp" shows up in the php configuration display but I still get this message: undefined function: ftp_connect() I've read a couple past articles with people having this problem but I did not spot a solution. Any sugges

<    1   2   3