php-general Digest 8 Mar 2004 02:42:57 -0000 Issue 2633

Topics (messages 179697 through 179717):

Re: remote stop/start the applications
        179697 by: Raditha Dissanayake
        179698 by: CurlyBraces Technologies \( Pvt \) Ltd

Re: Let's start a php-advanced list!
        179699 by: Larry Brown

writing meta information into png
        179700 by: p80

Image creation
        179701 by: Kenneth

Re: extra breaks in sent out emails
        179702 by: Ben Ramsey
        179705 by: Scott Taylor
        179706 by: Ben Ramsey

PHP security
        179703 by: Martin Nicholls
        179704 by: Jason Davidson
        179713 by: Martin Nicholls

Re: imagecreatejpeg locks php
        179707 by: kringla

Re: How to write this correctly?
        179708 by: Tom Rogers

Re: Job listings
        179709 by: Anders Hellström
        179712 by: Ben Ramsey
        179714 by: Larry Brown
        179717 by: Chris Shiflett

Re: Question of Charset
        179710 by: Ligaya Turmelle
        179716 by: edwardspl.ita.org.mo

getting message from file
        179711 by: Kenneth

Do not want Undefined variable message
        179715 by: Manisha Sathe

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


----------------------------------------------------------------------
--- Begin Message --- You can only kill your own processes or you have to rely on a suexec mechanism. What you should be doing is SFTA because this topic has been discussed many times in the past.

all the best

CurlyBraces Technologies ( Pvt ) Ltd wrote:

By using php web page of a certain webserver can i go into the some other
local plase in the same web server ?
Because for the special request i want kill some prosess which are runs in
the webserver.
All Telent and other remote login restricted from the firewall .

thanx

----- Original Message ----- From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 07, 2004 7:16 PM
Subject: Re: [PHP] Fw: remote stop/start the applications





On Sunday 07 March 2004 20:50, CurlyBraces Technologies \( Pvt \) Ltd


wrote:


Tell me even , is it possible to do so ??????


Yes.

--
Jason Wong -> Gremlins Associab.php









--
Raditha Dissanayake.
-----------------------------------------------------------------------
http://www.radinks.net/ftp/applet/
An applet that breaks all the rules. Reads, Writes and Deletes files on your hard disk. Uploads what's left to a third party server.

--- End Message ---
--- Begin Message ---
sorry , u didn't get my point ..............i will explain it again.
1.web server runs with some php scripts
2.It will show the out put of a certain executable file's result.
3.This file run in the /usr/local/src/./asd.pl
4.I need stop the function of that file , like ctrl+c

can u hel me further ?

thanx


----- Original Message ----- 
From: "Raditha Dissanayake" <[EMAIL PROTECTED]>
Cc: "PHP" <[EMAIL PROTECTED]>
Sent: Sunday, March 07, 2004 8:31 PM
Subject: Re: [PHP] Fw: remote stop/start the applications


> You can only kill your own processes or you have to rely on a suexec
> mechanism. What you should be doing is SFTA because this topic has been
> discussed many times in the past.
>
> all the best
>
> CurlyBraces Technologies ( Pvt ) Ltd wrote:
>
> >By using php web page of a certain webserver can i go into the some other
> >local plase in the same web server ?
> >Because for the special request i want kill some prosess which are runs
in
> >the webserver.
> >All Telent and other remote login restricted from the firewall .
> >
> >thanx
> >
> >----- Original Message ----- 
> >From: "Jason Wong" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Sunday, March 07, 2004 7:16 PM
> >Subject: Re: [PHP] Fw: remote stop/start the applications
> >
> >
> >
> >
> >>On Sunday 07 March 2004 20:50, CurlyBraces Technologies \( Pvt \) Ltd
> >>
> >>
> >wrote:
> >
> >
> >>>Tell me even , is it possible to do so ??????
> >>>
> >>>
> >>Yes.
> >>
> >>-- 
> >>Jason Wong -> Gremlins Associab.php
> >>
> >>
> >>
> >>
> >
> >
> >
>
>
> -- 
> Raditha Dissanayake.
> -----------------------------------------------------------------------
> http://www.radinks.net/ftp/applet/
> An applet that breaks all the rules. Reads, Writes and Deletes files on
> your hard disk. Uploads what's left to a third party server.
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
what do you guys think of using a tag for discussion messages?  This way
people that don't want to weed out lengthy discussions and attachments etc
can filter them out of list messages.  A tag such as <discussion> in the
subject line?  Just my two cents.

