php-general Digest 7 Apr 2002 21:37:54 -0000 Issue 1273

Topics (messages 91915 through 91953):

Re: Can I fopen() files in .htaccess protected directories?
        91915 by: Miguel Cruz

Re: Executing functions within ereg_replace() output
        91916 by: Adam Wan

Re: counter for HIGH traffic site
        91917 by: Adam Wan

Strange warning message GD2 & php 4.1.2
        91918 by: Mark W. Humphries

Re: /usr/bin/php Question
        91919 by: Chris Kay
        91937 by: Jason Wong
        91949 by: Chris Kay

New User of PHp/Mysql..
        91920 by: Gordon Stewart

Re: Phone number validation
        91921 by: Gordon Stewart
        91942 by: Richard Baskett
        91943 by: Miguel Cruz
        91946 by: Richard Baskett
        91948 by: Gary

Newbies Question
        91922 by: news.php.net
        91929 by: Matt

/usr/bin/php error
        91923 by: Chris Kay
        91927 by: Matt

WebMail server question
        91924 by: Patrick Ni
        91925 by: Chris Kay
        91926 by: Michael Geier
        91928 by: Patrick Ni

Hidding an image
        91930 by: Morten Nielsen
        91931 by: martinahingis

Re: PHP on Apache 2.0 -- Does it work?
        91932 by: Steve Magruder, D2 Director

hosting
        91933 by: Heidi Belal
        91934 by: Adam Alkins

Re: 1024X760 or 800x600
        91935 by: Steve

PHP & .PDF & .ZIP ???
        91936 by: Jason Caldwell
        91939 by: Tyler Longren

Form ID name
        91938 by: Morten Nielsen
        91940 by: M Green

import_request_variables() is undefined!?
        91941 by: M Green

PHP from HTML
        91944 by: Matjaž Prtenjak
        91945 by: Matjaž Prtenjak
        91953 by: Markas

Sites for contracts?
        91947 by: Steve
        91951 by: Bob

Test for one bit set?
        91950 by: Charlie Killian
        91952 by: Miguel Cruz

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 ---
On Sat, 6 Apr 2002, Dalton Hunter wrote:
> Hi, does fopen() support the opening and reading of remote files in
> directories protected with .htaccess files like ...
> 
> fopen("http://user:[EMAIL PROTECTED]/directory/file.php","r";);
> 
> If not, is there an alternative way to do this? Thanks!

If you're only going to be reading it from inside your PHP program, why
not just put the target resource at a secret URL rather than behind
.htaccess password protection? That's pretty much equivalent to a 
password.

miguel

--- End Message ---
--- Begin Message ---
Thanks! That preg_replace_callback helps alot.

-Adam

"Cc Zona" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> In article <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED] (Adam Wan) wrote:
>
> > $content = 'string string 12463409834234 string string';
> > $content = ereg_replace( "[0-9]{14}" , substr("\\1",0,5) , $content );
> >
> > // this is the output i want, but the above doesnt seem to be the right
way
> > to generate it.
> >
> > string string 12363 string string
> > --------------------
> >
> > any ideas?
>
> For future reference:
> <http://www.php.net/preg-replace-callback>
>
> For this instance:
> $content = ereg_replace( "([0-9]{5})[0-9]{9}" , "\\1", $content);
>
> --
> CC


--- End Message ---
--- Begin Message ---
"Craig Westerman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm needing counter for site that receives 60 to 80 hits a minute. Many I
> have tried cause excessive server load and need to be deactivated or they
> lose data and return to zero without warning. All tried so far have been
> written in Perl.
>
> Anyone here know of a PHP counter that would handle HIGH traffic with
little
> added server load? Would using MySQL to store count be of any benifit?
>
> Thanks
>
> Craig ><>
> [EMAIL PROTECTED]
>

Make a mysql table that looks like this

tablename: mysqlcount
columns: "id" and "count"


Then add a single entry with "id" set to 1 and count set to 0, or whatever
your count was before.

Then use this code in your page.

$str = 'http://www.yourdomain.com/where/this/is/located'.$PHP_SELF;
if ( $str != $HTTP_REFERER ) {
mysql_query("UPDATE mysqlcount SET count=count+1 WHERE id=1");
}
$count_query = @mysql_query("SELECT count FROM mysqlcount WHERE id=1");
echo substr(@mysql_result($count_query,0),
0, -3).','.substr(@mysql_result($count_query,0), -3);

