Re: [PHP] accept/type

2003-09-12 Thread Raditha Dissanayake
Read the apache url redirecting guide. (it's incldued with your apache download) John Ryan wrote: Is it possible with an Apache confiugartion file to redirect users, if their browser sends a certain accept/type header, and somewhere else if not?? I dont want to do it with PHP -- http://www

Re[2]: [PHP] Calling a function.

2003-09-12 Thread Tom Rogers
Hi, Saturday, September 13, 2003, 5:39:47 AM, you wrote: CJWH> From: "Jason Wong" <[EMAIL PROTECTED]> >> On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote: >> > From: "Vincent M." <[EMAIL PROTECTED]> >> > >> > > Is there any way to call a function with a variable inside the call. CJWH

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

2003-09-12 Thread Tom Rogers
Hi, Saturday, September 13, 2003, 2:09:58 AM, you wrote: >> why does it work in IE and not in Netscape 7.1? DA> I'm pretty sure ActiveX controls don't run on anything besides MS DA> Windows Lockinware (TM). There are a number of other things that DA> netscape does not fully support (try loading

[PHP] accept/type

2003-09-12 Thread John Ryan
Is it possible with an Apache confiugartion file to redirect users, if their browser sends a certain accept/type header, and somewhere else if not?? I dont want to do it with PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array encapsulate

2003-09-12 Thread John W. Holmes
Bill wrote: How do I know it won't just assume that $_POST["detail"][11][116] means the 116th character in the string $_POST["detail"][11]? Because $_POST['detail'][11] is an array (or it should be). If you're in doubt, make sure it is with is_array(). -- ---John Holmes... Amazon Wishlist: www.a

Re: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Raditha Dissanayake
HI, I tried it on netscape and it works. My jre is 1.4.2. AFAIK this is the only stable jre after 1.3xx series. It's a simple matter to add a line of code to the java applet to do the base64 decoding if you are concerned about compatibility. On the point raised about activex : The default plug

RE: [PHP] Calling functions from Button actions

2003-09-12 Thread Vail, Warren
I would assume you are referring to PHP functions since that is the nature of this list and since PHP only really executes on a web server, and since the button click occurs on the browser machine, in it's strictest sense the answer to your first question "Is their an easy way to call a function

Re: [PHP] array encapsulate

2003-09-12 Thread Bill
How do I know it won't just assume that $_POST["detail"][11][116] means the 116th character in the string $_POST["detail"][11]? "Larry E . Ullman" wrote: > > if ($_POST["detail"][11][116] && !$_POST["detailtext"][19][114]) { > > > > How can I encapsulate the array so it is a multi-dimensional ar

[PHP] problems and segmentation fault with constants in PHP5

2003-09-12 Thread Cristiano Duarte
Is this suppose to work ? Currently it does not. class Priority { const DEBUG = 0; const INFO = 1; const WARN = 2; const ERROR = 3; const FATAL = 4; const MAX_PRIORITY = FATAL; } class ExtendedPriority extends Priority { const REMOTE = Prio

[PHP] Re: array encapsulate

2003-09-12 Thread Curt Zirzow
On Fri, 12 Sep 2003 18:58:22 -0400, Bill <[EMAIL PROTECTED]> wrote: I'd like to do this, but it produces an error: if ($_POST{["detail"][11][116]} && !$_POST{["detailtext"][19][114]}) { so I'm left doing this if ($_POST["detail"][11][116] && !$_POST["detailtext"][19][114]) { How can I encapsul

[PHP] Re: mail function

2003-09-12 Thread Curt Zirzow
On Thu, 11 Sep 2003 11:24:29 +0545, Deependra B. Tandukar <[EMAIL PROTECTED]> wrote: Dear all, Recently installed PHP in my Linux server. It says, mail function is not enabled? How is turn this on? That means that the configure script couldn't find your sendmail program. You need to tell conf

Re: [PHP] array encapsulate

2003-09-12 Thread Larry E . Ullman
if ($_POST["detail"][11][116] && !$_POST["detailtext"][19][114]) { How can I encapsulate the array so it is a multi-dimensional array and not just a string length? I'm not exactly sure what you're array structure is but that syntax is correct. $_POST['key1']['key2']... Larry -- PHP General Mai

Re: [PHP] Session stealing, ..

2003-09-12 Thread Mike Migurski
>This all probably takes care about the problem with session id's in the >query string, which is known as referrer to the next website our visitor >visits. What I'm worrying and wondering about now are other users of the >server my site's at. They can most likely go into the /tmp folder and >just r

[PHP] array encapsulate

2003-09-12 Thread Bill
I'd like to do this, but it produces an error: if ($_POST{["detail"][11][116]} && !$_POST{["detailtext"][19][114]}) { so I'm left doing this if ($_POST["detail"][11][116] && !$_POST["detailtext"][19][114]) { How can I encapsulate the array so it is a multi-dimensional array and not just a strin

Re: [PHP] Session stealing, ..

2003-09-12 Thread Jason Sheets
I wrote a custom session handler that encrypts the session before it is stored in /tmp that way even if someone has access to the session files they are useless. It stores the randomly generated encryption key on the user's client base64_encoded, which can be intercepted as well all know but it

RE: [PHP] Session stealing, ..

2003-09-12 Thread Jennifer Goodie
> 93 # When deserialized we are called and need to check if the > stored IP address equals the client's > 94 function __wakeup() { > 95 global $Log; > 96 if ($_SERVER['REMOTE_ADDR'] != > $this->Night['IP']) { > 97

Re: [PHP] Calling functions from Button actions

2003-09-12 Thread Robert Cummings
Any form system (I'm guessing, but I only use my own so I could be mistaken) that allows custom validation should enable trivial function calling based on a button click. Cheers, Rob. On Fri, 2003-09-12 at 18:29, Dan J. Rychlik wrote: > Is their an easy way to call a function based upon a button

[PHP] Calling functions from Button actions

2003-09-12 Thread Dan J. Rychlik
Is their an easy way to call a function based upon a button action? -Dan

[PHP] Session stealing, ..

2003-09-12 Thread Wouter van Vliet
Hi All, There's always been a lot of discussion about how safe sessions are. I'd like to store a complete user object (instance of a class) in a session with the best security measures possible. Who doesn't. Now, to prevent that the session file from the server gets stolen by some other user of t

[PHP] posix pcntl_fork() and zombie/defunct issues

2003-09-12 Thread Daniel Souza
well... playing with fork() in a phpcli script, i got some troubles with childs... anybody knows how to dont get zombies/defuncts with SIGCHLD and SIGCLD ignoring ? dont worked for me =/ the script is large, so the main pieces of it.. i dont want to know how many childs are running, or if they ter

RE: [PHP] SNMP mib resoultion

2003-09-12 Thread Chris W. Parker
Guy Fraser on Friday, September 12, 2003 1:53 PM said: > This is my third attempt to send this message and I havn't seen one > show up yet. :{ > > I hope this gets through. I got it!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] SNMP mib resoultion

2003-09-12 Thread Guy Fraser
Does any know how to get additional mibs to be resolved on FreeBSD or Linux ? This is my third attempt to send this message and I havn't seen one show up yet. :{ I hope this gets through. -- Guy Fraser Network Administrator The Internet Centre 780-450-6787 , 1-888-450-6787 There is a fine line

Re: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Todd Cary
Warren - <<< you must enable Java, _javascript_ and Autoinstall in the Advanced panel of the Preferences >>> In Netwcape 7.1, I only see a check box for "Run Java". Todd Vail, Warren wrote: Turns out I needed to install NS to do some testing in the next few days, so I did that went to th

Re: [PHP] Cookie advice

2003-09-12 Thread Robert Cummings
I don't think there's any kind of consensus :) But to perhaps lead you in the right direction... how long do you think should pass before someone who logged in once before will log in again? if you expect a longer than 30 day time period, then 30 days is too short. If you expect within a week or 2

Re: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Todd Cary
Waren - I have the 1.4.2 Java Plugin installed.  Using Netwcape 7.1, when you go to http://www.hexidec.com/ekitdemo.php do you see HTML displayed in the editor window as you do with IE? Todd Vail, Warren wrote: Turns out I needed to install NS to do some testing in the next few days, so

Re: [PHP] Using PHP to generate Acrobat PDF...

2003-09-12 Thread Evan Nemerson
Well there's clibpdf and pdflib, which you can get info from the PHP manual for. Unfortunately, both are non-free. php.net/pdf and php.net/cpdf If you would like a pure PHP (no extensions or recompiling required), I used fpdf (fdpf.org) in a project a while back, and had positive results. I've

Re: [PHP] Japanese on a page

2003-09-12 Thread Evan Nemerson
things like , , and should help you. If i were you i'd try saving the word as html, then copy and paste what you need. Don't copy too much though- just the encoding info and text... word html is so horrible. Evan Nemerson On Friday 12 September 2003 11:47 am, Mark McCulligh wrote: > This is n

[PHP] Re: ereg

2003-09-12 Thread Dave Dash
I think this is a lot more complicated than somethign a simple regular expression can handle. You would need to do soemthign that reads the entire file, up until the first occurrence of your '//' and in the meantime do a count that checks to make sure all the quotes are closed. I'd be interested

Re: [PHP] Calling a function.

2003-09-12 Thread CPT John W. Holmes
From: "Jason Wong" <[EMAIL PROTECTED]> > On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote: > > From: "Vincent M." <[EMAIL PROTECTED]> > > > > > Is there any way to call a function with a variable inside the call. ie: > > > > > > if($preferences != "") { > > > dis_display$$pr

Re: [PHP] error cannot instantiate non-existent class

2003-09-12 Thread CPT John W. Holmes
From: "Golawala, Moiz M (IndSys, GE Interlogix)" <[EMAIL PROTECTED]> > I am newbie with php and I am trying to instantiate a > class. Welcome to PHP. > this->$config = $config; $this->config = $config; > Parse error: parse error, unexpected T_OBJECT_OPERATOR > in C:\Program Files\Apache Group\

Re: [PHP] Looking for a real good editor with some specificfeatrues ...

2003-09-12 Thread Dave Dash
"Dan Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 60% of what makes an editor good is familiarity. Take emacs for > instance (http://www.gnu.org/software/emacs/emacs.html). Running PHP > Mode (http://sourceforge.net/projects/php-mode/) I fly through code. > But I've al

[PHP] error cannot instantiate non-existent class

2003-09-12 Thread Golawala, Moiz M (IndSys, GE Interlogix)
I am newbie with php and I am trying to instantiate a class. I am using the command line to test my stuff out before I try it with a browser. The following is my class code: (name of file is AddConfigs.inc) $config = $config; echo " in constructor $config "; echo "

RE: [PHP] Japanese on a page

2003-09-12 Thread Chris W. Parker
(now to the entire list) Mark McCulligh on Friday, September 12, 2003 11:48 AM said: > I am trying to create both an English and Japanese version of a site. > The English done and I have the Japanese translation in a word doc. > Can someone point me in the right di

Re: [PHP] email attachment cannot be opened (solved)

2003-09-12 Thread Chris Hayes
I found the culprit! I copied the filereading part without checking too good, and it had an "addslashes" call which ruined the file content very professionaly. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Displaying Blobs by a newbie

2003-09-12 Thread Vail, Warren
You didn't say how the images were placed in the db but you did indicate they were jpeg format. I'd try; fetching the db column in to a string variable; then; $im = imagecreatefromstring($imagestring); header ("Content-type: image/jpeg"); imagejpeg($im); imagedestroy($im); good luck, Warren

[PHP] Japanese on a page

2003-09-12 Thread Mark McCulligh
This is not really a PHP question but I know this list knows their stuff. I am trying to create both an English and Japanese version of a site. The English done and I have the Japanese translation in a word doc. Can someone point me in the right direction on how I do this. I know it has something

Re: [PHP] Using PHP to generate Acrobat PDF...

2003-09-12 Thread Scott Fletcher
Ooohhh! Neat website! Here's the other info send to me by someone from email. Thanks for all of the feedback. Now i have something to get start --snip-- http://ca3.php.net/manual/en/ref.pdf.php --snip-- "Simon Stiefel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 12 S

[PHP] Displaying Blobs by a newbie

2003-09-12 Thread Phil King
Hi All, I have some images in a mysql database. I wish to display all these images on a PHP Page. I have created a query to retrieve all the images from the database but all that is displayed is characters. I have the Content-Type as image/jpeg in the header of the page to display the images. Ca

RE: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Vail, Warren
Turns out I needed to install NS to do some testing in the next few days, so I did that went to the URL with your editor and got the following alert out of the brand new NS install; Information on this page requires a plug-in for: application/x-java-applet; version=1.4 Communicator c

Re: [PHP] Calling a function.

2003-09-12 Thread Jason Wong
On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote: > From: "Vincent M." <[EMAIL PROTECTED]> > > > Is there any way to call a function with a variable inside the call. ie: > > > > if($preferences != "") { > > dis_display$$preferences() ; > > $functon = "dis_play$preferences"; >

Re: [PHP] Using PHP to do something with Acrobat PDF....

2003-09-12 Thread Jason Wong
On Friday 12 September 2003 22:11, Scott Fletcher wrote: > Know of any good websites that would provide tutorials, step-by-step, > and/or a PHP scripts of creating a PDF, putting datas into PDF, along with > Printing PDF, Saving PDF files, etc... I have no experience with using PHP > and PDF

Re: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Dan Anderson
Microsoft (being a monopoly) decided it did not want to follow Sun's java standard and effectively froze their version of Java available in IE @ Java 2 1.2 . (or something like that -- they're currently finishing up Java 2 1.5). So if you wanted to use certain things with microsoft you either nee

RE: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Dan Anderson
> I am implementing a site with an Iframe, and having no problems with recent releases > of Netscape, older releases are a problem, even with IE. Try running Netscape 7.1 on Linux and the iframe may be broken under certain conditions. As always, your mileage may vary, and they may have patched

Re: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Todd Cary
Warren - The Java code is available at http://www.hexidec.com/ekitdemo.php. One of the reasons I need this applet working in non-IE browsers is that my client has staff that use Macs and need to access the site from the field... Todd Vail, Warren wrote: I'm not sure about the relationshi

[PHP] email attachment cannot be opened

2003-09-12 Thread Chris Hayes
hi, I've made a form to send out emails with attachments, and the attachments look ok when they arrive but the content is somehow bad. I cannot open gifs nor can word open the documents. Looking at the content something may be wrong with the encoding: if i open the GIF file the normal one as wel

Re: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Todd Cary
Dan - I am surprised that an Open Source applet would rely on ActiveX.  It appears that there is something I am not doing correctly in setting the DATA param for Netscape. Please overlook my ignorance about browsers and applets as I try to get a better understanding, but is BASE64 encoding/de

Re: [PHP] Using PHP to generate Acrobat PDF...

2003-09-12 Thread Simon Stiefel
On 12 Sep 2003 at 13:17, Scott Fletcher wrote: > Anyone have experience with it? Anyone of good information where I can do > some research on? Have a look at www.pdflib.com. They also have a great documentation for it. We use it to put our company logo at the top af some PDF documents. Works per

Re: [PHP] help with message from tech support

2003-09-12 Thread Sam Folk-Williams
It's definitely possible they upgraded recently and screwed up somethng. They are interland (www.interland.com) -- a pretty big host. The company I work for has had tons of problems with them, though -- the site goes down a lot. I'm wondering if this is really "malicious" or if they just screwed up

Re: [PHP] Calling a function.

2003-09-12 Thread CPT John W. Holmes
From: "Vincent M." <[EMAIL PROTECTED]> > Is there any way to call a function with a variable inside the call. ie: > > if($preferences != "") { > dis_display$$preferences() ; $functon = "dis_play$preferences"; $function(); ---John Holmes... -- PHP General Mailing List (http://www.php.

RE: [PHP] Simple (?) var_dump question [summarization]

2003-09-12 Thread Wouter van Vliet
WHOW .. that bool parameter never found it's way to me .. untill now .. appears to be a new one in PHP4.3. So, now let's summarize the var dumping and export functions: print_r($mixed, [bool return]) - Produces quite readable output var_export($mixed, [bool return]) - Produces va

[PHP] Calling a function.

2003-09-12 Thread Vincent M.
Hello, Is there any way to call a function with a variable inside the call. ie: if($preferences != "") { dis_display$$preferences() ; } If $preferences = "menus" this will call the function dis_displaymenus() Thanks, Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscr

RE: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Vail, Warren
I'm not sure about the relationship between an applet and an ActiveX control, and most of my development is for IE browsers (they have 90% of the market I hear), so I'm not sure I can help much here. If you can break down what works and what doesn't, it might help. If the applet doesn't run co

Re: [PHP] Simple (?) var_dump question

2003-09-12 Thread CPT John W. Holmes
From: "CPT John W. Holmes" <[EMAIL PROTECTED]> > The only difference between print_r() and var_export() produces valid PHP > code. That should say var_export() produces valid PHP code, while print_r() does not. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Using PHP to generate Acrobat PDF...

2003-09-12 Thread Scott Fletcher
Anyone have experience with it? Anyone of good information where I can do some research on? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting download resume to work

2003-09-12 Thread Scott Dotson
got it to work using fseek, feel like a bozo posting this when it was my lack of thinking in the first place as to why it didn't work. thanks all for the help... Scott "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can you help explain this code? It looks like you'r

Re: [PHP] Simple (?) var_dump question

2003-09-12 Thread CPT John W. Holmes
From: "Wouter van Vliet" <[EMAIL PROTECTED]> > aiaiaia ... you are all pretty right, for another function was forged. > var_export has a "return" flag as second argument where print_r and var_dump > both have other variables as second (and third, and fourth, and sixth) .. > > So you can do: $logg

Re: [PHP] help with message from tech support

2003-09-12 Thread R'twick Niceorgaw
Sam Folk-Williams said the following on 9/12/2003 12:32 PM>> Hi, I posted about the below issue yesterday, following is the follow-up from tech support. Are they saying the server was hacked? Is there anything I can do on my end, or does this sound like their problem? When I try to visit the s

Re: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Raditha Dissanayake
mozzilla 1.4. and netscape 7.1 support iframe. Hey the applet looks pretty neat is it open source? Dan Anderson wrote: why does it work in IE and not in Netscape 7.1? I'm pretty sure ActiveX controls don't run on anything besides MS Windows Lockinware (TM). There are a number of other thin

[PHP] Cookie advice

2003-09-12 Thread James Johnson
Hi, I have a "Remember me on this computer" check box, which sets a cookie for future logins. What's the consensus on when a cookie of this type should expire? I currently have it set for 30 days. Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] help with message from tech support

2003-09-12 Thread Raditha Dissanayake
Hi Sam, Surely it couldn't have been hacked? IIS is the most secure web server you have seen their advertisements :-) Sam Folk-Williams wrote: Hi, I posted about the below issue yesterday, following is the follow-up from tech support. Are they saying the server was hacked? Is there anything I

RE: [PHP] Simple (?) var_dump question

2003-09-12 Thread Wouter van Vliet
aiaiaia ... you are all pretty right, for another function was forged. var_export has a "return" flag as second argument where print_r and var_dump both have other variables as second (and third, and fourth, and sixth) .. So you can do: $logger->debug(var_export($Var), true)); which will log the v

[PHP] help with message from tech support

2003-09-12 Thread Sam Folk-Williams
Hi, I posted about the below issue yesterday, following is the follow-up from tech support. Are they saying the server was hacked? Is there anything I can do on my end, or does this sound like their problem? > When I try to visit the site I get this strage error message: php-engine: file /home/k/

Re: [PHP] Simple (?) var_dump question

2003-09-12 Thread Chris Boget
> > So, the above line would get a "var_dump > > stringified" version of $foo and pass it to my > > logger's debug method. > You need to use output buffering to capture the output with var_dump. > Or you can use print_r(), which will give you a similar output and can be > returned to a varible. No

Re: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Dan Anderson
> why does it work in IE and not in Netscape 7.1? I'm pretty sure ActiveX controls don't run on anything besides MS Windows Lockinware (TM). There are a number of other things that netscape does not fully support (try loading a page with an iframe tag in Netscape). You probably ran into another

Re: [PHP] getting download resume to work

2003-09-12 Thread Scott Dotson
All answers are below your questions... Thank you for taking the time to parse through my code and try to understand what I am doing, I really appreciate it, this is the first time I have tried something like this and have been hung up on it for a couple days now... Scott -Original Message

[PHP] information

2003-09-12 Thread hatem gouda
Dear Miss/Mrs./Mr. I intend to move to Australia and work there as an auditor or an accountant.So I'd like to be familiar with Australian accounting environment before I move to there. So I'd like you to give me some information about "MYOB Accountants Office" and "MYOB Tax"like: * Where

Re: [PHP] Simple (?) var_dump question

2003-09-12 Thread CPT John W. Holmes
From: "Thomas Panzarella" <[EMAIL PROTECTED]> > Hi. I'm new to the list so sorry if this has already > been asked before ... > > I want to find a way to capture the var_dump > output as a string so I can write it to a log file ... > (for example): > > $logger->debug(var_dump($foo)); > > So, the a

[PHP] Simple (?) var_dump question

2003-09-12 Thread Thomas Panzarella
Hi. I'm new to the list so sorry if this has already been asked before ... I want to find a way to capture the var_dump output as a string so I can write it to a log file ... (for example): $logger->debug(var_dump($foo)); So, the above line would get a "var_dump stringified" version of $foo an

RE: RE: [PHP] getting download resume to work

2003-09-12 Thread Scott Dotson
All answers are below your questions... Thank you for taking the time to parse through my code and try to understand what I am doing, I really appreciate it, this is the first time I have tried something like this and have been hung up on it for a couple days now... Scott -Original Message

Re: [PHP] caching program

2003-09-12 Thread Ryan Gibson
On 17/9/03 12:18 pm, "Andrea Tricco" <[EMAIL PROTECTED]> wrote: > Thus, the equivocal paths are the problem, for example: > > www.php.net/manual/it/index.php > > www.php.net/manual/it/ > For the above examples the url is the string up to the last '/' char (as long as the string after the '/' ch

Re: [PHP] Re: URGENT BUSINESS RELATIONSHIP

2003-09-12 Thread Mark
--- [EMAIL PROTECTED] wrote: > 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

Re: [PHP] Integrating an Applet with PHP

2003-09-12 Thread Todd Cary
Warren - Well, your ideas are working like a champ *AND* I am getting a little better idea of how Applets work - "little" mind you!  However, another challenge has emerged: why does it work in IE and not in Netscape 7.1? The original test script contained this long assignment to the DATA para

[PHP] Header and dfile download bug???

2003-09-12 Thread Tristan . Pretty
Hi all, I have a download for that collects data from a user (name, e-mail etc) then I pass that info to a database and give them the file. In the form, I pass two hidden variables, header and details_captured. So when I post the form to $PHP_SELF, it detects this and then activates the header co

[PHP] Using PHP to do something with Acrobat PDF....

2003-09-12 Thread Scott Fletcher
Hi Fellas!! Know of any good websites that would provide tutorials, step-by-step, and/or a PHP scripts of creating a PDF, putting datas into PDF, along with Printing PDF, Saving PDF files, etc... I have no experience with using PHP and PDF so I need both a tutorial and quick, plain to the poi

[PHP] ESP survey builder

2003-09-12 Thread Yves Arsenault
Hello, Has anyone ever used ESP survey builder? I've just installed it and am starting to play with it I'm wondering if there are any other survey building apps around... TIA, Yves Arsenault Carrefour Infotech 5,promenade Acadian Charlottetown, IPE C1C 1M2 [EMAIL PROTECTED] (902)368-1895

Re: [PHP] Re: HTTP_REFERER

2003-09-12 Thread Miroslaw Milewski
Louie Miranda wrote: > no, im making a "send this page to a friend program" > when the users click the button a small pop-up window > will come out and the http_referer will work and catch > the previous page. I suppose you can achieve this using javascript's window.opener.location.href refer

Re: [PHP] Fatal error: Call to undefined function: mysql_connect()

2003-09-12 Thread Jason Sheets
Are you using the bundled MySQL libraries under Unix/Linux? What version of PHP are you running with what operating system? If MySQL compiled as a module that must be loaded? Jason Naintara Jain wrote: I get this error "Fatal error: Call to undefined function: mysql_connect() " in one scrip

Re: [PHP] input field masks

2003-09-12 Thread Brent Baisley
PHP is server side, it has nothing to do with client side, aside from server up some information. You can, and should, validate the input using PHP after it is submitted. For client side validation you would need to use javascript. You can do what you are trying to do in javascript, but it will

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

2003-09-12 Thread Jay Blanchard
[snip] >>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 habit to get into with regular HTML, also (althoug

Re: [PHP] caching program

2003-09-12 Thread Raditha Dissanayake
once upon a long ago someone (i belive his name is Hrvoje Niksic) wrote a program called wget so that people do not have to do all this :-) Andrea Tricco wrote: Hi, I'm using the function "file_get_contents()" to replicate the content of a remote html page on my server. But, the function file_ge

Re: [PHP] Sending SMS messages ?

2003-09-12 Thread Raditha Dissanayake
Hi, Goto http://kannel.org and download their sources. They have some sample PHP scripts to send sms. Obviously you will need a GSM modem or access to an SMSC to make full use of it. all the best. Dave Carrera wrote: Hi All Is there a way to send sms messages via php. I really don’t know any

Re: [PHP] Training Help

2003-09-12 Thread Jon Haworth
Hi Ryan, > $tireqty = $_POST['tireqty']; > $oilqty = $_POST['oilqty']; > $sparkqty = $_POST['sparkqty']; That'll certainly fix the problem, but it kind of defeats the point of using $_POST :-) Ideally you'd clean the data at this point to make sure no-one's trying to submit anything nasty (Googl

Re: [PHP] Training Help

2003-09-12 Thread Ryan Stagg
Thanks mate, problem kinda fixed, looks like this now... Bob's Auto Parts - Order Results Bob's Auto Parts Order Results Order Processed at "; echo date("H:i, "); echo "on "; echo date ("jS F"); echo ""; echo "Your order is as follows:"; echo ""; echo $tireqty." tires"; echo $oilqty."

Re: [PHP] Training Help

2003-09-12 Thread Jon Haworth
Hi Ryan, Sounds like register_globals is turned off on your server (this is generally a Good Thing). Rather than having all your form fields converted directly into variables - which your book is assuming, as it's how PHP used to do it - you'll need to access them via the $_POST array. Try changi

[PHP] Training Help

2003-09-12 Thread Ryan Stagg
I recently aquired a copy of the book PHP and Mysql web development by SAMS. I have begun reading through it and it seems to be a very usefull book however I started doing the first exersise which is a simple HTML Processor, the HTML page is as follows: Bob's Auto Parts - Order Results Bob's

Re: [PHP] caching program

2003-09-12 Thread Andrea Tricco
I'm sorry, but in the previuos email there has been an error. I'm sending correct one. - For the images that contain "http://"; my program is already able to get them from the web server. In other cases, I have to determine the name of the directory where the html page is located. Thus, the equ

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

2003-09-12 Thread Ford, Mike [LSS]
On 12 September 2003 11:50, Ford, Mike [LSS] wrote: > On 11 September 2003 19:56, CPT John W. Holmes wrote: > > > From: "murugesan" <[EMAIL PROTECTED]> > > > > > > > This will help you > > > > > > > > $dins="Dinesh"; > > > echo " > > >"; > > > > > > > > Use double quotes for HTML attribu

Re: [PHP] caching program

2003-09-12 Thread Andrea Tricco
For the images that don't contain "http://"; my program is already able to get them from the web server. In other cases, I have to determine the name of the directory where the html page is located. Thus, the equivocal paths are the problem, for example: www.php.net/manual/it/index.php www.php.ne

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

2003-09-12 Thread Ford, Mike [LSS]
On 11 September 2003 19:56, CPT John W. Holmes wrote: > From: "murugesan" <[EMAIL PROTECTED]> > > > > This will help you > > > > > $dins="Dinesh"; > > echo ""; > > > > > Use double quotes for HTML attributes. Why? Both the HTML 4.01 and XHTML 1.0 (via XML 1.0) specifications explicitly a

Re: [PHP] caching program

2003-09-12 Thread Ryan Gibson
You could pull out all the img src attributes and if they don't contain "http://"; then prepeand the address of te page then download otherwise just downlocad the url, but to get the page to work in the new location you may have to replace the img src attributes Ryan Gibson --- [EMAIL PROT

[PHP] caching program

2003-09-12 Thread Andrea Tricco
Hi, I'm using the function "file_get_contents()" to replicate the content of a remote html page on my server. But, the function file_get_contents() works even when the name of the file is not specified. For example: "http://www.php.net"; rather that "http://php.net/index.php"; Does a method exist

Re: [PHP] caching program...

2003-09-12 Thread Marek Kilimajer
No way, it might be anything from apache's DirectoryIndex directive. Browsers don't know that either. Andrea Tricco wrote: Hi, I'm using the function "file_get_contents()" to replicate the content of a remote html page on my server. But, the function file_get_contents() works even when the na

[PHP] caching program...

2003-09-12 Thread Andrea Tricco
Hi, I'm using the function "file_get_contents()" to replicate the content of a remote html page on my server. But, the function file_get_contents() works even when the name of the file is not specified. For example: "http://www.php.net"; rather that "http://php.net/index.php"; Does a method

Re: [PHP] Whois request record in database

2003-09-12 Thread murugesan
You have missed the braces. Close it properly. The following code works well "); $db_name='dbname'; $db_user='username'; $db_password='password'; $table='tablename'; // Connect to the database $db_conn = mysql_connect("localhost",$db_user,$

[PHP] Re: Dynamic Drill down menus

2003-09-12 Thread Kae Verens
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 another list is suppossed to populate the address or addresses, if multiple occur, and you can select the address. I am n

[PHP] Whois request record in database

2003-09-12 Thread IS
I want to record the whios requests people do, not the whois output, in a MySQL database. Somebody helped me with the code here below, but I get a parse error when I test it. Parse error: parse error, unexpected $ in /home/moo/public_html/whois/index.php on line 32 What can help me out? ");

Re: [PHP] input field masks

2003-09-12 Thread Ryan A
Javascript is your answer. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com - Original Message - From: "Bobpilly" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 11:20 AM Subject: [PHP] input field mask

[PHP] input field masks

2003-09-12 Thread Bobpilly
Hello all I am trying to enforce input masks for dates that are viewable in a single html text box. For example i would like a single tect box that the user will see ##/##/ in and when they click on the field they will only be able to enter digits in the ## areas the / will remain. Is php c

Re: [PHP] Re: HTTP_REFERER

2003-09-12 Thread Eugene Lee
On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote: : Eugene Lee mentioned: : > On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote: : > : "Eugene Lee" mentioned: : > : > : > : > Several Windoze firewalls also filter out HTTP_REFERER. : > : : > : what can you suggest, im trying

Re: [PHP] Sending SMS messages ?

2003-09-12 Thread Louie Miranda
Hi Dave, Yes php can, but what application will you connect to? On my old work we develop php and c programs to do it. Although the main client that connects is on C/Unix but when the people wanted to send messages we do it on php then web to c then c program to smsc server. - Louie - Origin

  1   2   >