Larry

-----Original Message-----
From: Marc Greenstock [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 06, 2004 7:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Let's start a php-advanced list!


Interesting topic,

However I don't necessarily agree that newbie's wont get their question
answered.

There are a lot of helpfully people out there, a lot of them are
advanced in their programing but find the satisfaction of helping, or
mentoring someone into advanced programming who is less advanced. I know
that when i started I posted messages at phpbuilder in the newbie area.
I found more often than not I would get a response from someone who
cared, and would treat a newbie for what he or she is rather than a just
a plain old idiot.

My point is; yes advanced users would be separated from beginners, but
most of the questions asked in the beginners list would be answered by
advanced programmers looking for a bit of 'fuzzy wazzies' :)

Two thumbs up for the idea.

Marc

Ryan A wrote:
>>This has come up many times before and I really don't think it will work.
>>Splitting advanced users from beginners means that there will be nobody to
>>answer the beginner questions which means they will get posted to the
>>advanced list where the people with the answers are.  It is a
>>self-defeating separation.  Having everyone in one big lump means that
>>both camps and all the camps in between learn from each other.
>
>
>>The other question is who decides what is advanced?  Chances are what you
>>think is advanced may seem trivial to me, or vice-versa.
>
>
>>-Rasmus
>
>
> True, When I started learning PHP one of the guys who answered most of the
> questions
> for me and a lot of people was Capt John Holmes, now that dude knows a
> ****load of
> php (I mean that as a complement). If there was an advanced list he would
> probably be
> in it and very unlikely that he would also be in the "newbie" list to help
> which would have
> made my learning curve that much harder. Some other guys who are really
> helpful and
> advanced are Jason, Chris, Chris, David to name a few..take all of them
out
> and put them
> in the advanced list...and the newbies, not-so-newbies etc will follow
just
> coz we have no
> choice when we run into problems. If only newbies and average knowledge
> dudes are in
> the "not advance list" it wont work coz the blind leading the blind does
not
> work.
>
> My $0.2
>
> Cheers,
> -Ryan

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

--- End Message ---
--- Begin Message ---
is there a class or a function that makes it possible to write meta
information into a png or jpeg image?

any suggestion?

thanx in advance

--- End Message ---
--- Begin Message ---
Dear all,
Thanks Kilimajer's help and I can finally build-in the GD library.
But when i use the imagecreate function for jpeg, don't know why there are
some unknown wordings appears. Sth like the following:
1oAAAAACEEEOOOOO¡ÑOUUaaaaaaceeenooooo

Don't know what's happening, I just use simple function (e.g.
Imagecreate,Imagejpeg) to test it.
Thx

--- End Message ---
--- Begin Message --- Scott Taylor wrote:
What I really don't understand is why there are any line breaks at all, because the trim is supposed to take out all \r & \n 's. Is there another type of line break?

trim() actually only strips whitespace (including \r and \n) from the beginning and ending of strings. See http://www.php.net/trim for more information.


If you want to completely remove line breaks from your string, use str_replace() to do something like: str_replace("\n", "", $string); and str_replace("\r", "", $string); See http://www.php.net/str-replace

Finally, have you tried echoing $body just before the message is sent so that you can see exactly what is being sent to the mail() function?

--
Regards,
 Ben Ramsey
 http://benramsey.com
 http://www.phpcommunity.org/wiki/People/BenRamsey

--- End Message ---
--- Begin Message ---
Thank you Ben. Using either str_replace("\n", "", $string); or str_replace("\r", "", $string); solves the problem. My guess is that when I submit the data there is both the \r and the \n in there (for there showed 2 white space characters in between the broken text lines). My guess is that the server converts all \r's into \n's, and for this reason when a piece of mail goes out it has two breaks instead of one.


