Re: [PHP] Re: php and caching

2002-11-24 Thread Robert Cummings
Ernest E Vogelsinger wrote: > > At 22:38 24.11.2002, Alex said: > [snip] > >But my main page, for instance mail.php, includes top.php and bottom.php. > >But top.php must be processed each time because it prints on every page on > >my site if the user has ne

Re: [PHP] Re: php and caching

2002-11-24 Thread Robert Cummings
Ernest E Vogelsinger wrote: > > If you read my complete post you'll notice that I suggested using session > variables. The issue why I first answered the question _without_ talking > about session variables is the fact that Alex was talking about a search > form. Search forms are often used on "no

Re: [PHP] Is it possible to do this in PHP ? If it is then, how ?

2002-11-27 Thread Robert Cummings
Axis Computers wrote: > > Hi, > > I was wondering if this is possible to in PHP ... I am developing an > application for a pizza place, where touch typing interface is much faster > than using the mouse, so I was wondering if I can develop an interface with > a calculator style keypad, and the co

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread Robert Cummings
Chris Hayes wrote: > > At 23:09 9-2-2003, you wrote: > >you may find the following link interesting > >http://www.tek271.com/articles/JavaOrPhp.html > > > >David Eisenhart > I cannot suppress the feeling that someone out there has a slight prejudice > in favour of Java! God yes, the guy seems to

Re: [PHP] long running PHP application

2003-02-16 Thread Robert Cummings
I run a fantasy MUD and I have a PHP based daemon which checks for in game player mail and if found and the player has registered an email address, then it sends the MUD mail out to the player's email address. The program wakes up once a minute to check the database and then goes back to sleep. It'

Re: [PHP] Sitewide Header & Footer Includes || Trouble with Relative Paths..........

2003-02-22 Thread Robert Cummings
I don't know if it helps... but you should take a look at the ini_set() function. Perhaps you can set the appropriate stuff using that. Cheers, Rob. CF High wrote: > > Hey Tom. > > Thanks for the idea; however, since we're not hosting the site on our own > server, we don't have permissions for

[PHP] A question of time...

2003-03-10 Thread Robert Cummings
hours, otherwise I would like to take comfort that I am not ripping them off. Sincerely, Robert Cummings -- .-. | Worlds of Carnage - http://www.wocmud.org | :-: | Come visit a world of myth and legend where

Re: [PHP] A question of time...

2003-03-10 Thread Robert Cummings
"CPT John W. Holmes" wrote: > > [snip] > > If it turns out that I am incompetent, then I will happily send them a > > bill for zero hours, otherwise I would like to take comfort that I am not > > ripping them off. > > Just my humble opinion, of course, but I think you did the job quickly > co

Re: [PHP] ^M in PHP

2003-03-13 Thread Robert Cummings
I know there's a binary for doing exactly that in linux but I can't for the life of me remember the name. If you're text editor is any good you should be able to do a search and replace for "\r" with "". I use joe, but that's hardly the editor of choice for most. Cheers, Rob. Liam Gibbs wrote: >

Re: [PHP] Do query strings get spidered by Google?

2003-03-16 Thread Robert Cummings
I don't think Google follows URLS to every variation based on a query string. I know to have some of my pages indexed I had to rewrite the URL so the query string looked like a directory path. Cheers, Rob. -{ Rene Brehmer }- wrote: > > Judging from how Google has indexed my site, it simply follo

Re: [PHP] Snarl, hiss, growl (frustration)

2003-07-04 Thread Robert Cummings
On Fri, 2003-07-04 at 12:44, Rasmus Lerdorf wrote: > The difference is that you are getting a string from the file and not > casting it to an integer. You could also have fixed it by doing: > > $counter = (int) fread(...); The cast isn't necessary, PHP happily transforms it for him when he app

Re: [PHP] Snarl, hiss, growl (frustration)

2003-07-04 Thread Robert Cummings
On Fri, 2003-07-04 at 13:13, Rasmus Lerdorf wrote: > On Fri, 4 Jul 2003, Robert Cummings wrote: > > > On Fri, 2003-07-04 at 12:44, Rasmus Lerdorf wrote: > > > The difference is that you are getting a string from the file and not > > > casting it to an integer. Y

Re: [PHP] does anyone know how to tell if a PHP scrip is beingexecuted from the command line not a server HTTP request??

