[PHP] HTTP_REFERER

2003-09-11 Thread Louie Miranda
Does php support this? HTTP_REFERER or simply cgi and ssi only? - Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] AIX + PHP Extension Module Does Not Work (giving core dump at zend_parse_parameters)

2003-09-11 Thread ashish borkar
Hi , I am writing a php extension module on AIX 4.3.3 RS6000 machine.I have compiled php as CGI.When I test my php extension module function from a test php script I get a CORE dump.The gdb php core is as below Core was generated by `php'. Program terminated with signal 11, Segmentat

Re[2]: [PHP] Integrating an Applet with PHP

2003-09-11 Thread Tom Rogers
Hi, Friday, September 12, 2003, 9:38:48 AM, you wrote: TC> Warren - TC> That works... TC> http://209.204.172.137/editor/ekit.php TC> Now the next challenge is to put the value in $text into the HTML editor with some JavaScript...any suggestions? TC> Todd TC> Vail, Warren wrote: >>There ma

Re: [PHP] getting download resume to work

2003-09-11 Thread Chris Shiflett
Can you help explain this code? It looks like you're on the right track but have a few flaws (at first glance). > session_cache_limiter('public'); > session_start(); Is there a reason to be using sessions here? > set_time_limit(0); > $file=$_REQUEST['file']; > $extstart=strpos($file, "."); Wha

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Brad Pauly
On Thu, 2003-09-11 at 18:02, John W. Holmes wrote: > Jim Lucas wrote: > > >>> >>> $dins="Dinesh"; > >>> echo ""; > >>>?> > >> > >>Use double quotes for HTML attributes. > > > > Why do you say that? > > Yeah, I figured someone would ask that. :) I couldn't find anything > definitive on w3c

RE: [PHP] loading classes and efficiency

2003-09-11 Thread Dan Anderson
> woah u kiddin me ? i'm sure i edited a function in a functions file which > wasnt executed and it still got parsed (spat out errors) Well connecting to a database, etc. does take overhead above and beyond a function. So yes, it does save resources to include it. And I am not completely sure of

Re: [PHP] getting download resume to work

2003-09-11 Thread Raditha Dissanayake
hi, AFAIK this is not something that you need to bother with in your php scripts. this is a web server level issue Scott Dotson wrote: I am trying to get the ability to resume broken downloads with a client (such as FlashGet, GetRight, etc...) I am able to download the complete file without

Re: [PHP] Dynamic Drill down menus

2003-09-11 Thread Raditha Dissanayake
If you want to process the conent of a form without passing it back to the server you definitely need to learn javasript. Dan J. Rychlik wrote: Hello, I have created a db that holds specific information ie a business name. I am running into a problem on a form when you choose the business name

Re: [PHP] issue with sending a request_uri in a url

2003-09-11 Thread Chris Shiflett
> something.php?action=delete&return_urlsomeother.php%3faction%3dedit%26id%3d1 There should be an equal sign between return_url and someother, in case you try to copy/paste that for some reason. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/

Re: [PHP] issue with sending a request_uri in a url

2003-09-11 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote: > something.php?action=delete&return_url=someother.php?action=edit&id=1 > > it will come out as > > something.php?action=delete&return_url=someother.php > > i tried urlencode but still no luck any ideas? What did you try to URL encode? You need to encode the URL tha

Re: [PHP] issue with sending a request_uri in a url (ignore)

2003-09-11 Thread daniel
back to urlencode it worked this time, really sorry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] issue with sending a request_uri in a url

2003-09-11 Thread daniel
Aplogies, that was my app although i am having more issues now, i use switch statements on a get action variable. here is the full link manage.php? action=deleteconfirm&asset_modelID=82&table=asset_models&return_url=/assets/ manage.php?table=asset_models&ID=82&action=edit it now things its a edi

[PHP] Dynamic Drill down menus

2003-09-11 Thread Dan J. Rychlik
Hello, I have created a db that holds specific information ie a business name. I am running into a problem on a form when you choose the business name another list is suppossed to populate the address or addresses, if multiple occur, and you can select the address. I am not able to sucessfu

[PHP] issue with sending a request_uri in a url

2003-09-11 Thread daniel
Hi there, i have come to a solution, due the fact that the client does not store the http_referer on a javascript location.href, is to send the refering url into the url, there is an issue though say it looks like something.php?action=delete&return_url=someother.php?action=edit&id=1 it will come

Re: [PHP] Access Violation at 77XXXXX on Windows

2003-09-11 Thread Evan Nemerson
Perhaps you should re-open the bug report. It was closed due to lack of feedback, so it's prolly not fixed yet. Can you get a backtrace? Reproducing code? Need more details... With regard to the second paragraph, the obvious solution is to use Linux... Evan Nemerson On Thursday 11 September

RE: [PHP] Re: URGENT REMOVAL

2003-09-11 Thread daniel
enough or mr Larry E. Ullman will kick some butt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP 4.3.3 Install, Errors??

2003-09-11 Thread Evan Nemerson
Unless you need PEAR, you're fine. Try configuring --without-pear. You should really be doing this anyways unless actually need PEAR. Evan Nemerson On Thursday 11 September 2003 02:10 pm, Adam Douglas wrote: > Hi. I have a machine that's been freshly installed with PHP 4.1.1. I wanted > to upg

RE: [PHP] Re: URGENT BUSINESS RELATIONSHIP

2003-09-11 Thread Cody Phanekham
from http://www.nigerian419fraud.freeserve.co.uk/ [snip] A conservative estimate from the USA is that Americans are defrauded of at least $100 million every year. [/snip] hmmm me thinks im in the wrong business ;) seriously, I didnt think there would be some many gullible people out in cybersp

Re: [PHP] Re: URGENT BUSINESS RELATIONSHIP

2003-09-11 Thread daniel
lol The Lodge hey check this out http://www.potifos.com/fraud/ and this http://www.nigerian419fraud.freeserve.co.uk/ i did find a link from this list about a site where the guy actually sent false details and the guy believed him, i think he sent a passport of himself as captian kirk LOL > No!

Re: [PHP] Searching with Date Ranges

2003-09-11 Thread John W. Holmes
Seth Willits wrote: If I want to show events (records in a MySQL table) for the next 10 days (and I do), what would be the best approach to searching with this range? (The dates in my table are stored as a string in the format /MM/DD.) SELECT * FROM Table WHERE event_date BETWEEN NOW()

Re: [PHP] Re: URGENT BUSINESS RELATIONSHIP

2003-09-11 Thread John Howard
No! That $15 million is mine! I feel so honoured that you have picked me! Send me the details! Address them to The Lodge Canberra ACT Australia Perhaps I can fly over to meet you and your money. I have no suspicions that you will kill me or anything! Regards, Bob Irwin Server Admin & Web A

RE: [PHP] Re: URGENT BUSINESS RELATIONSHIP

2003-09-11 Thread daniel
he even found my work email obviouslly from the mysql list > What are you talking about? This is a once in a life time opportunity! > who hasnt dreamt of receiving 15 million for doing absolutely nothing > > contact me benny boy !! my number is 0055 all night long O_o > >> -Original Message---

[PHP] Searching with Date Ranges

2003-09-11 Thread Seth Willits
If I want to show events (records in a MySQL table) for the next 10 days (and I do), what would be the best approach to searching with this range? (The dates in my table are stored as a string in the format /MM/DD.) Seth Willits

RE: [PHP] Re: URGENT BUSINESS RELATIONSHIP

2003-09-11 Thread daniel
how can we get this cunt, he obviously has a massive database, a friend and i found a db password in a spammers cgi script, i couldnt help myself i had to drop a few tables, i dont know how far my mate got though. i wish i could fight back they are obviouslly using spamming tools from the security

RE: [PHP] Re: URGENT BUSINESS RELATIONSHIP

2003-09-11 Thread Cody Phanekham
What are you talking about? This is a once in a life time opportunity! who hasnt dreamt of receiving 15 million for doing absolutely nothing contact me benny boy !! my number is 0055 all night long O_o > -Original Message- > From: Shadow [mailto:[EMAIL PROTECTED] > Sent: Friday, 12 Septe

RE: [PHP] Escaping the " ' " character

2003-09-11 Thread Robert Cummings
*chuckle* this explains your responses to me. In this new light I apologize for my condescending responses. Cheers, Rob. On Thu, 2003-09-11 at 20:17, Dan Anderson wrote: > > You've completely misread and misinterpreted Robert's comments. He > > didn't say he didn't want to read posts he wasn't i

RE: [PHP] loading classes and efficiency

2003-09-11 Thread daniel
will never be parsed (and resources used). woah u kiddin me ? i'm sure i edited a function in a functions file which wasnt executed and it still got parsed (spat out errors) that would be a kool resource saver if it did though -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

RE: [PHP] Escaping the " ' " character

2003-09-11 Thread Dan Anderson
> You've completely misread and misinterpreted Robert's comments. He > didn't say he didn't want to read posts he wasn't interested in and he > didn't ask the poster to not post things he wasn't interested in > reading. He DID however request that people not send html emails to the > list. Oh wait

RE: [PHP] loading classes and efficiency

2003-09-11 Thread Dan Anderson
> The way I understand it (maybe you know something I don't?) > require/include_once only prevent an included file from being included > MORE than one time, hence the character string _once tacked onto the end > of include() and require(). > > It does NOT however include a file only when it's need

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread John W. Holmes
Vail, Warren wrote: Question: will the substitution for the variable $dins occur if surrounded by single quotes? I could be mixing languages here, but I seem to recall a rule in one language about substituting variable contents only occurring between double quotes. In PHP, no, variables will no

RE: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Vail, Warren
Question: will the substitution for the variable $dins occur if surrounded by single quotes? I could be mixing languages here, but I seem to recall a rule in one language about substituting variable contents only occurring between double quotes. Warren Vail -Original Message- From: Joh

RE: [PHP] loading classes and efficiency

2003-09-11 Thread daniel
thats how i saw it includes it once so it prevents say functions being reincluded > Dan Anderson >on Wednesday, September 10, 2003 5:44 PM said: > >> require_once() or include_once() >> >> The files containing the class files before you need them. They will >> only

RE: [PHP] loading classes and efficiency

2003-09-11 Thread Chris W. Parker
Dan Anderson on Wednesday, September 10, 2003 5:44 PM said: > require_once() or include_once() > > The files containing the class files before you need them. They will > only be loaded when needed that way. Not true. www.php.net/require_once The way I understand

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread John W. Holmes
Jim Lucas wrote: > $dins="Dinesh"; >>> echo ""; >>>?> >> >>Use double quotes for HTML attributes. > Why do you say that? Yeah, I figured someone would ask that. :) I couldn't find anything definitive on w3c.org; can someone back me up? AFAIK, they are required in XML and XHTML. It's a good h

RE: [PHP] Integrating an Applet with PHP

2003-09-11 Thread Vail, Warren
Again, this is a guess, but it looks like two parameters to the applet are used;   One called Document and another to indicate that BASE64 encoding was used to encode the html so that the browser doesn't try to render the html into a page.       when you output your form (FROM PHP, of cou

RE: [PHP] Escaping the " ' " character

2003-09-11 Thread Chris W. Parker
Dan Anderson on Wednesday, September 10, 2003 5:17 PM said: > If you don't like somebodys post just ignore it. I'd bet your 2 cents > that you don't find every post to this list interesting. Do you reply > to those people and ask them to not post stuff that doesn't

Re: [PHP] Integrating an Applet with PHP

2003-09-11 Thread Todd Cary
Warren - That works... http://209.204.172.137/editor/ekit.php Now the next challenge is to put the value in $text into the HTML editor with some _javascript_...any suggestions? Todd Vail, Warren wrote: There may be other methods, but one that seems to be available from your form will

RE: [PHP] Integrating an Applet with PHP

2003-09-11 Thread Vail, Warren
There may be other methods, but one that seems to be available from your form will require some JavaScript code. Clicking the button located below the applet (onclick event), performs an assignment to the textarea.value (located below the button) the result returned from the applet.gettext() m

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Jim Lucas
Why do you say that? Jim Lucas - Original Message - From: "CPT John W. Holmes" <[EMAIL PROTECTED]> To: "murugesan" <[EMAIL PROTECTED]>; "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, September 11, 2003 11:56 AM Subject: Re: [PHP] Proble

[PHP] Integrating an Applet with PHP

2003-09-11 Thread Todd Cary
I have located an HTML editor written in Java that works with my clients various computers (e.g. Linux, PC and Macs). What I need to do is learn how to take the output from an Applet and put it into a PHP variable. Since I have no experience with Java, I am at a disadvantage, so if someone co

[PHP] getting download resume to work

2003-09-11 Thread Scott Dotson
I am trying to get the ability to resume broken downloads with a client (such as FlashGet, GetRight, etc...) I am able to download the complete file without resume and everything works properly, but, when using a download manager, if I break the download then continue, the byte count never matches

Re: [PHP] Attention Moderator - Autoresponder Needs Unsubing from list

2003-09-11 Thread Dan Anderson
I get the same. (Although [EMAIL PROTECTED] is now being filtered to the trash. :-D ) -Dan On Thu, 2003-09-11 at 07:34, Jay Blanchard wrote: > Each time I send/respond I get an autoresponder from (major snippage to > header) > > Received: from lns.hs.ro (lns.hs.ro [194.102.195.10]) > Received

Re: [PHP] storing quotes into a variable

2003-09-11 Thread John W. Holmes
Doug Parker wrote: isn't there a function that allows me to store a string with a bunch of quotes in it (like an html tag) into a variable? for example, i need something like: $perf_mod = http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc -- ---John Holm

[PHP] PHP 4.3.3 Install, Errors??

2003-09-11 Thread Adam Douglas
Hi. I have a machine that's been freshly installed with PHP 4.1.1. I wanted to upgrade it to PHP 4.3.3. So I did the following below as SU and received the below errors. Is this something I should be worried about? How can I resolve the errors? Never have had this happen before in the past. I ran p

Re: [PHP] php editor

2003-09-11 Thread zerof
Dreamweaver MX 2004. - zerof -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] rename()

2003-09-11 Thread Edward Peloke
Thanks John, I had actually looked that one up not to long ago...I just had a nice 'ping-pong' break (helps me think :)) and I might re-write it anyway, but I will still be using the move_uploaded_file() this time. Thanks, Eddie -Original Message- From: CPT John W. Holmes [mailto:[EMAIL

[PHP] Access Violation at 77XXXXX on Windows

2003-09-11 Thread Mats Dahlgren
Hello, I have encountered the error message PHP has encountered an Access Violation at 77X as described in the http://bugs.php.net/bug.php?id=17563 bug. The reported bug only relates to MSSQL, but the application I'm working on uses MySQL. Could this error occur due to other Win-related

Re: [PHP] rename()

2003-09-11 Thread CPT John W. Holmes
From: "Edward Peloke" <[EMAIL PROTECTED]> > This is probably an easy question Yep.. ;) > I have an uploaded image in a temp file that I want to rename and put in > another folder. I am using rename() which works fine, the problem is, I > want to force an overwrite if the file already exists. [

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread CPT John W. Holmes
From: "Juan Nin" <[EMAIL PROTECTED]> > The beheaviour I want to acomplish is the same as in yahoorgoups. > > You can access a mian page, where you login and have a list of all the groups you are subscribe to. > You click on the link to each one and it redirects you to: http://groups.yahoo.com/grou

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread CPT John W. Holmes
From: "murugesan" <[EMAIL PROTECTED]> > This will help you > > $dins="Dinesh"; > echo ""; > ?> Use double quotes for HTML attributes. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Juan Nin
On Thu, 2003-09-11 at 16:20, Peter James wrote: > mod_rewrite allows you to do internal redirects. This would keep your > user's URL the same, but actually point to a different page internally. > This is, of course, depends on whether you or your host have mod_rewrite > installed. cool, it was t

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Juan Nin
On Thu, 2003-09-11 at 16:04, Ed Curtis wrote: > I'm pretty sure that YahooGroups uses cookies for this to hold values > while you're not on their site. When you return it checks for the cookies > and reloads the values from the last visit. You can accomplish this with > PHP as well. that´s clear,

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Peter James
> I thought that maybe with some Apache stuff, but I don´t think thereś > something that will help, since directives such as RedirectMatch, etc. > rewrite the URL, and I don´t want that, I want the URL to remain > http://www.domain.com/directoryX/whatever.php mod_rewrite allows you to do internal

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Ed Curtis
I'm pretty sure that YahooGroups uses cookies for this to hold values while you're not on their site. When you return it checks for the cookies and reloads the values from the last visit. You can accomplish this with PHP as well. Ed On Thu, 11 Sep 2003, Juan Nin wrote: > On Thu, 2003-09-11 at

[PHP] rename()

2003-09-11 Thread Edward Peloke
This is probably an easy question but I have been looking at this code for a while and it is all blurry..:) I have an uploaded image in a temp file that I want to rename and put in another folder. I am using rename() which works fine, the problem is, I want to force an overwrite if the file alrea

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Juan Nin
On Thu, 2003-09-11 at 15:39, Ed Curtis wrote: > Is there any type of criteria that would point a user to directoryA or > directoryB? > > I recently rebuilt a site that handled a couple thousand > different working directories for clients but used only one set of > scripts for all. The user would

[PHP] Using a jpGraph image in an FPDF pdf output...

2003-09-11 Thread Jay Blanchard
Has anyone ever suceesfully embedded a jpGraph image in an FPDF output? FPDF uses this function for an image $pdfGraph->Image('grfx/image.jpg', 15, 20, 50, 0, 'JPG'); but when image.jpg is created with jpgraph it throws errors. I am sure that I am missing something quite obvious, but alas I cann

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Ed Curtis
Is there any type of criteria that would point a user to directoryA or directoryB? I recently rebuilt a site that handled a couple thousand different working directories for clients but used only one set of scripts for all. The user would have to login and variables were pulled from a database

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread murugesan
This will help you "; ?> -Murugesan - Original Message - From: "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 11, 2003 10:35 PM Subject: [PHP] Problem with HTML Text box and PHP variable. I am having a problem with rend

[PHP] some kind of redirection (not the header function)

2003-09-11 Thread Juan Nin
Hi!!! I´m programming a site in PHP, where I want to do the following: I will have a set of different directories, where each directory must execute the same PHP pages, but giving as result different data, according to the directory where you are located (obtained by $_SERVER[´PHP_SELF´] for exam

[PHP] Re: URGENT BUSINESS RELATIONSHIP

2003-09-11 Thread Shadow
God!!! This crap is even following me to the newsgroups! Shadow -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Chris Sherwood
try closing the value sections with single quotes that way the html processiing can see the value it was echo ""; now is echo ""; - Original Message - From: "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 11, 2003 10:05 AM

Re: [PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Robert Cummings
Proper HTML attribute values are surrounded by double quotes. Otherwise in sloppy mode, the HTML parser sees the pace between Hello and 1 and things a new attribute by the name of 1 has been encountered. Cheers, Rob. On Thu, 2003-09-11 at 13:05, Golawala, Moiz M (IndSys, GE Interlogix) wrote: > I

[PHP] Problem with HTML Text box and PHP variable.

2003-09-11 Thread Golawala, Moiz M (IndSys, GE Interlogix)
I am having a problem with rendering PHP variables in an HTML text box. If the value of $myString is "Hello" the line below will render it correctly echo ""; However if the value of $myString is "Hello 1" then the line above will populate the text box with only "Hello" and it will loose the "1"

[PHP] AIX + PHP EXTENSION MODULE DOES NOT WORK

2003-09-11 Thread ashish borkar
Hi , I am writing a php extension module on AIX 4.3.3 RS6000 machine.I have compiled php as CGI.When I test my php extension module function from a test php script I get a CORE dump.The gdb php core is as below Core was generated by `php'. Program terminated with signal 11, Segmentat

