Re: [PHP] include()

2002-07-31 Thread Lord Loh.
"Other users on the same server *shouldn't* be able to include() in this way" How? Would their $_SERVER['HTTP_HOST'] not be the same? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Creating Image v2... storing thumblains...

2002-07-31 Thread mp
Thanks to those who helped me last time about creating image, but now there is another problem... I'm making a thumblain like this: $base_size = 300; $size = GetImageSize($image1); $kof = ($size[0] > $size[1]) ? $size[0] : $size[1]; $koef = ($base_size / $kof);

[PHP] Re: passing variable via url ( newbye question)

2002-07-31 Thread Lord Loh.
http://myadress/php/mypage.php?modo=123&color=red&size=3 and to get echo $_GET['modo'].""; echo $saci_color.""; echo $saci_size.""; === Tested it! It worked! G stands for GET You can use P or C for POST or COOKIE The order of gpc is important the later overwites the former

Re: [PHP] String Question

2002-07-31 Thread J.F.Kishor
Hi Randy, Just copy the following code and execute it, it works as you require, tested works fine. string$i : $strDiv[$i]"; } ?> - JFK kishor Nilgiri Networks On Wed, 31 Jul 2002, Randy Johnson wrote: > Hello, > > I would lik

Re: [PHP] include()

2002-07-31 Thread Justin French
All included scripts inherit the variables of the parent script, so you could test for numerous server variables like the name of the parent script (PHP_SELF), or the domain name being used, etc etc. If it's not what you expected, spit out an error. something like $_SERVER['HTTP_HOST'] might

RE: [PHP] include()

2002-07-31 Thread Martin Towell
To add to this - you should place critical information (like passwords, etc) outside the document root. That way, even if the server is mis-configured, others wont be able to easily gain access to those files -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, A

Re: [PHP] include()

2002-07-31 Thread Jason Wong
On Thursday 01 August 2002 15:28, Lord Loh. wrote: > I suppose include() can be used to include files from remote systems(not on > WINDOWS). > > So, How can I protect my script from unauthorised inclusions ? > > A webmaster on the same server can always use a path like > "/home/htdocs/.../config.p

[PHP] include()

2002-07-31 Thread Lord Loh.
I suppose include() can be used to include files from remote systems(not on WINDOWS). So, How can I protect my script from unauthorised inclusions ? A webmaster on the same server can always use a path like "/home/htdocs/.../config.php" and include my config .php which contains my database passw

Re: [PHP] toolbar.google.com

2002-07-31 Thread Tyler Longren
It's called Google Magic. I don't really know the answer to your question. Google does a lot of really neat things (like converting pdf to html). tyler On Thu, 1 Aug 2002 08:17:35 +0100 "Lord Loh." <[EMAIL PROTECTED]> wrote: > Google uses php to make a software download and installs it throug

[PHP] toolbar.google.com

2002-07-31 Thread Lord Loh.
Google uses php to make a software download and installs it through the browser! How does this work ? Lord Loh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Page title changes when call functions!!

2002-07-31 Thread Justin French
You'd need to show us some code, preferably not 100's of lines perhaps put it up on the web somewhere so we can see the source code or something. Justin French on 01/08/02 2:16 PM, Sailom ([EMAIL PROTECTED]) wrote: > I am a newbie in this area so please be patient for my silly question :)

[PHP] Page title changes when call functions!!

2002-07-31 Thread Sailom
I am a newbie in this area so please be patient for my silly question :) I have a bad experience coding in PHP. I create a home page in PHP, index.php. Within this PHP code, it calls functions which are placed in other file. I notice that the page title changes to something that I don't want i

Re: [PHP] Re: mail() problems

2002-07-31 Thread dan radom
mailq's empty. i'll try a real address and see if i get a bounce notice. * Manuel Lemos ([EMAIL PROTECTED]) wrote: > Hello, > > On 07/31/2002 11:55 PM, Dan Radom wrote: > >nope. all that did was prodice the following warning... Jul 31 20:53:47 > >mars sendmail[20790]: g712rkA20790: Authentica

Re: [PHP] Explain?