Best Regards, and thank you for the help,

Scott Taylor




Ben Ramsey wrote:


Scott Taylor wrote:

What I really don't understand is why there are any line breaks at all, because the trim is supposed to take out all \r & \n 's. Is there another type of line break?


trim() actually only strips whitespace (including \r and \n) from the beginning and ending of strings. See http://www.php.net/trim for more information.

If you want to completely remove line breaks from your string, use str_replace() to do something like: str_replace("\n", "", $string); and str_replace("\r", "", $string); See http://www.php.net/str-replace

Finally, have you tried echoing $body just before the message is sent so that you can see exactly what is being sent to the mail() function?


--- End Message ---
--- Begin Message --- I cannot believe that the server converts \r's to \n's. \n does not count as two breaks, either. \r stands for carriage return and \n stands for newline. Even if they are placed side-by-side (e.g. "\r\n"), they should only count as one line. Unless I knew more about your code or your application, I could not determine what was causing the double line break.


Scott Taylor wrote:



Thank you Ben. Using either str_replace("\n", "", $string); or str_replace("\r", "", $string); solves the problem. My guess is that when I submit the data there is both the \r and the \n in there (for there showed 2 white space characters in between the broken text lines). My guess is that the server converts all \r's into \n's, and for this reason when a piece of mail goes out it has two breaks instead of one.


Best Regards, and thank you for the help,

Scott Taylor




Ben Ramsey wrote:


Scott Taylor wrote:

What I really don't understand is why there are any line breaks at all, because the trim is supposed to take out all \r & \n 's. Is there another type of line break?



trim() actually only strips whitespace (including \r and \n) from the beginning and ending of strings. See http://www.php.net/trim for more information.


If you want to completely remove line breaks from your string, use str_replace() to do something like: str_replace("\n", "", $string); and str_replace("\r", "", $string); See http://www.php.net/str-replace

Finally, have you tried echoing $body just before the message is sent so that you can see exactly what is being sent to the mail() function?


-- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey

--- End Message ---
--- Begin Message ---
I know somebody who coded a PHP script that attempts to prevent post
flooding and some other potential security 'flaws'.

I know quite alot about PHP, some things are still beyond my knowledge. I
was wondering if some people could have a look at it to see if it is a
viable way of reducing secrity risks on PHP sites. You can download it from
my site at http://www.streakyland.co.uk/ccisecurity.zip

More info, an extract from the readme ->

[What is the CCI Website Security Script?]

The CCI Website Security Script is a drop-in PHP script designed to take on
the burdon of dealing with certain common security problems in PHP scripts.
It is made to be added to an existing script to provide immediate,
transparent security of varying types.

Far, far too often you hear about free scripts having some common
vulnerability that has been seen a thousand times in other scripts - people
just aren't careful enough when writing scripts.  This script is desiged to
try to compensate for some of this carelessness.

Some of the things it (supposedly) attempts to prevent / do ->

HTTP REQUEST FLOODS, SCRIPT DISPLAY VULNERABILITIES, GENERAL FLOOD
PROTECTION, IP BANNING VIA .HTACCESS, HTML Source Viewing/Stealing

Thanks for your time

Streaky

--- End Message ---
--- Begin Message ---
request floods and such are not the responsability of the programmer is
it? Sounds more like a sys admin problem?  i could be wrong.

Jason

