Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Stut
sts are more annoying than disclaimers. -- Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] writing a pdf file to the filesystem

2004-08-31 Thread Stut
_buffer($pdf); $fp = fopen('file.pdf', 'w'); if ($fp) { fwrite($fp, $data); fclose($fp); } else print 'Failed to open file for writing'; -- Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Closing my Window after Download

2004-08-31 Thread Stut
ted by the main window. If this is the case you could use Javascript to start the file downloading in the main window from the popup and then close the popup. e.g. opener.location.href = 'thedownload.file'; window.close();. This should work. -- Stut -- PHP General Mailing List (http

Re: [PHP] Re: Need direction on PHP-CLI MUD Server

2004-09-02 Thread Stut
p.net/manual/en/function.flush.php I always add the following line to the top of all my CLI scripts to turn off output buffering... while (@ob_end_flush()); -- Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for Validating URL

2004-09-02 Thread Stut
ick google (php regex validate url) found this... http://www.canowhoopass.com/guides/regex/ -- Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for Validating URL

2004-09-06 Thread Stut
you do a bit of research, try and solve it yourself and if you're still stuck post a question that gives all the relevant information so we can avoid wasting our "good intentions and precious time" (ta Jason :)). Anyway, back to my day job. Where did I leave my scythe... -- Stut

Re: [PHP] generating a mysql script

2004-09-20 Thread Stut
mysql manual. -- Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] while question

2008-11-17 Thread Stut
ually be empty. I would guess that your lecturers point is that you shouldn't call count on every iteration as it's a waste of time. He may also be confusing while for foreach in which case I'd leave because you're unlikely to learn anything from him. -Stut -- http:

Re: [PHP] while-question

2008-11-17 Thread Stut
); Elemental my dear Mr Rixham... function add($a , $b) { $answer = $a ^ $b; while (0 != ($a & $b)) { $b = ($a & $b) << 1; $answer = $answer ^ $b; } return $answer; } -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Experience (was: while-question)

2008-11-17 Thread Stut
n 1) don't ever expect a job from me, and 2) get over yourself and try living in the real world where the problem that matters more than the solution. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: anchor name on URL

2008-11-19 Thread Stut
ore and similar companies. It's unfortunate that Google stopped publishing their stats as those would probably be as accurate as they could get. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Invalid Arguements

2008-11-19 Thread Stut
nd it would be well- worth your while taking the time to get the basics before you do any flying. -Stut -- http://stut.net/ On Wed, Nov 19, 2008 at 8:51 AM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: Taking this back on-list... From: Terion Miller [mailto:[EMAIL PROTECTED] Sent

Re: [PHP] fread() behaviour

2008-11-20 Thread Stut
an check the incoming data for some terminating string. If not then you've got a problem that can't be reliably solved. You could mess around with the timeout and/or make use of functions like socket_select to check for waiting data, but what you'll end up with will be problematic

Re: [PHP] in_array breaks down for 0 as value

2008-11-20 Thread Stut
he array is evaluating to boolean FALSE and in_array returns TRUE. Use strict mode to work around this peculiarity. This only seems to occur when there is an integer 0 in the array. A string '0' will return FALSE for the first test above (at least in 5.2.6). So use strict

Re: [PHP] store class zithin session

2008-11-20 Thread Stut
red in the session along with the rest of the object. If you still can't get it to work after reading this, send us the code. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Invalid Arguements

2008-11-20 Thread Stut
88x31 and 300x250 120x240option> 940x30 - Pencil Ad but your saying it should be That's a single select field, why are you trying to implode it?? -Stut -- http://stut.net/ On

Re: [PHP] store class zithin session

2008-11-20 Thread Stut
aches work during the compilation phase, so any dynamic loading such as that provided by autoloaders cannot be optimised. This has been discussed in the past on this list, check the archives for more details. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] in_array breaks down for 0 as value