Re: [PHP] php editor

2003-09-11 Thread Chris Sherwood
Thanks for starting my day out with a chuckle.. this is one of the better tongue in cheek items I have seen in a little bit Chris I think the BEST php editor "out there" is Microsoft's Visual Studio. Here's some of the reasons I think Visual Studio is the BEST 1. None of that annoying syntax

Re: [PHP] php editor

2003-09-11 Thread andu
On Thu, 11 Sep 2003 08:54:06 -0800 "Chris Hubbard" <[EMAIL PROTECTED]> wrote: > I think the BEST php editor "out there" is Microsoft's Visual Studio. You should've posted this before I got all invested with Nedit, Linux and the like... > Here's some of the reasons I think Visual Studio is the BE

RE: [PHP] php editor

2003-09-11 Thread Robert Cummings
*ROFL* Rob. On Thu, 2003-09-11 at 12:54, Chris Hubbard wrote: > I think the BEST php editor "out there" is Microsoft's Visual Studio. > Here's some of the reasons I think Visual Studio is the BEST > 1. None of that annoying syntax highlighting that you find in many other > editors > 2. Unlimite

RE: [PHP] php editor

2003-09-11 Thread Chris Hubbard
I think the BEST php editor "out there" is Microsoft's Visual Studio. Here's some of the reasons I think Visual Studio is the BEST 1. None of that annoying syntax highlighting that you find in many other editors 2. Unlimited technical support (at only $245 per call) 3. At $1000 - $2500 per copy

