[PHP] Separating HTML code from PHP code

2007-03-10 Thread Don Don
Hi all, i am building a system using php and am trying to separate the html 
codes from the php codes (i.e. placing them in separate files), I am from the 
java struts/spring background and seem to be finding it difficult doing that at 
the moment with php.
   
  I've got a registration form in html with the action pointing to a separate 
php file that will process the form when submitted.  when i want to output 
errors or messages, its currently being outputed in the resulting code 
generated by the php file.  What i would like is to return to the html page and 
display the messages there.
   
  Can someone help me with ways of doing this pls ?
   
  Cheers
   

 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

[PHP] PHP URL issues

2007-03-12 Thread Don Don
I've got the following url rewriting problem.
   
  on page 1 i've got this
   
See 
   
  and on page 2 i've got this
   
  $messageID = $_REQUEST["messageId"];
$userID = $_REQUEST["userId"];
   
  
when i check to see the values of these variables its says its empty, but when 
i place my cursor on the link in
page 1 i can see both variables being show with their values in the browser.  
But on page 2 i cant get the values
Something seems wrong perharps ?
   
  Cheers

 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don

I've just noticed that if am passing only one value it works fine, but when am 
passing in more than one none works.
   
  Why is that or what could be wrong ?
   
  e.g.  this works
  echo "$letter_value  "; 
on test.php i can display the value of term but with this
   
  echo "$letter_value 
 "; on test.php the values are empty.
  
Nikola Stjelja <[EMAIL PROTECTED]> wrote:
  If you are going to insert variables like $var_name in a string you need to 
enclose that string with double qoutations marks, not single. PHP will replace 
var names with values only inside double qoutations.

Hope that helps 

  On 3/12/07, Don Don <[EMAIL PROTECTED]> wrote:  I've got the following url 
rewriting problem.

  on page 1 i've got this

See 

  and on page 2 i've got this 

  $messageID = $_REQUEST["messageId"];
$userID = $_REQUEST["userId"];


when i check to see the values of these variables its says its empty, but when 
i place my cursor on the link in 
page 1 i can see both variables being show with their values in the browser.  
But on page 2 i cant get the values
Something seems wrong perharps ?

  Cheers


-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.



-- 
Please visit this site and play my RPG!  

http://www.1km1kt.net/rpg/Marinci.php 



 
-
Don't get soaked.  Take a quick peek at the forecast 
 with theYahoo! Search weather shortcut.

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don

I've just noticed that if am passing only one value it works fine, but when am 
passing in more than one none works.
   
  Why is that or what could be wrong ?
   
  e.g.  this works
  echo "$letter_value  "; 
on test.php i can display the value of term but with this
   
  echo "$letter_value 
 "; on test.php the values are empty.
  
Nikola Stjelja <[EMAIL PROTECTED]> wrote:
  If you are going to insert variables like $var_name in a string you need to 
enclose that string with double qoutations marks, not single. PHP will replace 
var names with values only inside double qoutations.

Hope that helps 

  On 3/12/07, Don Don <[EMAIL PROTECTED]> wrote:   I've got the following url 
rewriting problem.

  on page 1 i've got this

See 

  and on page 2 i've got this 

  $messageID = $_REQUEST["messageId"];
$userID = $_REQUEST["userId"];


when i check to see the values of these variables its says its empty, but when 
i place my cursor on the link in 
page 1 i can see both variables being show with their values in the browser.  
But on page 2 i cant get the values
Something seems wrong perharps ?

  Cheers


-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.



-- 
Please visit this site and play my RPG!  

http://www.1km1kt.net/rpg/Marinci.php 



 
-
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
$query_string = 'testId='. urlencode(trim($tmpTestId)) . '&userId=' . 
urlencode(trim($tmpUserId));
print ' View Values 
';
   
  on view page i am trying to display the values using $_GET[value] and it sill 
returns ""

Satyam <[EMAIL PROTECTED]> wrote:
  You should use urlencode() on variables that will go into URL arguments. 
You might have a whitespace in any of those variables and the URL stops at 
the first whitespace. If those spaces are at the ends and are not 
significant, you might want to use trim().




- Original Message - 
From: "Don Don" 

To: "PHP List" 

Sent: Tuesday, March 13, 2007 11:37 AM
Subject: Re: [PHP] PHP URL issues


>
> I've just noticed that if am passing only one value it works fine, but 
> when am passing in more than one none works.
>
> Why is that or what could be wrong ?
>
> e.g. this works
> echo "$letter_value 
>  "; on test.php i can display the value of term but with this
>
> echo "> href='test.php?term=$letter_value&type=$type_value'>$letter_value 
>  "; on test.php the values are empty.
>
> Nikola Stjelja wrote:
> If you are going to insert variables like $var_name in a string you need 
> to enclose that string with double qoutations marks, not single. PHP will 
> replace var names with values only inside double qoutations.
>
> Hope that helps
>
> On 3/12/07, Don Don 
wrote: I've got the following 
> url rewriting problem.
>
> on page 1 i've got this
>
>   See 

>
> and on page 2 i've got this
>
> $messageID = $_REQUEST["messageId"];
> $userID = $_REQUEST["userId"];
>
>
> when i check to see the values of these variables its says its empty, but 
> when i place my cursor on the link in
> page 1 i can see both variables being show with their values in the 
> browser. But on page 2 i cant get the values
> Something seems wrong perharps ?
>
> Cheers
>
>
> -
> Now that's room service! Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel to find your fit.
>
>
>
> -- 
> Please visit this site and play my RPG!
>
> http://www.1km1kt.net/rpg/Marinci.php
>
>
>
>
> -
> Don't get soaked. Take a quick peek at the forecast
> with theYahoo! Search weather shortcut.





No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.10/720 - Release Date: 12/03/2007 
19:19

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



 
-
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.

[PHP] Preventing unwanted chars from outputting

2007-03-18 Thread Don Don
Hi all, 
  my program outputs some characters along with text from the database, these 
texts contain chars like ‘ ’.  How can i get rid of theses chars and 
display their meaning instead ?  I am thinking htmlspecialchars or html 
entities will do the job will it ?
   
   
  Cheers

 
-
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.

[PHP] Speed of apache/php4 on windows

2007-03-31 Thread Don Don
Hi all, i've got apache/php4 running on windows xp with good hardware 
configuration etc. However, the speed of execution of php pages is really slow. 
  When testing on my local development machine it takes a few more seconds 
executing php files than it should normally take.
   
  How can I up the speed of execution ?  is this possible ?  On my hosting 
server its really really fast !  and I will like the same settings for my local 
machine as it has a very good hardware configuration and memory.
   
  cheers 

 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

[PHP] Best opensource XML parser for PHP ?

2007-04-02 Thread Don Don
Hi all 
whats the best open source (free) xml parser for php (4 >) ?  I've come across 
a few but am looking the best as adjudged by the industry.

Cheers

 
-
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.

[PHP] SimpleXML end of element/tag error

2007-04-05 Thread Don Don
I am using simple xml to parse an xml file, the program parses the file and 
produces an error at the end of the foreach loop when it reaches the end of the 
tag, it tries to look for an element/tag when there is none and produces an 
error "Call to a member function attributes() on a non-object" the foreach loop 
looks like this
   
  foreach($xml->CS as $CS) 
{
 //processing takes place here
}
   
  when there are no more CS it fires an error
   
  How can i detect when there are no more elements/tags to parse and handle it?
   
  
cheers

 
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

Re: [PHP] SimpleXML end of element/tag error

2007-04-10 Thread Don Don
the code section is displayed below
   
  $xml = simplexml_load_file($_POST['feedurl']);
   
  foreach($xml->TT as $TT) 
{
foreach($TT->TOTS as $TOTS)
{
  $cnt++;
   
foreach($TT->TOTS[$cnt]->attributes() as $a => $b)   // problematic 
line.
{
   
  // DISPLAY THE TITLE AND THE VALUES
//echo " $a $b ";   
 }
}
}
   
  the error occours when the parser reaches the end of the last element and 
then fires the error
Fatal error: Call to a member function attributes() on a non-object in line 
(see problematic line)
   
  How can i solve that or determine when there are no more tags to parse.

JM Guillermin <[EMAIL PROTECTED]> wrote:
  And with :

foreach ($xml as $cs) {
.
}
??

jm

----- Original Message - 
From: "Don Don" 

To: "PHP List" 

Sent: Thursday, April 05, 2007 10:32 AM
Subject: [PHP] SimpleXML end of element/tag error


>I am using simple xml to parse an xml file, the program parses the file and 
>produces an error at the end of the foreach loop when it reaches the end of 
>the tag, it tries to look for an element/tag when there is none and 
>produces an error "Call to a member function attributes() on a non-object" 
>the foreach loop looks like this
>
> foreach($xml->CS as $CS)
> {
> //processing takes place here
> }
>
> when there are no more CS it fires an error
>
> How can i detect when there are no more elements/tags to parse and handle 
> it?
>
>
> cheers
>
>
> -
> It's here! Your new message!
> Get new email alerts with the free Yahoo! Toolbar. 



 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.

[PHP] PHp Install problems on debian linux

2007-04-11 Thread Don Don
Hi all am having issues with a little problem regarding php5 installation on a 
debian linux machine.
   
  while trying to install php5 and supported modules I get the following error 
messages, what can i do to get rid of them and continue with the installation ?
   
  The following packages have unmet dependencies:
  libapache2-mod-php5: Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-18 is to 
be installed
   Depends: libxml2 (>= 2.6.16) but 2.6.11-5 is to be 
installed
  php5-cli: Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-18 is to be installed
Depends: libxml2 (>= 2.6.16) but 2.6.11-5 is to be installed
  php5-curl: Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-18 is to be 
installed
 Depends: libcurl3 (>= 7.13.1-1) but it is not installable
 Depends: libidn11 (>= 0.5.13) but it is not installable
  php5-dev: Depends: autoconf but it is not installable
Depends: automake1.4 but it is not installable
Depends: libssl-dev but it is not installable
Depends: libtool but it is not installable
Depends: shtool but it is not installable
  php5-gd: Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-18 is to be installed
   Depends: libgd2-xpm (>= 2.0.33) but 2.0.28-3 is to be installed
   Depends: libpng12-0 (>= 1.2.8rel) but 1.2.5.0-7 is to be installed
  php5-imap: Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-18 is to be 
installed
  php5-ldap: Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-18 is to be 
installed
  php5-mhash: Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-18 is to be 
installed
  Depends: libmhash2 but it is not going to be installed
  php5-mysql: Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-18 is to be 