"Martin Nicholls" <[EMAIL PROTECTED]> wrote:
> 
> I know somebody who coded a PHP script that attempts to prevent post
> flooding and some other potential security 'flaws'.
> 
> I know quite alot about PHP, some things are still beyond my knowledge. I
> was wondering if some people could have a look at it to see if it is a
> viable way of reducing secrity risks on PHP sites. You can download it from
> my site at http://www.streakyland.co.uk/ccisecurity.zip
> 
> More info, an extract from the readme ->
> 
> [What is the CCI Website Security Script?]
> 
> The CCI Website Security Script is a drop-in PHP script designed to take on
> the burdon of dealing with certain common security problems in PHP scripts.
> It is made to be added to an existing script to provide immediate,
> transparent security of varying types.
> 
> Far, far too often you hear about free scripts having some common
> vulnerability that has been seen a thousand times in other scripts - people
> just aren't careful enough when writing scripts.  This script is desiged to
> try to compensate for some of this carelessness.
> 
> Some of the things it (supposedly) attempts to prevent / do ->
> 
> HTTP REQUEST FLOODS, SCRIPT DISPLAY VULNERABILITIES, GENERAL FLOOD
> PROTECTION, IP BANNING VIA .HTACCESS, HTML Source Viewing/Stealing
> 
> Thanks for your time
> 
> Streaky
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
no, but i suppose you have options available to prevent them, and it may be
a sysadmins problem, but there is a good chance that it may be your fault, I
can see how if you are a freelance devloper, it may look bad if the client
wants to hire for another job, and your code was the flaw in an otherwise
well coded site, or that sort of thing...

I don't know really, I was just wondering what people thought of it.. :P

"Jason Davidson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> request floods and such are not the responsability of the programmer is
> it? Sounds more like a sys admin problem?  i could be wrong.
>
> Jason
>
> "Martin Nicholls" <[EMAIL PROTECTED]> wrote:
> >
> > I know somebody who coded a PHP script that attempts to prevent post
> > flooding and some other potential security 'flaws'.
> >
> > I know quite alot about PHP, some things are still beyond my knowledge.
I
> > was wondering if some people could have a look at it to see if it is a
> > viable way of reducing secrity risks on PHP sites. You can download it
from
> > my site at http://www.streakyland.co.uk/ccisecurity.zip
> >
> > More info, an extract from the readme ->
> >
> > [What is the CCI Website Security Script?]
> >
> > The CCI Website Security Script is a drop-in PHP script designed to take
on
> > the burdon of dealing with certain common security problems in PHP
scripts.
> > It is made to be added to an existing script to provide immediate,
> > transparent security of varying types.
> >
> > Far, far too often you hear about free scripts having some common
> > vulnerability that has been seen a thousand times in other scripts -
people
> > just aren't careful enough when writing scripts.  This script is desiged
to
> > try to compensate for some of this carelessness.
> >
> > Some of the things it (supposedly) attempts to prevent / do ->
> >
> > HTTP REQUEST FLOODS, SCRIPT DISPLAY VULNERABILITIES, GENERAL FLOOD
> > PROTECTION, IP BANNING VIA .HTACCESS, HTML Source Viewing/Stealing
> >
> > Thanks for your time
> >
> > Streaky
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

--- End Message ---
--- Begin Message --- Is there any debugger i can use too se what is hapening?

I found dbg but that seems to only work if php is CGI installed, and I do have serious problem compiling dbg.

I also found xdebug http://www.xdebug.org/ but it seems like it's not for php 4.3.4, just 4.3.1. Downloaded the source also so I will try to compile that too if there's a meaning.

I also found 'body' http://members.ozemail.com.au/~djf01/body.html (is it a motorcykle site or about php?).

So do you know of any other, I would like to use it without recompiling apache, but singe its compiled with --disable-debug I guess i'm out of luck, and have to recompile php?

Would love to get some answers and no newbie or rtfm flames from you dragons ;).
--- End Message ---
--- Begin Message ---
Hi,

Sunday, March 7, 2004, 11:20:18 PM, you wrote:
L> Hi, thanks for a help. but your script doesn't work correctly.

L> function output($action){ // this is line 64.
L>   $output = ''; //if no file we return an empty string
L>   $fname = 'data/'.$action.'.txt';
L>   if(file_exists($fname)){
L>     $file = file($fname);
L>     foreach($file as $value ) {
L>       $output .= "$value<br>";
L>     }
L>   }
L>   return $output;
L> }
L>  $content = output(); // I added this line because later I have an echo..
L> if(isset($_REQUEST['action'])){
L>   $out = output($_REQUEST['action']);
L> }
L> echo "<tr><td>".$content."<td><tr>"; // as you can see, it is important to
L> put whole output of the function to this variable ($content).

L> The browser debugs:
L>   Warning: Missing argument 1 for output() in C:\www\RKV\start.php on line
L> 64