RE: [PHP] storing quotes into a variable

2003-09-11 Thread chris . neale
$perf_mod = 'mailto:[EMAIL PROTECTED] Sent: 11 September 2003 15:44 To: [EMAIL PROTECTED] Subject: [PHP] storing quotes into a variable isn't there a function that allows me to store a string with a bunch of quotes in it (like an html tag) into a variable? for example, i need something like: $p

[PHP] Re: storing quotes into a variable

2003-09-11 Thread Rex Brooks
I think you just have to escape every double quote that you want to be a part of the HTML code like this --> /" That should work. I dont think you have to escape the single quotes, but I could be wrong. "Doug Parker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > isn't there a

[PHP] storing quotes into a variable

2003-09-11 Thread Doug Parker
isn't there a function that allows me to store a string with a bunch of quotes in it (like an html tag) into a variable? for example, i need something like: $perf_mod = thanks... -- http://www.phreshdesign.com -- PHP General Mai

[PHP] Refresh Error

2003-09-11 Thread Rex Brooks
Okay, I'm displaying an entire table of numbers from my database. Using a form on the same page, you can enter an amount to add to the table and then click submit. I pass all of the information in $_POST back to the same page. Here is my code: if ($_POST["number"] != NULL) { if (is_numeri

[PHP] Function calls and strings