2003-07-06 Thread Robert Cummings
I don't know if it is a great way, but it has worked for me for a long time now. I make the following test: isset( $HTTP_SERVER_VARS['SERVER_PORT'] Cheers, Rob. On Sun, 2003-07-06 at 04:48, Jeffrey D. Means wrote: > I am trying to write a script but for security I need to verify that it is >

Re: [PHP] [ML] Are there any announcement rules for this list? (wasRe: [PHP] Re: NEW SPAMMER ...)

2003-07-08 Thread Robert Cummings
Personally I like to hear about new releases of PHP related products here too. For how often it occurs, I can't see how 1 in 80 emails a day is really going to impact the list. Especially since 10 to 20 emails are generated in support or indignation for such announcements :) +1 Cheers, Rob. On T

Re: [PHP] Need hep with mysql function

2003-07-10 Thread Robert Cummings
This has been discussed a lot on many of the PHP forums in the past few weeks. Mysql is not longer bundled with PHP. You need to use the configuration option and set the location of your mysql base directory. Cheers, Rob. On Thu, 2003-07-10 at 21:30, zlut arch wrote: > Hi, > > I encountered a pr

Re: [PHP] Code and Good Design Methods

2003-07-13 Thread Robert Cummings
Let's be honest, XSL is is one big logic step itself -- moreover it's a whole other language to learn. Cheers, Rob. On Sun, 2003-07-13 at 02:07, Ray Hunter wrote: > Also u could build your own system that is php xml and xslt based. That > will really help you separate the logic from the presentat

Re: [PHP] Passing $Vars between 2 php pages

2003-07-16 Thread Robert Cummings
Use the GET method (URL parameters). If you want to pass (foo=5) then do the following: A link label Cheers, Rob. On Wed, 2003-07-16 at 12:44, Valentin wrote: > Hi, > is any way to pass a $Var from one to other php pages without using > and Cookies? > > Thanks, > > > > > -- > PHP Genera

[PHP] Test (ignore)

2003-07-16 Thread Robert Cummings
Some of my mail hasn't appeared on list for a while, just testing if connection is working. IGNORE THIS MESSAGE :) -- .-. | Worlds of Carnage - http://www.wocmud.org | :-: | Come visit a world of myth and l

Re: [PHP] Too much of $GLOBALS[] a problem??

2003-07-17 Thread Robert Cummings
Rather than having the following scenario: $GLOBALS['foo'] = 'foo'; $GLOBALS['fee'] = 'fee'; The following would be much cleaner and portable while still allowing the ease of use of $GLOBALS based configuration: $GLOBALS['myProjectName']['foo'] = 'foo'; $GLOBALS['myProjectName']['fee'] = 'fee';

Re: [PHP] classes v. functions

2003-07-18 Thread Robert Cummings
On Fri, 2003-07-18 at 18:19, Andu wrote: > > Say I have a database class with all kinds of functions for connection, > data manipulation, errors, etc: > > $db = new db_sql; > $db->connect(); > $db->do_this(); > $db->do_that(); > > How would that be different from an include file with a bunch of

Re: [PHP] Re: classes v. functions

2003-07-20 Thread Robert Cummings
On Sun, 2003-07-20 at 02:28, Andu wrote: > > One shouldn't apply industrial theories to just everything. > Object Oriented Design is not an industrial theory. It's a tried and true practice with over a decade of computer science and practical use behind it. Procedural programming is a subset of

Re: [PHP] controlling winamp with COM

2003-07-21 Thread Robert Cummings
Depending on exactly how you intend to use this technology there are several ways to go about it. One is to create a PHP C extension that you compile into the PHP engine itself -- this I imagine can hook into the API to control the open application. Then you can choose to use these new extension fu

Re: [PHP] bug in addslashes command?

2003-07-22 Thread Robert Cummings
I recently upgraded from 4.1.2 all the way to 4.3.2 without a single bump -- your experience may vary :) Cheers, Rob. On Tue, 2003-07-22 at 16:11, Merlin wrote: > there is definatelly a bug in 4.2.1 since this sentence: > > Argostoli is the 'capitol' of Kefalonia / Kefallinia. One of the Greek >

Re: [PHP] USB Hard Drive

2003-07-23 Thread Robert Cummings
On Wed, 2003-07-23 at 12:49, Digital Directory USA, Inc wrote: > I need to get a USB Hard Drive to "Auto Run" a flash movie when plugged > into a USB port on all platforms of a PC (Win98, 2000, XP, ME). Can ^^^ Off Topic but I must prote

