[PHP] Re: SMS message ?

2002-07-31 Thread lallous
Lots of pay sites allow you to send SMS programmatically... check for example www.smsxchange.com Rija [EMAIL PROTECTED] wrote in message 035c01c2383d$b39df7f0$3d00a8c0@workelp3">news:035c01c2383d$b39df7f0$3d00a8c0@workelp3... Hi all, I'm a newbie, and I'd like some advice, and I don't have any

[PHP] HELP! Problem configuring PHP

2002-07-31 Thread Markas
Hello, people. So the problem. I have apache running with php-module. Recently I've upgraded the 4.0.6 version up to 4.2.2. All my php configuration directives in httpd.conf (php_flag, php_admin_flag, php_value, php_admin_value) are not working now. When I change libphp4.so back to 4.0.6 the

Re: [PHP] HELP! Problem configuring PHP

2002-07-31 Thread EdwardSPL
Hello ! You may try this installation steps : http://www.linuxguruz.org/z.php?id=32h=php+mysql+apache Before the installation steps, please uninstall all of the sources code packages that you have ever installed... Markas wrote: Hello, people. So the problem. I have apache running with

[PHP] Re: using Cascading style sheet

2002-07-31 Thread Paul Dionne
I am confident nearly all browsers support CSS. Only the oldest still lingering out there will not. But keep in mind your site is still readable if someone is still using an outdated browser. Advantages - many But the most important is consistency and centralization. You can change the

[PHP] PHP Installation Problem

2002-07-31 Thread Mark Colvin
Thanks all. I have now resolved. For future reference, the problem was as you said, I didn't have php configured for mysql support. I traced this back to the installation of the operating system, Red Hat 7.2. Through the graphical installation, all php modules apart from mysql support and odbc

Re: [PHP] How to become a good PHP coder?

2002-07-31 Thread Michael P. Carel
You could also visit http://devshed.com for some of their tutorials regarding PHP specially PHP101 nad alot of sample codes and projects. Mike - Original Message - From: Wee Keat [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, July 31, 2002 12:57 PM

[PHP] PHP + Apache + ODBC on linux

2002-07-31 Thread Jose Morales
Hi to all!! I have a problem and i think maby somebody can help me. I have an MS Sql server on a Windows 2000. I have a PHP web in a linux debian. Im trying to access to the MS SQL server through unixodbc. Unixodbc works well becouse y test it under linux , with isql and sqsh, and i know

[PHP] Re: my application is not able to communicate with qmail sever !

2002-07-31 Thread Sreedhar Katikireddy
Hi All ! First let me thank Jonas Pasche(qmail),David Phillips(qmail),Richard Lynch(php) and rest of the community for helping me to solve the problem.. Finally after a bit of trial and error it worked..Here I am pointing out where I did the mistakes.. The first mistake I did was..what Jonas

Re: [PHP] passing arrays between pages with serialize

2002-07-31 Thread Valeri Felberg
Hallo DoL, it worked when i didn't use urldecode(), just stripslashes(): page-1 $s_array1 = urlencode(serialize($array1)); header(Location: page-2?h_array1=$s_array1); page-2 $array1 = unserialize(stripslashes($_GET[h_array1])); The other way that worked was passing arrays in $_SESSION.

[PHP] Bcc with the mail command

2002-07-31 Thread Carlos Fernando Scheidecker Antunes
Hello all, Just a question about PHP mail comand. Usually I have something like this: if (mail($to,$Subject,$Body,$MailHeaders)) { return 1; } else { return 0; } Is there any way to use a BCC instead of to? I would like that the message sent did not have the address of the person it

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

2002-07-31 Thread Saci
The obvius and easy think is alwaiss the hard to find My problem vas the of the BR tag, that I forgot, dummy issue but I made The right adn working one now are http://myadress/php/mypage.php?modo=123color=redsize=3 and to get echo $_GET['modo'].BR; echo $_GET['color'].BR; echo

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

2002-07-31 Thread Saci
Besides my newbye status, I guess you are not update. the $_GET is a must have when you use set globals to off, ( this is default after 4.2.1), and must be maintained for security reasons. Since I'm newbye I play with new and fresh version, and I can get details that older phpers does not take

[PHP] Re: Bcc with the mail command