that should be pretty fast.

-Adam


--- End Message ---
--- Begin Message ---
Perhaps someone can kindly help me with the following problem.

The following snippet runs perfectly when I use php_gd.dll but generates a
garbled warning message when I switch the extension to php_gd2.dll

"Warning: @Ép in c:\program files\apache group\apache\htdocs\test.php on
line 10"
(line 10 being the imageTTFText call)


  $image = imagecreate(500, 500);

  define( 'BEIGE', imagecolorallocate($image, 245, 245, 220) ); #
Automaticaly 1st is Background color
  define( 'BLACK', imagecolorallocate($image,   0,   0,   0) );

  imageTTFText($image, 32, 0, 100, 100, BLACK, 'c:/WINNT/Fonts/times.ttf',
'HELLO');

  header('Content-type: image/png');
  imagepng($image);

Cheers,
Mark

--- End Message ---
--- Begin Message ---

So I should compile without axps to make the binary then recompile
--with-axps to compile the apache module again.?

Cause I want both apache module and command line.

Or will it work as a apache module without axps?

-------
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
-------


-----Original Message-----
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, 7 April 2002 3:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] /usr/bin/php Question


On Sunday 07 April 2002 13:18, Chris Kay wrote:
> Hi
>
> I have compiled php -with-apxs option and I read in the archives it 
> don't create a /usr/bin/php. But I wish to run 2 scripts I have made 
> by command line, I have the 2 scripts outside the web server
> Root.
>
> Is there a way to compile a php binary to use for my scripts?

Yes.

> Or does someone have any idea's what's the best way to go about this 
> would be...

>From the manual "The default is to build PHP as a CGI program".

By using the "--with-apxs" option you're telling it to build an Apache
module 
and not a standalone binary.

So just:

./configure; make;

then copy the resulting "php" executable somewhere.


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
"Show business is just like high school, except you get paid."
- Martin Mull
*/

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

--- End Message ---
--- Begin Message ---
On Sunday 07 April 2002 19:37, Chris Kay wrote:

> So I should compile without axps to make the binary then recompile
> --with-axps to compile the apache module again.?
>
> Cause I want both apache module and command line.

If you want both, then yes, you need to compile twice. Once using 
"--with-apxs", then again omitting "--with-apxs".

> Or will it work as a apache module without axps?

There are two types of Apache modules, the preferred being apxs, so just 
stick with it -- unless you have special reasons not to.


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
It is better to have loved and lost than just to have lost.
*/
--- End Message ---
--- Begin Message ---

Thanks Jason this worked..

-------
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
-------


-----Original Message-----
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: Monday, 8 April 2002 4:01 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] /usr/bin/php Question


On Sunday 07 April 2002 19:37, Chris Kay wrote:

> So I should compile without axps to make the binary then recompile 
> --with-axps to compile the apache module again.?
>
> Cause I want both apache module and command line.

If you want both, then yes, you need to compile twice. Once using 
"--with-apxs", then again omitting "--with-apxs".

> Or will it work as a apache module without axps?

There are two types of Apache modules, the preferred being apxs, so just

stick with it -- unless you have special reasons not to.


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
It is better to have loved and lost than just to have lost.
*/

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

--- End Message ---
--- Begin Message ---
Ive been using Mysql/PHP for a short while - I sent this messaghe to a big
PHP group (not enough users though)  about a week ago - No reply...

Can anyone help..
PS - Slingshot.co.nz doesnt have PHP - its just a text file.. - Save to your
own  SQL server & test, Or just review the code - No viruses or anything..

Thanks.

G.
[EMAIL PROTECTED]

---------



http://homepages.slingshot.co.nz/~gordon52/4.txt

Ive been learning MySql for about 1 week now - & joined a MySql
group - but some questions I ask are more PHP related & not directly
involving MySQL..

anyway, for my big test script, Ive got the above URL

Just 'view source' to view the PHP scripting language...

when running, it searches your databases & brings up a list of active
databases.

When selected, it brings up a list of tables within the database..