2002-07-31 Thread Rasmus Lerdorf
> Hey php-general, > > maybe somebody can explain me what happens in this line? because how > mutch i read it..thought i don't get it :) > > list ($date, $laik) = split (' ', $row['time'], 2); Well, it is rather inefficient code. Applying a regex just to break a string up on a single chara

Re: [PHP] Re: mail() problems

2002-07-31 Thread Manuel Lemos
Hello, On 07/31/2002 11:55 PM, Dan Radom wrote: > nope. all that did was prodice the following warning... Jul 31 20:53:47 mars >sendmail[20790]: g712rkA20790: Authentication-Warning: mars.radom.org: nobody set >sender to [EMAIL PROTECTED] using -f Are you sure the message is not stuck in the

[PHP] Re: Disabling Browser "BACK" button

2002-07-31 Thread Aaron Ott
Petre, why not use javascripts window.open something like this link to open your app http://yourapp.com','yourappname','toolbar=no'); return false;">link to your app. this would open a new window without the back and forward buttons. "Petre" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

RE: [PHP] Explain?

2002-07-31 Thread Martin Towell
Split() chops up the string (param #2) according to param #1 (in this case, space is the delimiter). Param #3 says, don't chop more than two bits. It then returns an array list() assigns $arr[0] to the first variable, $arr[1] to the second, etc. HTH Martin -Original Message- From: Manta

Re: [PHP] php3 to php4 migration woes

2002-07-31 Thread Andrew Brampton
Since 4.1.? the way things worked changed... Instead of using $album you need to use $_GET['album'] you can default back the old behaviour with a php.ini change, but the new way is prefered andrew - Original Message - From: "Bruce Riddle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

[PHP] Re: ARRRRGGGGHHHH! Weird Problems!

2002-07-31 Thread Aaron Ott
tony, regarding problem one, it looks like there is a problem in the code near: for ($g = 0; $g < $num_lyrics; $g ++) { try doing: for ($g = 0; $g <= $num_lyrics; $g ++) { As for problem two, it looks like you have your color variable set in the for loop thereby resetting the color variable to

[PHP] Explain?

2002-07-31 Thread Mantas Kriauciunas
Hey php-general, maybe somebody can explain me what happens in this line? because how mutch i read it..thought i don't get it :) list ($date, $laik) = split (' ', $row['time'], 2); -- Best regards, Mantas Contacts: [EMAIL PROTECTED] -- PHP General Mailing L

[PHP] php3 to php4 migration woes

2002-07-31 Thread Bruce Riddle
x86-3 being added to access control list I've recently updgrade my Apache Webserver to 1.3.26 and opted to upgrade php form 3.x.x to 4.2.2. I have succesfully built it all and things are stable. I have been running the "album" picture database which is included as an example with the php3 distro.

Re: [PHP] I cannot use mail() ?!?

2002-07-31 Thread Jason Wong
On Thursday 01 August 2002 05:50, Aaron Paxson wrote: > That is what I had orginally thought. However, in an article I found about > mail(), he said it will also work on a linux box that does not have > sendmail configured. In my experience, if php does not find sendmail when it is configured an

Re: [PHP] Re: mail() problems

2002-07-31 Thread dan radom
nope. all that did was prodice the following warning... Jul 31 20:53:47 mars sendmail[20790]: g712rkA20790: Authentication-Warning: mars.radom.org: nobody set sender to [EMAIL PROTECTED] using -f dan * Manuel Lemos ([EMAIL PROTECTED]) wrote: > Hello, > > On 07/31/2002 10:47 PM, Dan Radom wro

[PHP] Re: PHP implementation of something like Apache's mod_speling?

2002-07-31 Thread Julio Nobrega
How about a file wilh all the directories and you compare its contents using similar_text() or soundex/metaphone() with the url/directory that failed? Shouldn't be too hard to implement. -- Julio Nobrega Pode acessar: http://www.inerciasensorial.com.br "Tim Luoma" <[EMAIL PROTECTED]> escre

[PHP] Re: mail() problems

2002-07-31 Thread Manuel Lemos
Hello, On 07/31/2002 10:47 PM, Dan Radom wrote: > I'm having provblems with the following script... > > mail("[EMAIL PROTECTED]", "www form submission", $message, "From: $email"); > > ...the variables are being POSTed from a form, which does make it to sendmail. >sendmail logs the following..

[PHP] iCalendar support?

2002-07-31 Thread Bogdan Stancescu
Hi all! I know this is not the first (and will definitely not be the last) time this question is asked here, but since I was unable to Google anything out on the topic, does anyone know of any kind of iCalendar support for PHP? I'd much prefer a class to a module because I'm working on a proj

[PHP] PHP implementation of something like Apache's mod_speling?

2002-07-31 Thread Tim Luoma
As I assume most of you know, mod_speling (sic) is a feature of the Apache httpd that will suggest possible corrections to URLs. i.e. if you look for /sidebar/ on my site you'll get a 404 because the actual URL is /sidebars/ The problem is that some sites don't enable mod_speling and some don

RE: [PHP] RE: stripping quotes from urls and images

2002-07-31 Thread electroteque
hi mate , i sorter just need a regular expression only when loading it , i use tidy to reformat it back to go into the database its how it handles tags, can anyone help ? -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 11:59 AM To: electr

Re: [PHP] RE: stripping quotes from urls and images

2002-07-31 Thread Justin French
I'm reminded of a reasonable quote: "It's easy to write HTML, and impossible to parse it" Because HTML is *SO* easy to write, and has so many options, and is easy to screw up AND have browsers still work, it's totally evil to parse. You end up with massive regular expressions, or a state engine

[PHP] [Fwd: Problem of recompile and reinstall apache/php/ssl

2002-07-31 Thread EdwardSPL
--- Begin Message --- Hello, I have just recompile and reinstall these sources code package... But I found I need to add these line into httpd.conf : AddType application/x-httpd-php .php .php3 AddType application/x-httpd-php-source .phps Must I add these line into httpd.conf under apache 1.3

Re: [PHP] text area with quotes

2002-07-31 Thread Justin French
check out strip_slashes() or stripslashes() [can never remember which one!!] in the manual. Justin French on 01/08/02 5:50 AM, Nathan Kline ([EMAIL PROTECTED]) wrote: > this seems so obvious yet it is giving me problems. > > I have a text area in a form that is passed to a php page to be > w

[PHP] mail() problems

2002-07-31 Thread dan radom
I'm having provblems with the following script... mail("[EMAIL PROTECTED]", "www form submission", $message, "From: $email"); ...the variables are being POSTed from a form, which does make it to sendmail. sendmail logs the following... Jul 31 19:32:47 mars sendmail[20605]: g711Wlu20605: from=

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Justin French
on 01/08/02 3:42 AM, Petre ([EMAIL PROTECTED]) wrote: > Well, OK, then, How do you design the app NOT to allow the form to POST > again when the user hits "BACK" The PHP script that process' the form submission shouldn't be an actual page that sends stuff to the browser. 1. form.php POSTs to p

[PHP] Re: n

2002-07-31 Thread Bruce Riddle
Tomasz Zolnierczyk wrote: > > subscribe [EMAIL PROTECTED] > > = > Tomasz Zolnierczyk > > "The Path Of Excess Leads To The Tower Of Wisdom" > - W. Blake > > __ > Do You Yahoo!? > Send instant messages & get email alerts with Yahoo! Messenger.

[PHP] RE: stripping quotes from urls and images

2002-07-31 Thread electroteque
i sorter need a preg example i'm not very good at it , and its for a wysiwyg dhtml editor , it reformats those tags if the quotes are there when i load the content and stuffs the code -Original Message- From: Joel Boonstra [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 6:18 AM

[PHP] Re: I cannot use mail() ?!?

2002-07-31 Thread Manuel Lemos
Hello, On 07/31/2002 04:17 PM, Aaron Paxson wrote: > I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2. My email > server is Exchange 5.5sp3 > > SMTP is set correctly in my php.ini file, and have restarted Apache. > However, I still cannot send out a simple text email: > > > > The

[PHP] Cache issue

2002-07-31 Thread Chris Kay
Question. I have a problem with forms not been cached when they click submit... And then the back button, I know of some fields that can not be cached (password), I am thinking I am not doing something that asks it to cache.. Anyone have any tips or a place to start looking. Thanks

[PHP] Help with fopen please.

2002-07-31 Thread Shane
Looked in the archive and manual and came up with no luck, so here it goes. My end result is to save the output of a PHP script as an HTML file in a specified directory on a WIN2K server. my script is such... http://myserver.net/extranet/archive.php?jobid=1";; $fd = fopen( $filename, "r" );

Re: [PHP] still need help with crash on make

2002-07-31 Thread Kirk Babb
Thanks, Tyler, I will if I have to, but is there someone out there who has done this on Linux? cheers Kirk "Tyler Longren" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Use apache 1.3.26 and it'll work. Just change the configure line: > ./configure --with-

[PHP] Undefined function: dbmopen() in loaded Windows binaries of PHP 4.2.1

2002-07-31 Thread Nashev
Hello. Say me pls, are there method to enable DBM support in loaded Windows binaries of PHP 4.2.1? I have "Fatal error: Call to undefined function: dbmopen() in ..." my .php file... :(( Nashev ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

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

2002-07-31 Thread Robert Contursi
I deal with student machines that I do not own. I have to work with what's in front of me. Unfortunately. The activation script for 10.2 on entropy.ch did the trick by the way. I also need to change register_globals from off to on in version 4.2.2. Any help on how to do that with the PHP modul

Re: [PHP] still need help with crash on make

2002-07-31 Thread Tyler Longren
Use apache 1.3.26 and it'll work. Just change the configure line: ./configure --with-mysql --with-apxs=/path/to/apxs Apache 2 is troublesome. tyler On Wed, 31 Jul 2002 17:27:30 -0500 "Kirk Babb" <[EMAIL PROTECTED]> wrote: > Could somebody help me with this?.I posted yesterday with only on

[PHP] still need help with crash on make

2002-07-31 Thread Kirk Babb
Could somebody help me with this?.I posted yesterday with only one reply...please read the following and let me know where I'm going wrong. THANKS!!! -Kirk BEGIN MESSAGE > > Yes, I configured apache with mod_so enabled and the > module is there. Still crashes on make. > >-Kirk You chose t

Re: [PHP] I need some help: PHP portal site/creating email accounts through form submission

2002-07-31 Thread Kevin Myrick
Thanks man Kevin Myrick www.ultimatealchemy.com --- Nick Wilson <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then Kevin Myrick declared > > So my specific problem is this: How do I create a > new > > user account on a *NIX system to have permissio

Re: [PHP] I cannot use mail() ?!?

2002-07-31 Thread Aaron Paxson
That is what I had orginally thought. However, in an article I found about mail(), he said it will also work on a linux box that does not have sendmail configured. If that's the case, how do I get sendmail to work with Exchange?? Aaron "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAI

Re: [PHP] I need some help: PHP portal site/creating email accounts through form submission

2002-07-31 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Kevin Myrick declared > So my specific problem is this: How do I create a new > user account on a *NIX system to have permissions to > send and receive email, for a web based email system. I think you'd need to take a look at the exec

Fw: [PHP] I need some help: PHP portal site/creating email accounts through form submission

2002-07-31 Thread Nathan Cook
> So my specific problem is this: How do I create a new > user account on a *NIX system to have permissions to > send and receive email, for a web based email system. In theory, and in my case, I couldn't have PHP do this because PHP is running on apache with the user status of nobody. So here i

Fw: [PHP] dir to array? - SOLVED

2002-07-31 Thread Kevin Stone
- Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "[EMAIL PROTECTED]" <'[EMAIL PROTECTED]'> Sent: Wednesday, July 31, 2002 3:03 PM Subject: Fw: [PHP] dir to array? - SOLVED > *LOL* I was just about to post an answer for you but it looks like you got > it figured out. Si

Re: [PHP] I need some help: PHP portal site/creating email accounts through form submission

2002-07-31 Thread Kevin Myrick
Specific problems? Ok, I think I can do something about that... I am not sure how many emails he can handle, but I am pretty sure he can create as many as he wants. Basically unlimited accounts. I am pretty sure that the permissions would be aimacable to do that, as in 755 permissions on his serv

Re: [PHP] Printing a PHP Class

2002-07-31 Thread Jerome Houston
Also, you could use print_r($obj); to look at everything in the class, with arrays already expanded for you. http://www.php.net/manual/en/function.print-r.php jerome >From: Marty McGowan <[EMAIL PROTECTED]> > >PHPers, > In a genaology application, where I add individuals to >an array: >

Re: [PHP] I need some help: PHP portal site/creating email accounts through form submission

2002-07-31 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Kevin Myrick declared > I also want to do a signup form for his site so when > people join the "community" forum, they will > automatically be given an email username and password > for his site. > > Any help would be very greatful.

Re: [PHP] Printing a PHP Class

2002-07-31 Thread 1LT John W. Holmes
Maybe code will help... > My problem is: > when printing the Class Variables using the "standard" approach: > = > function print_vars($obj) { > $arr = get_object_vars($obj); > while (list($prop, $val) = each($arr)) > { >echo "$prop\t$val\n"; > } > } > = Try this:

[PHP] extracting variables from files

2002-07-31 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I break out in a cold sweat just thinking about regex, so I thought I'd ask you if there was an easier way to do this: I want to look through all of the files in a directory and extract a certain variable from each. This i

Re: [PHP] Printing a PHP Class

2002-07-31 Thread 1LT John W. Holmes
Use is_array() to see if it's an array. If it is, then loop through it and display the contents... ---John Holmes... - Original Message - From: "Marty McGowan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 4:15 PM Subject: [PHP] Printing a PHP Class > PHPer

[PHP] I need some help: PHP portal site/creating email accounts through form submission

2002-07-31 Thread Kevin Myrick
Ok, I admit, I am relatively new to PHP. But I have some good ideas of what I want to do, and I have a client who wants to have a portal for his LANParty Site, and I am working on that, somewhat successfully. I am trying to use PHP-Nuke, but it won't load on his FreeBSD server. Any ideas? I also

Re: [PHP] dir to array? - SOLVED

2002-07-31 Thread Jas
I got it fixed, thanks again. Just in case anyone else needs help with this type of item look at readdir() at http://www.php.net Jas "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 01 August 2002 03:00, Jas wrote: > > Not sure why this

RE: [PHP] Printing a PHP Class

2002-07-31 Thread Jay Blanchard
[snip] My question is: How does one print out the "Array"? [/snip] Try print_r http://www.php.net/manual/en/function.print-r.php HTH! Jay I took a pain pill, why are you still here? *** * * * Texas PHP Developers

Re: [PHP] Update of the problem w/ code - conditional image generation problem?!

2002-07-31 Thread Alex Maslov
Sorry to bother you. That actually was my mistake. I was looking too hard elsewhere; it happens. Thank you Joseph. alex Jason Wong wrote: > On Tuesday 30 July 2002 04:47, Joseph Rosenblum wrote: > > Do you know you have a typo in that conditional there? Was that your > > real code? You missp

[PHP] Printing a PHP Class

2002-07-31 Thread Marty McGowan
PHPers, In a genaology application, where I add individuals to an array: $everyone[] = new Individual($id); I'd like to print the indiviuals' attributes. Some of these are in array's themselves: like a list of event's in one's life. My problem is: when printing the Class Variables u

Re: [PHP] Creating Image...

2002-07-31 Thread hugh danaher
You might also want to add a "quality" factor to the imagejpeg() function if the image "as is" looks a bit ratty. $factor="100" // or another suitable number between 100 and 0 imagejpeg($im, "test/im.jpg",$factor); hope this helps. Hugh - Original Message - From: "Andrew Chase" <[EMAIL PR

[PHP] Re: stripping quotes from urls and images

2002-07-31 Thread Joel Boonstra
> hi guys i now have a problem with urls i need to remove the quotes from both > href="" and src="" > > so > needs to be and i cant > remove quotes from all string matches :| Someone mentioned this already, but you should really know that if you remove quotes from your HTML attributes, your H

Re: [PHP] I cannot use mail() ?!?

2002-07-31 Thread Jason Wong
On Thursday 01 August 2002 03:17, Aaron Paxson wrote: > I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2. My email > server is Exchange 5.5sp3 > > SMTP is set correctly in my php.ini file, and have restarted Apache. > However, I still cannot send out a simple text email: I believe th

Re: [PHP] text area with quotes

2002-07-31 Thread Kevin Stone
addslashes($st); before you put the string into the d-base stripslashes($str); after you retrieve the string from the d-base Otherwise MySQL is going to do its best to limit the illegal characters on its own. :) -Kevin - Original Message - From: "Nathan Kline" <[EMAIL PROTECTED]> To: <[E

RE: [PHP] Creating Image...

2002-07-31 Thread Andrew Chase
To write a GD image to disk as a jpeg, do this instead: $im = imagecreate(50,100); imagejpeg($im, "test/im.jpg"); You don't need to use file handlers. Of course, without doing anything like adding text or lines to $im, it will just be written to disk as a blank image. :) -Andy > -Origin

Re: [PHP] text area with quotes

2002-07-31 Thread Jason Reid
If it adds the slashes, before u echo it back out, try stripslashes($var) first Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca - Original Message - From: "Nathan Kline" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 1:50 PM Subject: [PHP] text ar

Re: [PHP] dir to array?

2002-07-31 Thread Jason Wong
On Thursday 01 August 2002 03:00, Jas wrote: > Not sure why this isn't working, any help is appreciated. I am trying to > read the files in a directory and place them into an array. Here is the > code: > > /* Function to create array of directory contents */ > function dCNTS($files) { > $dir =

Re: [PHP] Creating Image...

2002-07-31 Thread Jason Wong
On Thursday 01 August 2002 02:11, mp wrote: > I want to create simple image... > I execute this script: > > $im = imagecreate (50, 100); > $fp = fopen("test/im.jpg","w"); > fwrite($fp, imagegd($im)); > fclose($fp); > > But there is some problems about this... > Could somebody help me? Only if

Re: [PHP] text area with quotes

2002-07-31 Thread 1LT John W. Holmes
www.php.net/stripslashes ---John Holmes... - Original Message - From: "Nathan Kline" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 3:50 PM Subject: [PHP] text area with quotes > this seems so obvious yet it is giving me problems. > > I have a text area in

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Jason Reid
Actually a meta refresh isnt a good idea for this example. id personally use a header, because then there is no entry in the back list for the processing page, unlike if u used a meta refresh, which, if i am correct, leaves an entry. Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca -

[PHP] text area with quotes

2002-07-31 Thread Nathan Kline
this seems so obvious yet it is giving me problems. I have a text area in a form that is passed to a php page to be written to a database. first though It displays the contents of the form in a preview page. then if everything is good the user click the button and it write to the DB. I pass th

[PHP] A Fond Farewell

2002-07-31 Thread Martin Clifford
Howdy List, Well, apparently we are no longer permitted to receive "personal" emails where I am working, so I'm afraid I'll have to part ways with the lot of you. It's unfortunate, considering I think this one of the best places to find information about PHP (and more!) on the internet. It s

Re: [PHP] String Question

2002-07-31 Thread Richard Baskett
"; ?> Rick A sense of humor can help you over look the unattractive, tolerate the unpleasant, cope with the unexpected, and smile through the unbearable. - Moshe Waldoks > From: "Randy Johnson" <[EMAIL PROTECTED]> > Date: Wed, 31 Jul 2002 15:26:15 -0400 > To: <[EMAIL PROTECTED]> > Subject: [PHP

Re: [PHP] String Question

2002-07-31 Thread Martin Clifford
Give this a whirl: \n"; } ?> I haven't tested it, but in theory it should find the length of the string (26), loop through it as long as $i is less than 26, incrementing 8 at a time. Each time it goes through, $str_array[] is fed a new element, which is a substring of $string that starts at

Re: [PHP] I cannot use mail() ?!?

2002-07-31 Thread Aaron Paxson
Excellent ideas Warren!! Being the IT Systems Administrator, I administrate everything from the firewalls to the exchange/DNS servers. Everything seems to be okay there. In doing another test, I was able to send out an email via my SMTP server to other domains, just not to me. It apparently di

RE: [PHP] I cannot use mail() ?!?

2002-07-31 Thread Vail, Warren
Outgoing email requires access to a SMTP client or relay. To prevent these relays from being used for SPAM, most shops will restrict which IP's can use the relay. Suggest you contact the administrators of your exchange server, and make sure the IP is on the list of eligible IP's for using the re

[PHP] String Question

2002-07-31 Thread Randy Johnson
Hello, I would like to be able to do the following but have not figured out a way to handle it $string="abcdefghijklmnopqrstuvwxz"; I would like to divde the above string into separate strings 8 charactes long , example $string1=abcdefgh $string2=ijklmnop $string3=qrstuvwx $string4=yz if the

[PHP] I cannot use mail() ?!?

2002-07-31 Thread Aaron Paxson
I am currently using PHP 4.2.2 with Apache 1.3 on RedHat 7.2. My email server is Exchange 5.5sp3 SMTP is set correctly in my php.ini file, and have restarted Apache. However, I still cannot send out a simple text email: The function returns true, but no delivery is made. In looking in my Exc

[PHP] Creating Image...

2002-07-31 Thread mp
I want to create simple image... I execute this script: $im = imagecreate (50, 100); $fp = fopen("test/im.jpg","w"); fwrite($fp, imagegd($im)); fclose($fp); But there is some problems about this... Could somebody help me? -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] dir to array?

2002-07-31 Thread Jas
Not sure why this isn't working, any help is appreciated. I am trying to read the files in a directory and place them into an array. Here is the code: /* Function to create array of directory contents */ function dCNTS($files) { $dir = opendir("/path/to/directory/"); while($imgs = readdir($d

FW: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Dan Vande More
You are correct Chris. However if you designed your application as the generic Master-Detail-(write changes) structure you would merely have to use echo ""; to take you back to the master set, assuming js is turned on, and that is the flow of your app. I mainly design in an intranet enviro

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Petre
Exactly. The only way I've seen that this can be prevented is if the form action is PHP_SELF, so, you call the page onto itself and use a isset($submit), but I have reasons for not going that route, one being that I have already have a navigation laid out, and changing that will be a nightmare!

[PHP] ARRRRGGGGHHHH! Weird Problems!

2002-07-31 Thread Tony Harrison
OK, im having some minor problems with my site. In artist.php (http://members.lycos.co.uk/ajohnh/artist.php - Source at: http://members.lycos.co.uk/ajohnh/source/artist.txt) If for example you view lyrics by Weird Al Yankovic (http://members.lycos.co.uk/ajohnh/artist.php?id=1) You'll see that the

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Danny Shepherd
On processing page (I.e the form's action page - where the stuff is entered into the db) set another session var so that your app knows that the form has been submitted, data entered etc. The actual form page should have some extra logic at the top which checks for this extra session var, redirect

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Lee
An Idea I have just had but not tested. To start:- Page1 - Input Form Page2 - Data Handling (i.e. processing the form) Page3 - Redirect handler. So, User fills in form on Page1 then submits it. Page2 then processes this data and if it handles it correctly it simply sends a redirect (something l

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread R'twick Niceorgaw
Here's what I think may work, not sure though.. set a session variable form_submitted=false before displaying the form for input. when posted, check if form_submitted==false, then only set the session variable form_submitted to true and process it. Else show an error message If the user hits

RE: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread César Aracena
Well... you simple can't unless you take advantage from all the wonderful features of PHP like it's capability to know where the request comes from. Another interesting point would be to see if your program is made correctly, so your script(s) will handle just the right stuff. That is, if you poin

RE: [PHP] web services and PHP

2002-07-31 Thread Andrew Chase
There is also a PEAR SOAP package available: http://pear.php.net/package-info.php?pacid=87 Some web services also use XML-RPC, a simpler predecessor to SOAP: http://www.xmlrpc.com There are a couple of PHP classes available for implementing XML-RPC clients and servers: http://phpxmlrpc.source

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Chris Boget
> Page1 (fill in data)->Page2(write data, instant redirect to p1, > unless dies from php/mysql) > Then the only way to repost, is to push the forward button. Unless, of course, they hit the "Submit" button again and I think that was the point the original poster was getting at. If the user cann

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Petre
I hear you, but how do I know if the POST comes from a valid form submit, or from a "back" ? I cannot simply unset the $_POST vars, as that will prevent anything from being posted correctly, right? César Aracena wrote: >I think that would be easy just by UNSETTING or emptying the variables >t

RE: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Dan Vande More
I do it this way Page1 (fill in data)->Page2(write data, instant redirect to p1, unless dies from php/mysql) Then the only way to repost, is to push the forward button. -Original Message- From: Petre [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 11:43 AM To: Martin Cliffo

[PHP] Re: Disabling Browser "BACK" button

2002-07-31 Thread Tony Harrison
If you write your own browser, who would use it? And without a back button - nobody "Petre" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > HI > Is there a way I can disable the client's browser back button, forcing > them to use the navigation I built into the

RE: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread César Aracena
I think that would be easy just by UNSETTING or emptying the variables that the form passed after they are processed. Do I make sence? César > -Original Message- > From: Petre [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 31, 2002 2:43 PM > To: Martin Clifford > Cc: php-general > Su

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Petre
Well, OK, then, How do you design the app NOT to allow the form to POST again when the user hits "BACK" Martin Clifford wrote: >There is never a way to disable back, forward, home, etc buttons. They all have >shortcuts that will ALWAYS work, so there's really no point. Additionally, it's al

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Martin Clifford
There is never a way to disable back, forward, home, etc buttons. They all have shortcuts that will ALWAYS work, so there's really no point. Additionally, it's all nice and good that your site works fine without using cookies, and don't take this offensively, but if the client cannot use the

Re: [PHP] mcrypt

2002-07-31 Thread J Smith
If all you need is some generic encryption that doesn't require mcrypt, you might want to take a look at a crypto extension I wrote called cryptopp-php. It does everything that the mcrypt extension does and might be a touch easier to use as far as syntax and such goes. (Plus, it works on Wind

[PHP] Disabling Browser "BACK" button

2002-07-31 Thread Petre
HI Is there a way I can disable the client's browser back button, forcing them to use the navigation I built into the page? Ideally, when they try to press "BACK" on browser, a popup asking them to use the navigation instead would win first prize. The reason I'm asking is again to do with sessi

RE: [PHP] Browser Javascript capabilities

2002-07-31 Thread Matt Babineau
Yeah probably, you might need to add a 1 or 2 second delay to the meta refresh... Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w: http://www.criticalcode.com PO BOX 601 Manchester, NH 03105 -Original Message- From: Chris Boget

Re: [PHP] Browser Javascript capabilities

2002-07-31 Thread Chris Boget
> Pardon my ignorance, but wouldn't this immediately send the browser onto the next page before it had the opportunity to get to and run this: > > location.href='newpage.php?jscript=on'; > ? If that's the case, wouldn't you want to delay the refresh by a few seconds to allow the javascript

Re: [PHP] Browser Javascript capabilities

2002-07-31 Thread Brent Baisley
You can't tell from the server side, but you can have a page send them to a different page depending on whether or not Javascript is enable. You could have a temp page with a Javascript redirect that is kicked off with an onLoad event handler and also have a meta refresh on the same page the ex

RE: [PHP] Browser Javascript capabilities

2002-07-31 Thread Matt Babineau
You could use a dummy page, with location.href='newpage.php?jscript=on'; What this should do is redirect if javascript is enabled or disabled giving you a URL variable to parse. I have not tested it but theorectically could work. Matt Babineau MCWD / CCFD ---

  1   2   >