2008-11-21 Thread Stut
On 20 Nov 2008, at 23:09, Ashley Sheridan wrote: On Thu, 2008-11-20 at 09:25 +, Stut wrote: On 20 Nov 2008, at 06:55, Yashesh Bhatia wrote: I wanted to use in_array to verify the results of a form submission for a checkbox and found an interesting behaviour. $ php -v PHP 5.2.5 (cli

Re: [PHP] Displaying information from table graphically

2008-11-21 Thread Stut
rooms of any dimensions with any number of beds. Personally I'd opt for 2 based on the KISS principle, but you could potentially run into browser compatibility issues depending on your target platforms. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] in_array breaks down for 0 as value

2008-11-21 Thread Stut
On 22 Nov 2008, at 00:06, Ashley Sheridan wrote: On Fri, 2008-11-21 at 09:11 +, Stut wrote: On 20 Nov 2008, at 23:09, Ashley Sheridan wrote: On Thu, 2008-11-20 at 09:25 +, Stut wrote: On 20 Nov 2008, at 06:55, Yashesh Bhatia wrote: I wanted to use in_array to verify the results of a

Re: [PHP] Displaying information from table graphically

2008-11-22 Thread Stut
principle mentioned below stands for please? KISS === Keep It Simple, Stupid http://en.wikipedia.org/wiki/KISS_principle -Stut -- http://stut.net/ On 21 Nov 2008, at 17:55, [EMAIL PROTECTED] wrote: I have a PHP application that accesses data from MySQL. There is table called "rooms&quo

Re: [Fwd: Re: [PHP] Displaying information from table graphically]

2008-11-22 Thread Stut
lion times :) Since you would be using coordinates to composite the images, building an imagemap at the same time should be really simple. However, I'd still go with constructing the images in divs or a table due to the relative simplicity. -Stut -- http://stut.net/ On Sat, 2008-11-22

Re: [Fwd: Re: [PHP] Displaying information from table graphically]

2008-11-22 Thread Stut
d at least since IE5? Imagemaps have absolutely nothing to do with divs. I suggest you read this: http://www.elated.com/articles/creating-image-maps/ -Stut -- http://stut.net/ On 22 Nov 2008, at 16:23, [EMAIL PROTECTED] wrote: At least that eliminates GD as an option for this particular

Re: [PHP] Re: file_Exists() and case

2008-11-23 Thread Stut
rent case, surely you know the rules around how that works so you can build that logic in when checking for the existence of a file. Or maybe I'm missing something. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: file_Exists() and case

2008-11-23 Thread Stut
DOESN't exist. Please don't shout at me, it won't encourage me to help you further. I apologise for misunderstanding, I missed the start of this thread. The realpath function may be the answer to your problem but I don't have time to test it at the moment. -Stut -- http

Re: [PHP] Re: file_Exists() and case

2008-11-24 Thread Stut
w I can proceed to my next problem. You never answered one of my questions. Where are you getting $basePicture from? Why does it differ in case from the actual file on disk. If you ask me you'd be better off trying to resolve this problem further upstream at the point where the case g

Re: [PHP] Help with understanding an error

2008-11-24 Thread Stut
t a valid MySQL result resource. This is usually caused by an error in the SQL query. Check that. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Stut
I think the question you meant to ask was "Is it official?". The answer is no, it's just something that Dan knocked up, but that doesn't make it any less interesting. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Stut
On 24 Nov 2008, at 20:35, Ashley Sheridan wrote: On Mon, 2008-11-24 at 20:30 +, Stut wrote: On 24 Nov 2008, at 20:21, Ashley Sheridan wrote: On Mon, 2008-11-24 at 15:04 -0500, Daniel Brown wrote: On Mon, Nov 24, 2008 at 3:00 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: What e

Re: [PHP] why this code needs mysql.sock instead of mysqld.sock

2008-12-02 Thread Stut
On 2 Dec 2008, at 20:15, ann kok wrote: The location of the socket is compiled into the mysql lib. I believe it can be changed from php.ini - check the manual for details. If not then your easiest option is to create a symlink, or alternatively recompile the extension. -Stut -- http

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-05 Thread Stut
because it doesn't. Your control over the data starts when your server-side script is executed, not before. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] get calling function name

2008-12-09 Thread Stut
unc_caller(); } a(); where this would print the calling function is a (i made func_caller() up) I hope this is clear, and i hope there is a quick solution and i just can't find it in the documentation. http://php.net/debug_backtrace -Stut -- http://stut.net/ -- PHP General Mai