installed
  php5-odbc: Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-18 is to be 
installed
 Depends: unixodbc but it is not installable
  php5-xsl: Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-18 is to be installed
Depends: libxml2 (>= 2.6.16) but 2.6.11-5 is to be installed
Depends: libxslt1.1 (>= 1.1.12) but 1.1.8-5 is to be installed
E: Broken packages

   

   
-
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

[PHP] Best way to allow users to post youtube video links ?

2007-12-20 Thread Don Don
I want to allow people to be able to post links to videos on youtube.  I've 
implemented it in a certain way by allowing them to copy the  tag into a 
textarea and then submit the form.  I pick up the form data, validate and 
display on the site.

Is there any better way to do this or php plugins out there ?

Cheers

Don.

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Re: [PHP] Is there any Open Source Mailing List Manager that works good

2007-12-20 Thread Don Don
phplist.  its awesome, opensource and will support all your needs.

srihari naidu <[EMAIL PROTECTED]> wrote: Hi,
 I am searching for a good open source php mailing list manager for some 
days. can any one suggest me one please.
   
  Thanks in advance.
   
  Regards,
  Sri.

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

[PHP] Assistance needed with mysql query to achieve this php5

2008-01-24 Thread Don Don
Hi all I have a table below

CREATE TABLE `friends` (
  `id` int(11) NOT NULL auto_increment,
  `member_id` int(11) NOT NULL,
  `member` varchar(32) NOT NULL,
  `friendwith` varchar(32) NOT NULL,
  `friendWithId` int(11) NOT NULL,
  `status` varchar(32) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=49 ;


I run the following query to get my friends

SELECT fc.friendWithId, fc.friendWith, uu.image_path, uu.first_name, 
uu.last_name, uu.city, uu.gender, uu.relationship_status, uu.last_login FROM 
friends fc JOIN users uu ON fc.friendWithId = uu.user_id WHERE member_id = '%s' 
AND member = '%s' and fc.status='active'

I need help on how to modify the sql query so that it not only displays people 
who am friends with but  should also display people who are friends with me

What i currently have is a one way relationship, I am trying to modify the 
query to create a two way relationship.

Cheers

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Re: [PHP] Assistance needed with mysql query to achieve this php5

2008-01-25 Thread Don Don
Hi Richard, I'll try out your suggestions and will let you know if i had any 
luck.
The db structure is a little complicated hence the duplication of usernames.
Cheers

Richard Lynch <[EMAIL PROTECTED]> wrote: Just take out member_id = '%s' and use 
friendWIthId = '%s' instead.

Actually, I think you may need to swap member/friendwith as well...

But why you are storing everybody's NAME twice is beyond me...

Or maybe I'm guessing wrongly what the fields are...

On Thu, January 24, 2008 10:49 am, Don Don wrote:
> Hi all I have a table below
>
> CREATE TABLE `friends` (
>   `id` int(11) NOT NULL auto_increment,
>   `member_id` int(11) NOT NULL,
>   `member` varchar(32) NOT NULL,
>   `friendwith` varchar(32) NOT NULL,
>   `friendWithId` int(11) NOT NULL,
>   `status` varchar(32) NOT NULL,
>   PRIMARY KEY  (`id`)
> ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=49 ;
>
>
> I run the following query to get my friends
>
> SELECT fc.friendWithId, fc.friendWith, uu.image_path, uu.first_name,
> uu.last_name, uu.city, uu.gender, uu.relationship_status,
> uu.last_login FROM friends fc JOIN users uu ON fc.friendWithId =
> uu.user_id WHERE member_id = '%s' AND member = '%s' and
> fc.status='active'
>
> I need help on how to modify the sql query so that it not only
> displays people who am friends with but  should also display people
> who are friends with me
>
> What i currently have is a one way relationship, I am trying to modify
> the query to create a two way relationship.
>
> Cheers
>
>
> -
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.
> Try it now.


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?



   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

[PHP] Getting nuequiz pro wo to work in php5

2008-01-28 Thread Don Don
http://nuedream.com/nuequizpro/  

I cant get the above product to work in php5.  The product works in php4 but 
has problems with a $this variable in the database class with php5.  Has anyone 
used the above product in php5 and found a way arround it ?


Cheers

Don
   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[PHP] PhpMyAdmin slow on windows but fast on linux

2007-04-22 Thread Don Don
Hi all how can i make my phpmyadmin run fast on windows ?  I installed 
phpmyadmin on a linux and windows machines, but the windows version runs 
(executes) too slow, i.e. it takes to long for a page to be loaded, while it 
take less that 3 secs for the linux version.  Both however run on the same 
system config.
   
  Cheers

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

RE: [PHP] PhpMyAdmin slow on windows but fast on linux

2007-04-23 Thread Don Don
Hi Logan, yes
reason being the linux box is live and the windows box is dev.

"Buesching, Logan J" <[EMAIL PROTECTED]> wrote: You say they both have the same 
config, so do you mean that they both
have the same version of PHP, same computer setup (Memory, CPU speed,
HDD speed), both running the same version of Apache, and that both are
running as either CGI or an apache module?

-Logan

-Original Message-----
From: Don Don [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 22, 2007 4:34 PM
To: PHP List
Subject: [PHP] PhpMyAdmin slow on windows but fast on linux

Hi all how can i make my phpmyadmin run fast on windows ?  I installed
phpmyadmin on a linux and windows machines, but the windows version runs
(executes) too slow, i.e. it takes to long for a page to be loaded,
while it take less that 3 secs for the linux version.  Both however run
on the same system config.
   
  Cheers

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.


   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

[PHP] Redirecting (after output has started)

2007-04-25 Thread Don Don
  Hi all,  whats the best way to perform a redirect after out put has started ? 
 using header:location will not work unless theres been no output.
   
  I usuall use the method below, however am concerned for browsers that do not 
support javascript.
   
  $location = 'index.php';
  echo "\n";
  echo "document.location.href = '" . $location . "';\n";
  echo "\n";

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

[PHP] Make eclipse-php recognise custom extension as php ?

2007-04-27 Thread Don Don
Hi all, i've changed my server's apache config to recognize my custom extension 
for php files. And all my development filenames now come with this new 
extension.
   
  However my IDE (Php Eclipse) will not recognise this new extension as a php 
file, even though it opens it up but it looses all the php features (e.g. 
syntax highlighting, flags, errors, warnning, intellisence etc)
   
  How can i make php-eclipse recognise my new custom extension as a php file ?
   
  Cheers
   

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Re: [PHP] Re: Make eclipse-php recognise custom extension as php ?

2007-04-27 Thread Don Don
Hi Roberto, i tried out your tip, it does work but it looses the syntax 
highlighting functionality.  Is there anyway I can make the new extension open 
up its contents with syntax and other php oriented functionalities ?
   
  Cheers

Roberto Mansfield <[EMAIL PROTECTED]> wrote:
  Don Don wrote:
> Hi all, i've changed my server's apache config to recognize my custom
> extension for php files. And all my development filenames now come
> with this new extension.
> 
> However my IDE (Php Eclipse) will not recognise this new extension as
> a php file, even though it opens it up but it looses all the php
> features (e.g. syntax highlighting, flags, errors, warnning,
> intellisence etc)
> 
> How can i make php-eclipse recognise my new custom extension as a php
> file ?

I believe what you want to do is setup a file association in your
preferences. Give this a try:

Open Window->Preferences.

Under General->Editors->File Associations, add your new file extension.
Highlight the new extension and use the Associated Editors box below to
tie the extension to the PHP editor.

Good luck,
Roberto

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Re: [PHP] Re: Make eclipse-php recognise custom extension as php ? [SOLVED]

2007-04-27 Thread Don Don
Hi Roberto, I finally made it to work by using the content-type option in 
adition to your earlier tip.  I did this Windows -> Preferences -> Content 
Types -> i clicked on text in the top box -> and selected -> PHP Source file , 
then added my custom extension below.
   
  The new custom extension now behaves exactly like a php file.
   
  Cheers..at least your tip lead me there.

Don Don <[EMAIL PROTECTED]> wrote:
  Hi Roberto, i tried out your tip, it does work but it looses the syntax 
highlighting functionality. Is there anyway I can make the new extension open 
up its contents with syntax and other php oriented functionalities ?

Cheers

Roberto Mansfield wrote:
Don Don wrote:
> Hi all, i've changed my server's apache config to recognize my custom
> extension for php files. And all my development filenames now come
> with this new extension.
> 
> However my IDE (Php Eclipse) will not recognise this new extension as
> a php file, even though it opens it up but it looses all the php
> features (e.g. syntax highlighting, flags, errors, warnning,
> intellisence etc)
> 
> How can i make php-eclipse recognise my new custom extension as a php
> file ?

I believe what you want to do is setup a file association in your
preferences. Give this a try:

Open Window->Preferences.

Under General->Editors->File Associations, add your new file extension.
Highlight the new extension and use the Associated Editors box below to
tie the extension to the PHP editor.

Good luck,
Roberto

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

[PHP] Disable Soap Client and Soap Server in php5

2007-05-09 Thread Don Don
How can i disable soap client and server for php5, reason is that i've got 
NuSOAP (which i must use) and its classes clash with that of PHP5.  My php 
configuration (when using  displays soap client and server enabled 
for php5.  I need to disable if ..amd looking into the configs..to see how

cheers

   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Re: [PHP] Re: Disable Soap Client and Soap Server in php5

2007-05-09 Thread Don Don
I guess i installed php using apt-get along with the necessary modules e.g. 
soap etc, is it then the case of removing the soap library ? I dont want soap 
removed but just disabled.  Am not really sure if that will work.

itoctopus <[EMAIL PROTECTED]> wrote: I think the only way, and I really hope 
I'm mistaken, is to recompile php 
with "--disable-soap".
I don't think you can do it from php.ini.

-- 
itoctopus - http://www.itoctopus.com
"Don Don" 
 wrote in message 
news:[EMAIL PROTECTED]
> How can i disable soap client and server for php5, reason is that i've got 
> NuSOAP (which i must use) and its classes clash with that of PHP5.  My php 
> configuration (when using 
 displays soap client and server 
> enabled for php5.  I need to disable if ..amd looking into the configs..to 
> see how
>
> cheers
>
>
> -
> Ahhh...imagining that irresistible "new car" smell?
> Check outnew cars at Yahoo! Autos. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

[PHP] printing out this nested array

2007-05-14 Thread Don Don
I am having a bit of a confusion printing the values of an array i have. When i 
print_r this array it contains the following:
 
Array ( [ValueA] => ValueA [ValueB] => valueB [TestValue] => TestValue [Errors] 
=> Array ( [0] => Array ( [ErrorId] => AD27JH [ErrorMsg] => OK ) ) )  
  I can get the values of ValueA, ValueB and TestValue but I am a bit confused 
at getting the values of ErrorId and ErrorMsg.
   
  e.g. echo $arrayName['ValueA'];  // will display the value contained there
  
am thinking echo $arrayName['Errors']['ErrorId']; // should display the value 
but it does not
  Anyone wants to shed more light ?
  
Cheers


 
-
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.

Re: [PHP] printing out this nested array

2007-05-14 Thread Don Don
oops ! [0] 
   
  cheers

Richard Davey <[EMAIL PROTECTED]> wrote:
  Don Don wrote:

> I am having a bit of a confusion printing the values of an array i have. When 
> i print_r this array it contains the following:
> 
> Array ( [ValueA] => ValueA [ValueB] => valueB [TestValue] => TestValue 
> [Errors] => Array ( [0] => Array ( [ErrorId] => AD27JH [ErrorMsg] => OK ) ) ) 
> I can get the values of ValueA, ValueB and TestValue but I am a bit confused 
> at getting the values of ErrorId and ErrorMsg.
> 
> e.g. echo $arrayName['ValueA']; // will display the value contained there
> 
> am thinking echo $arrayName['Errors']['ErrorId']; // should display the value 
> but it does not
> Anyone wants to shed more light ?

$arrayName['Errors'][0]['ErrorId']

Cheers,

Rich
-- 
Zend Certified Engineer
http://www.corephp.co.uk

"Never trust a computer you can't throw out of a window"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



   
-
Luggage? GPS? Comic books? 
Check out fitting  gifts for grads at Yahoo! Search.

[PHP] Pokeing functionality

2007-05-22 Thread Don Don
Hi All, am trying to integrate a poke me poke you functionality to a web 2.0 
application am developing.  I've got some ideas of how to do this but am not 
sure if its the best aproach.  i am using the idea of a PM system since i've 
done that earlier.

Does anyone have any way of implementing a pokeing functionality in php ?

Cheers

   
-
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 

[PHP] Regular Expressions

2007-05-22 Thread Don Don
Hi all, am trying to run a regular expression to a list of user entered data on 
some forms.

I've creating what i think is a matching pattern for each category as shown 
below:

function validateEntry($regularExpression, $fieldValue)
{
if(preg_match($regularExpression, $fieldValue))
{
return "true";
}
else
{
return "false";
}
}

i made a list of rules that are passed into the function above

1)  [a-zA-Z][0-9] //allow any characters and numbers together anywhere within 
the text
2)  [a-zA-Z]  //allow only any charaters in the text
3)  [0-9]{2}  //allow only digits and they must be 2 in length
4)  [a-zA-Z]{1}   //allow only 1 character either uppercase or lowercase


but each of these fail the validation when data is entered appropriately , 
seems iam getting something wrong.


   Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user 
panel and lay it on 
us.http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
 hot CTA = Join Yahoo!'s user panel

Re: [PHP] Pokeing functionality

2007-05-22 Thread Don Don
Just the general method of implementing a poke, and then any application 
specific requirements can then be tailored to the application.
   
  If a user is not logged in, whenever they do, they'll get a notification that 
they have been poked by a particular user, and when they are logged in they'll 
get a poke when the page is refreshed, provided a poke was sent at that time.

Rob Desbois <[EMAIL PROTECTED]> wrote:
  Many ideas, all of them completely dependent on exactly what your
requirements are - should a poke be delivered to the target in real-time or
when they next load a page?
This is an extremely general question, like "I want users to be able to view
each other's profiles, how?"...

--rob

On 5/22/07, Don Don 
wrote:
>
> Hi All, am trying to integrate a poke me poke you functionality to a web
> 2.0 application am developing. I've got some ideas of how to do this but
> am not sure if its the best aproach. i am using the idea of a PM system
> since i've done that earlier.
>
> Does anyone have any way of implementing a pokeing functionality in php ?
>
> Cheers
>
>
> -
> Ready for the edge of your seat? Check out tonight's top picks on Yahoo!
> TV.




-- 
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.


   Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user 
panel and lay it on 
us.http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
 hot CTA = Join Yahoo!'s user panel

[PHP] Displaying HTML characters in real format

2007-07-12 Thread Don Don
Hi all,  

Am kind of confused between htmlspecialchars and htmlentities. I've got data  i 
need to display data on a page containing e.g. " but will like it to be 
displayed as "

htmlspecialchars or htmlentities or page character set ?

Cheers

   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 

[PHP] Reading sub-elements using XML Reader

2007-07-18 Thread Don Don
I am reading the following xml data in a very large file using XML reader, the 
xml structure looks like the xample given below


head
tail
head
part head 1
Part head 2
tail


head
tail
head
part head 1
Part head 2
tail


I can read all elements apart from the sub elements under  and am kind 
of looking for a way to read these sub elements.  I am using the code structure 
below

$reader = new XMLReader();
$reader->open($feedUrl);

while($reader->read())
{

switch($reader->nodeType)
{
case(XMLREADER::ELEMENT):

if($reader->localName == "engine")
{
echo $reader->value;
}
if($reader->localName == "brake")
{
echo $reader->value;
}
if($reader->localName == "tires")
{
echo $reader->value;
//I FIGURE OUT THAT I SHOULD BE ABLE TO READ THE SUB ELEMENTS HERE 
BUT TRYING TO FIGURE IT OUT
}
}
}


Any thoughts ?


Cheers
   
-
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.

[PHP] Cut text from a string

2007-08-02 Thread Don Don
hi all, am trying to cut some texts from a serries of string values e.g.

"this is how  we do (50 cents feat. the game)"
"give it to me (nelly feat timerland)"
"let me hold you (bow wow feat omarion)"

i want to cut off the text between the comas and i've seen some examples

 this is a test";
 preg_match('/.*<\/b>/i', $string, $result);
 echo strip_tags($result[0]);
 ?>
 
 this is a test";
 list($junk, $good) = split('', $string);
 list($good, $junk) = split('', $good);
 echo $good;
 ?>

but they wont work with comas

   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 

Re: [PHP] Cut text from a string

2007-08-02 Thread Don Don
I meant i want to get rid of the braces. e.g. get the text up to the start of 
the first brace and ignore anything from the first brace onwards

Dan Shirah <[EMAIL PROTECTED]> wrote: Maybe I'm blind, but I don't see any 
commas in the text you are referring
to.

On 8/2/07, Don Don 
 wrote:
>
> hi all, am trying to cut some texts from a serries of string values e.g.
>
> "this is how  we do (50 cents feat. the game)"
> "give it to me (nelly feat timerland)"
> "let me hold you (bow wow feat omarion)"
>
> i want to cut off the text between the comas and i've seen some examples
>
> > $string = "Hello world, this is a test";
> preg_match('/.*<\/b>/i', $string, $result);
> echo strip_tags($result[0]);
> ?>
>
> > $string = "Hello world, this is a test";
> list($junk, $good) = split('', $string);
> list($good, $junk) = split('', $good);
> echo $good;
> ?>
>
> but they wont work with comas
>
>
> -
> Yahoo! oneSearch: Finally,  mobile search that gives answers, not web
> links.



   
-
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 

[PHP] URL Rewrite not working for me

2008-07-25 Thread Don Don
Hi all,

I've set up a url rewrite code below.  

Options +FollowSymLinks
RewriteEngine on

RewriteRule profile/username/(.*) profile.php?username=$1

It only works when I type in this url 
http://www.example.com/profiles/profile/username/baller/

If i do not then the normal url 
http://www.example.com/profiles/profile.php?username=baller is displayed.



I just want the new url to show when ever I trype in the old url.

Cheers




  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] URL Rewrite not working for me

