[PHP] PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
I am trying to communicate with an API of a vendors of ours. They provide a Perl example that works fast and well. I am trying to do the same thing with a PHP class. The response takes over a minute before the response comes back. I see from the response text that the API is running on Apache Coyot

Re: [PHP] PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
512? although that shouldn't > matter, but you might be able to see if it is getting data back at > all. > Yes, I've tried 128 and get the same delay. Thanks for any help:) -- Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
Sorry, the correct request and response is below, the one I copied before was from the browser: Request: Request:POST /XMLCommunicationServlet HTTP/1.0 Content-Type: application/x-www-form-urlencoded User-Agent: PHP XMLRPC Host: api.newedgenetworks.com:80 Connection: keep-alive Content-Length: 758

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
> Try not having the connection kept alive. (just a thought) > Same long reponse :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
query parameters: xml' response. If I change those line endings to just or put it all on one continuous line, I get the long delay again. Any thoughts I what would cause this? -- Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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.

[PHP] XML handlers in classes

2003-07-25 Thread Robert Fitzpatrick
one show me how to use these handlers in a class? -- Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: XML handlers in classes

2003-07-25 Thread Robert Fitzpatrick
pear.php.net/http_request Thanks for the tip. Is there any reason why I can't find docs for xml_parser or http_request on the PEAR site? -- Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XML error: junk after document element

2003-07-26 Thread Robert Fitzpatrick
27;ll need a stream encoding that contains explicit end-of-file markers. I can set my passing xml document with just '1' and I get the same error, except of course it says line 1 instead of line 5. Any help on how I can be sure the function knows the end of ? -- Robert -- PHP General

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

[PHP] [bug?] good old upload problem