Re: [PHP] how to not show login info in the url ...what am I looking for?

2008-12-09 Thread Stut
header ("Location: Main.php?AdminID=". $row->AdminID); } else { $msg = "Invalid Login"; } } ?> No need to pass AdminID in the URL at all. Store that ID in the AdminLogin session variable instead of "OK" and you can get it from there o

Re: [PHP] file_exists and wildcard/regex

2008-12-09 Thread Stut
now. Use glob (http://php.net/glob) and get the size of the array returned. Note that if there could be thousands of matching files you may want to use opendir and readdir to look for matches instead. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Re: file_exists and wildcard/regex

2008-12-09 Thread Stut
and you do glob('*.txt') you'll get all .txt files in /var/www/htdocs. And if you do glob('/tmp/*.txt') you'll get all .txt files in /tmp. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] usort for sorting an array of objects

2008-12-10 Thread Stut
eate a function that compares two of the objects, in whatever way you need it to, and returns -1, 0 or 1. The pass that to the usort function - it doesn't care what type of thing is in the array. Full details available at http://php.net/usort. -Stut -- http://stut.net/ -- PHP Genera

Re: [PHP] how to not show login info in the url ...what am I looking for?

2008-12-10 Thread Stut
Please keep the discussion on the list, or offer me a contract. On 10 Dec 2008, at 14:29, Terion Miller wrote: On Tue, Dec 9, 2008 at 4:03 PM, Stut <[EMAIL PROTECTED]> wrote: On 9 Dec 2008, at 21:54, Terion Miller wrote: On Tue, Dec 9, 2008 at 3:49 PM, Stut <[EMAIL PROTECTED]> wro

Re: [PHP] how to not show login info in the url ...what am I looking for?

2008-12-11 Thread Stut
king the site" instead of "hacking the site". Hacking: Getting something to do something it was not designed to do. Cracking: Getting something to do something it was specifically designed to prevent. IMHO. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] error flashing on redirect

2008-12-17 Thread Stut
2008/12/17 Terion Miller : > I am working on the login script I have been troubling over, and when I hit > submit it throws an error and even though I have error reporting E_All on > because its on a redirect or something I can see the error for only a split > second so I can't catch it to figure i

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Stut
2008/12/19 David Robley : > Gary Maddock-Greene wrote: > >> Hi, Don't know if this is the right group but I am having real problems >> trying to connect to my MySQL db with php. I am trying to create a search >> form. I can connect and display in my browser a simple call to a db record >> but when

Re: [PHP] Re: HTTP Error 500 - IsapiModule

2008-12-19 Thread Stut
-Stuart -- http://stut.net/ > - Original Message - From: "Stut" > Newsgroups: php.general > To: > Cc: > Sent: Friday, December 19, 2008 11:58 AM > Subject: Re: [PHP] Re: HTTP Error 500 - IsapiModule > > >> 2008/12/19 David Robley : >>> &

Re: [PHP] PHP & podcasts

2006-12-27 Thread Stut
er. If I've misunderstood what you're trying to do, please elaborate. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP & podcasts

2006-12-27 Thread Stut
em without seeing some code and the XML feeds that the code is using. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with mysql_real_escape_string()

2006-12-28 Thread Stut
ts. All you need to do is make sure you connect to the mysql database before using mysql_real_escape_string. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread Stut
Le Phuoc Canh wrote: Can we use php to detect client screen resolution? Please help me ? No "we" can't. "You" need Javascript or another "client"-side technology for that. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please help me

2007-01-02 Thread Stut
is ignoring the headers and displaying the raw message. I'm gonna go with the former since hopefully you'd remember if you'd told your mail client to do the latter. -Stut On 1/2/07, zoticaic <[EMAIL PROTECTED]> wrote: -- > My Seeding Blog | http://bytes.nullp0in

Re: [PHP] Please help me

2007-01-02 Thread Stut
wo newlines between the MIME-Version header and the Content-Type header. This will cause the headers after MIME-Version to be ignored. -Stut On 1/2/07, *Stut* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Anju Prasad wrote: > I am doing that but still not getting a

Re: [PHP] Formatting time :/

2007-01-02 Thread Stut
mat called? http://php.net/date $time = date('H\hi', strtotime('00:00:00')); Or, if the input format is always the same, you could do it like so... $time = str_replace(':', 'h', substr('00:00:00', 0, 5)); -Stut -- PHP General Mailing List (ht

Re: [PHP] Concerning SSL

2007-01-02 Thread Stut
to put it another way, give us the real URL to your site and we may be able to help. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Stut
l take a moment and thank $DEITY that there is no "non-spam header". Anyway, moving on... Whether an email is marked as spam or not depends on a lot of factors. Check the archives - this has been discussed a few times in the past few months. -Stut Roman Neuhauser wrote: Surel

Re: [PHP] Port Block

2007-01-03 Thread Stut
hat is not the case, and your ISP has actually completely blocked outgoing connections on port 25, I suggest you find a new ISP. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Stut
a complex database ORM-HTML mapping app that was about 10% faster when I replaced all the "" strings with '' strings. This was on a slow machine with an early PHP, but little things like this can be very important. http://dev.stut.net/phpspeed/ -Stut -- PHP Genera

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Stut
Robert Cummings wrote: On Thu, 2007-01-04 at 10:15 +, Stut wrote: > Gregory Beaver wrote: >> This is a good example of how the flexibility of PHP can bite >> you, but is also a good example of how bad coding adds both >> complexity and inefficiency to the resulting

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Stut
the moment. It's a good idea though, if I get some time over lunch I'll add it. I had an eerie feeling I was being watched. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Stut
But combining the results of all requests over a fairly lengthy period will provide useful results. I'm not gonna get a chance to do anything with it today. I'll have a look tomorrow. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-04 Thread Stut
ations to get a better idea of the exact time. I was bored when I wrote it. Dunno what the other guys reasons are. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expression help

2007-01-04 Thread Stut
A-Za-z in sequence". If you want to check against the whole string you need to add the start and end markers... preg_match( '/^[A-Za-z]+$/', 'a1b2c3' )) Look at the manual page for preg_match and read up on the third parameter. Use it to see what is matching the expression. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem using PHP with Apache (probably something silly)

2007-01-04 Thread Stut
to manually fix this annoying problem? Reinstall everything. In my experience what you're seeing usually stems from mixing files from different PHP versions. Best advice I can give is to remove all traces of PHP from the machine and then put them back using the ZIP file from the PHP websi

Re: [PHP] Date problems

2007-01-04 Thread Stut
Beauford wrote: $query "select count(date) as count, YEAR(date) as thisyear from stats group ^ = needed here by thisyear"; -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] High-Level Design Question, Podcast, Playlists, Content-Rich

2007-01-05 Thread Stut
MP3. Yes you'll lose the individual tags, but you can associate each feed entry with a webpage (commonly called the shownotes) where you can provide the full ID3 tags for each individual source file and you'll have control over the order. -Stut First, let me say up-front, tha

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
If your PHP file is in a folder named code in the root, "../test_folder/text1.txt" should work. Also, depending on your PHP version you're probably better off using file_get_contents instead of fopen/fread/fclose. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's this image tag for?

2007-01-05 Thread Stut
ccount itself. Any thoughts, insights would be greatly appreciated. That's really a question for the ad company to answer according to their policy. You'll probably an answer in their instructions somewhere. We can't give you an authoritative answer on a specific company's

Re: [PHP] Some advice / points / help

2007-01-05 Thread Stut
hat you don't understand :-) Don't forget Google, your second best friend. Google for php mysql tutorial and you'll find a ton of stuff. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
ocess calling it. What kind of "root" are you talking about? The filesystem root, "/"? The OP referred to the "servers root folder". Now stop nit-picking and go back to quoting standards. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
nt directory the directory that contains the script being requested. I am assuming that the OP is trying to access the file from the script that is being requested and not an included file in a different directory - I should have been clearer on that. I never said anything about being relative

Re: [PHP] Re:[PHP]clases en sesiones

2007-01-05 Thread Stut
I think Jochem may be on to something with the idea of using auto_prepend_file but I can't say for certain whether this is done before or after the auto_start. If it is before then you could declare the __autoload function in the prepended file and it should work. -Stut -- PHP Gener

Re: [PHP] Re:[PHP]clases en sesiones

2007-01-05 Thread Stut
Richard Lynch wrote: On Fri, January 5, 2007 4:36 pm, Stut wrote: Richard Lynch wrote: WILD GUESS Search on php.net for __autoload I think that will let you figure out a way to get the auto_start session to automatically load your .class.php files, when it needs them. Nice idea

Re: [PHP] convert w date to l format

2007-01-06 Thread Stut
y', 3 => 'Wednesday', 4 => 'Thursday', 5 => 'Friday', 6 => 'Saturday', 7 => 'Sunday'); $day = $days[$day]; -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Domain Search

2007-01-09 Thread Stut
Marcelo Ferrufino Murillo wrote: I have to make a domain search so I don“t know if there is an API or something that could help me in this o if you know how I could make this. What do you mean by a domain search? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Please Help with simple Noob problem

2007-01-11 Thread Stut
d the manual (yes, there is a manual: http://php.net/install.unix.apache2) for specific instructions, but your httpd.conf needs at least the following two lines (paths on your system may differ)... LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php .phtml -Stut --

Re: [PHP] Please Help with simple Noob problem

2007-01-11 Thread Stut
t; AddType application/x-httpd-php-source .phps > AddType application/x-httpd-php .phtml I then restarted apache (service httpd restart) and tried viewing the pages again; same outcome. Check the Apache error log - I'm guessing it's failing to initialise the PHP module. -Stut O

Re: [PHP] Downloading a binary file

2007-01-11 Thread Stut
This particular topic is covered *a lot*. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Downloading a binary file

2007-01-11 Thread Stut
estion for the tenth time this month. That's all I'm saying. -Stut -----Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 3:03 PM To: Sugrue, Sean Cc: php-general@lists.php.net Subject: Re: [PHP] Downloading a binary file Sugrue, Sean w

Re: [PHP] apache and include

2007-01-12 Thread Stut
the menu should be. I have error_reporting = E_ALL switched on in the .ini Any ideas? Check that the display_errors option is on. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forms and destroying values

2007-01-12 Thread Stut
n hitting the server again. Hope that makes it clearer. -Stut -Original Message- From: Satyam [mailto:[EMAIL PROTECTED] Sent: January 12, 2007 8:21 AM To: Beauford; PHP Subject: Re: [PHP] Forms and destroying values This issue comes over and over again. The trick, as I learned from t

Re: [PHP] Updating episode info on podcasts?

2007-01-12 Thread Stut
en it changes. I'm wondering if anyone on the list has dealt with this kind of thing and what kind of strategies were employed. That's basically it. I'm assuming that you're only storing the data for each feed once even if several users are subscribed to it. -Stut --

Re: [PHP] Updating episode info on podcasts?

2007-01-12 Thread Stut
Please keep it on list so others can benefit from the discussion. Skip Evans wrote: Stut wrote: A well-formed feed should have a TTL value that defines how often the feed should be checked. I thought there might be something like that and looked at several of the feeds in the DB and found

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-16 Thread Stut
() function says as much (http://php.net/header), you read that right? http://www.example.com/";); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?> -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Scope of include

2007-01-18 Thread Stut
$foo = 'foo'; Then it's scope is the function including the file. It's important to have this clear in your head when dealing with included files, so I wrote an example that will hopefully demonstrate it for the OP... http://dev.stut.net/php/scope/ -Stut --

Re: [PHP] Request for...

2007-01-20 Thread Stut
you didn't find a ton of relevant results, just how dumb are you? -Stut Easily annoyed today. Must be a Saturday, I never could get the hang of Saturdays. [Doug is dead, long live Doug!!] Ramble ramble ramble. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] most powerful php editor

2007-01-20 Thread Stut
hell of a lot of fun!! Or did you mean a different kind of powerful? -Stut PS: If you think it's a common question, search the list archives before posting. Actually, before you post any question you should search the list archives. And Google. And your brain. And down the back of the sofa

Re: [PHP] Re: socket_write buffer problem

2007-01-22 Thread Stut
} Your problem is that you made lazy assumptions, and we all know that assumptions are the mother of all fsckups. Now please irradiate your hands and try again. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: socket_write buffer problem

2007-01-22 Thread Stut
here as you have no idea what I have tried. While I appreciate help I believe your response was rude and not very helpful to a newbie to PHP. I apologise if you took my response to be rude, that was not my intention. As I said before, if you want help you need to give us accurate information. We&

Re: [PHP] Parsing AJAX post data -- The Way

2007-01-25 Thread Stut
ing in the form format (var1=val2&var2=val2). -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php code to upload a url correctly

2007-01-26 Thread Stut
nge cases where someone might enter example.com/jumpto?url=http://othersite.org/, in which case do the check up to the first '.'. if (false === strpos(substr($url, 0, strpos($url, '.'), '://')) { $url = 'http://'.$url; } I don't have nu

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-26 Thread Stut
ql_real_escape_string($values[$key]); $sql = 'insert into `'.$table.'` (`'; $sql.= implode('`,`', array_keys($values)); $sql.= '`) values ("'; $sql.= implode('","', array_values($values)); $sql.= '")'; return $sql; } Note that this is a *very* cut down and untested version of BuildInsert. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Socket problem

2007-01-30 Thread Stut
z ask for more infomation. No thanks, I'm good. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Socket problem plz read.

2007-01-31 Thread Stut
ms. But before you do that, make sure the Python side is right, for which you'll need a Python mailing list. -Stut # Set the socket parameters host = "http://localhost/in/sql.php"; port = 1 buf = 1 addr = (host,port) # Create socket UDPSock = socket(AF_INET, SOCK_DGR

Re: [PHP] Login script login

2007-02-02 Thread Stut
die('Unable to locate customer/user/whatever'); } // Set up the session here, or however you're tracking the // current customer/user/whatever header('Location: /somewhere_else'); ?> Hope that helps. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login script login

2007-02-02 Thread Stut
part of the site. Having it happen again because of the user refreshing the page needs to be avoided. The redirect accomplishes this. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read file on file system

2007-02-04 Thread Stut
post, and reading the output you're seeing, I have determined that... ahh, hang on a second, I've started seeing code where no code exists. Is that a bad thing? Should I see someone? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Peristent Listen over an HTTP connection

2007-02-04 Thread Stut
t the socket or stream functions. If that is the case then I don't see where the "Client Browser" comes into it. Please elaborate further on what you are actually trying to accomplish. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read file on file system

2007-02-04 Thread Stut
ry this... ...and nothing else. Do you get any errors? Are errors turned on in php.ini? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read file on file system

2007-02-04 Thread Stut
Stut wrote: $filenane = "d:\\test.csv Oops... $filename = "d:\\test.csv"; -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Peristent Listen over an HTTP connection

2007-02-04 Thread Stut
connection but use the existing TCP connection. Ok, couple of questions... 1) Why? 2) Why? What is making these connections from the client side? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Peristent Listen over an HTTP connection

2007-02-04 Thread Stut
Jiffy Slides Leonard Burton wrote: XAJAX or another AJAX library, perhaps? Sorry, I missed a question. 3) Why do you need to use the same TCP connection? -Stut On 2/4/07, Stut <[EMAIL PROTECTED]> wrote: chetan rane wrote: > i want to write a script > where , when ny client req

Re: [PHP] Peristent Listen over an HTTP connection

2007-02-04 Thread Stut
versa i think this makes it clear. OK, so you're basically making a server app. I suggest you start here: http://php.net/stream-socket-server -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] who is online?

2007-02-05 Thread Stut
her way this is not a question for a PHP list because it relates to client-side code. Google will almost certainly have several useful sites. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] who is online?

2007-02-05 Thread Stut
to another page? The bottom line is that this needs some client-side code to work, whether it be Javascript or just an iframe with a meta refresh tag. -Stut - Original Message ----- From: "Stut" <[EMAIL PROTECTED]> To: "benifactor" <[EMAIL PROTECTED]> Cc

Re: [PHP] PHP5 & Commercial Development

2007-02-05 Thread Stut
cessary". It is perfectly fine to use it in a commercial environment however. I feel the same way about cars. There are some terrible drivers out there, so we should all take the bus. Won't work. There are some *really* terrible bus drivers out there. -Stut -- PHP General Mailing List

  1   2   3   4   5   6   7   8   9   10   >