2008-07-25 Thread Don Don
Hi Per,
changed the rewrite to this

Options +FollowSymLinks
RewriteEngine on

RewriteRule profile/username/(.*) profile.php?username=$1 [r]

but sill does not work the way i want.  Entering this url 
http://example.com/profiles/profile.php?username=baller  does not cnage to  
http://localhost/profiles/profile/username/baller


--- On Fri, 7/25/08, Per Jessen <[EMAIL PROTECTED]> wrote:

> From: Per Jessen <[EMAIL PROTECTED]>
> Subject: Re: [PHP] URL Rewrite not working for me
> To: php-general@lists.php.net
> Date: Friday, July 25, 2008, 3:15 AM
> Don Don wrote:
> 
> > Hi all,
> > 
> > I've set up a url rewrite code below.
> > 
> > Options +FollowSymLinks
> > RewriteEngine on
> > 
> > RewriteRule profile/username/(.*)
> profile.php?username=$1
> > 
> > It only works when I type in this url
> >
> http://www.example.com/profiles/profile/username/baller/
> > 
> > If i do not then the normal url
> >
> http://www.example.com/profiles/profile.php?username=baller
> is
> > displayed.
> > 
> > I just want the new url to show when ever I trype in
> the old url.
> 
> Ah, you want an external redirect then.  It's really a
> case of RTFM, but
> just add '[r]' to the end of your RewriteRule. 
> 
> 
> 
> /Per Jessen, Zürich
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Creating user groups in social application (e.g. facebook group)

2008-07-25 Thread Don Don
Hi All,

Has anyone created or has tips for the creation of user groups in a app.  e.g. 
a Facebook group ?

I am trying to create groups in a social application where users on the site 
can join a group etc  its just much like a facebook group.

Any help will be appreciated.

Ta.


  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Store database password outside of public_html folder

2008-08-04 Thread Don Don
Hi All,

I've been reading on the internet that is most secure to store your database 
details outside of the public accessible folder.

I am a bit stuck on how to do this.

I've got a folder "db_details" that contains the file "dbdetails" which 
contains the database login info.  I normally include this file in any page 
requiring database connectivity e.g. include_once("db_details/dbdetails.php")

How can I now set this up so that the folder/files for the database are stored 
outside of the public_html folder ?

thanks


  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Date formatting issue

2008-08-05 Thread Don Don
Hi all,

I've got dates in the following formats e.g.

