[PHP] web-based survey form design : PHP & MySQL

2002-07-21 Thread Dipendra Raj Subedi
Hi all, I am newbie in PHP. I am just learning the PHP through tutorials and this mailing list. I have very first goal of doing one project "Design web-based survey" using PHP and MySQL. I would appreciate if anybody give me some links that help to develope such skills. Thanks and sorry for

RE: [PHP] No text in form submission

2002-07-21 Thread Dean Ouellette
Is there a way to tell, just contacted my host and they do not know, they said they could look it up Monday when back in office -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 21, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] No text in form subm

Re: [PHP] No text in form submission

2002-07-21 Thread Lee
Create a new php file and just put the following in it: should get you all the info you need Cheers Lee - Original Message - From: "Dean Ouellette" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 21, 2002 9:08 PM Subject: RE: [PHP] No text in form submission > Is the

RE: [PHP] No text in form submission

2002-07-21 Thread Dean Ouellette
PHP Version 3.0.16 -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 21, 2002 2:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] No text in form submission On Monday 22 July 2002 01:52, Dean Ouellette wrote: > Been working on trying to get form submission t

Re: [PHP] No text in form submission

2002-07-21 Thread B i g D o g
Tell your web hosting company to do an upgrade...or find a different hosting co... .: B i g D o g :. - Original Message - From: "Dean Ouellette" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 21, 2002 2:20 PM Subject: RE: [PHP] No text in form submission > PHP Version

RE: [PHP] No text in form submission

2002-07-21 Thread Dean Ouellette
I have a different host I use for my sites, this is one I took over, and they insist I use this hosting company, friend of an owner. Have been trying to get to switch but wont. So any ideas on how can get this to work, no text coming in email When I print_r($_POST) what does that do?))) I g

[PHP] include files and global variables

2002-07-21 Thread Jon Wyatt
I have some pages which include a number of files. In one of the include files I have a function which I wish to be executed everytime the include file is loaded. Therefore I place the function name in the include file at the top. However, this function uses a session variable to decide whethe

Re: [PHP] write some text over image

2002-07-21 Thread Liam MacKenzie
http://www.hotscripts.com/PHP/Tips_and_Tutorials/Image_Manipulation/ - Original Message - From: "Alawi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 21, 2002 4:40 PM Subject: [PHP] write some text over image > Hi > how can I write some text on the left corner of the

[PHP] Re: hay

2002-07-21 Thread Richard Lynch
>Sorry that I write your prov address but it seems to me that you >are quite like guru in PHP so I would like to share with you with >my problem and i would be glad to hear from you where and what >kind of problem there is. I don't use Classes. > $this=&$GLOBALS["cache"]; I would not expect t

Re: [PHP] Re: Problem with sessions.(Again Sorry :)

2002-07-21 Thread Richard Lynch
>> Don't cram things into $_SESSION. Use this: >> >> session_register('uid'); >> global $uid; >> $uid = $uinfo[0]; > >With PHP 4.2, you don't have to use session_register. You can do it >exactly like the OP is. I do it all the time. Whether that is a >"feature" or a bug, I don't know. It happen

[PHP] Re: need help exec command

2002-07-21 Thread Richard Lynch
>Hi Gurus, > >I am using PHP 4.1.1, Postgresql 7.2 and Perl 5.6.0 on Linux. > >I want to execute a perl script throgh a PHP, which will take backup of the >database after submit button on the PHP is clicked. > >I am using exec command, but as PHP runs as "nobody" user, it does not have >access to

[PHP] Re: write some text over image

2002-07-21 Thread Richard Lynch
>how can I write some text on the left corner of the image? http://php.net/image -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Smart ass form

2002-07-21 Thread Richard Lynch
>Hi all. I have this form with some dynamically made fields. One of them >fields is truly making me nuts. The thing is, I have a table in which I >store the user id, the development language he/she uses and the time >he/she has been using it. Something like this: > >+++

[PHP] Re: Redirect Question

2002-07-21 Thread Richard Lynch
>Instead of outputting a header to redirect the browser would it be safer to >use the meta-refresh tag? > >The reason I ask is because I heard that some versions of IE have trouble >with the header There are probable even more browsers that can't handle the META tag... Which versions of IE is so

[PHP] Re: To print in PHP

