Re: [PHP] EMPTY??

2007-10-23 Thread Philip Thompson
On 10/23/07, Dan Shirah [EMAIL PROTECTED] wrote: O M G! I am a tard! my Do Something was a series of insert statements, each of them having the or die (Query failed: br /.mssql_get_last_message()); at the end. My very last or die message was OUTSIDE of the closing curly brace! And as such it

[PHP] Multiple asynchronous requests (ajax)

2007-10-24 Thread Philip Thompson
Warning... this is ajax-related and not necessarily PHP (even though it calls PHP scripts). I sent this to several JS lists, but haven't received a response, so I thought I'd query this list to see if anyone here had an idea. ~Philip On 10/24/07, Philip Thompson [EMAIL PROTECTED] wrote: Hi. I

[PHP] Multiple asynchronous requests (ajax) [SOLVED]

2007-10-24 Thread Philip Thompson
/AJAX:Getting_Started) on Step 3, Note 3. ~Philip On 10/24/07, Philip Thompson [EMAIL PROTECTED] wrote: Hi. I have this js function below. In it I grab the coordinates of where the user clicked (on the map). I want to take these coordinates and stuff 'em into a database, then display on the map

[PHP] Executing PHP

2007-10-25 Thread Philip Thompson
Hi. Feel free to tell me this is a duh question. I don't know which PHP executable (php.exe, php-cgi.exe, php-win.exe) is being run - how can I tell? I am on a Win2k3 server running PHP5 (manual install) and IIS6. I've pointed to the php5isapi.dll in IIS. I'm assuming b/c I do this that I am

Re: [PHP] Executing PHP

2007-10-26 Thread Philip Thompson
On 10/25/07, Stut [EMAIL PROTECTED] wrote: Philip Thompson wrote: Hi. Feel free to tell me this is a duh question. I don't know which PHP executable (php.exe, php-cgi.exe, php-win.exe) is being run - how can I tell? I am on a Win2k3 server running PHP5 (manual install) and IIS6. I've

Re: [PHP] Executing PHP

2007-10-26 Thread Philip Thompson
On 10/26/07, Instruct ICC [EMAIL PROTECTED] wrote: Well on Mac/Unix/Linux you could type ps at the terminal to see the path to the running processes or which php to see which one you would invoke. Maybe you can upgrade to a Mac? Parallels running Windows XP didn't show me such info in the

Re: [PHP] returning an array from a function?

2007-10-29 Thread Philip Thompson
On 10/26/07, tedd [EMAIL PROTECTED] wrote: Rob: Why use a global? Plus, your function is returning an array, but you're not catching it. $mve_array = convert( $latitude, $longitude ); Example: http://www.webbytedd.com/bbb/array-function/ Cheers, tedd So... do you write some of

Re: [PHP] moving over to php 5

2007-10-29 Thread Philip Thompson
On 10/29/07, Per Jessen [EMAIL PROTECTED] wrote: Hulf wrote: It is about time I made the jump to 5, however the only thing that is holding me back is the problem with hosts. How many hosts still run php 4 and am I going to have to spend hours and hours persuading them to upgrade before

[PHP] Multiple results in regex

2007-10-31 Thread Philip Thompson
Hi. I have a string that has multiple references to images in it. I want to pull each reference out using regex. I've gotten to where I can pull the first instance out, but not ALL of them. I know each image source starts with 'images/'. I have this so far ?php $pattern =

[PHP] Re: Multiple results in regex [SOLVED]

2007-10-31 Thread Philip Thompson
On 10/31/07, Philip Thompson [EMAIL PROTECTED] wrote: Hi. I have a string that has multiple references to images in it. I want to pull each reference out using regex. I've gotten to where I can pull the first instance out, but not ALL of them. I know each image source starts with 'images

Re: [PHP] mysql_fetch_array

2007-11-05 Thread Philip Thompson
On 11/3/07, Eduardo Vizcarra [EMAIL PROTECTED] wrote: Hi guys After doing some changes, I believe it is partially working, what I did is the following: while($row=mysql_fetch_array($fotos)) { $fotos_mostrar[] = $row; } $primer_foto = reset($fotos_mostrar[0]); // This is to set

Re: [PHP] Re: back-up mysql database using PHP

2007-11-07 Thread Philip Thompson
On 11/7/07, Sebastian Hopfe [EMAIL PROTECTED] wrote: Dear Vanessa You can use the SELECT ... INTO OUTFILE 'file_name' with mysql_query($vAnf, $dbconn); For the syntax you can have a look at http://dev.mysql.com/doc/refman/5.0/en/select.html Should you be allowed to send system-queries to