August 05, 2008, 10:14 am (e.g. today's date)
August 04, 2008, 7:08 am (e.g. yesterda's date)
August 03, 2008, 9:08 am (e.g. in the past)

I am trying to format these dates do I can display them like this

Today at 10:14 am (today)
Yesterday at 9:08 am (yesterday)
August 03, 9:08 am (if its not today or yesterday then display the month and 
day and time only)

Can anyone help with tips on how to achieve this ?

Cheers




  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Are there macros in PHP?

2002-12-23 Thread Don
Hi,

I need to search a MySQL table based on a condition that can change at
runtime.

Example
==
$condition = CustCode = "$HTTP_SESSION_VARS['logoncustcode']";

$queryID = mysql_query("SELECT * FROM CustTariff WHERE " . $condition . "
ORDER BY CustCode");

Will the above work?

Thanks,
Don



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Need help detecting attached files

2003-01-06 Thread Don
Hi,

I'm using a mailer class that allows for external file attachments.  I was using the 
test:

if ($HTTP_POST_FILES[$val]['size']) {

Which worked fine.  However, I wanted something more generic that works for POST or 
GET so I wrote the following code:

$request = 'HTTP_' . getenv('REQUEST_METHOD') . '_VARS';
global $$request;
if ($$request[$val]['size']) {

However, it is always failing the test and therefore not working.  Any ideas?

Thanks,
Don










---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.435 / Virus Database: 244 - Release Date: 12/30/2002


[PHP] question about 'register_globals' setting

2003-01-13 Thread Don
Hi,

I'm using I.E. 6.  I noticed that register_globals was set ON in my php.ini file so I 
changed it to OFF in as per the security warning.  I've noticed a side effect.  When I 
submit a form via POST and then go back from the results page, my form has been 
cleared, i.e.., as if the page has been reloaded.  Is this a normal effect of setting 
register_globals OFF?  Is there a way to continue caching?

Thanks,
Don


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Don
> Don wrote:
>
> >
> >I'm using I.E. 6.
> >
> Its not a browser thing, but a PHP thing.
>
> >  I noticed that register_globals was set ON in my php.ini file so I
changed it to OFF in as per the security warning.  I've noticed a side
effect.  When I submit a form via POST and then go back from the results
page, my form has been cleared, i.e.., as if the page has been reloaded.  Is
this a normal effect of setting register_globals OFF?  Is there a way to
continue caching?
> >
> Yes, this is exactly what register_globals does. If you are using the
> recommended setting of off then you get at your variables with the new
> super-globals, that is:
> $myvar = $_POST['myvar'];// for POST data.
> $myvar = $_GET['myvar'];// for GET data.
> $myvar = $_REQUEST['myvar'];// for both POST and GET data.
>
> Hope this helps.
>
> Chris

Hi,

Thanks for your response but I don't think this is what I was asking; could
be wrong though.

What I want to know is why is my initial HTML form is empty when I click on
the back browser button.  There is no PHP in my form, just straight HTML.  I
only use PHP to process the form, not to create it.

Order of events

Fill out form
Click submit
PHP processes script and returns confirmation page
User clicks browser BACK button and returns to form
Where have the user's entries vanished to?

Thanks,
Don


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] question on Header(location

2003-01-13 Thread Don
When I use ---> header("Location: http://www.somepage.com), it redirects to
my page no problem.  My question is, is there a PHP trick I can use to make
it open in a new browser window?

I'm adverse to using JavaScript as some users may not have it turned on (odd
I know but a reality still).

Thanks,
Don


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Why is my URL encoding itself?

2003-01-14 Thread Don
Hi,

I have a PHP file that displays a form and submits for processing.  The processing 
script redirects to a results page.  I am using formmail.php to process.

In my PHP page, the FORM line reads as:
echo '' . "\n";

When I try in I.E., it works fine.

When I try in Netscape 7, I get a page not found error.  Looking at Netscape's address 
bar, it says:
http://www.lclnav.com/staging_area/login/..%5Cphpscript%5Cgeneral%5Cformmail.php

Why is it encoding my URL???

Thanks,
Don




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


Re: [PHP] Why is my URL encoding itself?

2003-01-14 Thread Don
- Original Message - 
From: "Chris Shiflett" <[EMAIL PROTECTED]>
To: "Don" <[EMAIL PROTECTED]>; "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 4:24 PM
Subject: Re: [PHP] Why is my URL encoding itself?


> --- Don <[EMAIL PROTECTED]> wrote:
> > In my PHP page, the FORM line reads as:
> > echo ' > action="..\phpscript\general\formmail.php">' . "\n";
> > 
> > When I try in I.E., it works fine.
> > 
> > When I try in Netscape 7, I get a page not found error.
> 
> This is something I refer to as Windowsitis. URLs use
> slashes, not backslashes:
> 
> action="../phpscript/general/formmail.php"
> 
> Chris

Yup.  That was it.

My bad; I should have caught that.

Thanks,
Don


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Acessing $DOCUMENT_ROOT

2003-01-17 Thread Don
Hi,

How do I access $DOCUMENT_ROOT when register_gobals is set off?  I think
there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't
find it in the documentation.

Thanks,
Don


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Question about using session and "logging out"

2003-01-17 Thread Don
Hi,

I have an application that uses sessions to allow customers to access a restricted 
area.  That is, they are prompted for a user login and password.  I then use sessions 
to track each customer.  At the top of each page, I have placed the following PHP code:

session_cache_limiter('Cache-control: private');
session_start();

Everything works fine.  However, I have a logout link that when clicked, runs the 
following PHP code (where userid is the login name):

session_cache_limiter('nocache');
if (isset($HTTP_SESSION_VARS['userid'])) {
   $HTTP_SESSION_VARS['userid'] = '';
   session_unregister($HTTP_SESSION_VARS['userid']);
}
session_unset();
session_destroy();
Header('Location: ' . 'http://www.lclnav.com' . $globals->relative_path . 
'customerlogin_standard.html');

I think the above is all that is needed to end the session.  I use the Header() 
function to take the user back to the login  page.

Here is my question:  Once I click on the "logout" link and am taken back to the main 
login page, I can click on the browser BACK button and still get my previous page 'as 
if I was still logged in'.  Please note that clicking on REFRESH tells me that I am 
not really logged in.

I know that browsers cache pages and there may not be anything I can do, however, I 
have seen sites that seem to work around this; i.e.., clicking on the back button 
loads a pages telling the user that they are no longer logged in.  This is what I want 
to emulate.  Is there a PHP method to always force a reload the first time a page is 
called?

Thanks,
Don


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


[PHP] How can I detetct if session cookies are enabled?

2003-02-28 Thread Don
Hi,

I have a site that requires a user to login in for extended function.  The
site uses sessions.  I note that if a user configures his/her browser block
all cookies, he/she will not be able to navigate the extended part of the
site.  Is there a way (PHP code if possible please) to verify if session
cookies are enabled in the user's browser?

Thanks,
Don



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem installing PHP 4.3.1 - won't compile due to odd error.

2003-03-31 Thread Don
Hi,

Trying to install PHP 4.3.1 but getting the following error message:

"configure error: cURL version 7.9.8 or later is required to compile php
with cURL support"

I have curl installed; when I issue a "curl -V", the version number reported
is 7.10.3

Can anyone tell me what the install is looking for?

Thanks in advance,
Don



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to odd error.

2003-04-01 Thread Don
I altered the configuration to say --> --with-curl=/usr/bin  as that is the
location of the curl executable but I am still getting the compile error.
Any other suggestion?

- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Don" <[EMAIL PROTECTED]>
Cc: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 7:27 AM
Subject: Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to odd
error.


> Run ./configure --help, it will tell you how to specify the path to curl
> libraries
>
> Don wrote:
>
> >Hi,
> >
> >Trying to install PHP 4.3.1 but getting the following error message:
> >
> >"configure error: cURL version 7.9.8 or later is required to compile php
> >with cURL support"
> >
> >I have curl installed; when I issue a "curl -V", the version number
reported
> >is 7.10.3
> >
> >Can anyone tell me what the install is looking for?
> >
> >Thanks in advance,
> >Don
> >
> >
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003
> >
> >
> >
> >
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to odderror.

2003-04-01 Thread Don
Ok. I seemed to have solved the problem but it seemed really dumb to me.  I
did a "curl -version" from teh command prompt and it outputed 7.10.3

BUT, when I looked at the "curl-config" file, it specified the following for
the --version section:

--version)
 echo libcurl 7.9.5
 exit 0
 ;;

So, all I did was change the 7.9.5 to 7.10.3 and no more compile error.
Silly huh?

- Original Message -
From: "Adam Voigt" <[EMAIL PROTECTED]>
To: "Don" <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 11:19 AM
Subject: Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to
odderror.


> Just out of curiosity, try --with-curl=/usr.
>
> On Tue, 2003-04-01 at 11:12, Don wrote:
> > I altered the configuration to say --> --with-curl=/usr/bin  as that is
the
> > location of the curl executable but I am still getting the compile
error.
> > Any other suggestion?
> >
> > - Original Message -
> > From: "Marek Kilimajer" <[EMAIL PROTECTED]>
> > To: "Don" <[EMAIL PROTECTED]>
> > Cc: "php list" <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 01, 2003 7:27 AM
> > Subject: Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to
odd
> > error.
> >
> >
> > > Run ./configure --help, it will tell you how to specify the path to
curl
> > > libraries
> > >
> > > Don wrote:
> > >
> > > >Hi,
> > > >
> > > >Trying to install PHP 4.3.1 but getting the following error message:
> > > >
> > > >"configure error: cURL version 7.9.8 or later is required to compile
php
> > > >with cURL support"
> > > >
> > > >I have curl installed; when I issue a "curl -V", the version number
> > reported
> > > >is 7.10.3
> > > >
> > > >Can anyone tell me what the install is looking for?
> > > >
> > > >Thanks in advance,
> > > >Don
> > > >
> > > >
> > > >
> > > >---
> > > >Outgoing mail is certified Virus Free.
> > > >Checked by AVG anti-virus system (http://www.grisoft.com).
> > > >Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> --
> Adam Voigt ([EMAIL PROTECTED])
> The Cryptocomm Group
> My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Another Problem installing PHP 4.3.1 - won't compile due to odderror.

2003-04-01 Thread Don
Ok, now that I've solved my 'curl' problem, I've run in to another problem.
Now I am getting teh following error:

"configure: error: snmp.h not found. Check your SNMP installation."

I've installed the ucd-snmp rpms so what am I missing?

Thanks,
Don

- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Don" <[EMAIL PROTECTED]>
Cc: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 11:45 AM
Subject: Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to
odderror.


> You might have it installed twice (e.g. once from rpm and once from
> source). Try
> locate curl-config
>
>
> Don wrote:
>
> >Ok. I seemed to have solved the problem but it seemed really dumb to me.
I
> >did a "curl -version" from teh command prompt and it outputed 7.10.3
> >
> >BUT, when I looked at the "curl-config" file, it specified the following
for
> >the --version section:
> >
> >--version)
> > echo libcurl 7.9.5
> > exit 0
> >     ;;
> >
> >So, all I did was change the 7.9.5 to 7.10.3 and no more compile
error.
> >Silly huh?
> >
> >- Original Message -
> >From: "Adam Voigt" <[EMAIL PROTECTED]>
> >To: "Don" <[EMAIL PROTECTED]>
> >Sent: Tuesday, April 01, 2003 11:19 AM
> >Subject: Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to
> >odderror.
> >
> >
> >
> >
> >>Just out of curiosity, try --with-curl=/usr.
> >>
> >>On Tue, 2003-04-01 at 11:12, Don wrote:
> >>
> >>
> >>>I altered the configuration to say --> --with-curl=/usr/bin  as that is
> >>>
> >>>
> >the
> >
> >
> >>>location of the curl executable but I am still getting the compile
> >>>
> >>>
> >error.
> >
> >
> >>>Any other suggestion?
> >>>
> >>>- Original Message -
> >>>From: "Marek Kilimajer" <[EMAIL PROTECTED]>
> >>>To: "Don" <[EMAIL PROTECTED]>
> >>>Cc: "php list" <[EMAIL PROTECTED]>
> >>>Sent: Tuesday, April 01, 2003 7:27 AM
> >>>Subject: Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to
> >>>
> >>>
> >odd
> >
> >
> >>>error.
> >>>
> >>>
> >>>
> >>>
> >>>>Run ./configure --help, it will tell you how to specify the path to
> >>>>
> >>>>
> >curl
> >
> >
> >>>>libraries
> >>>>
> >>>>Don wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Hi,
> >>>>>
> >>>>>Trying to install PHP 4.3.1 but getting the following error message:
> >>>>>
> >>>>>"configure error: cURL version 7.9.8 or later is required to compile
> >>>>>
> >>>>>
> >php
> >
> >
> >>>>>with cURL support"
> >>>>>
> >>>>>I have curl installed; when I issue a "curl -V", the version number
> >>>>>
> >>>>>
> >>>reported
> >>>
> >>>
> >>>>>is 7.10.3
> >>>>>
> >>>>>Can anyone tell me what the install is looking for?
> >>>>>
> >>>>>Thanks in advance,
> >>>>>Don
> >>>>>
> >>>>>
> >>>>>
> >>>>>---
> >>>>>Outgoing mail is certified Virus Free.
> >>>>>Checked by AVG anti-virus system (http://www.grisoft.com).
> >>>>>Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>---
> >>>Outgoing mail is certified Virus Free.
> >>>Checked by AVG anti-virus system (http://www.grisoft.com).
> >>>Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003
> >>>
> >>>
> >>>--
> >>>PHP General Mailing List (http://www.php.net/)
> >>>To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>>
> >>>
> >>--
> >>Adam Voigt ([EMAIL PROTECTED])
> >>The Cryptocomm Group
> >>My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
> >>
> >>
> >>
> >
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003
> >
> >
> >
> >
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another Problem installing PHP 4.3.1 - won't compile due to error.

2003-04-01 Thread Don
Ok, that problem solved but now another one pops up when I run 'make'.
Please note that it is complaining about code that came with the PHP tarball
and I haven't changed anything.  Below are the errors for your viewing
(dis)pleasure.  Any guidance would be appreciated.  This isn't supposed to
be so hard.

In file included from /usr/local/php-4.3.1/ext/curl/curl.c:45:
/usr/local/php-4.3.1/ext/curl/php_curl.h:115: parse error before `CURLM'
/usr/local/php-4.3.1/ext/curl/php_curl.h:115: warning: no semicolon at end
of struct or union
/usr/local/php-4.3.1/ext/curl/php_curl.h:124: parse error before `mcode'
/usr/local/php-4.3.1/ext/curl/php_curl.h:124: warning: data definition has
no type or storage class
/usr/local/php-4.3.1/ext/curl/php_curl.h:127: parse error before `}'
/usr/local/php-4.3.1/ext/curl/php_curl.h:127: warning: data definition has
no type or storage class
/usr/local/php-4.3.1/ext/curl/curl.c: In function `zm_startup_curl':
/usr/local/php-4.3.1/ext/curl/curl.c:182: `CURLOPT_CAPATH' undeclared (first
use in this function)
/usr/local/php-4.3.1/ext/curl/curl.c:182: (Each undeclared identifier is
reported only once
/usr/local/php-4.3.1/ext/curl/curl.c:182: for each function it appears in.)
/usr/local/php-4.3.1/ext/curl/curl.c:221: `CURLINFO_REDIRECT_TIME'
undeclared (first use in this function)
/usr/local/php-4.3.1/ext/curl/curl.c:222: `CURLINFO_REDIRECT_COUNT'
undeclared (first use in this function)
/usr/local/php-4.3.1/ext/curl/curl.c:278: `CURL_NETRC_OPTIONAL' undeclared
(first use in this function)
/usr/local/php-4.3.1/ext/curl/curl.c:279: `CURL_NETRC_IGNORED' undeclared
(first use in this function)
/usr/local/php-4.3.1/ext/curl/curl.c:280: `CURL_NETRC_REQUIRED' undeclared
(first use in this function)
/usr/local/php-4.3.1/ext/curl/curl.c: In function `zif_curl_setopt':
/usr/local/php-4.3.1/ext/curl/curl.c:732: `CURLOPT_CAPATH' undeclared (first
use in this function)
/usr/local/php-4.3.1/ext/curl/curl.c: In function `zif_curl_getinfo':
/usr/local/php-4.3.1/ext/curl/curl.c:1053: `CURLINFO_REDIRECT_COUNT'
undeclared (first use in this function)
/usr/local/php-4.3.1/ext/curl/curl.c:1077: `CURLINFO_REDIRECT_TIME'
undeclared (first use in this function)
make: *** [ext/curl/curl.lo] Error 1



> Assuming you also installed ucd-snmp-devel-*.rpm, likely you need to
> specify --with-snmp=/usr or --with-snmp=/usr//include/ucd-snmp
>
> Don wrote:
>
> >Ok, now that I've solved my 'curl' problem, I've run in to another
problem.
> >Now I am getting teh following error:
> >
> >"configure: error: snmp.h not found. Check your SNMP installation."
> >
> >I've installed the ucd-snmp rpms so what am I missing?
> >
> >Thanks,
> >Don
> >
> >- Original Message -
> >From: "Marek Kilimajer" <[EMAIL PROTECTED]>
> >To: "Don" <[EMAIL PROTECTED]>
> >Cc: "php list" <[EMAIL PROTECTED]>
> >Sent: Tuesday, April 01, 2003 11:45 AM
> >Subject: Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to
> >odderror.
> >
> >
> >
> >
> >>You might have it installed twice (e.g. once from rpm and once from
> >>source). Try
> >>locate curl-config
> >>
> >>
> >>Don wrote:
> >>
> >>
> >>
> >>>Ok. I seemed to have solved the problem but it seemed really dumb to
me.
> >>>
> >>>
> >I
> >
> >
> >>>did a "curl -version" from teh command prompt and it outputed 7.10.3
> >>>
> >>>BUT, when I looked at the "curl-config" file, it specified the
following
> >>>
> >>>
> >for
> >
> >
> >>>the --version section:
> >>>
> >>>--version)
> >>>echo libcurl 7.9.5
> >>>exit 0
> >>>;;
> >>>
> >>>So, all I did was change the 7.9.5 to 7.10.3 and no more compile
> >>>
> >>>
> >error.
> >
> >
> >>>Silly huh?
> >>>
> >>>- Original Message -
> >>>From: "Adam Voigt" <[EMAIL PROTECTED]>
> >>>To: "Don" <[EMAIL PROTECTED]>
> >>>Sent: Tuesday, April 01, 2003 11:19 AM
> >>>Subject: Re: [PHP] Problem installing PHP 4.3.1 - won't compile due to
> >>>odderror.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>Just out of curiosity, try --with-curl=/usr.
> >>>>
> >>>>On Tue, 2003-04-01 at 11:12, Don wrote:
> >>

Re: [PHP] Another Problem installing PHP 4.3.1 - won't compile due to error.

2003-04-02 Thread Don
Yup, you were correct. the 7.10.3 rpm was installed but I forgot to install
the 7.10.3 development rpm.  I did so and all compiles fine now.

Thanks,
Don

> My guess you have a mess in your curl library installation. For example
> you use header from version 7.9.5 and specify that you have version
> 7.10.3. Find all libcurl.so and curl.h files on your system and check if
> they are really the version you think they are. You may try running rpm
> -V libcurl(-devel), this verifys if any file has changed
>
> Don wrote:
>
> >Ok, that problem solved but now another one pops up when I run 'make'.
> >Please note that it is complaining about code that came with the PHP
tarball
> >and I haven't changed anything.  Below are the errors for your viewing
> >(dis)pleasure.  Any guidance would be appreciated.  This isn't supposed
to
> >be so hard.
> >
> >
> >
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problem with PHP and MySQl after install

2003-04-02 Thread Don
1) Installed MySQL 4.0.12

2) Installed PHP 4.3.1
One of my config options was --with-mysql=shared,/usr

3) added the following to /etc/ld.so.conf and ran ldconfig:
/usr/lib/libmysqlclient.so
/usr/lib/mysql

4) When I try to run phpmyadmin, I get the following error:
cannot load MySQL extension,
please check PHP Configuration.


5) Looking at the explanation of the errro still leaves me baffled on how to
proceed:
[1.20] I receive the error "cannot load MySQL extension, please check PHP
Configuration".
To connect to a MySQL server, PHP needs a set of MySQL functions called
"MySQL extension". This extension may be part of the PHP server
(compiled-in), otherwise it needs to be loaded dynamically. Its name is
probably mysql.so or mysql.dll. phpMyAdmin tried to load the extension but
failed.

What was I missing fom my install that is causing my problem?

Thanks,
Don


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] question: installing PHP with mysql isn't working?

2003-04-02 Thread Don
Hi,

Trying to install PHP with the ability to interact with MySQL.  In my
configuration, I've included the option:

--with-mysql=shared,/usr

There are no compile errors.  Any idea why PHP is not recognizing any MySQL
functions?

Thanks,
Don


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Don
Forgive my ignorance but I don't follow.  I am not getting any compiling
error messages or warnings.


> > 2) Installed PHP 4.3.1
> > One of my config options was --with-mysql=shared,/usr
>
> I may be completely off base, but where did you intend the mysql
> installation to go? Did it end up there? (I'm thinking maybe not.)
>
> --
> Joel Rees <[EMAIL PROTECTED]>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Don
Further to this point, I've just read that RedHat installed PHP RPM's do not
come with MySQL support.  Now I've d/l the latest stable version form
php.net, version 4.3.1 but I still cannot get MySQL support after compiling
and installing.

So..., how does one remove every trace of a PHP install; I want to start
over from scratch?  I've alrweady upgraded the MySQL package to version
4.0.12.

Thanks,
Don

> > 2) Installed PHP 4.3.1
> > One of my config options was --with-mysql=shared,/usr
>
> I may be completely off base, but where did you intend the mysql
> installation to go? Did it end up there? (I'm thinking maybe not.)
>
> --
> Joel Rees <[EMAIL PROTECTED]>
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Don
The expected MySQL section is not even listed in the phpinfo() page.  This
would explain my "undefined function" errors when attempting MySQL
functions.  What I can't figure out is why MySQL is not being recognized by
PHP.


> At 16:58 03.04.2003, Don spoke out and said:
> [snip]
> >Further to this point, I've just read that RedHat installed PHP RPM's do
not
> >come with MySQL support.  Now I've d/l the latest stable version form
> >php.net, version 4.3.1 but I still cannot get MySQL support after
compiling
> >and installing.
> >
> >So..., how does one remove every trace of a PHP install; I want to start
> >over from scratch?  I've alrweady upgraded the MySQL package to version
> >4.0.12.
> [snip]
>
> After recompile make sure Apache uses the module you have just compiled.
> Have a look at phpinvo() and check the build date to see if it's using the
> very last buld.
>
>
> --
>>O Ernest E. Vogelsinger
>(\) ICQ #13394035
> ^ http://www.vogelsinger.at/
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Don
Hmmm...well the php libraries indicate that it is PHP 4 which is what I had
originally (upgraded from 4.1.x to 4.3.1).  I did use the
"i386-redhat'linux" configuration option.

I am using the "--with-mysql=shared/usr" option.  Following your point
below, I did a search on all instances of 'mysql' and found the following.
However, any change I made to the mysql config. directory gives me the
error:

"error: Cannot find header file under "

Please tell me what the directory should be in my mysql config option.

Thanks,
Don

/usr/bin/mysql
/usr/lib/mysql
/usr/libexec/webmin/caldera/mysql
/usr/libexec/webmin/mscstyle3/mysql
/usr/libexec/webmin/mysql
/usr/share/pear/tests/DB/tests/mysql
/usr/share/mysql
/usr/include/mysql
/usr/local/php-4.3.1/ext/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/var/lock/subsys/mysql
/etc/rc.d/init.d/mysql
/etc/logrotate.d/mysql
/etc/webmin/mysql



> At 17:09 03.04.2003, Don spoke out and said:
> [snip]
> >The expected MySQL section is not even listed in the phpinfo() page.
This
> >would explain my "undefined function" errors when attempting MySQL
> >functions.  What I can't figure out is why MySQL is not being recognized
by
> >PHP.
> [snip]
>
> I believe it's a directory mismatch between your mysql build and php
build.
> Usually the mysql build is either located in /usr or /usr/local (check for
> directories /usr/include/mysql and /usr/lib/mysql), you need to specify
the
> correct directory when configuring php.
>
> The next issue may be if you have multipls PHP versions (from RPM, or from
> your own builds) on your system - check which version Apache is using.
> Check your httpd.conf what installation it uses.
>
>
> --
>>O Ernest E. Vogelsinger
>(\) ICQ #13394035
> ^ http://www.vogelsinger.at/
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.465 / Virus Database: 263 - Release Date: 3/25/2003


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Classes and Objects

2003-06-10 Thread Don
Are Classes and Objects supported in PHP 3.0.14?
 
I am getting an error: "Call to unsupported or undefined function
phpmailer()"
on a server running PHP 3.0.14 but it works in PHP 4.3.2
 
Thanks,
Don

 

  _  


This email and any files transmitted with it are strictly confidential and
may be privileged information. It is intended solely for the individual or
company to whom it is addressed and may not be copied, forwarded,
transmitted or otherwise distributed in any manner or form to any other
party. If you are not the intended recipient or the person responsible for
delivering this e-mail to the intended recipient, please indicate so and
return this email to the sender, after which, kindly delete it from your
computer as well as your email server. Without limitation, LCL Navigation
accepts no liability whatsoever and howsoever caused in connection with the
use of this email.

Are you on our eBLISS yet?  It's simple yet amazing.
Just click here: http://www.lclnav.com/createaccount.html
to open a B2B account with us and do everything electronically 24/7.

Click  <http://www.lclnav.com/new.html> here to find out "What's new" at LCL
Navigation.

 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Emptying the browser cache

2003-06-16 Thread Don
Hi,

Is the a PHP command that will empty the browser's current cache?

Thanks,
Don


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Frusration using Sessions!!!

2002-09-23 Thread Don

Hi,

I am having trouble with sessions.  I've created a user login/password
section that uses session variables.  Within this section, I have a form
where the user enters data and submits.  When the user clicks on the Browser
back button, they should get back to the form with their data intact.  This
is indeed what happens most of the time but some users report that they get
the following message after clicking on "Back":

===
Warning: Page has Expired The page you requested was created using
information you submitted in a form. This page is no longer available. As a
security precaution, Internet Explorer does not automatically resubmit your
information for you.

To resubmit your information and view this Web page, click the Refresh
button.
===

When the refresh, their data is gone!!!  I've gone through the docs and
placed the following headers at the top of every file.  Why is this
happening and to only a few users???

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
session_cache_limiter('private_no_expire, must-revalidate');
session_start();




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Saving form input fields to MySQL br clicking on a button

2002-10-31 Thread Don
- Original Message -
From: Jay Blanchard
To: 'DonPro' ; 'php list'
Sent: Thursday, October 31, 2002 3:43 PM
Subject: RE: [PHP] Saving form input fields to MySQL br clicking on a button


[snip]
I created a button called "Memorize" but how do I have the page save the
values to my MySQL database when the user clicks on the button.  I
understand that I can only use JavaScript to trap the "OnClick()" function
and not PHP but I cannot use JavaScript to write to a MySQL table.  I do not
want to submit as that would reload the form and the user would lose other
changes to other fields.

Any idea?
[/snip]

Yep. Submit the form variables to a PHP script that either does a SQL UPDATE
or INSERT depending upon the condition of the form information. JavaScript
is not necessary for this.

HTH!

Jay



Thanks,

But how do I submit to a PHP script without moving off of the form?  The
user will be entering lots of information while only a particular section
pertains to the Memorize button.  If the user clicks on the button, wont it
move off of the page thereby causing the user to lose all their form input?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Can't get PHP running with apache

2002-06-07 Thread Don

Hi,

Compiled and installed Apache 1.3.24 with mod_ssl and mod_perl.  Compiled and 
installed PHP 4.2.1 with the following:

'./configure' '--with-mysql' '--with-apxs' '--enable-dbase' '--with-imap' 
'--with-kerberos' '--with-imap-ssl' '--enable-track-vars' 
'--enable-force-cgi-redirect' '--with-gettext'

When I attempt to start apache, I get the following error message:

"Cannot add module via name 'mod_php4.c'. not in list of loaded modules."

I've sourced the net but could not find a resolution.  Does this have anything to do 
with /etc/ld.so.conf ?

Help!

Don


Re: [PHP] Can't get PHP running with apache

2002-06-07 Thread Don

RE: [PHP] Can't get PHP running with apacheOops.  Sorry.  my PHP configure actually 
has the folowing:

./configure --with-mysql --with-apxs=/usr/sbin/bin/apxs --enable-dbase --with-im
ap  --with-kerberos --with-imap-ssl --enable-track-vars --enable-force-cgi-redir
ect --with-gettext

which states the full path to apxs so I still don't get it?
  When you use the --with then you need to specify a directory... 

  Read up on the configuration of php on php.net 

  Thank you, 

  RAY HUNTER 

  -Original Message- 
  From: Don [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, June 07, 2002 1:47 PM 
  To: php list 
  Subject: [PHP] Can't get PHP running with apache 



  Hi, 

  Compiled and installed Apache 1.3.24 with mod_ssl and mod_perl.  Compiled and 
installed PHP 4.2.1 with the following: 

  './configure' '--with-mysql' '--with-apxs' '--enable-dbase' '--with-imap' 
'--with-kerberos' '--with-imap-ssl' '--enable-track-vars' 
'--enable-force-cgi-redirect' '--with-gettext'

  When I attempt to start apache, I get the following error message: 

  "Cannot add module via name 'mod_php4.c'. not in list of loaded modules." 

  I've sourced the net but could not find a resolution.  Does this have anything to do 
with /etc/ld.so.conf ? 

  Help! 

  Don 



Re: [PHP] Can't get PHP running with apache

2002-06-07 Thread Don

RE: [PHP] Can't get PHP running with apacheThe following was added by the compile of 
PHP 4.2.1:

LoadModule php4_modulelibexec/libphp4.so
AddModule mod_php4.c


The following was added by me:

AddType application/x-httpd-php .php .html .phtml



So..., if the compile added the line for mod_php4.c, why would it tell me it's not on 
the list?

Thanks,
Don
  Did you add the module info to your httpd.conf file?

  Thank you, 

  RAY HUNTER 

-Original Message-
    From: Don [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 1:56 PM
To: Ray Hunter; 'php list'
Subject: Re: [PHP] Can't get PHP running with apache


Oops.  Sorry.  my PHP configure actually has the folowing:

./configure --with-mysql --with-apxs=/usr/sbin/bin/apxs --enable-dbase --with-im
ap  --with-kerberos --with-imap-ssl --enable-track-vars --enable-force-cgi-redir
ect --with-gettext

which states the full path to apxs so I still don't get it?
  When you use the --with then you need to specify a directory... 

  Read up on the configuration of php on php.net 

  Thank you, 

  RAY HUNTER 

  -Original Message- 
  From: Don [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, June 07, 2002 1:47 PM 
  To: php list 
  Subject: [PHP] Can't get PHP running with apache 



  Hi, 

  Compiled and installed Apache 1.3.24 with mod_ssl and mod_perl.  Compiled and 
installed PHP 4.2.1 with the following: 

  './configure' '--with-mysql' '--with-apxs' '--enable-dbase' '--with-imap' 
'--with-kerberos' '--with-imap-ssl' '--enable-track-vars' 
'--enable-force-cgi-redirect' '--with-gettext'

  When I attempt to start apache, I get the following error message: 

  "Cannot add module via name 'mod_php4.c'. not in list of loaded modules." 

  I've sourced the net but could not find a resolution.  Does this have anything 
to do with /etc/ld.so.conf ? 

  Help! 

  Don 



[PHP] Can I set the value of variable depending on when the page is loaded?

2002-06-13 Thread Don

Hi,

I have a an HTML page containing a form used to search my website.  The form has a 
drop-down menu with two choices.  When the submit button is clicked, I call a PHP page 
which look at the value of the drop down menu selection and redirects to the 
appropriate form handler.

Basically, my PHP file creates a form called 'searchform' and creates it dynamically 
based on the vale of my drop down menu field passed from the calling page.

I just use the following JavaScript to redirect:
echo "\n";
echo "setTimeout('document.searchform.submit()',0);\n";
echo "\n";

My problem is, when the user clicks the BACK button on their browser, it will just 
redirect back to the search results page.  I'd like it to take them back to the 
original page.  I'm thinking that if I could reset the value of the drop-down menu 
field, I can just use:
echo "\n";

But, how can I tell where the user is coming from?

I've seen these types of searches before so maybe someone can clue me in?

Thanks,
Don






Re: [PHP] Can I set the value of variable depending on when the page is loaded?

2002-06-13 Thread Don

Would that solve my probem with the BACK button?

- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: "'Don'" <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 10:38 PM
Subject: RE: [PHP] Can I set the value of variable depending on when the
page is loaded?


> instead of using js to redirect, could you use header("location:"); ?
>
> -Original Message-
> From: Don [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 14, 2002 12:36 PM
> To: php
> Subject: [PHP] Can I set the value of variable depending on when the
> page is loaded?
>
>
> Hi,
>
> I have a an HTML page containing a form used to search my website.  The
form
> has a drop-down menu with two choices.  When the submit button is clicked,
I
> call a PHP page which look at the value of the drop down menu selection
and
> redirects to the appropriate form handler.
>
> Basically, my PHP file creates a form called 'searchform' and creates it
> dynamically based on the vale of my drop down menu field passed from the
> calling page.
>
> I just use the following JavaScript to redirect:
> echo "\n";
> echo "setTimeout('document.searchform.submit()',0);\n";
> echo "\n";
>
> My problem is, when the user clicks the BACK button on their browser, it
> will just redirect back to the search results page.  I'd like it to take
> them back to the original page.  I'm thinking that if I could reset the
> value of the drop-down menu field, I can just use:
> echo "\n";
>
> But, how can I tell where the user is coming from?
>
> I've seen these types of searches before so maybe someone can clue me in?
>
> Thanks,
> Don
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Passing variables from one page to another

2002-06-14 Thread Don

Hi,

Does anyone have a PHP method of passing variables from a form to another page without 
using "sessions" or encoding within the URL?

I remember someone mentioning a class but I lost the reference. My site uses PHP 
4.0.1Pl1

Thanks,
Don


[PHP] Question about global variables

2002-06-14 Thread Don

Hi,

Don't know if this is possible but is there a way to create a single variable (in my 
case, a two dimensional array) that is global to my site?  This is regardless of which 
page is initially loaded BUT I need to have it empty first time in.

I am trying to implement a 'stack' feature where I can place/remove information 
into/out of the array.

Thanks,
Don


[PHP] Is there a replicate function in PHP

2002-06-21 Thread Don

Hi,

I'd like to print one or more specific characters many times. For example, let's say 
I'd like to display the '*' 50 times on one line.  Is there a function that will do 
this?  Something like:

? replicate('*',50);

Thanks,
Don


[PHP] Accessing variables from a form

2001-02-21 Thread Don

Hi,

I'm in a quandary here.  I have a form which contains sever tables each
containing similar fields.  The number of tables are dynamic based on
vales I retrieve from a database.  Each table has the following fields:

$name
$phone
$fax

In order to differentiate the filed names in my form, I created a loop
and extended each field name with the loop iteration as such ($rownum is
my loop counter):


"
"
"

So I would have field variables of:
$name1, $name2, $name3, ...
$phone1, $phone2, $phone3, ...
$fax1, $fax2, $fax3, ...

So far so good as I have verified that these fields exist.

Now, when the user clicks on the submit button, the form data gets
posted to a PHP script.  I wish to access the variables but here I am at
a loss.  I attempted the following code without success ($rownum is the
number of tables I created):

for ($i = 1; $i <= $rownum; $i++) {
  $field = "phone" . $i;
  $name =& $field;
  echo $field . ":" . $name . "\n";
}

The docs state that references are NOT pointers.  So., how can I
access my variables?  I could not find any information on Macros or
Pointers.

Thanks,
Don




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] forms and databases usinh PHP

2001-03-15 Thread Don

Hello,

Has anyone run into problems using PHP to access a database (MySQL) and
build a form.  I am trying to build a form that contains anywhere from
10 to 20 tables.  Each table will contain drop down menus, text boxes
and text areas.  As you may envision, this form can be quite lengthy.

I populate the form by creating a loop and accessing the MySQL
database.  Each iteration returns data (24 fields) from a record in my
Database table).

My problem is that after loading the page, my browser appears to lock up
and any attempt to run other programs gives me a Windows Low Memory
error (and that I should close other programs).

Note: Third may not be a PHP problem but as I am unsure, I have to start
somewhere.
Note2: I have already queried the HTML newsgroup and the feedback I
received was that large forms should not cause this problem.

Thanks,
Don


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] forms and databases usinh PHP

2001-03-15 Thread Don

> Don wrote:
>
> > Hello,
> >
> > Has anyone run into problems using PHP to access a database (MySQL) and
> > build a form.  I am trying to build a form that contains anywhere from
> > 10 to 20 tables.  Each table will contain drop down menus, text boxes
> > and text areas.  As you may envision, this form can be quite lengthy.
> >
> > I populate the form by creating a loop and accessing the MySQL
> > database.  Each iteration returns data (24 fields) from a record in my
> > Database table).
> >
> > My problem is that after loading the page, my browser appears to lock up
> > and any attempt to run other programs gives me a Windows Low Memory
> > error (and that I should close other programs).
> >
> > Note: Third may not be a PHP problem but as I am unsure, I have to start
> > somewhere.
> > Note2: I have already queried the HTML newsgroup and the feedback I
> > received was that large forms should not cause this problem.
>
> Then I'd have to say that the HTML newsgroup people don't know
> what they're talking about, because it's quite simple to make a form
> so large as to cause browser issues/crashes/low memory warnings.
> Let's see - if you have 32 megs in your system, assume a lot is taken
> up by the OS and browser itself.  So creating a 10 meg form
> could easily crash your system.
>
> Not suggesting you have a 10 meg form, but it's hard to know how things
> are calculated.  Just because you have 30k of HTML doesn't mean it takes
> up 30k in your browser's memory, as it has to create internal structures
> from your HTML to know how to render stuff, then there's the actual graphic
> displaying of what your form is.
>
> We had a client who wanted an inventory form.  They have ~200 items - creating
> a form with all 200 items, each with a pulldown option box with 6 options, was
> causing problems on Windows machines using Netscape with less than 64 megs of
> RAM.  This was only 6 months ago with Win98 and netscape 4.7, so I think it's
> safe to say it's definitely possible.  (we had to break the form up into their
> separate product categories - about 7 - so each page only has 20-30 items on
> it)
>
> Now, is this what's happening to you?  Could be - could you send a URL for
> others to hit to see if we experience the same problem?  If I hit it with 128
> megs of RAM with no problem, and you crash with 32 megs, there's your problem.
> BUT... it might be something more than that.

I agree with your analysis.  As I've thought about it more, I realize that I
have no control over the exact number of tables that will exist in my form and
hence, the total number items on the form.  Reason being that this is dynamic
and based on vales returned from a database.

Expecting my clients to have the necessary hardware / memory in order to use it
is ridiculous.  So, I am logically breaking it into two screen, one with the
subject of each table linked that the client can 'click'.  The other, a generic
form that will retrieve values based on the subject clicked on the previous
page.  I guess you can call it "normalizing" my form.

By the way, say that each subject link is a numeric string, will my second page
have access to that string, i.e., can I pass it as a parameter in my 
tag?  The first page will be PHP generated while the second will be HTML with a
PHP script to access the database and build my form.  I have not found any
documentation on how to do this on the HTML docs so I was wondering if there is
a trick to this.

Thanks,
Don


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] passing variables from one form to another

2001-03-15 Thread Don

Hi,

I have a PHP script (script_one.php) that creates a small form
containing a table of links.  In my script I declare an array,
$myarray[$total_links], of the same size as the number of links.  Each
link is coded as such:



This way, I pass the both the value of my array at elemnt "i" and which
element I am accessing to my second script.  This second script opens a
new window and creates another small form with an input field.  I allow
the user to enter information into an text field and close the window.

Question:  How do I pass the results of that information back to my
original script and stuff it into the array at the element chosen?

Thanks,
Don


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How do I display variables in text boxes when the value of a drop down menu changes?

2002-02-05 Thread Don

Hi,

I have a PHP script that displays a form.  On one section of the form, there is a drop 
down menu followed by a few text boxes.  I'd like to alter the values of the text 
boxes when the user changes the selection in the dropdown menu.

What I've done is create 10 arrays (the drop down menu has 10 items hence one array 
per item).  Each time the user changes the selection in the drop down menu, I figure 
I'd:

a) save the current variables to the array corfresponding to the old selection
b) fill the text boxes with vales of the array corresponding to the new selection

Is this possible using PHP?  I figure that since PHP is server side, I will have to 
use JavaScript to provide some of the functionality I require but how do I set and 
access PHP variables from JavaScript?

If the above is not workable, Is there another way I can accomplish this?

Thanks in advance,
Don



[PHP] Confused about which function to use with forms/database

2002-05-17 Thread Don

Hi,

I have forms that retrieve date from mysql databases and send (for storage) data to 
same databases.  I note many functions to make sure that the data is correct in 
appearance when it comes to special characters.

addslashes()
stripslashes()
htmlspecialchars()
htmlentities()
get_html_translation_table(HTML_ENTITIES)

I've read the documentation but am still confused about what to use when.

When passing data from forms to database, which do I use?
When retrieving data from database to display in forms, which do I use?

Thanks,
Don


[PHP] Problem displaying certain text from a form on to the browser

2002-05-17 Thread Don

Hi,

On my form, I have a text area.  I was doing some testing and on one line, I entered 
the following:



When I looked at the results pages sent to the browser, that line was missing.  I 
think that the "<" character is the culprit. I've tried stripslashes() and 
htmlentities() but I cannot get that line to appear on the browser.  Any ideas?

Thanks,
Don


[PHP] ClibPDF

2002-03-04 Thread Don

Does any one know how I use ClibPDF with PHP?  I assume I have to recompile PHP with a 
switch but I can't find anyting in the docs.

Thanks,
Don



[PHP] Reading lines from a CSV file

2002-03-10 Thread Don

Hi,

I have a comma delimited text file composed of many rows of text.  I've been looking 
at the PHP documentation for file system functions but cannot see a way to read a file 
row by row.  Each row may be different byte length.  How do I read only a row and have 
the file pointer at the start of the next row so I can read it, etc... until eof?

Thanks,
Don



[PHP] How do I read a tab delimited file?

2002-03-11 Thread Don

Hi,

I have a tab delimited file consisting of several lines, one record per line that I 
have to process.  I don't see a function similar to "fgetcsv" for TABS so I've used 
the "file" function to read the whole file into an array, one line per array element.  
So far so good.

Now I have to process each line and extract the fields.  My question is, how do I 
search for the TAB character?  Is it as simple as searching on the ascii code by using 
the "chr" function?  If so, what value do I use in "chr" to look for TAB?

Thanks,
Don



[PHP] PHP and permissions

2002-03-12 Thread Don

Hi,

I have a question about how PHP runs.  I have a file on my FreeBSD server that is 
owned by another user but is the same group as myself.  The file has read/write 
permissions for the user only.  Therefore, when I log onto the server I cannot read or 
write to the file.  In fact, I can not even FTP it.

The funny thing is, I wrote a PHP script to read the file (it's actually a CSV file) 
into an array using the function fgetcsv and display the values within the browser.  
This worked.

So my question is, what user is PHP run under that allows me to access another user's 
file (but the same group)?

Thanks,
Don



Re: [PHP] PHP and permissions

2002-03-13 Thread Don

I did.  That's why I'm confused.  phpinfo() is telling me that the user is
myself (I don't see the group).  So what is the "permission" difference
between running PHP and logging on to the server via telnet as myself?


> On Tue, 12 Mar 2002, Don wrote:
>
> use phpinfo() to find that out...
>
> > Hi,
> >
> > I have a question about how PHP runs.  I have a file on my FreeBSD
server that is owned by another user but is the same group as myself.  The
file has read/write permissions for the user only.  Therefore, when I log
onto the server I cannot read or write to the file.  In fact, I can not even
FTP it.
> >
> > The funny thing is, I wrote a PHP script to read the file (it's actually
a CSV file) into an array using the function fgetcsv and display the values
within the browser.  This worked.
> >
> > So my question is, what user is PHP run under that allows me to access
another user's file (but the same group)?
> >
> > Thanks,
> > Don
> >
>
> --
> Jan Rademaker <[EMAIL PROTECTED]>
> http://www.ottobak.com
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] creating a dBase III file

2002-03-17 Thread Don

Hi,

I need to create a dBase III file however, my ISP does not have PHP compiled with 
--enable-debase.  Does any one have or know of a class that could accomplish this?

Thanks,
Don



[PHP] A Newbie needs help with his first Class

2002-03-22 Thread Don

Hi,

I'm trying to write my first class.  Here is the code contained in a file called 
"globals.php":

$root_path = "/";
} else {
   $this->$root_path = $DOCUMENT_ROOT;
}
$this->$relative_path = $this->$root_path . $start_dir;
  }
}

$global = new Globals("/staging_area/phase-2/");
?>


Within my html page, I am tesing the class by trying the following:
root_path . "";
echo $global->relative_path . "";
?>

However, nothing is being written to my browser.  Is there a problem with the code?

Thanks,.
Don



[PHP] Personal web server that runs PHP

2002-03-26 Thread Don

Hi,

Does anyone know of a personal web server that I can installon my Win 98 machine that 
supports PHP 4.x?

Thanks,
Don


[PHP] How can I read client-side files or upload them to a server?

2002-04-12 Thread Don

Is there a way, in PHP, for me to read client-side files or upload them to a server?

Thanks,
Don



[PHP] Problem redirecting

2001-10-27 Thread Don

Hi,

I have a form which when submitted, calls an html page which contains PHP code.  
Within that code, I wish to redirect my users to another page under certain 
conditions.  So, in my code, I have the following lines:

Header(  "Location:http://www.mydomain.com/mypage.html";);
exit;

However, when the above is run, I get the following error generated:

Warning: Cannot add header information - headers already sent by (output started at 
/usr/local/www/vhosts/mydomain.com/htdocs/mypage.html:7) in 
../phpscript/general/formmail.php on line 100

Does anyone know what this error means?

hanks,
Don





[PHP] separating lines in a text area field

2001-10-29 Thread Don

Hi,

I've look at the PHP Faq, poked around the www.php.net site and searched the mailing 
list archive but could not come up with an answer.  However, I'm sure this question 
has been asked before on more than one occasion.

I have a form that calls a PHP function which sends the contents off as an e-mail.  
Within the form, I have a text area field.  My e-mail looks like:

field1 = value1
field2 = value2
etc...

For the text area field, it does NOT wrap the lines but puts everything on one line.  
Is there a PHP routine that can split the lines in a textarea object?  Does this 
depend on whether the machine is Windows or UNIX?  If so, is there a system 
independent routine?

Thanks,
Don



[PHP] emailing attachments

2001-11-11 Thread Don

Hi,

I have a class that allows me to send e-mail with an attachment.  I have a form that 
gathers information and I would like to allow the user to attach a file from his local 
drive.  Is there a PHP routine that allows the user to browse his drive and choose a 
file?

Thanks,
Don



[PHP] emailing attachments

2001-11-11 Thread Don

Hi,

I have a class that allows me to send e-mail with an attachment.  I have a form that 
gathers information and I would like to allow the user to attach a file from his local 
drive.  Is there a PHP routine that allows the user to browse his drive and choose a 
file?

Thanks,
Don



Re: [PHP] emailing attachments

2001-11-11 Thread Don

Thanks.  I already tried that which allowed me to browse but...

In my form, I have:


My form line is :


Yet when I submit, and check the value of $filename in my PHP script, it is empty???  
Therefore, the attachment in my mail class
ends up being empty and not sent!!!


> it's HTML
> 
>
> -Original Message-
> From: Don [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 12, 2001 3:37 PM
> To: php
> Subject: [PHP] emailing attachments
>
>
> Hi,
>
> I have a class that allows me to send e-mail with an attachment.  I have a
> form that gathers information and I would like to allow the user to attach a
> file from his local drive.  Is there a PHP routine that allows the user to
> browse his drive and choose a file?
>
> Thanks,
> Don
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Using urlencode to pass varfiables in a URL

2001-12-03 Thread Don

Is there a limit to the number of variables once can pass in a URL using urlencode()?  
I seem to be hitting a wall where the browser returns a page not found once I go past 
a limit and I can't find any bugs in the code.

Thanks,
Don



[PHP] How do I pass variables from a PHP script to an HTML document?

2001-12-05 Thread Don

Hi,

I currently have a form that calls a PHP script when submit is pressed.  Within the 
PHP script, I wish to call a custom confirmation screen.  I do so by issuing the 
following command:

Header("Location: " . $form["redirect"]);

Now, I wanted my form variables passed from the PHP script to my HTML document so I 
wrote a function within the form that adds the variable names and values to the URL by 
urlencoing them like such:

$output = "?";
$output .= urlencode($key) . "=" . urlencode(stripslashes($val)) . "&";

returning the above in a variable $vars, I call my redirect as such:


Header("Location: " . $form["redirect"] . $vars);

If I am not mistaken, this is synonymous with an HTTP GET?

Here is my problem; the above fails with a large form, i.e., a form containing many 
fields.  A bit of investigation has determined that there is a 1Kb limit on the total 
size of a request (URL+params) and I have one form that must be exceeding the limit.

Question: Is there a way to emulate my above scheme via an HTTP POST as POST has no 
limit?  Alternatively, is there another way to pass variables from a PHP script to a 
HTML form where I won't run into this limit?

Thanks,
Don



[PHP] Using HEADER to redirect

2001-12-06 Thread Don

Hi,

I have a PHP script that uses the following code to redirect to a page of the user's 
choice:

header("Location: http://www.mypage.net/";); 

In examples of this type of coding in various scriots,  the above line is always 
followed by the statement:

exit;

I am wondering why.  When executing a Header("Location"); statement, does control 
return to the PHP script after execution?  In that case, I assume that the exit; 
statement is there in order to terminate the php script.  In that event, can I execute 
code within my script after calling the Header("Location") page?



[PHP] Speed of loding PHP pages

2001-07-11 Thread Don

Hi,

Has anyone tries any test loading PHP pages into IE 5.x and Netscape
4.7x?

As an experiment, I have a page that issues a phpinfo().  WIth I.E. 5.5,
it takes about 3 seconds.  With Netscape 4.77, it takes almost 20
seconds.

Thanks,
Don


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Restoring a backup

2001-07-19 Thread Don

Hi,

I have a cron script that issues a:

mysqldump --opt -p"password" myfile_db  /home/ftpadmin/pub/myfile_db.backup

Now, I wish to do the opposite, that is, restore it into my database.  After
issuing a:

mysql -p

and entering the password, what command do I enter to restore my database
from the backup file?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] emailing the contents of a form in PDF format

2001-07-31 Thread Don

Hi,

This may be beyond the scope of this list but if I don't ask, I'll never
know :)

I have a form page with a button at the bottom.  When the user clicks on the
button, I wish the following to happen:

1) Prompt the user for a target e-mail address.
2) Create a PDF document from the form fields on the current page (I wish to
specify the design of the form) and e-mail it to the e-mail address gathered
form (1).

I'm hoping there's either a module or two that can accomplish this or
perhaps, someone has already gone through the hassle and would be willing to
share.  Otherwise, some pointers to head me in the correct direction would
be appreciated.

Thanks,
Don


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP and push buttons

2001-08-01 Thread Don

Hi,

How do I make a Push Button call a PHP script?  This is not a POST operation
per say as I already have "Submit" and "Reset" buttons.

What I'd like is to have my third button call a PHP script and process all
the form data in an alternative manner to what the "Submit" does.  As a FORM
tag can only have one POST operation, I'm in a quandary here.

Thanks,
Don


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   3   4   5   6   >