2003-07-30 Thread Robert Janeczek
php 4.2.3 apache 1.3.20 when uploading files bigger than limits set in php.ini warning is being reported (in files) and no further script execution takes place. to be specific - it looks like no execution is being made at all. i get 0 bytes response. i don`t want to upload files bigger then limit

[PHP] Help with "secure" virtual host setup

2003-08-03 Thread Robert Mena
Hi all, I host some virtual domains within my apache 1.3.x/php 4.3.x setup. Those domains are mantained by the users via ftp and I was wondering if I could secure the configuration a little bit more. I know that are limitations but the requirements would be : a) the user should not be able to a

[PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-03 Thread Robert Mena
Hi, I am planning to migrate my current web server from redhat 7.x to 9 and I am currently evaluating what may go wrong or need special attention before I actually replace it. After searching the archives and other lists I still have a couple of questions : a) apache It seems that apache + php

Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-04 Thread Robert Mena
Hi Juan, But I'd need to compile php with oracle support. Do you have any experience with this setup ? RH9 + PHP with oracle support ? Regards. --- Juan Nin <[EMAIL PROTECTED]> wrote: > From: "Robert Mena" <[EMAIL PROTECTED]> > > > a) apache > >

Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-04 Thread Robert Mena
Thanks for the reply. I already use 4.3.1 in my current server. I always compile my version of php since the ones that come with the distro are always too old and usually does not contain support for need features such as mcrpyt or oracle. - rt --- Justin French <[EMAIL PROTECTED]> wrote: > I

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

[PHP] comparing xml files, removing some html tags

2003-08-17 Thread Robert Mena
Hi, I need to compare two XML files in order to find if they are "similar", i.e their DOM tree have the same structure. The ideia is to use Xerces to balance HTML files in order to create Xhtml and then compare. To make things a little easier for Xerces I am considering to remove some elements t

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] comparing xml files, removing some html tags

2003-08-20 Thread Robert Mena
Thanks to all (actually just one) that answered my question. Unfortunatelly I was hoping a more "complete" answer since the part I asked was not the main goal... bu t anyway... I'd like to ask then if the viewers could validate my new approach or at least point ways of actually implementing it.

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

[PHP] PHPOPENCHAT: he script tried to execute a method or access a property of an incomplete object.

2003-08-22 Thread Robert Mena
Hi, I've installed and tested phpopenchat 3.0b2 in my development machine (Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6 PHP/4.3.0) with no problems. When I moved to the "real server" (PHP Version 4.3.2) it keeps giving me this answer Fatal error: Unknown(): The script tried

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

[PHP] How to solve include_path / safe_mode / open_basedir /document_root ?

2003-03-25 Thread Robert Mena
Hi, I host some virtual servers in a Linux/apache/php 4 enviroment. I'd like to set up as secure as possible since the users have ftp access to upload files. So each virtual domain has a safe_mode/open_basedir settings in order to make it difficult to mess with each other's files. Unfortunatell

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] preg_replace: literal "/" in pattern string

2003-06-03 Thread ROBERT MCPEAK
Search through the docs/archive and can't figure this one out. Surely I'm overlooking something obvious. I can't figure out how to escape a literal "/" in $q. Adding the line: $q=str_replace("/", "\/", $q); yields a literal "\/" in $content. $q_upper=strtoupper($q); $q_lower=strtolower($q);

Re: [PHP] Dynamic value lookups

2003-06-03 Thread ROBERT MCPEAK
I agree that you will probably have to build all possible select value arrays on pageload if you want the select list to switch without a page reload. PHP is parsed by the webserver and then sent to the page. Javascript is parsed by the browser. You can use PHP to "dynamically" generate Javas

[PHP] Oracle support under PHP / 8i or 9 and a RedHat 9 / Apache 1.3.X machine

2003-06-03 Thread Robert Mena
Hi, I have a server (currently 7.1) with apache + php compiled with oracle (mcrypt, imap, gettext) support. In order to do so I've installed the 8i linux versions, make a tar.gz of the libs directory and installed in my server. I runs fine accessing a remote (not mantained by me) oracle database

[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

[PHP] Trouble Getting PHP Activated on Mac OS X 10.1.4

2002-07-31 Thread Robert Contursi
I'm having difficulty getting PHP activated on Mac OS X 10.1.4. I'm using the activation script from Marc Liyanage's page at http://www.entropy.ch. If anyone has any advise or can help me trouble shoot please let me know. Thanks, Robert Contursi Hendriks Institute 5500 Br

[PHP] Re: Trouble Getting PHP Activated on Mac OS X 10.1.4

2002-07-31 Thread Robert Contursi
no > reason to stick with 10.1.4, is there? > >> I'm having difficulty getting PHP activated on Mac OS X 10.1.4. I'm >> using the activation script from Marc Liyanage's page at >> http://www.entropy.ch. If anyone has any advise or can help me trouble >

[PHP] Environment Variables

2002-08-09 Thread Robert Morse
Hello. I have run into a weird problem with php. I have a very short php script that will print out a particular environment variable. Here is the contents of an index.php file: Test LOOK -- Now, when I go to http://server/index.php, it prints out my variable as I want.

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Robert Parker
On Tuesday 13 August 2002 10:57 am, you wrote: > MD5 encryption of passwords is secure since you do not need to decrypt the > password ever (in fact you can't). You just encrypt the password that the > user entered and check if the MD5 of each password is the same, then the > user most likely ent

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Robert Parker
On Tuesday 13 August 2002 12:20 pm, you wrote: > Makes sense, except if you use upper and lowercase characters, > numbers, and symbols (as you should for secure passwords). I > would think that with these kind of passwords, storing the sheer > number of posibilites would get slightly large. And I

Re: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Robert Parker
On Tuesday 13 August 2002 01:01 pm, you wrote: > On Wed, Aug 14, 2002 at 02:20:07AM -0400, Robert Parker wrote: > > I don't remember where I read this but it only takes the crackers about 1 > > - 2 seconds to crack your average MD5 encrypted password. This is quite > >

[PHP] Bussiness Logic Date Problem

2002-08-13 Thread Collins, Robert
splay info2 Last Sunday in August display info3 Has anyone worked out this type of scinerio to find the dates? Thanks Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Fax: (504) 248-3866 Email : [EMAIL PROTECTED] < <mailto:[EMAIL PROTECTED]>

[PHP] Seemingly simple header problem, isn't!

2002-08-13 Thread Robert Orenstein
session file appears in the temp directory as well. The Apache error log shows nothing. Is there something that has to be set in the httpd.conf file for the header function to work properly? If anyone has any ideas, I'd appreciate hearing them... I'm stuck. Thanks, Robert Orenstein Perfo

Re: [PHP] Seemingly simple header problem, isn't!

2002-08-13 Thread Robert Orenstein
Hi, Edwin. Of course... thanks! Apache version 1.3.23. Definitely not IIS. Robert Orenstein Perforce Software >Try running and I'm sure you'll find out something >about the Apache version. (If, indeed, you're running Apache... Could it >be that you're runni

RE: [PHP] Conditional Popup Menus with PHP/mySQL and Java?

2002-08-16 Thread robert mischke
s an ariticle on Zend out there: http://zend.com/zend/tut/drop-down.php Look after and have fun. regards robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
Kelly Meeks wrote: > > Hi Robert, > > Thanks so much for the prompt reply. > > Actually, I'm not trying to execute a php script, I'm trying to execute a > shell (bash) script. > > This works at the command line: > bash makethesite.sh param1 para

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

<    1   2   3   4   5   6   7   8   9   10   >