Re: [PHP] Re: enhanced_list_box, 2 tables from a database

2007-11-07 Thread Philip Thompson
On 11/7/07, Sebastian Hopfe [EMAIL PROTECTED] wrote: Dear kNish, first of all i have formated your PHP Code it looks better now. ?php echo tr\n; echo td height=\33\nbsp;/td\n; echo td width=\14%\ class=\style3\Artist/td\n; $options = mysql_query(SELECT artist_name FROM

[PHP] Printing within functions

2007-11-12 Thread Philip Thompson
Hi. I thought of this when I read the emails about using functions or includes... What are your thoughts about *printing* things from within functions? For example: ?php function printSomething () { echo Something about nothing. ; echo Another something.; } function something () {

Re: [PHP] Trigger an action on session timeout - feature request?

2007-11-13 Thread Philip Thompson
On Nov 12, 2007 3:19 PM, Jake [EMAIL PROTECTED] wrote: Is there any possibility to trigger an action when the session is inactive for some time? I need to log users' login and logout, and so I need to know about logouts caused by timeout. Neither there seems to be a possibility of a

Re: [PHP] Problem retrieving $_POST values

2007-11-13 Thread Philip Thompson
On Nov 13, 2007 7:01 AM, chris smith [EMAIL PROTECTED] wrote: On Nov 13, 2007 7:10 PM, Jon Westcot [EMAIL PROTECTED] wrote: Hi Chris: Exactly as you have there. print_r($_POST); will show you everything. Here's a section of what comes back when I do this: [mls]

Re: [PHP] Fwd: Returned mail: User unknown

2007-11-13 Thread Philip Thompson
On Nov 13, 2007 9:02 AM, Daniel Brown [EMAIL PROTECTED] wrote: On Nov 13, 2007 1:40 AM, Jim Lucas [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: PLEASE I have like 50 from it so far. -Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Philip Thompson
On Nov 14, 2007 1:04 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Nov 14, 2007 2:00 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-11-14 at 13:36 -0500, Daniel Brown wrote: On Nov 14, 2007 12:55 PM, Robert Cummings [EMAIL PROTECTED] wrote: Hey, no worries. You'll be

Re: [PHP] Sending Pictures to Cell Phones

2007-11-14 Thread Philip Thompson
On Nov 14, 2007 12:27 PM, [EMAIL PROTECTED] wrote: Hey list, I'm doing some RD for a project at my job and my boss wants the ability to send pictures to cell phones. I was wondering if anyone had any experience with this or could point me in the right direction to get started. Thanks,

Re: [PHP] Is there a 'Beginner's' PHP List

2007-11-14 Thread Philip Thompson
On Nov 14, 2007 3:20 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Come to think of it - if there is a more basic 'newbie' forum list (for PHP beginners like myself) that anyone knows of (I found a few listed below) - please let me know and I'll use that instead for these 'basic'

Re: [PHP] file_exists

2007-11-14 Thread Philip Thompson
On Nov 14, 2007 5:04 PM, Chris [EMAIL PROTECTED] wrote: Ronald Wiplinger wrote: Chris wrote: Ronald Wiplinger wrote: I am having troubles with the function file_exists() I tried the full path like: if (file_exists('/srv/www/../images/pic412.jpg') { echo IMG

Re: [PHP] file_exists

2007-11-15 Thread Philip Thompson
On Nov 15, 2007 7:16 AM, Stut [EMAIL PROTECTED] wrote: Instruct ICC wrote: Date: Thu, 15 Nov 2007 00:20:52 + From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: php-general@lists.php.net Subject: Re: [PHP] file_exists Philip Thompson wrote: I've run into similar problems

Re: [PHP] installing PHP 5.3 on MAC with mysqlnd support

2007-11-15 Thread Philip Thompson
On Nov 15, 2007 10:00 AM, Hodicska Gergely [EMAIL PROTECTED] wrote: Hi! Can somebody give me some guideline how to install PHP 5.3 to a Mac (intel based) with mysqlnd support? TIA! Best Regards, Felhő Consider using Macports (http://www.macports.org/) to install it. After installing

Re: [PHP] Is there a ' Beginner's ' PHP List

2007-11-15 Thread Philip Thompson
On Nov 15, 2007 9:16 AM, Jason Pruim [EMAIL PROTECTED] wrote: On Nov 15, 2007, at 10:17 AM, Daniel Brown wrote: On Nov 14, 2007 10:29 PM, Instruct ICC [EMAIL PROTECTED] wrote: I'm going to have to move this to gmail to keep it threaded better. As long as the subject doesn't

Re: [PHP] Foreach question

2007-11-15 Thread Philip Thompson
On Nov 15, 2007 5:12 PM, Juan Marcelo Rodríguez [EMAIL PROTECTED] wrote: Yes, I made a mistake in the first sentence. The code is : [...] foreach ($equipos as $key = $val){ echo trtd; echo 1 . /tdtd; // I would like to add the counter here reeplacing 1 echo trtd.($key+1)./tdtd;

Re: [PHP] bank query and curl

2007-11-19 Thread Philip Thompson
On Nov 19, 2007 3:46 AM, Stut [EMAIL PROTECTED] wrote: Admin: Please don't reply directly to me. If you want to say something that you don't want to share with the group, don't bother. I did start replying to this email, but decided it wasn't worth it. Anyone who uses language like this does

Re: [PHP] Loop issues

2007-11-19 Thread Philip Thompson
On Nov 19, 2007 12:16 PM, Dan Shirah [EMAIL PROTECTED] wrote: Jim, I used your suggestion and modified it a little bit. All of the names are pulled from the database, but for some reason once it has pulled all the names form each query it is adding an empty result to the end. So when I do

Re: [PHP] two small issues with php mail

2007-11-19 Thread Philip Thompson
On Nov 19, 2007 5:52 PM, Brad [EMAIL PROTECTED] wrote: Why are you being to belligerent? English 101-104 I have aced. Top secret security clearance I maintain. Concatenate I know well (why would I combine the from, and the bcc?) I will refrain from the rest of the posts/slams and stick to

Re: [PHP] two small issues with php mail

2007-11-20 Thread Philip Thompson
On Nov 20, 2007 9:13 AM, Wolf [EMAIL PROTECTED] wrote: Jim Lucas [EMAIL PROTECTED] wrote: Wolf wrote: Jim Lucas [EMAIL PROTECTED] wrote: Per Jessen wrote: Brad wrote: !-- Snip for brevity -- remember, he is wanting to setup SMTP auth. So he will not be using PHP's

Re: [PHP] Session problem

2007-11-21 Thread Philip Thompson
On Nov 21, 2007 11:08 AM, Mathieu Dumoulin [EMAIL PROTECTED] wrote: I got a strange problem here, here are the setup details first as this seems to be a server problem more than a php problem but it is still related to php configuration: Server: Win2003 (latest) WebServer: IIS6 (latest)

Re: [PHP] Code Critique Please :)

2007-11-26 Thread Philip Thompson
On Nov 22, 2007 11:52 AM, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-11-22 at 12:46 -0500, Oscar Gosdinski wrote: There is something that i always wonder about Singleton pattern in PHP, do you really have a benefit using this pattern in PHP? The idea behind this pattern is

Re: [PHP] session_destroy AND reload a page

2007-11-26 Thread Philip Thompson
On Nov 26, 2007 12:45 AM, Chris [EMAIL PROTECTED] wrote: Ronald Wiplinger wrote: If my user wants to logout, I want that the session will be destroyed and that he must start with the first page again (index.php) and a new session. Whatever I try he always gets the old sessions or he

Re: [PHP] How to ask if private IP?

2007-11-27 Thread Philip Thompson
On Nov 26, 2007 6:08 AM, Jochem Maas [EMAIL PROTECTED] wrote: Ronald, I really dont care if my email doesn't reach you, making normal people jump through hoops because you want to avoid spam is not the right way to do things, next time I'll remember not to answer your questions as your not

Re: [PHP] PHP RFC # 0001 --- List Etiquette

2007-11-30 Thread Philip Thompson
On Nov 28, 2007 9:48 AM, Daniel Brown [EMAIL PROTECTED] wrote: Good morning (/afternoon/evening) all; This is more or less an RFC-type email, hence the subject line. I would like to see your comments on this case, and maybe we can forge some sort of agreement or unofficial treaty or

Re: [PHP] Opinion about the using $GLOBALS directly

2007-12-21 Thread Philip Thompson
translation functions for 3rd party developers was good idea. Other than this for my point of view it was very useful. Thank you very much all of you. Sancar ~Philip Thompson Personally, most of my web applications do not have to factor 13.7 billion years of space drift

Re: [PHP] passing _GET values to _POST

2008-01-08 Thread Philip Thompson
On Jan 7, 2008, at 7:20 PM, Mary Anderson wrote: Hi all, I have a screen get_collection.php which is supposed to be used to select something called 'data sets'. My database (the postgres database is not the problem, PHP is) has an entity called 'data series' which has a child entity

Re: [PHP] php form help...

2008-01-08 Thread Philip Thompson
On Jan 8, 2008, at 11:52 AM, tedd wrote: At 11:17 AM -0600 1/8/08, Jack Mays wrote: You think someone who didn't even know how to get post data in the first place knows how to properly sanitize it? :) One would think that the OP would lookup sanitize or some form of that search in

Re: [PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-08 Thread Philip Thompson
On Jan 8, 2008, at 3:57 PM, Daniel Brown wrote: On Jan 8, 2008 4:40 PM, Jack Mays [EMAIL PROTECTED] wrote: funnily enough exit is even listed as a function. Sure it is: http://us2.php.net/manual/en/function.exit.php Unless I'm missing a point here or something. :) Actually, exit is

Re: [PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-08 Thread Philip Thompson
On Jan 8, 2008, at 4:16 PM, Philip Thompson wrote: On Jan 8, 2008, at 3:57 PM, Daniel Brown wrote: On Jan 8, 2008 4:40 PM, Jack Mays [EMAIL PROTECTED] wrote: funnily enough exit is even listed as a function. Sure it is: http://us2.php.net/manual/en/function.exit.php Unless I'm missing

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Philip Thompson
On Jan 10, 2008, at 12:48 PM, Eric Butera wrote: On Jan 10, 2008 1:33 PM, [EMAIL PROTECTED] wrote: I have been using define to create a constant for the link resource returned by mysql pconnect like so: $PL = @mysql_pconnect(localhost, $DBUser, $DBPass); define(SITE_DB,$PL); Later I use

Re: [PHP] www. not working

2008-02-19 Thread Philip Thompson
On Feb 19, 2008, at 3:43 AM, Christoph wrote: Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent sysadmins, but there it is... Really? So games.yahoo.com blogreport.salon.com mirror1.downloads.com are examples of

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Philip Thompson
On Feb 27, 2008, at 4:51 PM, Jochem Maas wrote: Jason Pruim schreef: So I was supposed to go home a half hour ago but that didn't happen... I hate deadlines! :P in my home language Pruim means prune ... you sound like you've had to suck on one to many ;-) Can someone tell me why this

Re: [PHP] Unexcepted $this

2008-03-10 Thread Philip Thompson
On Mar 10, 2008, at 8:32 AM, Ray Hauge wrote: Murat BEŞER wrote: I can't under stood but PHP gaves me an error: UnExcepted $this for || $this-getFileExtension($file) == 'jpg' When I removed jpg extension check it's okay... PHP script runs well. What is the problem :) public function

Re: [PHP] /?feed=rss2

2008-03-11 Thread Philip Thompson
On Mar 11, 2008, at 7:29 AM, Zoltán Németh wrote: 2008. 03. 11, kedd keltezéssel 09.37-kor Richard Heyes ezt írta: /etch/hosts Typo. That should be: /etch/hosts I bet you mean /etc/hosts :) greets, Zoltán Németh -- Richard Heyes Employ me: http://www.phpguru.org/cv ...which is

Re: [PHP] Question about user management...

2008-03-11 Thread Philip Thompson
On Mar 11, 2008, at 12:20 AM, Mike wrote: Wait, what? You are defining user role ids as MD5 hashes of UUIDs created from random numbers that change on every request? Am I missing something or is this completely insane advice? I'm probably wrong on this, but I think the point is that it

Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Philip Thompson
On Mar 12, 2008, at 5:02 AM, Thijs Lensselink wrote: Thijs Lensselink 写道: How do you pronounce your name? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Ajax progress bar

2008-03-12 Thread Philip Thompson
On Mar 12, 2008, at 9:52 AM, Thijs Lensselink wrote: Quoting Philip Thompson [EMAIL PROTECTED]: On Mar 12, 2008, at 5:02 AM, Thijs Lensselink wrote: Thijs Lensselink 写道: How do you pronounce your name? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: Re[2]: [PHP] Return or not to return, that is the question

2007-05-30 Thread Philip Thompson
On May 30, 2007, at 6:32 AM, Richard Davey wrote: Hi Dave, Wednesday, May 30, 2007, 12:20:48 PM, you wrote: If there is no need to return a value then I don't do so. However, the function is going to process something, and surely you should check that the processing has succeeded or

Re: [PHP] Updating dropdown list

2007-06-11 Thread Philip Thompson
On Jun 11, 2007, at 1:52 PM, Jay Blanchard wrote: [snip] Without refreshing the page would require JavaScript, but if it doesn't matter if the page is refreshed, you could use PHP. [/snip] Or a combination, using AJAX. Or you could use CSS and JS. Use PHP to populate all your lists (may

Re: [PHP] PHP list as a blog

2007-06-13 Thread Philip Thompson
On Jun 13, 2007, at 1:15 PM, Richard Lynch wrote: On Wed, June 13, 2007 12:21 am, Crayon Shin Chan wrote: On Wednesday 13 June 2007 12:39, Paul Scott wrote: Our interns and students specifically. They are all dead scared of joining mailing lists in general, and find that using a web based

[PHP] URLs

2007-07-12 Thread Philip Thompson
Hi. This may or may not be a PHP question - I'll let the group decide. Note this URL: http://www.someplace.com/SomeDirectory/SomeFile compared to this URL: http://www.someplace.com/SomeDirectory/SomeFile.php Okay. How does one create the URL with no file extension? Is this done through

Re: [PHP] php personal project

2007-09-21 Thread Philip Thompson
On 9/21/07, Karl james [EMAIL PROTECTED] wrote: Team, I am in need of some help. I would love to get some assistance on this. I need to start creating a database for my website. This will be for a fantasy football league website. To store stats on the database for archive purposes,

Re: [PHP] MySQL and SESSIONs

2007-10-08 Thread Philip Thompson
On 10/5/07, Stut [EMAIL PROTECTED] wrote: Vo, Lance wrote: What's good for multiple webservers? thanks * DO NOT USE PERSISTANT CONNECTIONS * Minimise the amount of time you keep a database connection open during a request. Good logic/presentation separation helps a lot here. * Cache the

Re: [PHP] Sending lots of emails - 2 choices - choose the best one

2007-10-08 Thread Philip Thompson
On 10/7/07, Stut [EMAIL PROTECTED] wrote: Martin Zvarík wrote: Hello-- I want to send email to 100+ recipients. Two choices I thought of: 1) once call mail() and use BCC, but the negative of this method is that every recipient in BCC has header To same (so I used to put my email

[PHP] IIS 6 and php.ini not being friends

2007-10-10 Thread Philip Thompson
Hi. I have installed PHP ~ a dozen times on Windows and *nix systems, so I don't consider myself to be a newbie at this. However, I've run into a problem that I have run out of ideas. I have Google'd many sites and none of the suggestions provided worked for me. Specs: PHP 5.2.4 (Manual install)

Re: [PHP] IIS 6 and php.ini not being friends

2007-10-10 Thread Philip Thompson
migrating to Apache b/c I think IIS is playing mean games with me. Thoughts? Thanks, ~Philip Philip Thompson wrote: Hi. I have installed PHP ~ a dozen times on Windows and *nix systems, so I don't consider myself to be a newbie at this. However, I've run into a problem that I have run out

[PHP] IIS vs Apache

2007-10-11 Thread Philip Thompson
From this article http://blogs.iis.net/bills/archive/2007/05/07/iis-vs-apache.aspx written in May of this year, the author makes this comment about IIS and PHP: [snippet] If you're worried about IIS performance and reliability when running PHP vs. running on Apache, you're concerns are

Re: [PHP] exit and ob_*

2007-10-12 Thread Philip Thompson
development over to Win 2k3 running IIS6. Since then, several issues have cropped up. =/ Think this could be IIS-related? ~Philip On Fri, 2007-10-12 at 14:03 -0500, Philip Thompson wrote: Hi. This is weird. Here's my structure. I have an index.php file that just includes the content

Re: [PHP] exit and ob_*

2007-10-12 Thread Philip Thompson
On 10/12/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-10-12 at 14:30 -0500, Philip Thompson wrote: On 10/12/07, Robert Cummings [EMAIL PROTECTED] wrote: Have you checked your error log to see if there an error being generated that you can't see? Cheers, Rob

[PHP] exit and ob_*

2007-10-12 Thread Philip Thompson
Hi. This is weird. Here's my structure. I have an index.php file that just includes the content depending on what page the user is on. So, because of potential redirection from those sub-pages, I call ob_start() before any output (in index.php). I'm doing some testing and I'm wanting to see what

Re: [PHP] exit and ob_*

2007-10-12 Thread Philip Thompson
On 10/12/07, Andrew Ballard [EMAIL PROTECTED] wrote: On 10/12/07, Philip Thompson [EMAIL PROTECTED] wrote: I suppose this isn't a big deal during production, but during testing it's really frustrating. Does anyone have any suggestions as to why 'exit' is functioning (no pun intended

[PHP] please advise

2007-10-15 Thread Philip Thompson
Sorry... meant to send this to the list -- Forwarded message -- From: Philip Thompson [EMAIL PROTECTED] Date: Oct 15, 2007 9:47 AM Subject: Re: [PHP] please advise To: Louise Sanders [EMAIL PROTECTED] On 10/15/07, Louise Sanders [EMAIL PROTECTED] wrote: Hi There I am

[PHP] Parsing Strings

2007-10-15 Thread Philip Thompson
Hi. Before I try and reinvent the wheel, I thought I'd query the list. I want to take this string: thisIsAStringIHave and turn it into: This Is A String I Have Essentially, I want to capitalize the first letter (ucfirst) and then put a space in front of each uppercase letter. I didn't find a

Re: [PHP] Parsing Strings

2007-10-15 Thread Philip Thompson
On 10/15/07, Richard Heyes [EMAIL PROTECTED] wrote: Philip Thompson wrote: ... ?php $str = 'thisIsAStringIHave'; echo ucfirst(preg_replace('/([A-Z])/', ' $1', $str)); ? HTH Ha! I knew there was a much easier way. My brain is still not working this Monday morning

Re: [PHP] Which PHP-Editor to use?

2007-10-16 Thread Philip Thompson
On 10/16/07, Stut [EMAIL PROTECTED] wrote: Zoltán Németh wrote: 2007. 10. 16, kedd keltezéssel 04.59-kor mooor ezt írta: I recommed you Codelobster php edition. Very good free php editor. It reminds me a mix of Zend Studio and MS Visual Studio. If to the basic

Re: [PHP] Screenshot from web page

2007-10-16 Thread Philip Thompson
If you're not talking about automated screenshots, and you're using Windows, just press your PrtScr button. Hold down Alt as well to get just the active window. This will put the screenshot on to the clipboard, so you'll then need to paste it into paint or other such graphics program (PSP,

[PHP] Find PHP install directory

2007-10-16 Thread Philip Thompson
Hi. Is it possible to dynamically find where PHP is installed on a Win 2k3 machine running IIS? I am setting up a configuration page and I want to show where the install is - not change, just show. I have looked at phpinfo and $_SERVER information, but none of the information seems to jump

Re: [PHP] Find PHP install directory

2007-10-16 Thread Philip Thompson
On 10/16/07, Andrew Peterson [EMAIL PROTECTED] wrote: Hi Phill, Try using http://us2.php.net/ini_get_all or http://us2.php.net/ini_get On 10/16/07, Philip Thompson [EMAIL PROTECTED] wrote: Hi. Is it possible to dynamically find where PHP is installed on a Win 2k3 machine running IIS

Re: [PHP] Should I use an array in a form / how?

2007-10-16 Thread Philip Thompson
On 10/16/07, ron.php [EMAIL PROTECTED] wrote: I am programming a form this morning. I don't understand arrays really well. I think this is what I am needing to use, but I am really not sure. I have a PHP script that checks a POP e-mail address and is suppose to take the incoming message and

Re: [PHP] combining 2 arrays

2007-10-16 Thread Philip Thompson
On 10/16/07, Greg Donald [EMAIL PROTECTED] wrote: On Tue, 16 Oct 2007, Paul Scott wrote: You could try something like: $result[] = $arrayDB1; $result[] .= $arrayDB2; That .= doesn't do what you think it does when used with arrays. Take this same concept (of creating a new array) and

[PHP] p-s-e-x-e-c

2007-10-18 Thread Philip Thompson
Hi. I'm wanting to run an executable that generates a text file, and I'm having some issues. When I run the command on the server itself, it works just fine. When I run the same command via a webpage, the text file does not generate. My first impression was that the permissions were wrong. So, I

Re: [PHP] p-s-e-x-e-c

2007-10-18 Thread Philip Thompson
On 10/18/07, Instruct ICC [EMAIL PROTECTED] wrote: Hi. I'm wanting to run an executable that generates a text file, and I'm having some issues. When I run the command on the server itself, it works just fine. When I run the same command via a webpage, the text file does not generate.

Re: [PHP] Reference return buggy notice?

2007-10-19 Thread Philip Thompson
On 10/19/07, Stut [EMAIL PROTECTED] wrote: Ondra Zizka wrote: Hello, please look at the code bellow and tell if it does not conform to rules of returning a reference from a function. In the first method, I return reference to $sRet variable, and PHP is quiet. But in the second, PHP

Fwd: [PHP] Need a hint how to use an anker on the next page

2007-10-19 Thread Philip Thompson
-- Forwarded message -- From: Philip Thompson [EMAIL PROTECTED] Date: Oct 19, 2007 8:31 AM Subject: Re: [PHP] Need a hint how to use an anker on the next page To: Per Jessen [EMAIL PROTECTED] On 10/19/07, Per Jessen [EMAIL PROTECTED] wrote: Ronald Wiplinger wrote: I have

Re: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?

2007-10-19 Thread Philip Thompson
On 10/19/07, Robert Degen [EMAIL PROTECTED] wrote: Why don't you try a passthru('net apache restart') perhabs another parameter order, but I think It won't work. Stopping it might work, but restarting... On Fr, Okt 19, 2007 at 04:32:45 +0800, Louie Miranda wrote: Is it possible to

Re: [PHP] This, then that. [solved?]

2007-10-19 Thread Philip Thompson
On 10/19/07, Philip Thompson [EMAIL PROTECTED] wrote: On 10/19/07, tedd [EMAIL PROTECTED] wrote: Hi gang: I think I found a solution. Here's the url: http://www.webbytedd.com/bbb/image-test1/ The point is that the image is only accessible via this script, is this correct

Re: [PHP] Securing PHP

2007-10-22 Thread Philip Thompson
On 10/20/07, Grant [EMAIL PROTECTED] wrote: Hi all, You've all likely heard this beforeI was hacked... , Had register globals on... etc etc. Well, this is true of me as well. Does anyone know of a site that would help a semi professional lock down php, i.e. Perhaps how to install

Re: [PHP] problem with foreach

2007-10-22 Thread Philip Thompson
On 10/22/07, Adam Williams [EMAIL PROTECTED] wrote: I have an html page with checkboxes: form action=mailform2.php method=POST input type=checkbox name=option[] value=Modern MississippiModern Mississippibr Change to: input type=checkbox name=option[] value=... /...br/ Someone mentioned

[PHP] Multiple sessions

2006-07-12 Thread Philip Thompson
Hi. Is there a way to have multiple sessions open in one browser (specifically, Firefox or Safari)? For example, IE does not transfer session data from one window to another, however, Firefox does. So, if one user opens a session and then his/her friend wants to open a different session

[PHP] Lots of queries!

2006-07-25 Thread Philip Thompson
Hi all. I have a list of people in a database who live in particular rooms. Next semester, they may live somewhere else, so I need to update my database. (I know the data becomes stale, but not that often.) Here's what I'm doing to update: 1. Pull list of IDs from database A - store in

Re: [PHP] Lots of queries!

2006-07-25 Thread Philip Thompson
Well, we figured out. Jochem, thanks for your input... a few minutes too late! =D We discovered that it *was* timing out at 30 seconds, which is how it was set in the php.ini file. We upped that and now it works. THANKS!! ~Philip On Jul 25, 2006, at 3:34 PM, Jochem Maas wrote: Philip

[PHP] fsockopen error messages

2006-11-06 Thread Philip Thompson
Hi. I have not dealt much with fsockopen, but after looking at many examples, I'm not finding the answers I need. fsockopen is not returning anything and I'm trying to find out what the issue is. The error messages are not provided and I'm not sure what's going on. Help please! ? $fp =

Re: [PHP] fsockopen error messages

2006-11-06 Thread Philip Thompson
, November 6, 2006 2:58 pm, Philip Thompson wrote: Hi. I have not dealt much with fsockopen, but after looking at many examples, I'm not finding the answers I need. fsockopen is not returning anything and I'm trying to find out what the issue is. The error messages are not provided and I'm not sure

[PHP] cURL uses

2006-11-15 Thread Philip Thompson
Hi. I've been doing some reading trying to figure out why I would want to use cURL. I have not found a solid reason yet. Does anyone have a useful example on why you would want to use cURL? Thanks, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] IE, Word documents and Content Types

2007-01-03 Thread Philip Thompson
Hi. I have a form where a user can upload different types of documents. A valid file type they will be able to upload is a Word Document. However, when I view the $_FILES 'type' of a word document in Internet Explorer, it says it's type 'application/octet-stream' instead of

[PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
Hi. Does anyone know if the mssql_connect/_init/_bind/etc require a lot of overhead? I have a page that requires multiple function calls and each of those opens a new connection to the database, performs the necessary actions in stored procedure(s), and then closes the connection.

Re: [PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: Philip Thompson wrote: Hi. Does anyone know if the mssql_connect/_init/_bind/etc require a lot of overhead? I have a page that requires multiple function calls and each of those opens a new connection to the database, performs the necessary

Re: [PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
it once. Which sounds like what you're doing now. So was your question answered? Sounds like there's still some lingering questions or curiosities... -TG = = = Original message = = = On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: Philip Thompson wrote: Hi. Does anyone know

Re: [PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
Ok, just kidding. Thank you Jim and Jochem. You answered my question in your previous posts! Thanks to all! ~Phil On Jan 10, 2007, at 11:27 AM, Philip Thompson wrote: I just wanted to make sure that there is no speed decrease if I change from $_SESSION to $GLOBALS to hold my connection

[PHP] Stored Procedure returns nothing on ROLLBACK

2007-01-10 Thread Philip Thompson
Hi. I have been experiencing MSSQL woes lately. I have a stored procedure that I call in PHP using mssql_* functions. In my procedure, I have a transaction that rolls back on failure and commits on success (of course). If it commits, I get the proper return value (int) and the

Re: [PHP] Stored Procedure returns nothing on ROLLBACK

2007-01-11 Thread Philip Thompson
On Jan 10, 2007, at 6:36 PM, Chris wrote: Philip Thompson wrote: Hi. I have been experiencing MSSQL woes lately. I have a stored procedure that I call in PHP using mssql_* functions. In my procedure, I have a transaction that rolls back on failure and commits on success (of course

Re: [PHP] Stored Procedure returns nothing on ROLLBACK

2007-01-12 Thread Philip Thompson
On Jan 11, 2007, at 5:53 PM, Chris wrote: Philip Thompson wrote: On Jan 10, 2007, at 6:36 PM, Chris wrote: Philip Thompson wrote: Hi. I have been experiencing MSSQL woes lately. I have a stored procedure that I call in PHP using mssql_* functions. In my procedure, I have a transaction

Re: [PHP] storing / processing login info (newbie stuff not in tutorials)

2008-03-14 Thread Philip Thompson
On Mar 14, 2008, at 10:15 AM, tedd wrote: At 8:01 AM -0700 3/14/08, good_times wrote: 1. instead of typing: $conn=ocilogon(usrname,passwrd,db); can i save this info in a file and have my php script either include or call it when it needs to make a db connection? what would that look like?

Re: [PHP] Last Friday of every month

2008-03-14 Thread Philip Thompson
On Mar 13, 2008, at 8:12 PM, VamVan wrote: Can you tell me how to do this ? suppose I have a date variable = '02/23/2008' i need to know if this is the last friday of february let me know. There are plenty of ways. Here's a couple: OS X: 1. Finder Applications iCal (or Command-space

Re: [PHP] Last Friday of every month

2008-03-14 Thread Philip Thompson
On Mar 14, 2008, at 11:44 AM, Philip Thompson wrote: On Mar 13, 2008, at 8:12 PM, VamVan wrote: Can you tell me how to do this ? suppose I have a date variable = '02/23/2008' i need to know if this is the last friday of february let me know. There are plenty of ways. Here's a couple

Re: [PHP] __halt_compiler()

2008-03-18 Thread Philip Thompson
On Mar 17, 2008, at 10:34 AM, Mikey wrote: Shawn McKenzie wrote: Daniel Brown wrote: On Sun, Mar 16, 2008 at 4:18 PM, Casey [EMAIL PROTECTED] wrote: Hi list! __halt_compiler(). Does anyone use it? I've used it obsessively in my past two projects to store data (specifically CSV) in the PHP

Re: [PHP] Fastest way to get table records' number

2008-03-20 Thread Philip Thompson
On Mar 19, 2008, at 11:55 PM, Shelley wrote: Nathan Nobbe wrote: On Wed, Mar 19, 2008 at 9:42 AM, Andrew Ballard [EMAIL PROTECTED] wrote: That works; I'm just wondering why you went with a count on an 'ID' column rather than COUNT(*). ouch, it looks like im horribly wrong :O mysql

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Philip Thompson
On Mar 19, 2008, at 5:13 PM, George J wrote: Hi Jason, Hope this helps - my 'display_products.php' script -- form method='post' action='display_products.php' ... input type='hidden' name= 'query' value=$query input type='submit' Value='Go'/td ... // pagination routine conditional

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Philip Thompson
On Mar 20, 2008, at 12:05 PM, George Jamieson wrote: Hi Philip, Hope you don't mind me sending this to you direct. Thanks for the answer but... I'm sorry I don't follow you. My form sets up the query parameters. It works. My pagination code passes the page no. It works. What it doesn't

Re: [PHP] Convert html to pdf with php

2008-03-20 Thread Philip Thompson
On Mar 20, 2008, at 4:42 PM, Robert Burdo wrote: Does anyone know how to convert an HTML form to a pdf with php? Have you STFW? =D http://www.google.com/search?q=php+html+to+pdf I use dompdf. Unfortunately, the guy who created it isn't intending to upgrade it. Nonetheless, for most

  1   2   3   4   >