L> Sorry for my bad english,
L> Roman

L> ----- Original Message ----- 
L> From: "Tom Rogers" <[EMAIL PROTECTED]>
L> To: "Labunski" <[EMAIL PROTECTED]>
L> Cc: <[EMAIL PROTECTED]>
L> Sent: Sunday, March 07, 2004 4:14 AM
L> Subject: Re: [PHP] How to write this correctly?

You only need to call output if there is an action selected so
try something like this then

function output($action){
  $output = ''; //if no file we return an empty string
  $fname = 'data/'.$action.'.txt';
  if(file_exists($fname){
    $file = file($fname);
    foreach($file as $value ) {
      $output .= "$value<br>";
    }
  }
  return $output;
}
echo '<table>';
if(isset($_REQUEST['action'])){
  $content = output($_REQUEST['action']);
  if(!empty($content)){
    echo "<tr><td>".$content."</td></tr>";
  }else{
    echo '<tr><td>Sorry '.$_REQUEST['action'].' not found!</td></tr>';
}else{
?>
  <tr>
    <td>
      <a href='index.php?action=industry'>Factories</a><br>
      <a href='index.php?action=art'>Beautiful pictures</a><br>
      <a href='index.php?action=animals'>Zoo</a><br>
      <a href='index.php?action=contact'>Contact us</a>
    </td>
  </tr>
<?php
}
echo '</table>';


-- 
regards,
Tom

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


I'm one of the volunteers working on PHPCommunity.org.

There's been some talk about having a Job Listings section on the site, something 
along the lines of jobs.perl.org, and We're wondering how much interest there is in 
such a service. I'm sure all the unemployed PHP developers on the list would like it, 
if companies actually used it. So the biggest question is probably if companies 
looking to hire PHP developers would use it.

I would really appreciate it if you could reply to this message, off-list, if you're 
interested in this or have anything to say on the topic. Please mention in what way 
you're interested, if you're in a position to hire people, looking for work, etc. 
Anything you feel is relevant.

All comments are welcome, both positive and negative.

I can be reached at [EMAIL PROTECTED]


Looking forward to reading your comments!



Thanks in advance,

--
Anders Hellström
PHPCommunity.org: Open Source, Open Community

Dumburken.net: Reklamfria TV-tablåer

--- End Message ---
--- Begin Message --- Anders,

I think this really depends on how we get the word out to employers about this service. I, for one, hope to use the new Atlanta PHP (http://www.atlphp.org) group as a resource not only to educate and network PHP developers, but as a way to bring knowledge of PHP to the business world in the southeastern US. I think that local user groups worldwide will need to take part in promoting such a thing to the local business owners.

-Ben


Anders Hellström wrote:


Hi,


I'm one of the volunteers working on PHPCommunity.org.


There's been some talk about having a Job Listings section on the site, something along the lines of jobs.perl.org, and We're wondering how much interest there is in such a service. I'm sure all the unemployed PHP developers on the list would like it, if companies actually used it. So the biggest question is probably if companies looking to hire PHP developers would use it.

I would really appreciate it if you could reply to this message, off-list, if you're interested in this or have anything to say on the topic. Please mention in what way you're interested, if you're in a position to hire people, looking for work, etc. Anything you feel is relevant.

All comments are welcome, both positive and negative.

I can be reached at [EMAIL PROTECTED]


Looking forward to reading your comments!




Thanks in advance,


-- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey

--- End Message ---
--- Begin Message ---
I don't see how it could be to anyone's disadvantage.  As a matter of fact,
I think that it would be great to also have it available as a soap service
as well.  If people well versed in different open source projects were able
to be listed on each projects' sites and provide soap service as well,
anyone could create an all-encompassing list of open source tallent at any
one place on the web and pull from all of the resources.  Sounds great for
the unemployed and the employers.

-----Original Message-----
From: Ben Ramsey [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 8:05 PM
To: [EMAIL PROTECTED]; Anders Hellström
Subject: [PHP] Re: RFC: Job listings


Anders,

I think this really depends on how we get the word out to employers
about this service.  I, for one, hope to use the new Atlanta PHP
(http://www.atlphp.org) group as a resource not only to educate and
network PHP developers, but as a way to bring knowledge of PHP to the
business world in the southeastern US.  I think that local user groups
worldwide will need to take part in promoting such a thing to the local
business owners.

-Ben


Anders Hellström wrote:

> Hi,
>
>
> I'm one of the volunteers working on PHPCommunity.org.
>
> There's been some talk about having a Job Listings section on the site,
something along the lines of jobs.perl.org, and We're wondering how much
interest there is in such a service. I'm sure all the unemployed PHP
developers on the list would like it, if companies actually used it. So the
biggest question is probably if companies looking to hire PHP developers
would use it.
>
> I would really appreciate it if you could reply to this message, off-list,
if you're interested in this or have anything to say on the topic. Please
mention in what way you're interested, if you're in a position to hire
people, looking for work, etc. Anything you feel is relevant.
>
> All comments are welcome, both positive and negative.
>
> I can be reached at [EMAIL PROTECTED]
>
>
> Looking forward to reading your comments!
>
>
>
> Thanks in advance,
>

--
Regards,
  Ben Ramsey
  http://benramsey.com
  http://www.phpcommunity.org/wiki/People/BenRamsey

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

--- End Message ---
--- Begin Message ---
--- Larry Brown <[EMAIL PROTECTED]> wrote:
> I don't see how it could be to anyone's disadvantage.  As a matter of
> fact, I think that it would be great to also have it available as a soap
> service as well.

I was thinking the same thing after reading Ben's comment. I think people
might be more interested in local job boards, but a global resource could
provide an organized outlet for this by sharing this data via feeds.

So, people can post job openings on this board, and local user groups can
syndicate this data based on local preferences, or they can even let their
users sign in and have even more personalized listings (bypassing the
necessity of searching). Along the same lines, local user groups can help
syndicate data back to the core PHP job resource as well.

If the resource can do a better job of bringing together quality talent
and employers than existing resources do (which probably isn't too hard),
I think it can quickly become the dominant job board for PHP, which can
only help everyone.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
     Coming mid-2004
HTTP Developer's Handbook - Sams
     http://httphandbook.org/
PHP Community Site
     http://phpcommunity.org/

--- End Message ---
--- Begin Message ---
I don't understand what you are asking.  Please explain.

Respectfully,
Ligaya Turmelle

PHPCommunity: Open Source, Open Community
For more information or to join the movement
www.phpcommunity.org

<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Dear All,
>
> How to control php ( programms on Linux System ) convert the charset of
> unicode from MS-SQL 2000 ?
>
> Very thank for your help !
>
> Edward.

--- End Message ---
--- Begin Message ---
Dear Ligaya Turmelle,

For example

After enter chinese words ( example ) though program ( Web ) to MS-SQL, then
search the data from the DB...
But the result of the records is not chinese words ( char ) !

Thank for your help !

Edward.

Ligaya Turmelle wrote:

> I don't understand what you are asking.  Please explain.
>
> Respectfully,
> Ligaya Turmelle
>
> PHPCommunity: Open Source, Open Community
> For more information or to join the movement
> www.phpcommunity.org
>
> <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> > Dear All,
> >
> > How to control php ( programms on Linux System ) convert the charset of
> > unicode from MS-SQL 2000 ?
> >
> > Very thank for your help !
> >
> > Edward.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Dear All,
I have a problem on getting content from a data file (data.txt).
I have many numbers in the file...all of them are about 2.XXX, and I need
them to plot a  graph. But I just can't read them out as a integer.

I've used C++ program to read them before, but i don't know how to import
C++ program into PHP.

--- End Message ---
--- Begin Message ---
I have following code

testinclude.php
<%
echo "A $color $fruit"; // A
include 'vars.php';
echo "A $color $fruit"; // A green apple
%>

vars.php
<%
$color = "green";
$fruit = "Apple";
%>

But when i run the testinclude program I always get "Undefined variable
errro on very first line. I know it is because vars are not defined yet, but
i remember last time those warnings never used to come. What setting is
needed in php.ini file ?

--- End Message ---

Reply via email to