2003-09-11 Thread Ney André de Mello Zunino
Hello. PHP possesses what the manual calls "complex syntax" for allowing one to include non-trivial expressions in strings, e.g.: $s = "The result is {$results[$foo]}."; I seek to find out whether PHP also has a syntax to allow function calls within a string, so that explicit concatenation i

[PHP] crypt problem

2003-09-11 Thread Serge Grondin
Hi, I have a weird problem with the crypt function. If I do: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] crypt problem

2003-09-11 Thread Serge Grondin
Hi, I have a weird problem with the crypt function. If I do: It print: 12 1 aat2dQ.feSqBI $1qjC9EADQ1x6 It seem that the second password is not encrypted in MD5 but with DES. It should be in MD5 if I read the doc correctly. My PHP version is 4.3.1 and compiled on a RedHat 7.3 with the 2.4.1

[PHP] Re: PREG-pattern, help needed

2003-09-11 Thread Dave Dash
Hi Tobias, This matches more than you'd like because [td] will match anything that has a t in it or a d in it. More generally anything in brackets means the RegExp will try to match something from that set. What you might want is this: preg_replace('/]*>/i', ""); The preg replaces or to what

[PHP] Re: No answers found - Why var and why & ?

2003-09-11 Thread Dave Dash
var $varname before a constructor is just conventional syntax when defining a class. class myClass { var $myThis; function myClass() { } } I'm sure you can do this another way, but it just makes reading the class very easy, and it defines those variables for the entire scope of the class. -dd