(those two functions are ok..)

Now - in the script, - near the top, it says :-

if ($action =='tables'){ <<< (start of problem area..)

Now - when you select the table, it displays all the names of each
column, within the table. (that part works..)


it has :- $tot=$i; - $tot now holds the number of columns in that
table - For my example on my PC, it held the number '17' which is
correct.


it now has 2 'loops'...

a) for ($count = 1; $row = mysql_fetch_row ($query_result_handle);
++$count)

b) for ($counta = 1; $tot; ++$counta)

Loop a, loops through the 4 rows of the database.

Loop B, displays all (17) of the colmns for each row...


Now - Problems

1) When my script runs, it is VERY fast - Doing things normally.
- EXCEPT - when it comes to the 2 loops.. - it goes Very slow - I
realise its got to do 2 sets of loops - but its going at a much
slower rate than if i did the same loops, on another programming
language.

2) It only displays the 1st row of my data.. - For the example
database i tested, I knew it had 4 rows.

problem questions :-

a) Is my looping correct - Or can anyone find a loop-hole / problem
in my programming. (Im not telling you if the pun was intentional or
not.)


PS - Ive now realised something, & changed my line from :-

for ($counta = 1; $tot; ++$counta)

to

for ($counta = 1; $row = mysql_fetch_row ($query_result_handle);
++$counta)


- now my script is really fast - However it doesnt show much of the
1st line of data :-(

PS, the uploaded one (URL above) - doesnt show the change - as yet..

Can anyone advise what im doing wrong ?

G.








--- End Message ---
--- Begin Message ---

Richard Baskett <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What I do is strip all non-numeric numbers out and just store the number
as
> a string of numbers.. Then do validation on those numbers.. Make sure the
> right amount of numbers are there, valid country, city codes etc.
Probably
> an easier approach :)

Just as a curiosity - (I dont need / Want it now - Maybe later....)

Where / what site, can we get a list of the valid country/city codes ?

G.



--- End Message ---
--- Begin Message ---
http://www.the-acr.com/codes/cntrycd.htm

Rick

"A good head and good heart are always a formidable combination. But when
you add to that a literate tongue or pen, then you have something very
special" - Nelson Mandela

> From: "Gordon Stewart" <[EMAIL PROTECTED]>
> Date: Mon, 8 Apr 2002 00:50:09 +1200
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Phone number validation
> 
> 
> Richard Baskett <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> What I do is strip all non-numeric numbers out and just store the number
> as
>> a string of numbers.. Then do validation on those numbers.. Make sure the
>> right amount of numbers are there, valid country, city codes etc.
> Probably
>> an easier approach :)
> 
> Just as a curiosity - (I dont need / Want it now - Maybe later....)
> 
> Where / what site, can we get a list of the valid country/city codes ?
> 
> G.
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
On Mon, 8 Apr 2002, Gordon Stewart wrote:
> Just as a curiosity - (I dont need / Want it now - Maybe later....)
> Where / what site, can we get a list of the valid country/city codes ?

Someone else has already provided you with a site.

I'd just add that validating international numbers against any sort of
list is bound to lead to extreme annoyance. Even telephone companies have
trouble keeping track of changes.

miguel

--- End Message ---
--- Begin Message ---
I would agree with that.  When I wrote that you COULD do that.. I didnšt
mean that I do that :)  If you wanted to get down and dirty and verify
everything about that phone number you could.. Was what I was trying to get
at.  But when you had all the non-numeric characters in a phone number it
makes it hard to do any type of verification since everyone seems to write
their phone numbers different.  Thus the reason for my advice on stripping
all non-numeric characters from the phone number before checking to make
sure it's a valid number or throwing it into your database in the format you
want.  Verifying country, city, etc codes would just be a royal pain in the
@$$ and I wouldnšt recommend it to anyone, there really is no reason to do
it, but you COULD do it if you really wanted :)

Cheers!

Rick

"Every person you meet - and everything you do in life - is an opportunity
to learn something." - Tom Clancy