2002-07-31 Thread lallous
Yes, the header can contain this: $mailheader=Bcc: [EMAIL PROTECTED]\r\nTo: [EMAIL PROTECTED]; Elias, Carlos Fernando Scheidecker Antunes [EMAIL PROTECTED] wrote in message 012301c23874$982a5c70$93505ad1@Nando0">news:012301c23874$982a5c70$93505ad1@Nando0... Hello all, Just a question about PHP

[PHP] extending class then calling its original function

2002-07-31 Thread lallous
Hello when I extended a class and overwrite a function, can i after overwriting that function call it so it does what it used to do? for example in Delphi I say: procedure TMyExtendedClass.Proc1; begin // do new stuff here inherited; // calls the TMyClass.Proc1; end; Elias -- PHP General

Re: [PHP] web services and PHP

2002-07-31 Thread Brian McGarvie
A'la ASP WebServices perhaps? Bob Lockie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'd like to know if it's possible to use PHP to develop and implement Web Services. If so, please point me to sites, articles, or tutorials that discuss this topic in more

[PHP] file upload

2002-07-31 Thread sally tirchett
From: sally tirchett [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Date: Tue, 30 Jul 2002 21:07:05 + Hello, I would like some help with uploading a text file from c:\temp\trial.txt (pc with windows 2000 installed) and import it to a pc (red hat linux 6 installed) ip

Re: [PHP] web services and PHP

2002-07-31 Thread Andrey Hristov
There are two ways (SOAP) to use SOAP library written in PHP such as NuSOAP by Dietrich Ayala or to use PHP-SOAP toolkit (module for PHP written in C)by Brad Lafountain(coding) and Shane Caraveo(testing) (available at sourceforge.net). Regards, Andrey Bob Lockie [EMAIL PROTECTED] wrote in

[PHP] Bea Weblogic Webserver

2002-07-31 Thread MindHunter
Hi, Is it possible to configure PHP for a BEA Weblogic Webserver? If so anyone who did it? and how? Tx MH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extending class then calling its original function

2002-07-31 Thread Jason Wong
On Wednesday 31 July 2002 18:36, lallous wrote: Hello when I extended a class and overwrite a function, can i after overwriting that function call it so it does what it used to do? for example in Delphi I say: procedure TMyExtendedClass.Proc1; begin // do new stuff here inherited; //

[PHP] Question on File Move / Delete and Create Directory

2002-07-31 Thread Jack
Dear all I had setup a web server in windows NT 4.0 (IIS Server), there is some question i want to ask bask on the file management! 1. Is there any function in php that can create a folder/Directory in a specific path? 2. Is there any function in php that can move particular files to other

[PHP] Re: Bea Weblogic Webserver

2002-07-31 Thread Brian McGarvie
I'd suggest pursuing their customer support... It's not a very widely used websrever. It's also primarily a webserver optimized for serving JSP-based content/services - if I remember correctly... Mindhunter [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi,

[PHP] Re: Question on File Move / Delete and Create Directory

2002-07-31 Thread Brian McGarvie
http://www.php.net/manual/en/function.mkdir.php and the other 'filesystem' commands all work in windows... Jack [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear all I had setup a web server in windows NT 4.0 (IIS Server), there is some question i want to

[PHP] Consideration on Upgrade php

2002-07-31 Thread Jack
Dear all Currently i'm using PHP 4.04 in my Web Server, i heard that there is a bit different on the newer version of php! Like : something different in php.ini! I know that the newest version of php is 4.2.2, could someone pls tell me if there is different between PHP 4.0.4 with 4.2.2? I heard

[PHP] Re: Question on File Move / Delete and Create Directory

2002-07-31 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Dear all I had setup a web server in windows NT 4.0 (IIS Server), there is some question i want to ask bask on the file management! 1. Is there any function in php that can create a folder/Directory in a specific path? 2. Is there

Re: [PHP] Question on File Move / Delete and Create Directory

2002-07-31 Thread Justin French
on 31/07/02 8:39 PM, Jack ([EMAIL PROTECTED]) wrote: Dear all I had setup a web server in windows NT 4.0 (IIS Server), there is some question i want to ask bask on the file management! 1. Is there any function in php that can create a folder/Directory in a specific path? *sigh* Did you

Re: [PHP] Consideration on Upgrade php

2002-07-31 Thread EdwardSPL
Hello, Before the time, many users recommend me to use php 4.2.2 and apache 1.3.26 working with MySQL / IMP etc... So, I think I can give you some idea / suggestion, I'm installing apache 1.3.26 and php 4.2.2 now ! Edward. Jack wrote: Dear all Currently i'm using PHP 4.04 in my Web Server,

[PHP] Re: DOMXML...

2002-07-31 Thread Brian McGarvie
the line that gives the error... Warning: failed to load external entity employees.xml in C:\Inetpub\wwweloanshop\test\xml.php on line 36 What employees? is... $doc = xmldocfile(employees.xml) or die(What employees?); Lallous [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] stripping quotes within an image tag

2002-07-31 Thread electroteque
hi how is it possible to strip quotes from an image tag ? i need IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0 to look like IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: stripping quotes within an image tag

2002-07-31 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... hi how is it possible to strip quotes from an image tag ? i need IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0 to look like IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0 $string_no_quotes =

[PHP] Re: stripping quotes within an image tag

2002-07-31 Thread lallous
? echo preg_replace('/(img.+?src=)([^]+)([^]*)/i', '\1\2\3', 'IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0'); ? Elias, Electroteque [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi how is it possible to strip quotes from an image tag ? i need

[PHP] Re: stripping quotes within an image tag

2002-07-31 Thread lallous
that won't really work if he used the ALT attribute too: img alt=Hello world image src=helloworld.jpg David Robley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... hi how is it possible to strip

Re: [PHP] Re: stripping quotes within an image tag

2002-07-31 Thread Jason Wong
On Wednesday 31 July 2002 20:34, lallous wrote: that won't really work if he used the ALT attribute too: img alt=Hello world image src=helloworld.jpg But stripping the 's makes it invalid HTML anyway. The OP got what (s/he) asked for. -- Jason Wong - Gremlins Associates -

[PHP] Re: DOMXML...

2002-07-31 Thread lallous
hmm! 1)Can you show the code @ line 36 if possible 2)try to escape the \ (replace every \ with \\) Brian McGarvie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a problem with DOMXML... I installed it and it is showing up in a phpinfo() script...