[PHP] Re: Single Quotes vs Double Quotes

2003-09-11 Thread Dave Dash
With all that's been said in mind ('$var' unparsed "$var" parsed). The rule of thumb I follow is, if it needs to be parsed (has a $variable or \n \r \t etc) then used double quotes, otherwise use single quotes... it conserves processing. -dd "Micro Brew" <[EMAIL PROTECTED]> wrote in message new

RE: [PHP] How to access a program outside of PHP?

2003-09-11 Thread Adam Douglas
No I have Safe_Mode = off. I also have error_reporting = E_ALL and display_errors = on and I have php errors to log to a log file. I have no log file of php errors nor is there an error being display on the page. Geez this is frustrating, yeah that's what I figure but you would think there can be

Re: [PHP] Mailing List Programme

2003-09-11 Thread CPT John W. Holmes
From: "Sheni R. Meledath" <[EMAIL PROTECTED]> > Many thanks for the details. Now the problem is Flush() is not working on > my server (UNIX/Apache 1.3). Are there any issues with Unix servers. The > page displays the title and then waits for teh complete script to execute. > I am using IE 6.0 to br

RE: [PHP] Mailing List Programme

2003-09-11 Thread Sheni R. Meledath
Hi, Many thanks for the details. Now the problem is Flush() is not working on my server (UNIX/Apache 1.3). Are there any issues with Unix servers. The page displays the title and then waits for teh complete script to execute. I am using IE 6.0 to browse the page. At 08:36 AM 9/11/03 -0500, you

