php-general Digest 9 Sep 2005 09:46:54 -0000 Issue 3672

Topics (messages 222048 through 222073):

Re: Limit - nr of sessions on a domain?
        222048 by: Gustav Wiberg

Re: Checking a date for validity
        222049 by: Todd Cary
        222050 by: Todd Cary
        222051 by: Todd Cary
        222052 by: Todd Cary

Re: php.ini and php.config Tutorial?
        222053 by: Vizion
        222067 by: Raj Shekhar

Re: Help with Class
        222054 by: Ryan Creaser
        222062 by: Ian Barnes
        222070 by: Ryan Creaser

How large string in cookie?
        222055 by: Gustav Wiberg
        222058 by: Philip Hallstrom
        222065 by: Gustav Wiberg

Inserting records question
        222056 by: Iggep
        222059 by: Philip Hallstrom
        222060 by: Scott Noyes
        222061 by: Warren Vail
        222071 by: Mark Rees

SPL array filter
        222057 by: Kevin Waterson
        222073 by: Robin Vickery

Re: access resources via a proxy
        222063 by: Vedanta Barooah
        222066 by: Raj Shekhar

Re: Parsing MS-WORD docs
        222064 by: Shafiq Rehman

installing php5 on apache2 as a module (on win xp)
        222068 by: Cristian Ionitoiu
        222069 by: Torgny Bjers
        222072 by: Cristian Ionitoiu

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        php-general@lists.php.net


----------------------------------------------------------------------
--- Begin Message --- ----- Original Message ----- From: "Gustav Wiberg" <[EMAIL PROTECTED]>
To: "PHP General" <php-general@lists.php.net>
Sent: Thursday, September 08, 2005 11:36 PM
Subject: [PHP] Limit - nr of sessions on a domain?


Hi there!

I'm trying to set 30 diffrent cookies on a domain, but it seems that a cookie sets to zero and there is a max of 18 or 19 cookies... Can this be right?

This is an output of my cookievalues... But the problem is that i want a larger array. Isn't this possible?

Array ( [1] => voted [17] => voted [19] => voted [22] => voted [24] => voted [25] => voted [26] => voted [PHPSESSID] => 7d5917c49d7e0fba693f5a122c7851a4 [2] => voted [3] => voted [6] => voted [7] => voted [8] => voted [9] => voted [10] => voted [11] => voted [13] => voted [12] => voted [14] => voted [15] => voted )

Array ( [17] => voted [19] => voted [22] => voted [24] => voted [25] => voted [26] => voted [PHPSESSID] => 7d5917c49d7e0fba693f5a122c7851a4 [2] => voted [3] => voted [6] => voted [7] => voted [8] => voted [9] => voted [10] => voted [11] => voted [13] => voted [12] => voted [14] => voted [15] => voted [18] => voted )

Array ( [19] => voted [22] => voted [24] => voted [25] => voted [26] => voted [PHPSESSID] => 7d5917c49d7e0fba693f5a122c7851a4 [2] => voted [3] => voted [6] => voted [7] => voted [8] => voted [9] => voted [10] => voted [11] => voted [13] => voted [12] => voted [14] => voted [15] => voted [18] => voted [20] => voted )



/G
http://www.varupiraten.se/

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



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.19/92 - Release Date: 2005-09-07