RE: [PHP] I'm really getting annoyed with PHP

2003-07-23 Thread Robert Cummings
On Thu, 2003-07-24 at 23:24, Beauford.2005 wrote: > It's obvious though that PHP can not handle it. This is why I am forced > to use javascript. I have already spent a week on this and am not going > to waste any further time. I have posted all my code and if someone can > see a problem I'll look a

RE: [PHP] PHP should know my data!

2003-07-24 Thread Robert Cummings
Unfortunately I don't think some people "got" the joke. Next thing you know their going to complain that PHP should have told them the punchline ;) Cheers, Rob. On Thu, 2003-07-24 at 18:17, Chris Hubbard wrote: > Now this is funny. John, you've captured the irony of a number of recent > posts.

Re: [PHP] How is this possible?

2003-07-27 Thread Robert Cummings
ASP merely outputs HTML. His table is basic HTML dynamically rendered perhaps by an ASP component. This is also trivial to do in PHP. Cheers, Rob. On Sun, 2003-07-27 at 18:38, Ryan A wrote: > Hi, > I am trying to get my data into a very similar layout as this: > http://hostfilter.com/ComparePlan

Re: [PHP] Stop neurotic posting

2003-08-07 Thread Robert Cummings
On Wed, 2003-08-06 at 16:36, Chris Sherwood wrote: > > or what does it take to actually give a reasonable answer... if I am gonna > be rude I wont say anything... doesnt any one remember their mother telling > them if you dont have anything nice to say dont say anything at all? > That kind of t

Re: [PHP] Correct Coding