> From: Miguel Cruz <[EMAIL PROTECTED]>
> Date: Sun, 7 Apr 2002 14:08:42 -0500 (CDT)
> To: Gordon Stewart <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Phone number validation
> 
> On Mon, 8 Apr 2002, Gordon Stewart wrote:
>> Just as a curiosity - (I dont need / Want it now - Maybe later....)
>> Where / what site, can we get a list of the valid country/city codes ?
> 
> Someone else has already provided you with a site.
> 
> I'd just add that validating international numbers against any sort of
> list is bound to lead to extreme annoyance. Even telephone companies have
> trouble keeping track of changes.
> 
> miguel
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---


Miguel Cruz wrote:

> On Mon, 8 Apr 2002, Gordon Stewart wrote:
> 
>>Just as a curiosity - (I dont need / Want it now - Maybe later....)
>>Where / what site, can we get a list of the valid country/city codes ?
>>
> 
> Someone else has already provided you with a site.
> 
> I'd just add that validating international numbers against any sort of
> list is bound to lead to extreme annoyance. Even telephone companies have
> trouble keeping track of changes.
> 
> miguel
> 
> 
I have to agree with that. I have given up on validating a phone number. 

When I sat down and thought about it there are too many problems. These problems range 
from country codes, 

city codes , and area codes all changing daily to business phones. Your 
looking at #*. + ( )- and probably many more I haven't thought of. Looks 
like I will only check if something is there.

Gary


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

I'm a  french newbie in PHP and I'm trying to resolve this :

<?php
$rf = fopen("album.dat", "r");
$row = 1;
while ($data = fgetcsv ($rf, 1000, ";"))
{
$num = count ($data);
print $num;
//print "<p> $num champs dans la ligne $row: <br>";
//$row++;
for ($c=0; $c<$num; $c++) {
//print $data[$c] . "<br>";
$image = $data[$c];
$img = GetImageSize(""$image\n"");                    this is Line 13
print $image;
print $img;
}
}
fclose($rf);

each time  I run it I get a : Parse error: parse error in essai2.php on line
13


All I want is to get the image name and size to put in in a table



TYA for your help




--- End Message ---
--- Begin Message ---
Remove the double-double quotes and the newline around $image:

> $img = GetImageSize(""$image\n"");                    this is Line 13

It should look like:
$img = GetImageSize($image);

There is no need to double quote a variable when passing as a parm.  You
would want to double quote a variable when it's in a string like:
$var = "The image name is $image<br>\n";




--- End Message ---
--- Begin Message ---

Would any one know why when I run command line php I get the following?

[root@*** ****]# /usr/bin/php /data/web/root/***/getdata.php 
X-Powered-By: PHP/4.1.2
Content-type: text/html

<br>
<b>Fatal error</b>:  Call to undefined function:  ftp_connect() in
<b>/data/web/root/***/getdata.php</b> on line <b>16</b><br>

-------
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
-------

--- End Message ---
--- Begin Message ---
Did you compile in ftp support?  It's not there unless you do.
http://www.php.net/manual/en/ref.ftp.php

----- Original Message ----- 
From: "Chris Kay" <[EMAIL PROTECTED]>

> Would any one know why when I run command line php I get the following?
> 
> [root@*** ****]# /usr/bin/php /data/web/root/***/getdata.php 
> X-Powered-By: PHP/4.1.2
> Content-type: text/html
> 
> <br>
> <b>Fatal error</b>:  Call to undefined function:  ftp_connect() in
> <b>/data/web/root/***/getdata.php</b> on line <b>16</b><br>



--- End Message ---
--- Begin Message ---
Good morning,

     Someone last month told me that there is free web based email server
platform which relies
on PHP technology. This mail server is the result of a project. I can not
remember the name
of the mail server. It is something like "NMP", "MNP", or "NMD" ???..

     He also told me that because Apache web server supports PHP, so the
email server has
to be on Apache, or any other web server which supports PHP.

    Anyone knows this? Thank you.