--- End Message ---
--- Begin Message ---
Chris W. Parker wrote:
Todd Cary <mailto:[EMAIL PROTECTED]>
    on Wednesday, September 07, 2005 3:39 PM said:


  /* Is date good */
  function is_date_good($date) {
    if (strtotime($date) == -1) {
      $retval = 0;
    } else {
      if (strpos($date, "/") > 0) {
        $parts = explode("/", $date);
      } elseif (strpos($date, "-") > 0) {
        $parts2 = explode("-", $date);
        $parts[0] = $parts2[1];
        $parts[1] = $parts2[2];
        $parts[2] = $parts2[0];


Why $parts2?

Just use $parts instead, like you did in the other two blocks.

Change it to:


      if (strpos($date, "/") > 0) {
        $parts = explode("/", $date);
      } elseif (strpos($date, "-") > 0) {
        $parts = explode("-", $date);
      } else {
        $parts = explode(".", $date);
      }


Is there a simplier solution?


How about strtotime()? In your function you're pretty much only
accepting a certain number of formats for your date already so you could
probably go with just passing the date (in whatever format it's given)
to strtotim() and check for a 'false' or a timestamp.


Chris.
Chris -

That you for the helpful comments! The reason I use the strtotime() up front is to make sure "junk" data has not been placed in the fields. My client tests by putting "%^&#$" into fields, and that creates a problem with their php 4.2.x but not with my 4.3.9. The strtotime() took care of the problem...

Todd

--- End Message ---
--- Begin Message ---
Chris W. Parker wrote:
Todd Cary <mailto:[EMAIL PROTECTED]>
    on Wednesday, September 07, 2005 3:39 PM said:


  /* Is date good */
  function is_date_good($date) {
    if (strtotime($date) == -1) {
      $retval = 0;
    } else {
      if (strpos($date, "/") > 0) {
        $parts = explode("/", $date);
      } elseif (strpos($date, "-") > 0) {
        $parts2 = explode("-", $date);
        $parts[0] = $parts2[1];
        $parts[1] = $parts2[2];
        $parts[2] = $parts2[0];


Why $parts2?

Just use $parts instead, like you did in the other two blocks.

Change it to:


      if (strpos($date, "/") > 0) {
        $parts = explode("/", $date);
      } elseif (strpos($date, "-") > 0) {
        $parts = explode("-", $date);
      } else {
        $parts = explode(".", $date);
      }


Is there a simplier solution?


How about strtotime()? In your function you're pretty much only
accepting a certain number of formats for your date already so you could
probably go with just passing the date (in whatever format it's given)
to strtotim() and check for a 'false' or a timestamp.


Chris.
Chris -

That you for the helpful comments!  The reason I use the strtotime() up
front is to make sure "junk" data has not been placed in the fields.  My
client tests by putting "%^&#$" into fields, and that creates a problem
with their php 4.2.x but not with my 4.3.9.  The strtotime() took care
of the problem...

Todd

--- End Message ---
--- Begin Message ---
Chris W. Parker wrote:
Todd Cary <mailto:[EMAIL PROTECTED]>
    on Wednesday, September 07, 2005 3:39 PM said:


  /* Is date good */
  function is_date_good($date) {
    if (strtotime($date) == -1) {
      $retval = 0;
    } else {
      if (strpos($date, "/") > 0) {
        $parts = explode("/", $date);
      } elseif (strpos($date, "-") > 0) {
        $parts2 = explode("-", $date);
        $parts[0] = $parts2[1];
        $parts[1] = $parts2[2];
        $parts[2] = $parts2[0];


Why $parts2?

Just use $parts instead, like you did in the other two blocks.

Change it to:


      if (strpos($date, "/") > 0) {
        $parts = explode("/", $date);
      } elseif (strpos($date, "-") > 0) {
        $parts = explode("-", $date);
      } else {
        $parts = explode(".", $date);
      }


Is there a simplier solution?


How about strtotime()? In your function you're pretty much only
accepting a certain number of formats for your date already so you could
probably go with just passing the date (in whatever format it's given)
to strtotim() and check for a 'false' or a timestamp.


Chris.
Chris -

That you for the helpful comments!  The reason I use the strtotime() up
front is to make sure "junk" data has not been placed in the fields.  My
client tests by putting "%^&#$" into fields, and that creates a problem
with their php 4.2.x but not with my 4.3.9.  The strtotime() took care
of the problem...

Todd

--- End Message ---
--- Begin Message ---
Chris W. Parker wrote:
Todd Cary <mailto:[EMAIL PROTECTED]>
    on Wednesday, September 07, 2005 3:39 PM said:


  /* Is date good */
  function is_date_good($date) {
    if (strtotime($date) == -1) {
      $retval = 0;
    } else {
      if (strpos($date, "/") > 0) {
        $parts = explode("/", $date);
      } elseif (strpos($date, "-") > 0) {
        $parts2 = explode("-", $date);
        $parts[0] = $parts2[1];
        $parts[1] = $parts2[2];
        $parts[2] = $parts2[0];


Why $parts2?

Just use $parts instead, like you did in the other two blocks.

Change it to:


      if (strpos($date, "/") > 0) {
        $parts = explode("/", $date);
      } elseif (strpos($date, "-") > 0) {
        $parts = explode("-", $date);
      } else {
        $parts = explode(".", $date);
      }


Is there a simplier solution?


How about strtotime()? In your function you're pretty much only
accepting a certain number of formats for your date already so you could
probably go with just passing the date (in whatever format it's given)
to strtotim() and check for a 'false' or a timestamp.


Chris.
Chris -

That you for the helpful comments!  The reason I use the strtotime() up
front is to make sure "junk" data has not been placed in the fields.  My
client tests by putting "%^&#$" into fields, and that creates a problem
with their php 4.2.x but not with my 4.3.9.  The strtotime() took care
of the problem...

Todd

--- End Message ---
--- Begin Message ---
On Thursday 08 September 2005 12:36,  the author Raj Shekhar contributed to 
the dialogue on-
 [PHP] Re: php.ini and php.config Tutorial?: 

>in infinite wisdom Vizion spoke thus  On 09/08/2005 09:04 PM:
>> Questions:
>> 1.
>> As I am new to php I would appreciated if someone could help me locate a
>> tutorial which not only describes what is in the configuration files
>> (which the distributed configuration files do quite well) but also, some
>> explanations that might be understood by a php neophyte, plus guidance and
>> detailed examples on one might choose on option over another in different
>> circumstances. For those who are not familiar with php the configuration
>> files can appear daunting.
>
>If you check the php.ini file that comes with the php source code, you
>will find it to be heavily commented.   If you get stuck on some ini
>setting, you can always double check it with the php manual

As I said in another postiing :
Sure -- I did look at those - my feeling is that they are high on providing 
the facts but low on providing meaning, context and interpretation.

Mathematically it is easy to understand x+y=z but if you do not know or cannot 
know the value attributable to x or y or z the formula is ******* useless. In 
my view one needs to distinquish between documentation (which records what 
something does in technical terms) and the qualities of a manual which 
explains which might refer to the documentation as it seeks to explain how 
and why one should choose to apply the options defined in the documentation.

The php.net references  the general documentation stanfard is superb but I 
found it to be somewhat lacking in its ability to meet the expectations of a 
manual. However, unless I missed a salient link, I did not find the brief 
section on installation and configuration very useful.

Incidentally the book by Luke Welling & Laura Thomson, PHP and MySQL web 
Development seemed to promisong in fulfilling the manual role for programming 
PHP. I was however disappointed because but  the general standard throughout 
the book does not seem to have been carried through to the Appendix on 
installation and configuration. It does not go into detail in regard to 
configuration options.

I have written to the authors in the hope they might give consider devoting a 
full chapter to that topic in their next edition.

Do you happen to have any other suggestions?
>
>> 2.
>> Recomendations for forum, wiki and blog modules.
>
>Wiki -> PmWiki http://rajshekhar.net/content/view/24/26/
>Blog -> s9y
>
>--
>Raj Shekhar
>blog : http://rajshekhar.net/blog  home : http://rajshekhar.net

Thanks very much for yr help

david

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.

--- End Message ---
--- Begin Message ---
in infinite wisdom Vizion spoke thus  On 09/09/2005 03:56 AM:

>>If you check the php.ini file that comes with the php source code, you
>>will find it to be heavily commented.   If you get stuck on some ini
>>setting, you can always double check it with the php manual
> 
> 
> As I said in another postiing :
> Sure -- I did look at those - my feeling is that they are high on providing 
> the facts but low on providing meaning, context and interpretation.


The core php.ini settings are explains here
http://www.php.net/manual/en/ini.core.php .  If you want the settings
for a particular extension, (like mysql), you will find an explanation
for it in the php.net/ETENSION_NAME (like php.net/mysql)

-- 
Raj Shekhar
blog : http://rajshekhar.net/blog  home : http://rajshekhar.net
Disclaimer : http://rajshekhar.net/disclaimer

--- End Message ---
--- Begin Message ---
Ian Barnes wrote:

                                   require_once (
$fetchd['path'].'sdk/ipbsdk_class.inc.php' );

What is the above line doing? It looks like you are trying to redeclare the ipbsdk class each time around the loop which is illegal in php. You can't do :

class ipbsdk {
...
}

and then (in the same request)

class ipbsdk {
....
}

because the names will clash. This should cause a "Fatal error: Cannot redeclare class ipbsdk ..." message though. Are you seeing any errors?

- Ryan

--- End Message ---
--- Begin Message ---
Hi Ryan,

I am including a different class.inc.php file each time the foreach loops.
Each one sits in a different dir. Yes, I do get that error. 

My understanding of OOP is that I could null the $sdk variable and re-init
it when the loop starts again..

Cheers

-----Original Message-----
From: Ryan Creaser [mailto:[EMAIL PROTECTED] 
Sent: 09 September 2005 12:34 AM
To: Ian Barnes
Cc: PHP General
Subject: Re: [PHP] Help with Class

Ian Barnes wrote:

>                                    require_once (
>$fetchd['path'].'sdk/ipbsdk_class.inc.php' );
>  
>

What is the above line doing? It looks like you are trying to redeclare 
the ipbsdk class each time around the loop which is illegal in php. You 
can't do :

class ipbsdk {
 ...
}

and then (in the same request)

class ipbsdk {
...
}

because the names will clash. This should  cause a "Fatal error: Cannot 
redeclare class ipbsdk ..." message though. Are you seeing any errors?

- Ryan

--- End Message ---
--- Begin Message ---
Ian Barnes wrote:

Hi Ryan,

I am including a different class.inc.php file each time the foreach loops.
Each one sits in a different dir. Yes, I do get that error.
My understanding of OOP is that I could null the $sdk variable and re-init
it when the loop starts again..
You'd be right if the name of class was unique in each class.inc.php. However, PHP doesn't allow the same class name to be used more than once, regardless of the include file it's from. It's the same with function names. The problem is if php allowed you to have two (or more) classes with the same name it wouldn't know which one to choose when you used that name - in your case it is obvious because you want to use the most recently declared class but php can't be excepected to guess that.

You can, however, do something like:
<?php
class ipbsdk {
  ...
}

foreach  (..) {
   $var = new ipbsdk();
}
?>
Which would set $var to a new instance of the class every time you loop. You could null the variable every time but it's not required.

One solution for you might be to redesign the code so you only need one ipbsdk class , which could take the path as an argument. This class could then be repeatedly instantiated with a different path each loop, something like this:

foreach (...) {
  ...
   $SDK = new ipbsdk($fetchd['path']);
  ...
}

I think your current strategy will lead to a dead end, unless someone else can see something I'm missing (which is highly likely!).

Hope this helps a little.

Ryan

--- End Message ---
--- Begin Message ---
How large can a string be in a cookie? (the value-parameter)

/G
http://www.varupiraten.se/

--- End Message ---
--- Begin Message ---
How large can a string be in a cookie? (the value-parameter)

According to here: http://wp.netscape.com/newsref/std/cookie_spec.html

There are limitations on the number of cookies that a client can store at any one time. This is a specification of the minimum number of cookies that a client should be prepared to receive and store.

    * 300 total cookies
* 4 kilobytes per cookie, where the name and the OPAQUE_STRING combine to form the 4 kilobyte limit. * 20 cookies per server or domain. (note that completely specified hosts and domains are treated as separate entities and have a 20 cookie limitation for each, not combined)

Servers should not expect clients to be able to exceed these limits. When the 300 cookie limit or the 20 cookie per server limit is exceeded, clients should delete the least recently used cookie. When a cookie larger than 4 kilobytes is encountered the cookie should be trimmed to fit, but the name should remain intact as long as it is less than 4 kilobytes.
--- End Message ---
--- Begin Message --- ----- Original Message ----- From: "Philip Hallstrom" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>
Cc: "PHP General" <php-general@lists.php.net>
Sent: Friday, September 09, 2005 3:38 AM
Subject: Re: [PHP] How large string in cookie?


How large can a string be in a cookie? (the value-parameter)

According to here: http://wp.netscape.com/newsref/std/cookie_spec.html

There are limitations on the number of cookies that a client can store at any one time. This is a specification of the minimum number of cookies that a client should be prepared to receive and store.

    * 300 total cookies
* 4 kilobytes per cookie, where the name and the OPAQUE_STRING combine to form the 4 kilobyte limit. * 20 cookies per server or domain. (note that completely specified hosts and domains are treated as separate entities and have a 20 cookie limitation for each, not combined)

Servers should not expect clients to be able to exceed these limits. When the 300 cookie limit or the 20 cookie per server limit is exceeded, clients should delete the least recently used cookie. When a cookie larger than 4 kilobytes is encountered the cookie should be trimmed to fit, but the name should remain intact as long as it is less than 4 kilobytes.


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.19/92 - Release Date: 2005-09-07


Thanx!!!

/G
http://www.varupiraten.se/

--- End Message ---
--- Begin Message ---
Still learning, so sorry if this sounds really simply noobish.  But as I 
understand things currently this should work.  But doesn't.  I've been 
looking over tutorials but just don't see whatever the problem is.

I created a simple table with the following fields (in order)
tc_id (auto nmbr)
lname
fname
machine_name
email_addr
problem
date_time_submitted (timestamp)

And I'm trying to run this insert from form input.  

                $username="somename";
                $password="somepass";
                $database="somedb";
                $table="sometable";
                mysql_connect(localhost,$username,$password);
                @mysql_select_db("$database") or die("Unable to Connect to DB");
                $tc_query = "INSERT INTO $tablel VALUES(NULL, $lname, $fname, 
$machine_name, 
$email_addr, $problem, NULL)";
                $result = mysql_query($tc_query);
                mysql_close();

So what exactly do I seem to be missing here?

--- End Message ---
--- Begin Message ---
Still learning, so sorry if this sounds really simply noobish.  But as I
understand things currently this should work.  But doesn't.  I've been
looking over tutorials but just don't see whatever the problem is.

I created a simple table with the following fields (in order)
tc_id (auto nmbr)
lname
fname
machine_name
email_addr
problem
date_time_submitted (timestamp)

And I'm trying to run this insert from form input.

                $username="somename";
                $password="somepass";
                $database="somedb";
                $table="sometable";
                mysql_connect(localhost,$username,$password);
                @mysql_select_db("$database") or die("Unable to Connect to DB");
                $tc_query = "INSERT INTO $tablel VALUES(NULL, $lname, $fname, 
$machine_name,
$email_addr, $problem, NULL)";
                $result = mysql_query($tc_query);
                mysql_close();

So what exactly do I seem to be missing here?

A lot of single quotes... around the parameters you are inserting...

add in a print($tc_query) and see what that looks like... run that directly in mysql and it will give you more details on the error.

Or, make it look like this:

$tc_query = "INSERT INTO $tablel VALUES(NULL, '$lname', '$fname', '$machine_name', '$email_addr', '$problem', NULL)";

I'd also suggest you read this page:

http://www.php.net/mysql_escape_string

good luck!

-p

--- End Message ---
--- Begin Message ---
>                 mysql_connect(localhost,$username,$password);
>                 @mysql_select_db("$database") or die("Unable to Connect to 
> DB");
>                 $tc_query = "INSERT INTO $tablel VALUES(NULL, $lname, $fname, 
> $machine_name,
> $email_addr, $problem, NULL)";
>                 $result = mysql_query($tc_query);

It's always nice to check if the query even ran, using "or
die(mysql_error())".  You might also want to print out the query
itself to see if there are missing values.  Perhaps you're relying on
register globals, which is turned off?

$result = mysql_query($tc_query) or die(mysql_error() . " in the query
$tc_query";

--- End Message ---
--- Begin Message ---
It might also be a factor, but the variable containing the table name is
$table (not $table1 as coded in the query string).

Warren Vail
[EMAIL PROTECTED]

> -----Original Message-----
> From: Philip Hallstrom [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 08, 2005 6:41 PM
> To: Iggep
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Inserting records question
> 
> 
> > Still learning, so sorry if this sounds really simply 
> noobish.  But as 
> > I understand things currently this should work.  But doesn't.  I've 
> > been looking over tutorials but just don't see whatever the problem 
> > is.
> >
> > I created a simple table with the following fields (in order) tc_id 
> > (auto nmbr) lname
> > fname
> > machine_name
> > email_addr
> > problem
> > date_time_submitted (timestamp)
> >
> > And I'm trying to run this insert from form input.
> >
> >             $username="somename";
> >             $password="somepass";
> >             $database="somedb";
> >             $table="sometable";
> >             mysql_connect(localhost,$username,$password);
> >             @mysql_select_db("$database") or die("Unable to 
> Connect to DB");
> >             $tc_query = "INSERT INTO $tablel VALUES(NULL, 
> $lname, $fname, 
> > $machine_name, $email_addr, $problem, NULL)";
> >             $result = mysql_query($tc_query);
> >             mysql_close();
> >
> > So what exactly do I seem to be missing here?
> 
> A lot of single quotes... around the parameters you are inserting...
> 
> add in a print($tc_query) and see what that looks like... run that 
> directly in mysql and it will give you more details on the error.
> 
> Or, make it look like this:
> 
> $tc_query = "INSERT INTO $tablel VALUES(NULL, '$lname', '$fname', 
> '$machine_name', '$email_addr', '$problem', NULL)";
> 
> I'd also suggest you read this page:
> 
http://www.php.net/mysql_escape_string

good luck!

-p

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

--- End Message ---
--- Begin Message ---
> > Still learning, so sorry if this sounds really simply noobish.  But as I
> > understand things currently this should work.  But doesn't.  I've been
> > looking over tutorials but just don't see whatever the problem is.
> >
> > I created a simple table with the following fields (in order)
> > tc_id (auto nmbr)
> > lname
> > fname
> > machine_name
> > email_addr
> > problem
> > date_time_submitted (timestamp)
> >
> > And I'm trying to run this insert from form input.
> >
> > $username="somename";
> > $password="somepass";
> > $database="somedb";
> > $table="sometable";
> > mysql_connect(localhost,$username,$password);
> > @mysql_select_db("$database") or die("Unable to Connect to DB");
> > $tc_query = "INSERT INTO $tablel VALUES(NULL, $lname, $fname,
$machine_name,
> > $email_addr, $problem, NULL)";
> > $result = mysql_query($tc_query);
> > mysql_close();
> >
> > So what exactly do I seem to be missing here?

As well as what other posters have said (and pay special attention to the
suggestions on using mysql_error and single quotes), you are trying to
insert a NULL into an autonumber field. You don't need to insert anything
here, as the name suggests, it will be populated automatically.

You may find it helps you in the future to specify the fields you are
inserting. For example, if you add columns to the table, you may see
unexpected behaviour.

INSERT INTO mytable (
firstname,
surname,
address,
city
)
VALUES(
'Guus',
'Hiddink',
'National Stadium',
'Sydney'
)

--- End Message ---
--- Begin Message ---
Want to filter out cats from this array using SPL FilterIterator
$arr = array('koala', 'dingo', 'cat', 'Steve Irwin', 'fish');

kind regrards
Kevin

-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

--- End Message ---
--- Begin Message ---
On 9/9/05, Kevin Waterson <[EMAIL PROTECTED]> wrote:
> 
> Want to filter out cats from this array using SPL FilterIterator
> $arr = array('koala', 'dingo', 'cat', 'Steve Irwin', 'fish');
> 

Why, what's wrong with cats?

 -robin

--- End Message ---
--- Begin Message ---
what about existing apps... do i need to rewrite them :(

On 9/9/05, Raj Shekhar <[EMAIL PROTECTED]> wrote:
> in infinite wisdom Vedanta Barooah spoke thus  On 09/08/2005 07:22 PM:
> 
> > A typical scenario:
> > Server A needs to display news, which resides on Server B as RSS
> > feeds. For this the PHP script hosted on Server A need to go via the
> > proxy http://proxy:8088 then read the feed in Server B for it to
> > display… how this can be achieved?
> >
> > Any clues please help!!
> 
> http://pear.php.net/manual/en/package.http.http-request.proxy-auth.php
> 
> 
> --
> Raj Shekhar
> blog : http://rajshekhar.net/blog  home : http://rajshekhar.net
> Disclaimer : http://rajshekhar.net/disclaimer
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*~:~*
Vedanta Barooah
YM! - vedanta2006
Skype - vedanta2006

--- End Message ---
--- Begin Message ---
in infinite wisdom Vedanta Barooah spoke thus  On 09/09/2005 10:46 AM:
> what about existing apps... do i need to rewrite them :(
> 

if you want to ask if you will need to rewrite the scripts that fetch
the data, then yes - I think you will need to rewrite them.  I am not
sure how these scripts are retrieving data currently, hence I cannot
give a definite answer.

You will not have to rewrite the scripts which are giving the data.
-- 
Raj Shekhar
blog : http://rajshekhar.net/blog  home : http://rajshekhar.net
Disclaimer : http://rajshekhar.net/disclaimer

--- End Message ---
--- Begin Message ---
Hello,

Thanx to all of you for excellent suggestions. I am using Linux as OS and I 
want to parse the CVs and place in db for fulltext search. I think wvWare 
will work a lot for my case.

Thanx again.

On 9/8/05, Ben Ramsey <[EMAIL PROTECTED]> wrote:
> 
> zzapper wrote:
> >>On Wed, September 7, 2005 7:39 am, Shafiq Rehman wrote:
> >>
> >>>Hello,
> >>>
> >>>I want to parse the .doc files with PHP. Anybody have some idea 
> regarding
> >>>this problem.
> >>>
> >>>Your help regarding this matter is really appreciated
> >>>
> >
> > Also consider antiword
> >
> 
> And also:
> 
> wvWare: http://wvware.sourceforge.net/
> Word2x: http://word2x.sourceforge.net/
> 
> --
> Ben Ramsey
> http://benramsey.com/
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
*** phpgurru.com <http://phpgurru.com> [A php resource provider] ***

\\\|///
\\ - - //
( @ @ ) PHP is too logical for my brain
+---oOOo-(_)-oOOo------------------------------------------+
| Mian Shafiq ur Rehman
| phpgurru.com <http://phpgurru.com> [A php resource provider]
| 107 B, New Town, Multan Road
| Lahore Pakistan
|
| Mobile: 0300 423 9385
|
| ooo0 http://www.phpgurru.com
| ( ) 0ooo E-Mail: [EMAIL PROTECTED]
+---\ (----( )------------------------------------------+
\_) ) /
(_/

--- End Message ---
--- Begin Message ---
Hi,

 

 I have a strange behaviour. After following all the suggested installation
procedures for php5 and apache2, when I restart apache I get a warning
window saying "PHP Startup: Unable to load dynamic library
'C:\php\ext\php_mcrypt.dll' - The specified module could not be found". I
get this for 6-7 modules.

But, the module DOES EXITS at that address. Please advise. Thanks,

 

Cristian

 


--- End Message ---
--- Begin Message ---
Cristian Ionitoiu wrote:

>Hi,
>
> 
>
> I have a strange behaviour. After following all the suggested installation
>procedures for php5 and apache2, when I restart apache I get a warning
>window saying "PHP Startup: Unable to load dynamic library
>'C:\php\ext\php_mcrypt.dll' - The specified module could not be found". I
>get this for 6-7 modules.
>
>But, the module DOES EXITS at that address. Please advise. Thanks,
>  
>

Make sure you have set extension_dir properly in php.ini:

extension_dir = "C:\PHP\ext"

Of course, change to where you have the extensions installed. Could fix
your problem.

--- End Message ---
--- Begin Message ---
Hi Torgny,

I'm sure that the settings are correct because some of the extra modules
(like mysql) do load correctly.
I still have a problem with curl, ldap and openssl that return an error "the
operating system could not run %1" and with java, pdf, w32api and yaz which
are still "could not be found" despite having no need for extra libraries.
Do you have any ideas how to solve this problem?
Thanks,

Cristian

-----Original Message-----
From: Torgny Bjers [mailto:[EMAIL PROTECTED] 
Sent: 09 September 2005 11:22
To: [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Subject: Re: [PHP] installing php5 on apache2 as a module (on win xp)

Cristian Ionitoiu wrote:

>Hi,
>
> 
>
> I have a strange behaviour. After following all the suggested installation
>procedures for php5 and apache2, when I restart apache I get a warning
>window saying "PHP Startup: Unable to load dynamic library
>'C:\php\ext\php_mcrypt.dll' - The specified module could not be found". I
>get this for 6-7 modules.
>
>But, the module DOES EXITS at that address. Please advise. Thanks,
>  
>

Make sure you have set extension_dir properly in php.ini:

extension_dir = "C:\PHP\ext"

Of course, change to where you have the extensions installed. Could fix
your problem.



--- End Message ---

Reply via email to