Re: [PHP] How to access a program outside of PHP?

2003-09-11 Thread Raditha Dissanayake
btw have you checked if you are in safe_mode? in php.ini error level can also be set in php.ini my guess is that you have a problem in your chroot setup. best regards Adam Douglas wrote: Mmm... okay. I tried that and nothing. Is there no way for me to determine what the problem is? Error message

Re: [PHP] pdf2txt or rtf

2003-09-11 Thread Brian V Bonini
On Thu, 2003-09-11 at 08:37, Peter Rinab wrote: > I am looking for a php class which is able to read a pdf file and dump the > content in txt or rtf format file. > > Any solutions? There is a *NIX program for this, 'pdftotext' which you could execute from PHP. Would that suffice? -- PHP General

RE: [PHP] How to access a program outside of PHP?

2003-09-11 Thread Adam Douglas
Mmm... okay. I tried that and nothing. Is there no way for me to determine what the problem is? Error message some place, log file, etc? I do not understand why this is not work. Even a simple example from the PHP manual on system() does not work. > I meant to do this: > > $szPipe = `/htdocs/gs -

Re: [PHP] New Session Ids generated with each page request

2003-09-11 Thread CPT John W. Holmes
From: "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]> > My problem is that I get a new Session Id with every > request I send to the server. For that reason I am unable > to share variables between pages using sessions. (I get a > new session Id even I refresh the same page). The c

RE: [PHP] pdf2txt or rtf

2003-09-11 Thread Jay Blanchard
[snip] I am looking for a php class which is able to read a pdf file and dump the content in txt or rtf format file. Any solutions? [/snip] Tons http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=pdf2txt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

[PHP] pdf2txt or rtf

2003-09-11 Thread Peter Rinab
I am looking for a php class which is able to read a pdf file and dump the content in txt or rtf format file. Any solutions? Regards -- Peter Rinab eHelp24 Allescherstrasse 32 81479 München Tel.: +49/89/74909-445 Fax.:+49/89/74909-351 Mobil: +49/171/4222676 www.eHelp24.com -- PHP General Mailin

RE: [PHP] Mailing List Programme

2003-09-11 Thread chris . neale
With max_execution_time directive in PHP.ini? I suppose I must have changed that at some point too. I've tried using flush() before but without much luck, and from what I've read in the manual I think it might be because I'm running my setup on a Windows machine with IE6. A problem with client-side

Re: [PHP] strange new problem with IE

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

[PHP] New Session Ids generated with each page request

2003-09-11 Thread Golawala, Moiz M (IndSys, GE Interlogix)
My problem is that I get a new Session Id with every request I send to the server. For that reason I am unable to share variables between pages using sessions. (I get a new session Id even I refresh the same page). The code below prints out different session id for "page1.php" and "page2.php". C

Re: [PHP] Mailing List Programme

2003-09-11 Thread Marek Kilimajer
You can send some output now and then to the browser (and flush()), or you can send the emails in steps, send first 300 emails, output a form with hidden fields (and text "sending emails") containing the offset and use onload="window.document.forms[0].submit()" to send the form and so on. Sheni

Re: [PHP] Get number of line with error

2003-09-11 Thread Marek Kilimajer
For PHP 4 >= 4.3.0: function my_error_report_function($error) { $bt=debug_backtrace(); return "$error in {$bt[1][file]} on line {$bt[1][line]}"; } in older versions pass __FILE__ and __LINE__ to your function. [cz]Emo wrote: Hi all. I want ask you it exist some way how to get num

RE: [PHP] Mailing List Programme

2003-09-11 Thread Jay Blanchard
[snip] I've used the following line in some of my scripts, some of which run for 10 or 15 minutes. set_time_limit(0); The server won't time out, but it takes a while to get anything back to the browser. It's not ideal, because it takes some time before anything gets sent back to the browser, but i

RE: [PHP] Mysql Authentication problem

2003-09-11 Thread James Hamilton
> > How did you create this new user? > > Using mysql grant statements: > > originally: > > grant all privilges on name.* to [EMAIL PROTECTED] identified by 'pass'; > grant all privileges on name.* to user@'%' identified by 'pass; > and just now > grant all privileges on name.* to user@'127.0.0.

RE: [PHP] Mailing List Programme

2003-09-11 Thread chris . neale
I've used the following line in some of my scripts, some of which run for 10 or 15 minutes. set_time_limit(0); The server won't time out, but it takes a while to get anything back to the browser. It's not ideal, because it takes some time before anything gets sent back to the browser, but it does

RE: [PHP] reverse lookup/domain lookup in PHP

2003-09-11 Thread Tim Baker
Is that a major concern only for high-traffic sites? My site is low traffic...so I assume it'd be OK? Just tried the example now - works gret :-) -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 14:31 To: Tim Baker; [EMAIL PROTECTED] Subject:

Re: [PHP] Mailing List Programme

2003-09-11 Thread Raditha Dissanayake
What jay has to say + please look at the archives for this month. You will find this topic discussed quite often. best regards Jay Blanchard wrote: [snip] I have created an application to read email addresses from a list and to send emails. The problem now I am facing is, if the list is very lo

Re: [PHP] reverse lookup/domain lookup in PHP

2003-09-11 Thread CPT John W. Holmes
From: "Tim Baker" <[EMAIL PROTECTED]> > Expensive? In server/processor time, money or bandwidth (doubt the latter?) server/processor time. It can take a while to get a response. Same as doing it from command line. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] Mysql Authentication problem

2003-09-11 Thread Jay Blanchard
[snip] On Thu, 11 Sep 2003, CPT John W. Holmes wrote: > > current testing code: > > > > $link = mysql_connect("localhost", "user", "pass" ) > > or die("Could not connect : " . mysql_error()); > > print "Connected successfully"; > > mysql_select_db("name") or die("Could not select database");

  1   2   >