--
Patrick Ni
Phone: (604) 719 - 2781
Email: [EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---

Not sure which one you are referring to but I been told SquirrelMail is
really good

http://sourceforge.net/projects/squirrelmail/

-------
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
-------


-----Original Message-----
From: Patrick Ni [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, 7 April 2002 11:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] WebMail server question


Good morning,

     Someone last month told me that there is free web based email
server platform which relies on PHP technology. This mail server is the
result of a project. I can not remember the name of the mail server. It
is something like "NMP", "MNP", or "NMD" ???..

     He also told me that because Apache web server supports PHP, so the
email server has to be on Apache, or any other web server which supports
PHP.

    Anyone knows this? Thank you.

--
Patrick Ni
Phone: (604) 719 - 2781
Email: [EMAIL PROTECTED]



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

--- End Message ---
--- Begin Message ---
You are probably thinking about IMP (http://www.horde.org)
This message is actually being sent from an IMP 3.0 installation and our 
company is very pleased with the product.

-- 
Michael Geier
CDM Sports, Inc. - Systems Administrator
    email: [EMAIL PROTECTED]

Quoting Chris Kay <[EMAIL PROTECTED]>:

> 
> Not sure which one you are referring to but I been told SquirrelMail is
> really good
> 
> http://sourceforge.net/projects/squirrelmail/
> 
> -------
> Chris Kay, Eleet Internet Services
> [EMAIL PROTECTED]
> -------
> 
> 
> -----Original Message-----
> From: Patrick Ni [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, 7 April 2002 11:46 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] WebMail server question
> 
> 
> Good morning,
> 
>      Someone last month told me that there is free web based email
> server platform which relies on PHP technology. This mail server is the
> result of a project. I can not remember the name of the mail server. It
> is something like "NMP", "MNP", or "NMD" ???..
> 
>      He also told me that because Apache web server supports PHP, so the
> email server has to be on Apache, or any other web server which supports
> PHP.
> 
>     Anyone knows this? Thank you.
> 
> --
> Patrick Ni
> Phone: (604) 719 - 2781
> Email: [EMAIL PROTECTED]
> 
> 
> 
> -- 
> 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
> 
> 


-------------------------------------------------
This mail sent through CDM Sports Webmail.
--- End Message ---
--- Begin Message ---

Thank you Michael.   It is IMP and horde that I was after.
I only remembered that "M" or "N" is part of the name.

Also Thanks to Chris.

Patrick

"Michael Geier" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You are probably thinking about IMP (http://www.horde.org)
> This message is actually being sent from an IMP 3.0 installation and our
> company is very pleased with the product.
>
> --
> Michael Geier
> CDM Sports, Inc. - Systems Administrator
>     email: [EMAIL PROTECTED]
>
> Quoting Chris Kay <[EMAIL PROTECTED]>:
>
> >
> > Not sure which one you are referring to but I been told SquirrelMail is
> > really good
> >
> > http://sourceforge.net/projects/squirrelmail/
> >
> > -------
> > Chris Kay, Eleet Internet Services
> > [EMAIL PROTECTED]
> > -------
> >
> >
> > -----Original Message-----
> > From: Patrick Ni [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, 7 April 2002 11:46 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] WebMail server question
> >
> >
> > Good morning,
> >
> >      Someone last month told me that there is free web based email
> > server platform which relies on PHP technology. This mail server is the
> > result of a project. I can not remember the name of the mail server. It
> > is something like "NMP", "MNP", or "NMD" ???..
> >
> >      He also told me that because Apache web server supports PHP, so the
> > email server has to be on Apache, or any other web server which supports
> > PHP.
> >
> >     Anyone knows this? Thank you.
> >
> > --
> > Patrick Ni
> > Phone: (604) 719 - 2781
> > Email: [EMAIL PROTECTED]
> >
> >
> >
> > --
> > 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
> >
> >
>
>
> -------------------------------------------------
> This mail sent through CDM Sports Webmail.


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

I got a page where I have to images (IMG), which is also a link. Is it
possible to hide an image so the user can't see it?

Regards,
Morten


--- End Message ---
--- Begin Message ---
If you dont want user to see the image. dont put the image to the page!
Or what you want is just something different?

--
-------------
martina.


"Morten Nielsen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I got a page where I have to images (IMG), which is also a link. Is it
> possible to hide an image so the user can't see it?
>
> Regards,
> Morten
>
>


--- End Message ---
--- Begin Message ---
Thanks for the info.  Apache 1.3.24 isn't a bad release to be stuck with.
:)  I just wanted to be a little bit on the bleeding edge.

Regards,
  Steve

"Tyler Longren" <[EMAIL PROTECTED]> wrote in message
004001c1ddf3$13d82b90$0101a8c0@nightengale">news:004001c1ddf3$13d82b90$0101a8c0@nightengale...
> Well, php 4.1.2 for windows probably wasn't compiled to work with apache
2.
> Apache 2 has changed too much for the php developers to keep on top of it.
> If you were using unix/linux, you could compile php to work with apache 2,
> but since you're using Windows, you're stuck with using Apache 1.3.24
until
> the php group releases a new version for Apache 2.



--- End Message ---
--- Begin Message ---
didn't get an replies about web-x.net and i sent them
and email and they never replied - doesn't portray a
good image....
so i've looked for another hosting company and have
come up with burst.net...anybody got any reviews?
Thanks,

=====
Heidi Belal
www.code-corner.com
ICQ# 32127109

A bus stops at a bus station.
A train stops at a train station.  On my desk
I have a work station...

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--- End Message ---
--- Begin Message ---
Go to http://www.webhostingtalk.com and do a search for them.

Adam

----- Original Message -----
From: "Heidi Belal" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>; "Egypt Developers"
<[EMAIL PROTECTED]>; "Egypt Programmers"
<[EMAIL PROTECTED]>; "js-jive mailing list"
<[EMAIL PROTECTED]>; "Php" <[EMAIL PROTECTED]>
Sent: Sunday, April 07, 2002 12:31 PM
Subject: [PHP] hosting


> didn't get an replies about web-x.net and i sent them
> and email and they never replied - doesn't portray a
> good image....
> so i've looked for another hosting company and have
> come up with burst.net...anybody got any reviews?
> Thanks,
>
> =====
> Heidi Belal
> www.code-corner.com
> ICQ# 32127109
>
> A bus stops at a bus station.
> A train stops at a train station.  On my desk
> I have a work station...
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>


--- End Message ---
--- Begin Message ---
My reccomendation is to design it for optimization on 800*600......as
that to me is the lowest common denominator.....it will still look good
in 1024*760 therefore covering both resolutions nicely 

Ron Allen wrote:
> 
> Is there a way with PHP to determine screen resolution size???
--- End Message ---
--- Begin Message ---
I need to automatically create a .PDF file from a *dynamically created* text
file, then .ZIP that file up.  Then *ultimately* have that file attached to
an email and automatically sent.

Can PHP do .PDF files?  .ZIP Files?

The caveat on the .PDF file is; it also needs to be locked (or password
protected) like an EBOOK, where the end user will not be able to copy and
paste out the contents -- I'm considering them not being able to print it
also-- just the ability to view it on the screen.  Can PHP help with all
this?

If so; if anyone has some sample code, that would be *very* helpful.

Thanks.
Jason



--- End Message ---
--- Begin Message ---
Yes, PHP can do pdf and can READ zip files.  I am not sure if PHP can make
the pdf unprintable, or locked.

You can find info on the pdf functions here:
http://www.php.net/manual/en/ref.pdf.php

and info on the zip functions here:
http://www.php.net/manual/en/ref.zip.php

Since those are read-only functions, you could use exec() or system() to zip
your files.

Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com

----- Original Message -----
From: "Jason Caldwell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 07, 2002 12:57 PM
Subject: [PHP] PHP & .PDF & .ZIP ???


> I need to automatically create a .PDF file from a *dynamically created*
text
> file, then .ZIP that file up.  Then *ultimately* have that file attached
to
> an email and automatically sent.
>
> Can PHP do .PDF files?  .ZIP Files?
>
> The caveat on the .PDF file is; it also needs to be locked (or password
> protected) like an EBOOK, where the end user will not be able to copy and
> paste out the contents -- I'm considering them not being able to print it
> also-- just the ability to view it on the screen.  Can PHP help with all
> this?
>
> If so; if anyone has some sample code, that would be *very* helpful.
>
> Thanks.
> Jason
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

I got a table where I have some images and links (IMG & A). They all have an
ID name. Is it possible to access them from a function through a variable?
If my link looks like:

<A ID="link1" href="#"></A>

then in my function I would like something like:

func1( ) {
$link=link1;
$link.href="www.x.com";
}

Is this somehow possible?

Regards,
Morten


--- End Message ---
--- Begin Message ---
If you are using a function as an easy way to add links to your page, i'd
recommend that you
define a function that echoes <a hfref=your function parameter> in that
manner.

/Mattias

"Morten Nielsen" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I got a table where I have some images and links (IMG & A). They all have
an
> ID name. Is it possible to access them from a function through a variable?
> If my link looks like:
>
> <A ID="link1" href="#"></A>
>
> then in my function I would like something like:
>
> func1( ) {
> $link=link1;
> $link.href="www.x.com";
> }
>
> Is this somehow possible?
>
> Regards,
> Morten
>
>


--- End Message ---
--- Begin Message ---
When i just migrated to linux instead of win2k the function
import_request_variables() is not defined anymore. I used 4.1.2 in win2k and
4.0.6 now under linux.

I was wondering if it had to do with the versions or someting. Seems odd.

Very tankful for any help that might get me to solve the problem

/Mattias Green


--- End Message ---
--- Begin Message ---
HI,

Is this possible?

SERVER1 with PHP.... some file with name xTest.php
xTest.php:
<? echo("Hi from SERVER1"); ?>

SERVER2 without PHP.... some file with name file1.html
file1.html:
<html>
  <body>
Server1 is saying : ?????
  </body>
</html>

How can I make HTML file (on SERVER2) say 'Server1 is saying : Hi from
SERVER1'?

TIA
Matjaž Prtenjak






--- End Message ---
--- Begin Message ---
HI,

Is this possible?

SERVER1 with PHP.... some file with name xTest.php
xTest.php:
<? echo("Hi from SERVER1"); ?>

SERVER2 without PHP.... some file with name file1.html
file1.html:
<html>
  <body>
Server1 is saying : ?????
  </body>
</html>

How can I make HTML file (on SERVER2) say 'Server1 is saying : Hi from
SERVER1'?

TIA
Matjaž Prtenjak



--- End Message ---
--- Begin Message ---
1. Instead of ????? you could use server side includes (this would work on
SERVER2 side)
below would work on client side:
2. Some Javascript file, which could be downloaded from SERVER1, like
<SCRIPT SRC="...SERVER1...">
3. Use <IFRAME>
Maybe there are some other possibilities...
Your problem is just the same as the case with counters, banners and so
on...

Sorry if I misunderstood You.

Matja+ Prtenjak <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> HI,
>
> Is this possible?
>
> SERVER1 with PHP.... some file with name xTest.php
> xTest.php:
> <? echo("Hi from SERVER1"); ?>
>
> SERVER2 without PHP.... some file with name file1.html
> file1.html:
> <html>
>   <body>
> Server1 is saying : ?????
>   </body>
> </html>
>
> How can I make HTML file (on SERVER2) say 'Server1 is saying : Hi from
> SERVER1'?
>
> TIA
> Matjaž Prtenjak
>
>
>


--- End Message ---
--- Begin Message ---
Does anyone here know of any good sites where there are companies
looking for contract employees listed on them? Other then main stream
sites like Monster, Dice and so on?

Thanx
--- End Message ---
--- Begin Message ---
www.scriptlance.com

----- Original Message ----- 
From: "Steve" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 07, 2002 1:28 PM
Subject: [PHP] Sites for contracts?


> Does anyone here know of any good sites where there are companies
> looking for contract employees listed on them? Other then main stream
> sites like Monster, Dice and so on?
> 
> Thanx
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
How can I test if a number only has on bit set?

So testing different numbers will return TRUE or FALSE:

testing 00010000 would return TRUE.
testing 00000011 would return FALSE.

TIA

Charlie




--- End Message ---
--- Begin Message ---
On Sun, 7 Apr 2002, Charlie Killian wrote:
> How can I test if a number only has on bit set?
> 
> So testing different numbers will return TRUE or FALSE:
> 
> testing 00010000 would return TRUE.
> testing 00000011 would return FALSE.

Think back to math class when you were 14!

  function isOneBitSet($n)
  {
    $x = log($n)/log(2);
    return ($x == intval($x));
  }

Cheesy alternative:

  function isOneBitSet($n)
  {
    return (1 == substr_count(base_convert($n, 10, 2), '1'));
  }

miguel

--- End Message ---

Reply via email to