2002-07-21 Thread Richard Lynch
>decided I didn't want to use the browser to print. Looked at PDF, RTF. I >liked the printer functions, but they only worked on M$. After looking Excuse me. PDF works JUST FINE not only on Macs, but is also well-supported under Linux. http://php.net/pdflib -- Like Music? http://l-i-e.com/a

Re: [PHP] Re: HTML E-mails

2002-07-21 Thread Richard Lynch
>Subsequently, if my client wants HTML email, and they aren't swayed by >advice to the contrary, then I have to deliver it, and deliver it within a >sufficient timeframe, with minimal bugs and hiccups. > >Hence I (he/she) need to know how it's done. If your pointy-haired-boss or equally clue-chal

[PHP] Re: newbie form problem

2002-07-21 Thread Richard Lynch
>$MailToAddress = "[EMAIL PROTECTED]"; >$MailSubject = "Group volunteer list"; >if (!$MailFromAddress) { This should probably be: if (!isset($MailFromAddress) || !$MailFromAddress)){ Hard to tell if this is cut out from a bigger script or what... You also have a very unusual (but at least

[PHP] Re: Apache Gurus

2002-07-21 Thread Richard Lynch
>Hi. >Sorry for this (ot) message, the apache mailing list isn't very helpful. > >I need some information on mod_rewrite and mod_vhost_alias. > >My server doesn't want to detect subdomains. mod_rewrite Rule #1. Use that EngineLog or whatever it is to crank up your logging of mod_rewrite as high

[PHP] Re: get a list of clients with PHP

2002-07-21 Thread Richard Lynch
>Hello, > >there is a problem in a enterprise LAN: >On each PC runs a Client, which waits at a haven for messages. >With fsockopen(); messages are sent to all existing Clients. >Functioned only, if one knows, the which Clients are switched on. >If the Script meets a IP, whose PC is switched off, i

Re: [PHP] Drop Down Box Question

2002-07-21 Thread Richard Lynch
>> Hello, >> Is there a way to handle data gathered from a drop down menu that >allows >> multiple selections using PHP? > >Of course. Name your select box as an array, and include the 'multiple' >keyword. > > > >Then you'll have an array on your processing page that holds all of the >values that

[PHP] Re: documentation to php 5

2002-07-21 Thread Richard Lynch
>the most difference between php 4 and php 5 is the new zend engine - right? Don't know. The changes are documented in the ChangeLog available in CVS at http://cvs.php.net and on pages linked from the home page of PHP http://php.net/ I reckon you can read them as well as I can. >As far as i kn

[PHP] Re: [PHP-DB] PHP4 Not Seeing PostgreSQL 7.2

2002-07-21 Thread Richard Lynch
>if the install directory /usr/local/pgql or /usr/local/pgsql > >What does your phpinfo() give for postgres? > > >> By the way, I have set the LD_LIBRARY_PATH and I have included >> /usr/local/pgsql/lib >> path in /etc/ld.so.conf. You should also do "ld_config" I think... I do that any time I mu

[PHP] Re: web-based survey form design : PHP & MySQL

2002-07-21 Thread Richard Lynch
> I am newbie in PHP. I am just learning the PHP >through tutorials and this mailing list. I have very >first goal of doing one project "Design web-based >survey" using PHP and MySQL. I would appreciate if >anybody give me some links that help to develope such >skills. Search the code archives l

[PHP] Re: No text in form submission

2002-07-21 Thread Richard Lynch
>Been working on trying to get form submission to work. > >Now have it so when click enter it e-mails me, but there is no text >subitted in the e-mail > >Any ideas? >$MailToAddress = "[EMAIL PROTECTED]"; >$MailSubject = "Group volunteer list"; >if (!$MailFromAddress) { >$MailFromAddress = "

RE: [PHP] Drop Down Box Question

2002-07-21 Thread John Holmes
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 21, 2002 5:06 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Drop Down Box Question > > >> Hello, > >> Is there a way to handle data gathered from a drop down menu that > >allows > >> multiple sele

RE: [PHP] Re: Problem with sessions.(Again Sorry :)

2002-07-21 Thread John Holmes
> From: Richard Lynch [mailto:[EMAIL PROTECTED]] > > >> Don't cram things into $_SESSION. Use this: > >> > >> session_register('uid'); > >> global $uid; > >> $uid = $uinfo[0]; > > > >With PHP 4.2, you don't have to use session_register. You can do it > >exactly like the OP is. I do it all the ti

RE: [PHP] No text in form submission

2002-07-21 Thread John Holmes
> I have a different host I use for my sites, this is one I took over, and > they insist I use this hosting company, friend of an owner. Have been > trying to get to switch but wont. So any ideas on how can get this to > work, no text coming in email > > When I print_r($_POST) what does tha

[PHP] Re: include files and global variables

2002-07-21 Thread Chris Earle
Hmm. Here's how you can make it load EVERYtime the file is included, plain and simply. In the include file, create the function.and the call it after you've made it. To get the other function to work, you might want to try placing the function ABOVE checkMaster(); (you should probably simply p

Re: [PHP] Re: hay

2002-07-21 Thread Rad0s-ław Gajewski
On Sun, 21 Jul 2002, Richard Lynch wrote: ++>I don't use Classes. How it is possible?:))) I prefer OOP and I use it as much as possible even in PHP ++>> $this=&$GLOBALS["cache"]; ++>I would not expect this to work. ++>PHP is going to finalize and return the class, and you're assignment t

[PHP] Here's how to fix it

2002-07-21 Thread Chris Earle
You have to use a FOR or WHILE loop. PHP 3 doesn't supported the foreach loop. You can get identical results by using the examples here: http://www.php.net/manual/en/control-structures.foreach.php "Dean Ouellette" <[EMAIL PROTECTED]> wrote in message 000b01c230f5$7837aa70$9c89adac@yoda">news:00

Re: [PHP] Re: HTML E-mails

2002-07-21 Thread Chris Earle
> So most email programs suck. Consider that Outlook and OE are the two > single most popular mail clients in existance. Then, once you've > stretched out from the foetal position and stopped weeping > uncontrollably, try to educate people about HTML mail :-). Actually I enjoy my Outlook Expres

Re: [PHP] Re: HTML E-mails

2002-07-21 Thread Chris Earle
All I add to my headers to make them work are: "MIME-Version: 1.0\r\n" ."Content-type: text/html; charset=iso-8859-1\r\n" ."From: [EMAIL PROTECTED]\r\n" ."Reply-To: $ReplyEmail"); I'm running Outlook Express and that works perfectly. -- PHP General Mailing List (http:/

[PHP] Re: To print in PHP

2002-07-21 Thread Dan Koken
Correct PDF does work and is well supported on Macs and Linux, and just about everywhere I looked. But, for out system, it don't work 'JUST FINE'. After a lot of test we decided it was just too slow for our use. Every system is different, and if you can live with PDF and it works for you, use

[PHP] Submitting to cgi script

2002-07-21 Thread rdkurth
How can I do this I have a form that I want to submit to a second php script that in turn submits to a cgi script but I can not get it to work. If I submit from the form to the cgi script it works just fine. But there are something that I need to do with the data besides submitting to the cgi scr

[PHP] Re: Smart ass form

2002-07-21 Thread Chris Earle
+++--+-+ | expid | devid | devlanguage | devtime | +++--+-+ | 1 | 1 | PHP | less than 1 year | | 2 | 1 | MySQL| less than 1 year |

Re: [PHP] No text in form submission

2002-07-21 Thread Justin French
Create a file with phpinfo() in it. Justin on 22/07/02 6:08 AM, Dean Ouellette ([EMAIL PROTECTED]) wrote: > Is there a way to tell, just contacted my host and they do not know, > they said they could look it up Monday when back in office -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: if $char == "any form of white space"

2002-07-21 Thread Chris Earle
If you want to use ereg just [:space:] ... I'm not too sure about what to do with the Perl one. "Justin French" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Is this the best way to check if a $char is ANY FORM OF WHITESPACE (space, > \t, \r, \n, etc etc)? > > > if(preg_match('

Re: [PHP] Submitting to cgi script

2002-07-21 Thread B i g D o g
In your example you are using the method of POST to pass the form data to the cgi script. However, when you pass the data to the cgi script from the php script you are using the GET method to pass the data. Check and see if the cgi can accept with METHOD="GET" .: B i g D o g :. - Original

Re: [PHP] Re: HTML E-mails

2002-07-21 Thread Justin French
on 22/07/02 6:40 AM, Richard Lynch ([EMAIL PROTECTED]) wrote: > But, if they still insist on it, one answer, as I already said, lies here: > > http://phpclasses.org/ > > I'm sure there are a zillion other solutions, that just happens to be one I > know of. > > Why it takes a few thousand peopl

Re[2]: [PHP] Submitting to cgi script

2002-07-21 Thread rdkurth
Hello B, I just submitted directly to the cgi script and did it with a GET and it worked so that is not the problem. Any other suggestions Sunday, July 21, 2002, 4:52:09 PM, you wrote: BigDog> In your example you are using the method of POST to pass the form data to BigDog> the cgi script. How

Re: Re[2]: [PHP] Submitting to cgi script

2002-07-21 Thread Ray Hunter
Instead of doing it as a command, try it through the webserver http://localhost/cgi-bin/siteUserEmail/siteUserEmail.cgi?forwardaddr=$forwar daddr&aliases=$aliases&vacationmode=$vacationmode&vacationmsg=$vacationmsg&n ame=$name&group=$group&page=$page" ); ?> Or you can use something else...

Re: [PHP] include files and global variables

2002-07-21 Thread Michael Hall
I think that you need to call the checkMaster() function AFTER you declare it, not before. Try moving "checkMaster();" beneath the function definition. Mick On Sun, 21 Jul 2002, Jon Wyatt wrote: > > I have some pages which include a number of files. > In one of the include files I have a fun

[PHP] Hex Help Please...

2002-07-21 Thread Georgie Casey
Rite, There's a PHP script that takes a monochrome BMP and converts it into some sort of hex code and I've noticed some patterns with this code. This image is 72 pixels wide by 14 high so there's 1008 pixels. In the code returned, theres 252 chars, which is 1008 divided by 4. So I guessed the im

[PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
When I try to pass a variable from one page to another the variable is completely inaccessible IF I have a session going. The data has to be passed from one page to the next through the link, as the link tells which product the user hit. Any thoughts? Mike Mannakee -- PHP General Mailing Li

[PHP] Re: Hex Help Please...

2002-07-21 Thread Georgie Casey
OK, i thought I found my solution but... How come if I convert from "1000" from Binary to Hex in calculator, it returns 8, but when I use the PHP bin2hex function, it returns loads of 3s and 0s "Georgie Casey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] get a list of clients with PHP

2002-07-21 Thread Norbert Pfeiffer
Hello Richard, > > My problem: > > How can I receive a list of the PC's switched on > > at present with PHP? > > System calls are not a genuine solution. > > The Script is not only to work under Linux. > I don't think fsockopen's failure to open a socket > will "kill" a PHP script... harm, I know

[PHP] Traversing an appendable file

2002-07-21 Thread Chris Earle
Is there any way to fseek (or something to the exact same effect) a file opened with "a" or "a+"? I've tried rewinding and fseeking appendable files, but neither work. Opening up in "r+" gives me part of the desired result, but if where I want to write is not at the end, it writes over things, w

[PHP] Amazon Web Service implemented in PHP

2002-07-21 Thread Daniel Kushner
http://www.amazonlite.com/ --Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Sessions vs passing variables

2002-07-21 Thread Chris Earle
What do you mean by pass? Using a GET method, POST, COOKIE or are you trying to do something else (other than SESSION)? "Mike Mannakee" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When I try to pass a variable from one page to another the variable is > comp

Re[4]: [PHP] Submitting to cgi script

2002-07-21 Thread rdkurth
Hello Ray, This worked now my question is. Is there a way to force it to submit with POST rather than GET Sunday, July 21, 2002, 5:12:30 PM, you wrote: RH> Instead of doing it as a command, try it through the webserver RH> header( "Location: RH> http://localhost/cgi-bin/siteUserEmail/sit

[PHP] Re: HTML E-Mail

2002-07-21 Thread Alex Kirk
Damn, what a flame war I've started! I had no idea... In any case, Richard: I agree that HTML e-mails, generally speaking, suck. The most HTML I **personally** think should be in an e-mail is a quick link to a web page, maybe a bit of text coloration/sizing for emphasis. However, **professio

RE: [PHP] Sessions vs passing variables

2002-07-21 Thread John Holmes
> When I try to pass a variable from one page to another the variable is > completely inaccessible IF I have a session going. The data has to be > passed from one page to the next through the link, as the link tells which > product the user hit. Any thoughts? Is there a variable by the same nam

[PHP] server performance

2002-07-21 Thread eat pasta type fasta
Not exactly a PHP question, but you guys will know, is there a significant performance difference in how long does it take a server to find files as the directories become more nested, eg. 1. file index.php uses images from directory DIR vs. 2. file index.php uses images from directory image

Re: Re[4]: [PHP] Submitting to cgi script

2002-07-21 Thread Peter James
> This worked now my question is. Is there a way to force it to submit with > POST rather than GET > Look at the CURL functions on php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: HTML E-mails

2002-07-21 Thread Chris Earle
What's so hard with stopping script kiddies (which is just about all you can do with an e-mail to my knowledge -- aside from attachments). In PHP or Perl you could easily write a script that kills ANY

[PHP] Re: Redirect Question

2002-07-21 Thread Chris Earle
> Which versions of IE is somebody claiming can't handle a Location: header? It's not version 6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Redirect Question

2002-07-21 Thread Chris Earle
> Which versions of IE is somebody claiming can't handle a Location: header? And it's not version 4 (I'm assuming not 5(.5) either) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: server performance

2002-07-21 Thread Chris Earle
I think that's entirely dependent on the server's OS. If the OS has a problem, then yes, obviously, otherwise I don't see a reason (unless there is a bug) for significant speed loss. "Eat Pasta Type Fasta" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Not exa

Re: [PHP] Re: Redirect Question

2002-07-21 Thread Jason Wong
On Monday 22 July 2002 10:35, Chris Earle wrote: > > Which versions of IE is somebody claiming can't handle a Location: > > header? > > And it's not version 4 (I'm assuming not 5(.5) either) When you say version 4, which version 4 do you mean? Ditto for version 5. With so many patches and 'upgra

[PHP] NOT an easy upload

2002-07-21 Thread César Aracena
Hi all. I’m trying to handle a picture upload. So far, I’ve made my script store it where I want with the name I want. The only problem now, is that it should store that given name into a MySQL DB table… I tried it by calling a function which stores the picture and returns a variable called $picna

Re: [PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
No, The strange thing is there isn't. I have a test page that links to the order form, having this html: Order I've tried it here as both a link and as hidden forms. Neither on works if I begin the script with: if(!(session_id())) session_start(); I've actually figured a bit of a

[PHP] Re: Redirect Question

2002-07-21 Thread Tim Luoma
FWIW, a user note at http://www.php.net/manual/en/function.header.php says : There is this nasty bug in IE 5 for Windows prior to service pack 2, described in Microsoft knowledgebase article Q281197 which causes a problem with redirecting.. if you submit a POST form to a page that uses hea

RE: [PHP] Sessions vs passing variables

2002-07-21 Thread John Holmes
How are you testing whether the variables were passed or not? What version of PHP are you using and is register_globals ON or OFF? ---John Holmes... > -Original Message- > From: Mike Mannakee [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 21, 2002 10:57 PM > To: [EMAIL PROTECTED] > Subj

[PHP] Faster: Includes or DB Queries??

2002-07-21 Thread Monty
Is there much of a difference in speed or efficiency between INCLUDEing files in a script or loading data from a database? I'm building a dynamic menu system for a website and not sure if it would be faster to store button data in a DB or just do it with Included files. -- PHP General Mailing

RE: [PHP] Faster: Includes or DB Queries??

2002-07-21 Thread John Holmes
> Is there much of a difference in speed or efficiency between INCLUDEing > files in a script or loading data from a database? I'm building a dynamic > menu system for a website and not sure if it would be faster to store > button > data in a DB or just do it with Included files. Includes are fas

Re: [PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
I'm on a server with php version 4.2.1 with register globals on. The main test has been can I access the variables in the script? Oddly enough, if I didn't use an array they are there for me. Turns out it's only when I'm trying to pass an array. Single variables works fine. I'm beginning to t

[PHP] Re: NOT an easy upload

2002-07-21 Thread Chris Earle
>>function pic_upload($userid) >>{ >>if (is_uploaded_file($_FILES['devpicture']['tmp_name'])) >>{ >>$filename = $_FILES['devpicture']['tmp_name']; >>$realname = $_FILES['devpicture']['name']; >>$username = $userid.".jpg"; >>copy($_FILES['devpicture']['tmp_name'], "c:/apache/htdocs/os-seek/photos

RE: [PHP] Sessions vs passing variables

2002-07-21 Thread John Holmes
> I'm on a server with php version 4.2.1 with register globals on. The main > test has been can I access the variables in the script? Oddly enough, if > I > didn't use an array they are there for me. Turns out it's only when I'm > trying to pass an array. Single variables works fine. I'm begi

[PHP] Oh, the problem

2002-07-21 Thread Chris Earle
It appears that $username isn't being defined within the scope of the query. You define it only in the function. Try do this instead: $username = ""; function pic_upload($userid) { global $username; //... the rest of the code } // now do the queries and everything else. I think that will fix y

[PHP] email

2002-07-21 Thread Bob Lockie
I need help with sending email. I can hear 127.0.0.1 doing something (I assume it sends email because there are no bounces). I have the following in my php.ini file: sendmail_from = [EMAIL PROTECTED] sendmail_path = /usr/sbin/sendmail -t -i The PHP is: mail( $to, $subj, $Message ); I am sur

[PHP] Inline Images ?

2002-07-21 Thread Roberto Ramírez
Hello list... Is there a way to display an image withouth sending the headers first? I'm trying to display an inline image... but when I try it just only send the raw image data... I've thinking that I need to save an image first to disk and then display the image later... I don't want

Re: [PHP] Sessions vs passing variables

2002-07-21 Thread Mike Mannakee
Right, I understand I should be able to access them. That's the whole problem. They're not there. I can do one of two things and they magically become available: 1. Don't start the session. 2. Use single variables, not arrays. #2, however, would create a problem in that I intend to set it up

RE: [PHP] Inline Images ?

2002-07-21 Thread John Holmes
> Is there a way to display an image withouth sending the headers first? > > I'm trying to display an inline image... but when I try it just only > send the raw image data... > > I've thinking that I need to save an image first to disk and then > display the image later... > You need to have a

RE: [PHP] Oh, the problem

2002-07-21 Thread César Aracena
Chris. Thanks for living me a hand in such a fast way. It helped me fine. César. > -Original Message- > From: Chris Earle [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 22, 2002 12:51 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Oh, the problem > > It appears that $username isn't being

RE: [PHP] email

2002-07-21 Thread Bob Lockie
>try doing a echo eg > >$mail = mail( $to, $subj, $Message ); >echo $to; >echo ""; >echo $subj; >echo ""; >echo $Message; >echo ""; >echo $mail; > >and see if that is setting the variables...if $mail = 1 then on php's side mail is >sent if it's 0 then u have an error How can I see what the erro

Re: [PHP] Inline Images ?

2002-07-21 Thread Justin French
Hi, I've never done much in the way of dynamic images, but I don't believe you send images inline... I believe browsers still need an image tag, but instead of myimage.gif, I'm pretty sure you call a php script instead: makeMeAnImage.php outputs a GIF/JPG/PNG header, followed by the image dat

RE: [PHP] email

2002-07-21 Thread Peter
> >try doing a echo eg > > > >$mail = mail( $to, $subj, $Message ); > >echo $to; > >echo ""; > >echo $subj; > >echo ""; > >echo $Message; > >echo ""; > >echo $mail; > > > >and see if that is setting the variables...if $mail = 1 then on > php's side mail is sent if it's 0 then u have a

RE: [PHP] email

2002-07-21 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > >try doing a echo eg > > > >$mail = mail( $to, $subj, $Message ); > >echo $to; > >echo ""; > >echo $subj; > >echo ""; > >echo $Message; > >echo ""; > >echo $mail; > > > >and see if that is setting the variables...if $mail = 1 then on

Re: [PHP] Oh, the problem

2002-07-21 Thread Chris Earle
Sure thing. Always love to help. -Chris "César aracena" <[EMAIL PROTECTED]> wrote in message 001801c23136$6748bb50$adc405c8@gateway">news:001801c23136$6748bb50$adc405c8@gateway... Chris. Thanks for living me a hand in such a fast way. It helped me fine. César. > -Original Message- >

[PHP] Using Javascript

2002-07-21 Thread Uma Shankari T.
Hello, I need to display a value on the text box during onClick event where the data is fetched from the database..I have given the code like this but it is giving unterminated string constant.. "); Can anyone please tell me how to solve this ... Thanks & Regards, Uma -- PHP General M

[PHP] Re: Using Javascript

2002-07-21 Thread Chris Earle
You use the "onClick" feature like this: no semicolon unless there is more than one thing being called/defined -- you use single quotes within the onClick's double quotes "Uma Shankari T." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello, > > I need t

Re: [PHP] Cookies - good or bad???

2002-07-21 Thread Chris Earle
Can't you say that about anything? "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I don't use cookies either due to the fact that some web browser block the > cookies and some web browser's bug that affected the cookie. For example, > if Inte

[PHP] Images of GD Library

2002-07-21 Thread Lord Loh.
1. How can I store an image in a database.. ? 2. How can this be now used to create an image ? 3. Is there any way I can read an image from a remote site and save it's minature view in my DB / file ? (How can an image be resized ?) -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] $HTTP_SERVER_VARS not accessible in Functions

2002-07-21 Thread Monty
I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but, within a custom function() this array appears empty. In the calling script, however, the $HTTP_SERVER_VARS[] array is defined. I thought this was supposed to be "superglobal" and available on every level? If not, is there a

[PHP] Re: html entry within XML "database"

2002-07-21 Thread Chris Earle
You can of course use htmlspecialcharacters (check php manual if you don't know what this is) and then it will kill every thing that generates errors. "William S." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am experimenting with using an XML file as a >

[PHP] Re: how can this be? GET instead of POST -> db error

2002-07-21 Thread Chris Earle
The person could have been trying to break into the DB. "Andy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi everybody, > > I am just trying to find out how some db errors happened during a user was > browsing my web app. > > This is out of the Apache log:

RE: [PHP] Hex Help Please...

2002-07-21 Thread Martin Towell
Doesn't look like anyone has replied to you on the php-general mailing list. Have a look at this page http://www.wotsit.org/search.asp?s=graphics some of the docs there might help you HTH Martin -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 200

[PHP] automatic credit card processing

2002-07-21 Thread Dominic
Hi all I try to automatically process cc payment. I use online clearing via a third party --> so what I have to do: 1. SSL-TCP/IP connection to this third party-server 2. perform basic http authentication 3. send authorization request parameters to the software (via POST or GET) 4. receive + pars

RE: [PHP] automatic credit card processing

2002-07-21 Thread Martin Towell
either use curl, and set to option to return the results to you to on or use ob_start(), ob_get_contents(), etc -Original Message- From: Dominic [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:11 PM To: [EMAIL PROTECTED] Subject: [PHP] automatic credit card processing Hi all I

Re: [PHP] automatic credit card processing

2002-07-21 Thread Dominic
great! it works! thank you very much! this is the code which does exactly what I wanted: $ch = curl_init (); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_POSTFIELDS, "RESP_FORMAT=1"); $result= curl_exec ($ch); curl_close ($ch); cheeri

[PHP] Sessions without cookies : forms

2002-07-21 Thread PHPCoder
Hi, thanks for all the replies on my two previous postings relating to sessions and cookies. I have set my mind on using sessions but without cookies, so that entails passing the SID via relative URL's. My problem comes in here, when I create a simple login page with a form that send username a

Re: [PHP] Sessions without cookies : forms

2002-07-21 Thread Richard Baskett
You need to start the session before any html. So: Cheers! Rick "Too much caution is bad for you. By avoiding things you fear, you may let yourself in for unhappy consequences. It is usually wiser to stand up to a scary-seeming experience and walk right into it, risking the bruises as hard

[PHP] separated string by comas

2002-07-21 Thread rdkurth
I have a string that is separated by spaces like this $string="test test1 test2 test3"; how can I make the string so it is separated by comas like this $string="test,test1,test2,test3"; I know this is probably simple but I just can't figure it out -- Best regards, rdkurth

[PHP] Session Tracking

2002-07-21 Thread Sachin Keshavan
Hello all, This may be a pretty naive question. Do we have to use the key word session_register("variablename"); in every single page, in which we plan to use the "variablename"?. Or is it possible that we register the variablename once, and in the subsequent pages continue to access it using $v

RE: [PHP] separated string by comas

2002-07-21 Thread Martin Towell
$string = str_replace(" ", ",", $string); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 4:57 PM To: php-general Subject: [PHP] separated string by comas I have a string that is separated by spaces like this $string="test test1 test2 t

[PHP] Re: Redirect Question

2002-07-21 Thread JJ Harrison
That answers my question. Thanks, -- JJ Harrison [EMAIL PROTECTED] www.tececo.com "Tim Luoma" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > FWIW, a user note at http://www.php.net/manual/en/function.header.php > says : > > There is this nasty bug in IE 5

[PHP] Re: $HTTP_SERVER_VARS not accessible in Functions (fwd)

2002-07-21 Thread Sukumar .S
What is your PHP Version ? Try putting the global $HTTP_SERVER_VARS; print_r($HTTP_SERVER_VARS); in your custom function and check out what is it printing... -S. Sukumar > I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but, > within a custom function() this ar