2003-08-07 Thread Robert Cummings
Looks good. Cheers, Rob. On Thu, 2003-08-07 at 13:09, Christopher J. Crane wrote: > Is this the best way to do this? > > if(isset($Task) && $Task == "Add") { Do something } > > I want to check if the variable is set and if so, if it is "Add". > > > > > -- > PHP General Mailing List (http:/

Re: [PHP] detecting referer

2003-08-08 Thread Robert Cummings
You can get referrer information from the following: $_SERVER['HTTP_REFERER'] This isn't foolproof though since the user can usually set in their browser whether to have this information sent. Cheers, Rob. On Thu, 2003-08-07 at 11:59, Creative Solutions New Media wrote: > Hello, > > Bit of

Re: [PHP] Question on class syntax

2003-08-09 Thread Robert Cummings
The :: operator is used to access a static class method. In other words you can use the class method without creating an instance of the class. Alternatively you could have used the following less effcient syntax: $cleaner = new htmlcleaner(); $value = $cleaner->cleanup( $value ); Cheers

Re: [PHP] htmlspecialchars() and HTML code

2003-08-10 Thread Robert Cummings
You're safe because when you apply htmlentities() these will be doubly marked up. So if the file contains "&" then the browser will receive "&". HTH, Rob. On Fri, 2003-08-08 at 11:57, Thaddeus J. Quintin wrote: > CPT John W. Holmes wrote: > > > Try this: > > > > This is text >

Re: [PHP] Container Functions Continued.....

2003-08-11 Thread Robert Cummings
On Sun, 2003-08-10 at 18:04, Mike Morton wrote: > Thanks to everyone who responded to me so far, but I fear that I have not > explained myself too clearly. > > First of all, I understand the argument about having a testing, development > and live servers, however, in the real world not every clien

RE: [PHP] Freelance code optimizations

2003-08-11 Thread Robert Cummings
which over a large loop can produce noticeable results. Cheers, Rob. On Mon, 2003-08-11 at 14:06, Chris W. Parker wrote: > Robert Cummings <mailto:[EMAIL PROTECTED]> > on Monday, August 11, 2003 10:55 AM said: > > > Or are you mistaken in assuming the > > following

Re: [PHP] PHP - Interpreted or Compiled Language

2003-08-14 Thread Robert Cummings
While is is true that the opcodes cannot be run as machine code, the opcode (bytecode) can be run on any machine which has the PHP engine (or an opcode reader). Does Java not call itself a compiled language? If so then the simple addition of PHP Accelerator, or Zend Accelerator should be sufficient

Re: [PHP] PHP Session Problem!.....urgent!

2003-08-14 Thread Robert Cummings
The root of your problem is that sessions generally do not traverse multiple domains. A possible solution is to embed an image in each of the servers which references a PHP script in the other server, and while doing so passes the sessionID along. On server abc.foo.org you might have the following

Re: [PHP] Correct Coding

2003-08-14 Thread Robert Cummings
That can generate an error if $Task was never assigned a value. Cheers, Rob. On Thu, 2003-08-07 at 13:17, Juan Nin wrote: > > Is this the best way to do this? > > if(isset($Task) && $Task == "Add") { Do something } > > I want to check if the variable is set and if so, if it is "Add". > > why do

RE: [PHP] Stop neurotic posting

2003-08-14 Thread Robert Cummings
On Wed, 2003-08-06 at 15:45, Chris W. Parker wrote: > > The reason I noted google didn't know what the heck I was talking about > was because we're assuming the person asking the question (who btw is > not me) wouldn't be able to come up with "php find a string in a > string". That's the whole poi

RE: [PHP] Stop neurotic posting

2003-08-14 Thread Robert Cummings
Your example is ridiculous -- it looks like you want a search egnine to properly phrase the question for you. This works and is more concise and clear: php find a string in a string Really, I don't think people should be using the mailing list in lieu of purchasing a book on PHP or reading one of

RE: [PHP] How to point at a spot and get relevant information?

2003-08-14 Thread Robert Cummings
Since PHP plots the data according to the information in the database then you know about where the data is located in the image. If PHP works on a single plot coordinate then you need to increase the acceptable clickable region and use this to find your point (otherwise people will need to click o

Re: [PHP] Hitler and Recent Threads

2003-08-14 Thread Robert Cummings
s about religion or politics, is not going to change > anyone's mind. And as they say, "Never argue with a fool. People will > not be able to tell the differnce." > > > > --- Robert Cummings <[EMAIL PROTECTED]> wrote: > > Godwin's law in no w

Re: [PHP] delete line

2003-08-14 Thread Robert Cummings
If your file isn't too large then you can use: $lineArray = file( $pathToYourFile ); unset( $lineArray[$lineNum - 1] ); if( ($fl = fopen( $pathToYourFile, "w+" )) !== false ) { foreach( $lineArray as $line ) { fputs( $fl, $line ); } fcl

Re: [PHP] Correct Coding

2003-08-14 Thread Robert Cummings
You can -- but correct me if I'm wrong -- won't that possibly cause an exception to fire which could be extremely heavy if a custom exception handler is implemented? Cheers, Rob. On Thu, 2003-08-07 at 13:35, skate wrote: > > > > That can generate an error if $Task was never assigned a value. >

RE: [PHP] How to point at a spot and get relevant information?

2003-08-14 Thread Robert Cummings
blem correctly. Cheers, Rob. On Thu, 2003-08-07 at 11:59, Yao, Minghua wrote: > Robert and skate, > > Thank you for your reponses. The problem is there are thousands of spots on > the plot. > The locations are random. > > -MY > -Original Message- > From: R

RE: [PHP] Freelance code optimizations

2003-08-14 Thread Robert Cummings
I've never seen a "comma" concatenation operator in PHP and the following when cut and paste to a test PHP script generates a parse error under PHP 4.3.2. Could you elaborate on this operator? Is it part of the PHP 5 engine? Or are you mistaken in assuming the following works when perhaps you use t

Re: [PHP] Hitler and Recent Threads

2003-08-14 Thread Robert Cummings
Godwin's law in no way states that that the argument has been lost. Only that the thread has outlived it's usefulness. Unfortunately your invocation of Godwin's law forces it to fall under Quirk's exception which generally makes you the fool. Cheers, Rob. On Wed, 2003-08-06 at 23:11, Mark wrote:

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Robert Cummings
> is this reasonable behaviour? does it portray us as adults, maybe adults who > have a major chip on our shoulders... all I am saying is if you feel nasty > ... keep it to yourself > > now how does that equate to being like or bringing back hitler? > > > - Original Mes

Re: [PHP] Freelance code optimizations

2003-08-14 Thread Robert Cummings
Comparison to a variable is expectedly slower since the engine must perform a lookup into the running script's variable list. Since a constant doesn't require a lookup it's access time is O( 1 ) whereas the lookup of a variable will lie someplace between O( 1 ) and O( lg n ) depending on the algori

RE: [PHP] Freelance code optimizations

2003-08-14 Thread Robert Cummings
On Mon, 2003-08-11 at 13:29, Chris W. Parker wrote: > > * while loop > > $ctr = 0; > $val = 0; > while($ctr<10) > { > $val++; > $ctr++; > } > > ** for loop > > $val = 0; > for($ctr=0;$ctr<10;$ctr++) > { > $val++; > } > I get the following results (very consistently +

Re: [PHP] Forms

2003-08-14 Thread Robert Cummings
If I understand your question correctly it sounds like you want to populate a database on Server A with data residing in a database on server B via a form hosted on server A *grin*. Obviously this is tedious, and if there are a lot of entries then I would suggest writing a script to populate and su

Re: [PHP] global scope issue

2003-08-14 Thread Robert Cummings
The script below works fine for me. Do you have track_vars set to "On"? I'm not 100% sure it's related, but it might be since I don't have any problem with your sample script. Cheers, Rob. On Wed, 2003-08-13 at 10:26, Shawn McKenzie wrote: > I'm having problems using global vars. I have read th

Re: [PHP] Forms

2003-08-14 Thread Robert Cummings
data = ''; if( !$fp ) { echo "Error: $errstr ($errno)\n"; } else { fputs( $fp, $header ); while( !feof( $fp ) ) { $data .= fgets( $fp, 128 ); } fclose( $fp );

Re: [PHP] How to point at a spot and get relevant information?

2003-08-14 Thread Robert Cummings
ou should be able to use an image map form input widget to get the coordinates that the user selects from some image you display to them. Then the determination of relevant information can occur server side via PHP. I don't have experience with this, but it appears to be how mapquest works: http:/

[PHP] Discussion: do you consider null a value or strictly a type?

2003-08-17 Thread Robert Cummings
There has been a recent thread on the internals list as to the meaning and usage of the "null" datatype. Zeev claims, perhaps rightly so, the following: Zeev wrote: > > null is not a value, was never meant to be a value, and won't be a > value Interestingly though, the PHP documentation at h

RE: [PHP] READ RECEIPTS [WAS: $GLOBAL question]

2003-08-18 Thread Robert Cummings
This is pretty off topic -- but most clients also let you refuse to send receipts automatically -- which is how I deal with them. Cheers, Rob. On Mon, 2003-08-18 at 17:04, Dan Anderson wrote: > > p.s. Is there not an option on your mail reader to automatically send > > read receipts? I mean, can'

Re: [PHP] CHAT about PHP

2003-08-20 Thread Robert Cummings
On Wed, 2003-08-20 at 11:11, Curt Zirzow wrote: > * Thus wrote Damian Brown ([EMAIL PROTECTED]): > > www.phpexpert.org > > Programming Help > > and General Programming Topics > > Is this a joke? Looks like an email harvester. Why does it need an email address? Cheers, Rob. -- .-

Re: [PHP] Re: back button and forms

2003-08-20 Thread Robert Cummings
GET method has restrictions -- you are only guaranteed proper handling of the first 1024 (or some such limit) after which the behaviour is considered undefined. Thus using the GET method is generally only feasible for small forms. Cheers, Rob. On Wed, 2003-08-20 at 14:08, rush wrote: > "Tim Wint

Re: [PHP] in the middle of shift and pop

2003-08-20 Thread Robert Cummings
On Wed, 2003-08-20 at 23:38, Jaap van Ganswijk wrote: > > Finding a single element in a doubly linked list can > be sped up using a hash-code table, but it also > makes things like renumbering numerically indexed > entries a lot harder (I think, I never used a > combination of these things.) Doub

[PHP] Test

2003-08-21 Thread Robert Cummings
Please ignore -- I haven't been able to post lately. -- .-. | Worlds of Carnage - http://www.wocmud.org | :-: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | |

Re: [PHP] Newbie Question

2003-08-21 Thread Robert Cummings
Even if they do know about it, it's functionality conforms to what they said you can do: use SQL statements within a PHP page to load the data *grin*. Cheers, Rob. On Thu, 2003-08-21 at 14:53, Curt Zirzow wrote: > * Thus wrote Phil King ([EMAIL PROTECTED]): > > Hi Robbert, > > > > I beleive my I

Re: [PHP] Re: google style paginating

2003-08-21 Thread Robert Cummings
Ummm I wouldn't do what these guys suggest (at least not all of it)... perform two queries, one counting the total number of returns the other to actually get the subset. Don't retrieve ALL the queries then only display a subset. Otherwise what's the point of using the LIMIT clause for conservation

Re: [PHP] isset bug?

2003-08-22 Thread Robert Cummings
This should help: http://www.php.net/manual/en/function.array-key-exists.php Cheers, Rob. On Fri, 2003-08-22 at 13:26, Curt Zirzow wrote: > * Thus wrote Christian Calloway ([EMAIL PROTECTED]): > > Ok, here's the deal. I like to use $_GET and $_POST variables without values > > to notify my

Re: [PHP] Clean Up the sand box time

2003-08-22 Thread Robert Cummings
Absolutely, the best way *tongue in cheek* is to format as follows: $news = mysql_query($sql) or die( print "document.write(\"".mysql_error()."\");"); $found = 0; while( $mydata = mysql_fetch_object( $news ) ) { if( $getaddr == $mydata->IPAddress ) { $found = 1; } } if( $foun

RE: [PHP] anyone have any idea as to how to display a message aftera page has started loading??

2003-08-22 Thread Robert Cummings
Also make sure you don't have output buffering or compression on for the page in question. Cheers, Rob. On Fri, 2003-08-22 at 16:42, Dan Joseph wrote: > Hi, > > > I am looking for a way to say please wait generating thumbnails... while > > actually doing so. I have tried calling the JavaScript

Re: [PHP] Re: google style paginating

2003-08-22 Thread Robert Cummings
t; > > Chris W. Parker wrote: > > Robert Cummings <mailto:[EMAIL PROTECTED]> > > on Thursday, August 21, 2003 4:46 PM said: > > > > > >>Don't retrieve ALL the queries then > >>only display a subset. Otherwise what's the p

Re: [PHP] Using PHP to get size of mySQL data?

2003-08-22 Thread Robert Cummings
Untested, but looks about right: select sum( length( article_text ) ) as total from articles_table where user_id = 'user to match"; This is SQL though, so it's kinda OT. Cheers, Rob. On Fri, 2003-08-22 at 22:45, Jeff Lewis wrote: > I want to query a table of text articles and when

Re: [PHP] Status Chaing Toggle / Code

2003-08-23 Thread Robert Cummings
Code and query look about right -- my guess is you're another one of the multitude of people who haven't bothered to read the docs about register globals and how they are now off by default. If the following solves your problem, then yes indeed, such are you. include("../../application2.php"); $CF

Re: [PHP] CMS question.

2003-08-26 Thread Robert Cummings
On Mon, 2003-08-25 at 10:14, Edmond Baroud wrote: > On August 25, 2003 08:13 am, Jay Blanchard wrote: > > > What makes you think that the developer did something unethical? > > It looks like you're familiar with this particular case and the developper > happens to be your friend so you're defend

Re: [PHP] math functions?

2003-08-26 Thread Robert Cummings
Is there some reason you can't use the modulus operator? http://www.php.net/manual/en/language.operators.arithmetic.php Cheers, Rob. On Tue, 2003-08-26 at 11:07, Amanda McComb wrote: > I am having trouble finding math functions on php.net. I am also getting > "page not found" errors when tryin

Re: [PHP] Re: math functions?

2003-08-26 Thread Robert Cummings
Just to be precise, modulus does NOT return true and false. Given A%B it returns the remainder after dividing B into A. This happens to be equivalent to false when there is no remainder, and equivalent to true when there is a remainder. Cheers, Rob. On Tue, 2003-08-26 at 11:11, Kae Verens wrote:

Re: [PHP] Isn't it grea...t

2003-03-17 Thread Robert Cummings
Bix wrote: > > I think it is an amazing feat to have a scripting language with such a > comprehensive (with user notes) documentation, helpful community of users > and developers, and a team of writers who for little reward, continue to > develop PHP to make it work better and faster for us all to

Re: [PHP] Which is quicker, if-else statements

2003-03-18 Thread Robert Cummings
Kevin Stone wrote: > > Logically the if-else construct is faster becuase PHP doesn't have to parse > and execute the second conditional. An if-elseif construct is ussually > followed by an else block to describe a default action if no other > conditions are true. Otherwise you may as well use se

Re: [PHP] Automatic Headers and Footers

2003-06-06 Thread Robert Cummings
Yes it can be done, using the auto-prepend feature call a script that turns output buffering on. Then in the auto-appended script read the buffer a manipulate ith with the automatic header and footer. Thus you modify the content only and achieve what you want without modifying the actual HTML file

Re: [PHP] Automatic Headers and Footers

2003-06-06 Thread Robert Cummings
Jay Blanchard wrote: > > There are so many ways to skin this cat. You could (as you said, it will > require adding HTML to the list of php parsed file types) have the > header, body, and footer files read into a single file and then output. > You could do something like this ... (a lot of folks us

[PHP] buildconf doesn't seem to be working for 4.3.2

2003-06-04 Thread Robert Cummings
I could have sworn buildconf was used to rebuild the configure script with any new extensions added to the ext/ directory. For some reason though nothing is being added and I'm getting no warning for PHP 4.3.2 Anyone have any ideas? Cheers, Rob. -- .-.

Re: [PHP] buildconf doesn't seem to be working for 4.3.2

2003-06-04 Thread Robert Cummings
Puzzling as heck, the buildconf just took, perhaps was related to the timestamp of the config.m4 file changing since it never took untill I started mucking with that. incidentally it worked even though the contents weren't changed *pffft* :) Cheers, Rob. Robert Cummings wrote: > > I

Re: [PHP] piping email directly into PHP

2003-06-11 Thread Robert Cummings
Just a small addendum, I also suggest using -C if you are using a non CLI PHP binary. This prevents PHP from changing directories to the location of the script. Perhaps not important for your needs, but if like me, you do many shell based scripts without the CLI version, it is very useful. Cheers,

Re: [PHP] which is quicker? pseudo XML, or database?

2003-06-13 Thread Robert Cummings
I you don't expect to do much with the data then I would recommend using an SQL table since then you can easily search on all of the fields. Later if you find you have more needs then conversion to XML will be trivial. Regardless of which route you take if speed is an issue you can always cache eit

Re: [PHP] which is quicker? XML or database?

2003-06-14 Thread Robert Cummings
John Hicks wrote: > > Hi Justin-- > > I've been wrestling with a similar problem. > > You say: > > I'm considering: > > > > a) storing this data in a MySQL table (a fairly simple > > query) b) storing this data in a pseudo XML format like: > > > > 24 > > Justin French > > [EMAIL PROTECTED] > > 2

Re: [PHP] Re: speed on XML files

2003-06-16 Thread Robert Cummings
Try compression, XML generally cmopresses very well since it is usually text. Cheers, Rob. Diana Castillo wrote: > > I send an xml request to a remote server and get back the xml response. > > "Catalin Trifu" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > >

Re: [PHP] Agh! Driving me crazy!

2003-06-18 Thread Robert Cummings
Mike At Spy wrote: > > Anyone see anything wrong with this line of code? > > $fine = mysql_query("INSERT INTO > tblPOItems(poID,poItemUPC,poItemNumber,poItemDescription,poItemInnerCasePkg, > poInnerQuantity,poItemEstQuantity,poItemCostEach,poItemSuggestedSellPrice) > values('$poID', '$place[0]',

Re: [PHP] return all non-tag characters

2003-06-21 Thread Robert Cummings
Everything you need is at: http://www.php.net/manual/en/function.strip-tags.php Cheers, Rob. Mike Migurski wrote: > > >I want to be able to retrieve and return all character that are not > >located in html tags. For example: > > > >1234567 > >or > >1234567 > > > >I would just like it to be

Re: [PHP] how to call php from C?

2003-06-23 Thread Robert Cummings
[EMAIL PROTECTED] wrote: > > Hello, >I have a working C program that runs like a cgi > by sending back a web page. I would like include in it > some authentication code by checking > > $au = $_SESSION['AuthenticatedUser'] > > previously set up by a php script.I don't like to recode > all

Re: [PHP] Expensive WEB HOST NEEDED!!!!!

2003-06-24 Thread Robert Cummings
Do we really need all this pessimism?? I have the exact host he needs. It supports PHP, MySQL, and sending emails. It has absolutely no pop-up ads and no watermarks. There is no advertising whatsoever. And the best part... it is ABSOLUTELY FREE!! ABSOLUTE FREE[tm] hosting is available only to tho

Re: [PHP] weird switch behaviour

2003-06-24 Thread Robert Cummings
Try the following: echo '['.$type.']'; to rule out the possibiliy of spaces around the word. Cheers, Rob. cg wrote: > > I am testing a var in a switch statement, > switch($type) > { > case "HIRE": > statements; > break; > etc > de

Re: [PHP] my first PHP...posting in forms

2003-06-24 Thread Robert Cummings
Register globals is probably off. This is old news, keep up to date by reading hte release documents. Cheers, ROb. Wilbert Enserink wrote: > > hi All, > > I got this simple form. Input is submitted using POST to another script. In this > other script the variables/values pairs are used. > I te

Re: [PHP] PHP parser extension?

2003-06-24 Thread Robert Cummings
I don't know that this kind of funcitonality exists, but that would be a sweet deal if it did. Cheers, Rob. anzenews wrote: > > Hi! > > I hope this is the right newsgroup for posting this... PHP.dev doesn't seem > to be alive anymore? > > Is there some extension or anything that would allow me

Re: [PHP] Re: php caches mysql connections to same host

2003-06-24 Thread Robert Cummings
See the new_link parameter option for mysql_connect. It should solve your problem. On the other hand, what you are doing is fine, I did it for my pool since I can't use the new_link option because I'm retaining compatibility back to PHP 4.1.2 Cheers, Rob. dorgon wrote: > > for better understan

Re: [PHP] Error reporting at runtime

2003-06-25 Thread Robert Cummings
This is hardly perfect since it shows all errors, but it works for me: ini_set( 'display_errors', 1 ); ini_set( 'log_errors', 1 ); ini_set( 'error_reporting', -1 ); Anthony wrote: > > I have error reporting turned off in my php.ini file on my production > server. I have an

Re: [PHP] PHP 5.0.0 Beta 1

2003-06-29 Thread Robert Cummings
On Sun, 2003-06-29 at 14:19, Sterling Hughes wrote: > > - Due to issues surrounding the MySQL 4.0 license, the MySQL libraries > are no longer bundled with PHP. For more information on these > licensing changes please see the MySQL licensing policy [1] > > [1] http://www.mysql.com/produc

Re: [PHP] Re: [PHP-QA] Re: [PHP] PHP 5.0.0 Beta 1

2003-06-29 Thread Robert Cummings
Ahhh crap. I read the PHP license a long time ago. I guess time faded my memory and I began to think of it as GPL. Thanks, Rob. On Sun, 2003-06-29 at 15:02, Derick Rethans wrote: > On Sun, 29 Jun 2003, Robert Cummings wrote: > > > On Sun, 2003-06-29 at 14:19, Sterling

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Robert Cummings
and the script doesn't execute. I'm asuming you are executing something like the following: php myPhpScript.php The following will probably give you the desired results... php -qC myPhpScript.php This prevents PHP from switching out of th

Re: [PHP] question about executing a bash shell script...

2002-08-16 Thread Robert Cummings
the -C option bash will be looking in the wrong directory. Cheers, Rob. > > Doesn't execute the script, nothing in $bashresult > > Kelly > - Original Message - > From: "Robert Cummings" <[EMAIL PROTECTED]> > To: "Kelly Meeks" <[EMAI

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
outside of the websapce. Cheers, Rob. -- .-----. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTED] | | Phon

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
Robert Cummings wrote: > > David Buerer wrote: > > > > I have a bunch of files which need to be kept secure. I need to allow a user > > access to them them based on a criteria which I can programmatically > > determine. > > > > My question, is how can

Re: [PHP] secure files acess

2002-08-16 Thread Robert Cummings
David Buerer wrote: > > Thankyou Robert, THat is a great and easy way to do it. > > What if I need to initiate a download to the user? If you set the mime type properly the browser will automatically make it a download versus displaying it. Cheers, Rob. -- .---

Re: [PHP] resizing an image

2002-08-29 Thread Robert Cummings
ge help, as I'm a newbie and have not done > anything with PHP image processing functions. *sheesh* read the first comment at: http://www.php.net/manual/en/function.imagecopyresized.php -- .-. | Robert Cummings | :-`. | Webdepl

Re: [PHP] Writing Files

2002-08-30 Thread Robert Cummings
es written to the directory inherit group ownership. Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer - Chief PHP and Java Programmer | :--: | Mail : mailto:[EMAIL PROTECTE

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
27;t see the code that's >generated when i send post data. Is this a bug and how do you fix it?? > > i've never seen this problem in ns, at least not with the stuff i've designed in >the past. do you have a page/form

Re: [PHP] Any netscape users out there?

2002-09-03 Thread Robert Cummings
; Also, would the fact that I have Netscape 4.x installed on the same machine as my >Netscape 6 cause anything funny to "bleed" over, you think? Perhaps its a shared >library thing.. > > hmmm... > > Well thanks for the advice... > &

  1   2   3   4   5   6   7   8   9   10   >