[PHP] shorter way to write include function?

2002-07-31 Thread Bas Jobsen
Hello, i have /include/dotest.php: ? function dotest() {echo 'test';} ? and test.php: ? include('/include/dotest.php'); dotest(); ? Us there a shorter way to write out that. I mean something like include::dotest; Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Re: PHP4 and MS Excel?

2002-07-31 Thread Jay Blanchard
[snip] Are you actually telling me how to SAVE an excel file as text (CSV) format THROUGH excel ? H Thanks (I guess...) But I learned how to do that, oh I dunno, about 20 years ago. My question was how to do it using PHP and COM. [/snip] Actually this may be a hint ... fire up a

[PHP] Re: stripping quotes within an image tag

2002-07-31 Thread electroteque
sick dude exactly what i needed , i have been doing php for a good while now but i have never hot my head around pregs :| Lallous [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ? echo preg_replace('/(img.+?src=)([^]+)([^]*)/i', '\1\2\3', 'IMG height=44

[PHP] Re: shorter way to write include function?

2002-07-31 Thread lallous
if dotest.php has got the code, do this: echo eval(join('', file('dotest.php')); Bas Jobsen [EMAIL PROTECTED] wrote in message 02073113582400.32156@bjobsen">news:02073113582400.32156@bjobsen... Hello, i have /include/dotest.php: ? function dotest() {echo 'test';} ? and test.php: ?

Re: [PHP] Re: DOMXML...

2002-07-31 Thread Dan Hardiker
Check that the file employees.xml exists, and try providing it with an absolute reference rather than relative (eg: c:\\xmlfiles\\employees.xml). Also check that the xml file renders ok in Internet Explorer. the line that gives the error... Warning: failed to load external entity

[PHP] Re: stripping quotes within an image tag

2002-07-31 Thread electroteque
hmm sorry it didnt seem to work , it did then i gave it more than an img tag in a string and now it doesnt Lallous [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ? echo preg_replace('/(img.+?src=)([^]+)([^]*)/i', '\1\2\3', 'IMG height=44 alt=hspace=0

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

2002-07-31 Thread Martin Clifford
Because you HAVE to use it if you have register_globals OFF. Only when register_globals is ON can you do what you thought is more efficient, but isn't. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Lord Loh. [EMAIL

[PHP] There has to be a more elegant way of doing this

2002-07-31 Thread Mike
Heya, I was just wondering If there is a more elegant way of doing this... $string = str_replace('%mp3number%',$ARRAY['mp3number'],str_replace('%file_size%', $file_size,str_replace('%url%',$url,str_replace('%title%',$title,str_rep lace('%artist%',$artist,$format) Thank You, Mike [EMAIL

[PHP] Re: There has to be a more elegant way of doing this

2002-07-31 Thread lallous
NEWSTRING = preg_replace( array(/WHAT TO SEARCH FOR ARRAY/), array(/WHAT TO REPLACE WITH ARRAY/), STRING) Mike [EMAIL PROTECTED] wrote in message 007201c23891$4fee8400$[EMAIL PROTECTED]">news:007201c23891$4fee8400$[EMAIL PROTECTED]... Heya, I was just wondering If there is a more elegant way

[PHP] select multiple

2002-07-31 Thread [EMAIL PROTECTED]
Hello, i have done as told to select multiple value from a html form, but i cannot insert all of them into MySql database. it inserts Array into the field, instead of the list of values. What can i do? Is there a special script to insert them? i tried, $str = ; foreach ($tableau as $k=$v) $str=

Re: [PHP] Re: stripping quotes within an image tag

2002-07-31 Thread Jason Wong
On Wednesday 31 July 2002 20:38, electroteque wrote: hmm sorry it didnt seem to work , it did then i gave it more than an img tag in a string and now it doesnt If all you're doing is stripping the double-quotes why don't you use str_replace() as someone suggested? -- Jason Wong - Gremlins

Re: [PHP] select multiple

2002-07-31 Thread Martin Clifford
It depends on how you want them to be in the database. If you want comma-delimited, then just use implode(). $array = array(Red, Blue, Green); $comma_seperated = implode(, , $array); $space_seperated = implode( , $array); There really is no limit to how you want to do this. Then just use

Re: [PHP] select multiple

2002-07-31 Thread 1LT John W. Holmes
Use implode to make the array into a string and insert that. Depends on your database structure exactly how you'd do it... www.php.net/implode ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 31, 2002 8:56 AM Subject: [PHP]

Re: [PHP] Re: stripping quotes within an image tag

2002-07-31 Thread electroteque
easy done but then it would replace all matches ie blah in the content would be removed :| it worked when i did $string = img height=\44\ alt=\\ hspace=\0\ src=\blah.jpg\ width=\148\ border=\0\; but when i do $string =table class=\tablecontent\ cellspacing=\0\ cellpadding=\10\ width= \100%\

RE: [PHP] shorter way to write include function?

2002-07-31 Thread John Holmes
No. ---John Holmes... -Original Message- From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 7:58 AM To: PHP General Subject: [PHP] shorter way to write include function? Hello, i have /include/dotest.php: ? function dotest() {echo 'test';} ? and

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

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

[PHP] sablotron debian(unstable) iconv configure problems [please help]

2002-07-31 Thread Niklas Fondberg
I get: checking whether to enable xslt support... yes checking for XSLT Sablotron backend... yes checking libexpat dir for Sablotron XSL support... no checking enable JavaScript for Sablotron... yes checking for Sablotron libraries in the default path... found Sablotron in /usr checking for

[PHP] mail () will send to everyone except my own domain

2002-07-31 Thread Gareth
Hello all, Having a real problem. Have written a very simple php email script that I'm testing on our server. The script works fine if I set the 'to' field as any email address but our own - i.e. [EMAIL PROTECTED] This works fine, however as soon as I set the script to email me at the domain to

RE: [PHP] Re: There has to be a more elegant way of doing this

2002-07-31 Thread Mike
Sweet! You rock! It worked perfectly and now I don't have this giant line in the middle of my script :) Thanks, Mike [EMAIL PROTECTED] [EMAIL PROTECTED] -Original Message- From: lallous [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 10:11 AM To: [EMAIL PROTECTED] Subject:

[PHP] More ???s on passing variables

2002-07-31 Thread Paul Dionne
Hello everyone, I have a class in my script which has information on specific tables such as standard queries, tablenames, Index field... Then there is a function called StandardDropDown($ItemNum, $Name) which gets the info from the appropriate table you want and displays a dropdown menu

[PHP] Re: Consideration on Upgrade php

2002-07-31 Thread j.ellermann
I know that the newest version of php is 4.2.2, could someone pls tell me if there is different between PHP 4.0.4 with 4.2.2? I heard that when you post data from a form to other page, 4.2.2 will have problem, unless you got to set something from php.ini? is that right? It's that

Re: [PHP] More ???s on passing variables

2002-07-31 Thread Jason Wong
On Wednesday 31 July 2002 22:40, Paul Dionne wrote: I have a class in my script which has information on specific tables such as standard queries, tablenames, Index field... Then there is a function called StandardDropDown($ItemNum, $Name) which gets the info from the appropriate table you

[PHP] HowTo: Mutiple Radio Button Values

2002-07-31 Thread Shew
Hi - I'm a TOTAL php NEWBIE - my 1st bit of code!!!. Basically the input form page has 17 sets of radio buttons, each representing one game with 2 options - team 1 and team 2. What I want to do is a better way of checking each radio button value instead of using an if statement for each. This

Re: [PHP] How to become a good PHP coder?

2002-07-31 Thread Lee Doolan
Wee == Wee Keat [EMAIL PROTECTED] writes: [. . .] Wee might be new, but I deeply appreciate the generosity that all Wee of you have given us One way to show your appreciation sincerely would be to help others in the same way that people have helped you.

[PHP] stripping quotes from urls and images

2002-07-31 Thread electroteque
hi guys i now have a problem with urls i need to remove the quotes from both href= and src= so a href=blah img src= needs to be a href= img src= and i cant remove quotes from all string matches :| -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Browser Javascript capabilities

2002-07-31 Thread Dennis Gearon
Is it possible from the browser requests to tell if it is jscript enabled so that an appropriate page can be sent for en/disabled browsers? -- If You want to buy computer parts, see the reviews at: http://www.cnet.com/ **OR EVEN BETTER COMPILATIONS**!!

RE: [PHP] mail () will send to everyone except my own domain

2002-07-31 Thread Tom Ray
Gareth- This sounds more like a sendmail issue to me. I've run into this a few times myself. What's happening is simple, sendmail has a file that it reads generally called domains this file tells sendmail what domains it should be handling mail for. When you submit your form the first thing

RE: [PHP] Browser Javascript capabilities

2002-07-31 Thread Matt Babineau
You could use a dummy page, with META HTTP-EQUIV=Refresh CONTENT=0;URL=newpage.php?jscript=off SCRIPT location.href='newpage.php?jscript=on'; /SCRIPT 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

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

Re: [PHP] Browser Javascript capabilities

2002-07-31 Thread Chris Boget
META HTTP-EQUIV=Refresh CONTENT=0;URL=newpage.php?jscript=off 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: SCRIPT location.href='newpage.php?jscript=on'; /SCRIPT ? If that's the case, wouldn't

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

[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

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] 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 all

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

[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 page?

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

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 that

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 cannot

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:

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

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 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

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,

[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 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

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 body onload=\javascript:history.go(-2)\; to take you back to the master set, assuming js is turned on, and that is the flow of your app.

[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 =

[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 unsubscribe,

[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: ?php mail([EMAIL PROTECTED],Test,This is a test message); ? The function

[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

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] 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

Re: [PHP] String Question

2002-07-31 Thread Martin Clifford
Give this a whirl: ?php $string = abcdefghijklmnopqrstuvwxyz; $len = strlen($string) // in this case, 26 for($i=0; $i $len; $i+8) { $str_array[] = substr($string, $i, 8); } for($i=0; $i count($str_array); $i++) { echo $str_array[$i] . br\n; } ? I haven't tested it, but in theory it

Re: [PHP] String Question

2002-07-31 Thread Richard Baskett
? $string = 'abcdefghijklmnopqrstuvwxyz'; $strNum = ceil(strlen($string)/8); for ($i=0; $i$strNum; $i++) $newString[] = substr($string, ($i*8), 8); for ($j=0; $jcount($newString); $j++) echo string$j = $newString[$j]br /; ? Rick A sense of humor can help you over look the unattractive,

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

[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

[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

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

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 a form

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 you say what

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] 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 area

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 -Original

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: [EMAIL

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 the

[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 a href=blah img src= needs to be a href= img src= and i cant remove quotes from all string matches :| Someone mentioned this already, but you should really know that if you remove quotes from

  1   2   >