[PHP-WIN] issue with PHP_XSLT?

2002-03-21 Thread Ben

hi,

i got a problem. i installed sablotron (expat etc) and it seems to be
working. my directory structures are like this:

webroot = c:\apache\htdocs
phproot = c:\apache\php

i try putting my xsl files (1.xsl, 1.xml) into HTDOCS but it doesnt work and
tries to look for the files in my PHPROOT! so, when i put the files in
"c:\apache\php", it works.

why does php_xslt.dll expect the files to be in PHP root? how can i change
this to be able to pick up files from the document root itself?

thanks,
ben





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




[PHP-WIN] PHP Sessions

2002-05-19 Thread Ben

Hey,

I am trying to work out PHP sessions, but are having some trouble at the
first step.

This code, which should be simplistic:


Results in this output:
Warning: open(/tmp\sess_52be4d339fbffacf1efc495cf16ed383, O_RDWR) failed: m
(2) in c:/documents/web/page1.php on line 2
your session id is: 52be4d339fbffacf1efc495cf16ed383

I am running windows. Is there some kind of configuration change I have to
make to enable sessions or something?

Thanks.



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




[PHP-WIN] closing an ODBC connection to mysql

2001-12-18 Thread ben

Hello

I've installed mysql and php on W2K with IIS5.0 and I'm having some trouble
closing my connection, which is established via odbc.

I have been using the following php code to connect:

$link = odbc_connect("forum", "ben", "dulwich")
or die("Could not connect");
print "Connected successfully";



This connects successfully. I then execute my query, which returns a result.
All is fine so far.

Unfortunately, when I come to close the connection, I have a problem:

mysql_free_result ($result);

print "Connection about to be closed";
// Closing connection
odbc_close($link)
or die ("connection not closed");
It always prints "connection not closed". Is this because the connection is
not closing, or simply that the "or die" option is not applicable for the
statement "odbc_close()"? I've read the manual and been through tutorials
etc but haven't found any conclusive answers on this, and I'd be gratefull
for any help!

Thanks very much in advance.

Ben



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




[PHP-WIN] Re: closing an ODBC connection to mysql

2001-12-19 Thread ben

George

Thank you. I didn't understand the meaning of the "void" preceding the
syntax in the statement. I should have looked this up, and have now. Thank
you for pointing me in the right direction - much apreciated!

Ben
"George Nicolae" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> odbc_close($link) is a void function. didn't return anything. look in
> documentation at odbc_close();
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> _______
> X-Playin - Professional Web Design
> www.x-playin.f2s.com
>
>
>
> "Ben" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hello
> >
> > I've installed mysql and php on W2K with IIS5.0 and I'm having some
> trouble
> > closing my connection, which is established via odbc.
> >
> > I have been using the following php code to connect:
> >
> > $link = odbc_connect("forum", "ben", "dulwich")
> > or die("Could not connect");
> > print "Connected successfully";
> >
> >
> >
> > This connects successfully. I then execute my query, which returns a
> result.
> > All is fine so far.
> >
> > Unfortunately, when I come to close the connection, I have a problem:
> >
> > mysql_free_result ($result);
> >
> > print "Connection about to be closed";
> > // Closing connection
> > odbc_close($link)
> > or die ("connection not closed");
> > It always prints "connection not closed". Is this because the connection
> is
> > not closing, or simply that the "or die" option is not applicable for
the
> > statement "odbc_close()"? I've read the manual and been through
tutorials
> > etc but haven't found any conclusive answers on this, and I'd be
gratefull
> > for any help!
> >
> > Thanks very much in advance.
> >
> > Ben
> >
> >
>
>



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




[PHP-WIN] Re: Can't Pass variable to other page

2003-08-14 Thread Ben
I had the same problem a couple of weeks ago.

register_globals=On
magic_quotes_runtime=Off

Ben


"Jack" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear all
> I had write a script like this :
>
> $link = "page.php?day=$day&month=$month&year=$year";
>
> when i click on the link, it should pass the parameter to "page.php" with
> $month and $year variables.
> It actually works fine in php4.2.1, but when i went to other office which
> got php5.0 above installed, using the same script, but it won't pass any
> parameters to page.php! How come?
>
> I heard there is something to set in the php5.0's php.ini before i can do
> so, is that right?
>
> Please could anyone give me a hand on this?
>
> Thx alot
>
> Jack
>
>



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



Re: [PHP-WIN] getting error msg

2004-02-03 Thread Ben
Marlene,
Seems like your scripts need the appropriate permissions to access the
database directory, using the local account assigned for your Web server to
process requests.

~ Ben



- Original Message - 
From: "Marlene Burckhalter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 03, 2004 11:35 AM
Subject: [PHP-WIN] getting error msg


Hi,
Will someone help me, please?

I am trying to write some PHP coding to process text that was entered into a
form by a user.  When the SUBMIT button is clicked, I get this message:

FORBIDDEN
You don't have permission to access /foldername/< on this server.

Does anyone have any ideas about why?

- - - Marlene

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



[PHP-WIN] Enabling Sybase on PHP5 in WIndows

2006-12-21 Thread Ben

Hello all,

I've recently installed Sybase ASE15 Express on a Linux installation on 
VMWare.
Now, I'd like to connect through PHP to the Sybase database server. So, 
after searching a bit I read that I needed to install the Sybase Open 
Client. Installed that, it connected fine through Sybase Central, but 
PHP still refused to load the php_sybase_ct.dll. It's in the folder all 
my other extentsions are in.
Yet when I start Apache I get an error that PHP couldn't load 
php_sybase_ct.dll.


Any idea on how to enable this? I'd try ODBC, but that's just messy in 
my opinion when you should be able to use the Sybase library.


Thanks,

Ben

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



[PHP-WIN] Re: R: [PHP-WIN] Enabling Sybase on PHP5 in WIndows

2006-12-22 Thread Ben

I'm on PHP Version 5.1.2.
Is there any good walkthrough for upgrading PHP on a Windows machine? 
I've tried upgrading before but it failed.


Ben


[EMAIL PROTECTED] wrote:

What version of php? 5.2.0 works fine, while some of the previous 5.1.X didn't 
work.

-Messaggio originale-
Da: Ben [mailto:[EMAIL PROTECTED] 
Inviato: giovedì 21 dicembre 2006 22.55

A: php-windows@lists.php.net
Oggetto: [PHP-WIN] Enabling Sybase on PHP5 in WIndows

Hello all,

I've recently installed Sybase ASE15 Express on a Linux installation on VMWare.
Now, I'd like to connect through PHP to the Sybase database server. So, after 
searching a bit I read that I needed to install the Sybase Open Client. 
Installed that, it connected fine through Sybase Central, but PHP still refused 
to load the php_sybase_ct.dll. It's in the folder all my other extentsions are 
in.
Yet when I start Apache I get an error that PHP couldn't load php_sybase_ct.dll.

Any idea on how to enable this? I'd try ODBC, but that's just messy in my 
opinion when you should be able to use the Sybase library.

Thanks,

Ben

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


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



[PHP-WIN] Sybase

2007-06-16 Thread Ben

Hello,

I've installed Sybase ASE-15 Express on a CentOS-5 machine. All went 
well there, configuration is done and all.


Now I'd like to connect, from my Windows XP localhost (WAMP5), to this 
Sybase server.
So I install the Sybase PC Client, made a connection, ... works fine. 
But when I try enabling php_sybase_ct.dll, I get the following error:


[16-Jun-2007 17:25:12] PHP Warning:  PHP Startup: Unable to load dynamic 
library 'c:/wamp/php/ext/php_sybase_ct.dll' - The specified module could 
not be found.

 in Unknown on line 0

Does anyone know how to make this work correctly?

Thanks,
Ben.

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



Re: [PHP-WIN] Sybase

2007-06-18 Thread Ben

Mikael,

The file actually exists. I've tried copying it to various places (php 
root, wamp root, system32 and the WINDOWS folder), but still no luck.


Ben

Mikael Grön wrote:

Ben,

first of all, check if the file php_sybase_ct.dll actually exist in the 
directory c:\wamp\php\ext\


If it does, I've had some luck with just moving dll-files that don't get 
included correctly to other paths. Like the PHP main path (c:\wamp\php\)

Try that too.

Mike



Ben skrev:

Hello,

I've installed Sybase ASE-15 Express on a CentOS-5 machine. All went 
well there, configuration is done and all.


Now I'd like to connect, from my Windows XP localhost (WAMP5), to this 
Sybase server.
So I install the Sybase PC Client, made a connection, ... works fine. 
But when I try enabling php_sybase_ct.dll, I get the following error:


[16-Jun-2007 17:25:12] PHP Warning:  PHP Startup: Unable to load 
dynamic library 'c:/wamp/php/ext/php_sybase_ct.dll' - The specified 
module could not be found.

 in Unknown on line 0

Does anyone know how to make this work correctly?

Thanks,
Ben.



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



Re: [PHP-WIN] Sybase

2007-06-18 Thread Ben

Niel Archer wrote:

Hi

Look in php.ini or use phpinfo() to check your configuration. Make sure
that 'c:\wamp\php\ext\' is the extension_dir path, assuming that is the
name of your directory.


Loading extensions works fine, I'm able to load cURL and mysql just fine.


Also make sure you have the Sybase client libraries that this extension
requires.  I have no idea where to get them, but the requirement is
listed in the Windows install instructions

Niel


I have the Sybase Open Client installed (with Sybase Central etc).

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



Re: [PHP-WIN] Sybase

2007-06-18 Thread Ben

Niel Archer wrote:

Hi


I have the Sybase Open Client installed (with Sybase Central etc).


Are the libraries in a location that PHP has access to.  For example,
the MySQL client libraries pretty much have to be in the php directory
or it doesn't work.

Niel


There shouldn't be a problem with that, it all runs under the same user 
on Windows XP, so access issues shouldn't be occuring. The Open Client 
is located in C:\sybase and PHP is located in C:\wamp\php.


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



Re: [PHP-WIN] Sybase

2007-06-18 Thread Ben

Niel Archer wrote:

Hi

There shouldn't be a problem with that, it all runs under the same user 
on Windows XP, so access issues shouldn't be occuring. The Open Client 
is located in C:\sybase and PHP is located in C:\wamp\php.


It's not a user/permission issue, but where PHP will look.  Years ago I
tried "tidying" up the MySQL libraries so that I only had one set to
keep up to date.  PHP wouldn't run without a copy in its directory, even
though they were in the PATH and the user had permission to use them.

Niel


I see. Which files do you suggest I copy then?
When doing a quick search through the Sybase folder I didn't see 
anything relating to PHP, just connectors for ADO.NET, ODBC, ...


Ben

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



Re: [PHP-WIN] Sybase

2007-06-18 Thread Ben

Niel Archer wrote:

Hi

I did some googling.  The file is probably called "libct.dll"

Niel


Thanks.
After some more googling myself I found that the files had been renamed 
in the new Open Client. So I renamed them, copied them to the PHP folder 
(both PHP root and ext), and checked with a dependency scanner. It said 
all DLLs were loaded, but when restarting Apache I'm still getting the 
same error.
I even tried copying the needed files to system32 and the windows 
folder, still no luck.


Ben

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



[PHP-WIN] Re: array walk?

2007-07-07 Thread Ben

Take a look at array_walk()
http://be2.php.net/manual/en/function.array-map.php

It might be better for what you're doing.

Juan Ignacio Borda wrote:
this code doesn't work on my PHP Version 5.2.1 (i'm trying to protect a 
stie from XSS)


como';
$a[]=Array('hola','hello');
array_walk_recursive($a,'strip_tags');
echo "";
var_dump($a);
echo "";
?>
it outputs:

array(2) {
[0]=>
string(11) "como"
[1]=>
&array(2) {
  [0]=>
  string(11) "hola"
  [1]=>
  string(5) "hello"
}
}


any clues?


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



Re: [PHP-WIN] MySQL query error

2007-07-07 Thread Ben
Not to mention that read would most likely be a tinyint(1), and thus 
shouldn't be fed a character.


Stut wrote:

Please include the list when replying.

James Blandford wrote:
It seems i have fixed it >_< thanks for your time thou. It turns out 
that I couldn't have "read" as a field name due to some random reason. 
I changed it to "itsread" and it works perfectly :0)


It wasn't a random reason - "read" is on the reserved words list: 
http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html


-Stut



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



[PHP-WIN] PEAR Library?

2002-05-14 Thread Ben Fogt

Is there a particular directory that is considered the PEAR library in the
PEAR piece of PHP?  I'm getting an error in Horde that says that my PEAR
library path might be missing from include_path.

Ben Fogt


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




[PHP-WIN] Installing on Apache 2 with PHP

2002-06-09 Thread Ben Davis

Does anyone know what directives to put in the httpd.conf file so that you can run 
PHP.  The LoadModule appears to no longer work in Apache2.  I am trying to install PHP 
4.2.1 onto Apache 2.0.36 on Windows 2000.  Apache2 is currently setup correctly and I 
have PHP installed, I just need to know what line to put in the httpd.conf file.  
Thanks

Ben Davis
www.davisben.com



Re: [PHP-WIN] crypt() on windows

2002-06-20 Thread Ben Davis

I actually remember reading a tutorial on using the htpasswd.exe that comes
with apache to emulate its *nix twin.  It is supposed to let you create
htpasswd files on Windows and it works well.  I got it to work and encrypt
strings, but for some reason, I could never get Apache to recognize the
.htaccess file.  But thats another story.


Ben Davis
Nashville, TN

[EMAIL PROTECTED]
www.davisben.com
- Original Message -
From: "Christian Leberfinger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 20, 2002 12:25 PM
Subject: [PHP-WIN] crypt() on windows


> Does anyone have a solution for crypt()-support on
> windows-based webserver-systems?
>
> I'm the developer of PHPAccess - the admin tool for
> htaccess-security on Apache-servers and I don't get
> it to create a crypted password that is recognized
> by Apache's htaccess.
>
> Help!
>
>
> Christian Leberfinger
> [http://krizleebear.de/phpaccess/]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



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




RE: [PHP-WIN] apache 404 handler

2001-04-23 Thread Ben Cairns

There is an option under ADVANCED config section of IE, that says 'Show 
Friendly Error Messages' you have to disable this.

Obviously though, you cannot be sure that other surfers will have done this, 
so just make sure that the 404handler.php file returns HTML code to the 
browser that is larger that I think 2.5Kb, this way, IE knows that its a 
custom error doc, and displays this instead.


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




RE: [PHP-WIN] find URL in text and make a link

2001-04-23 Thread Ben Cairns

$YOUR-STRING= 
eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])","\\1://\\2\\3", $YOUR-STRING);

hth

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] RE: [PHP] What's wrong with Apache + php + mysql on Windows?

2001-04-27 Thread Ben Cairns

Nik, Your E-Mail address in your mail client is wrong:

[EMAIL PROTECTED]

Send me your php.ini, and your httpd.conf

I will also need your machine's name (right click network neighbourhood, 
properties, identification, machine name)
and your path to php.exe

Your apache, php version would be usefull to.

also, the script your trying to execute, and does the script actually run? or 
does it just time out.


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] RE: [PHP] Problem with the HTTP_REFERER

2001-04-27 Thread Ben Cairns

Yes but you can call the Header() function in the middle of the page if you 
need to.

You just need to put this line as the VERY FIRST line of the script:


This uses the PHP Output Buffering functions.


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] Problem starting session

2001-06-20 Thread Ben Edwards

I am getting the following on a Windows 2000 Professional installation when 
I try to start a session:

Warning: open(/tmp\sess_9ab091b811c5675d90fabf4392b3c110, O_RDWR) failed: m 
(2) in
e:\inetpub\wwwroot\cd\common.inc on line 27

Any help would be much appreciated.

Regards,
Ben
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
* Ben Edwards [EMAIL PROTECTED]+44 (0)7970 269 522 *
* Campaign Against proper English, Dyslexia division *
* Homepagehttp://www.gifford.co.uk/~bedwards *
* i-Contact Progressive Videohttp://www.videonetwork.org *
* Smashing the Corporate image http://www.subvertise.org *
* Bristol's radical newshttp://www.bristle.co.uk *
* Open Directory Project http://www.dmoz.org *
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+

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




[PHP-WIN] Get the contents of the textarea "as is"

2001-06-21 Thread Ben Gillam

For example, if someone puts the following into a textbox..

"Hi my name is bob smith

and im talking to you now

and hitting enter every now and then"

and the name of the textbox is $message

how could i get it to take the contents of the text box and put it in
$message as is, with blank lines and carrige returns that the user has put
in, becuase as you know that would just come out as

"Hi my name is bob smith and im talking to you now and hitting enter every
now and then"

Any help would be great.
[EMAIL PROTECTED]



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




Re: [PHP-WIN] Get the contents of the textarea "as is"

2001-06-22 Thread Ben Gillam

I used the thing from phpbuilder worked a treat, many thanks

""Ben Gillam"" <[EMAIL PROTECTED]> wrote in message
9gt53d$lfh$[EMAIL PROTECTED]">news:9gt53d$lfh$[EMAIL PROTECTED]...
> For example, if someone puts the following into a textbox..
>
> "Hi my name is bob smith
>
> and im talking to you now
>
> and hitting enter every now and then"
>
> and the name of the textbox is $message
>
> how could i get it to take the contents of the text box and put it in
> $message as is, with blank lines and carrige returns that the user has put
> in, becuase as you know that would just come out as
>
> "Hi my name is bob smith and im talking to you now and hitting enter every
> now and then"
>
> Any help would be great.
> [EMAIL PROTECTED]
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



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




RE: [PHP-WIN] Re: Using PHP in Web Pages

2001-07-10 Thread Ben Bleything

If this is too 'big' of a solution (ie, you don't need all that
functionality) you could just 'include header.inc', 'include
footer.inc', etc.  Check the manual for details..

Although, templates will probably be a bit more flexible, I would
guess...

Ben

-Original Message-
From: Michel Laine [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 10, 2001 5:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Using PHP in Web Pages

David Cox wrote:

> can someone here steer me in the correct direction?
>
> heres what i want to do. (im sure its possible)??
>
> i dont want to have to edit every web page when i change something.
can i
> make multiple pages, (say a header, footer, links, maintext, and then
use
> PHP to call those pages up and put them in certain places in a web
page?
> Without have to set up html frames? Maybe just add a line of code to
place
> it dynamicaly or something
>
> thanks, dave

I think that you should take a closer look at Templates.
Templates do just about what you have described there.
Templates can be done with PHPlib or with an extension called
Fasttemplate.
There is even one called "cached fattemplate" out there.
I use PHPlib myself.
To help you on the way i suggest you look at these:

http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/
http://www.phpbuilder.com/columns/david2512.php3
http://www.phpbuilder.com/columns/sascha19990316.php3
http://www.phpbuilder.com/columns/kendall20001122.php3


--

Michel Laine


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




RE: [PHP-WIN] Loading PHP3 page

2001-07-10 Thread Ben Bleything

In your httpd.conf file (/etc/httpd/conf/httpd.conf, typically, on unix
anyway) find the lines that looks something like 

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

And just add .php3 to the first list (so it would read .php .phtml
.php3)  If you have index.php3 files that you want served up by default,
also look into the DirectoryIndex line.

Good luck,

-Original Message-
From: ABC [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 10, 2001 3:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Loading PHP3 page

How can I make my Apache 1.3.20 / php 4.05 to work with php3 pages?? I 
am using php asa a module in Apache.

Thanks.


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



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




RE: [PHP-WIN] Uptime script

2001-07-14 Thread Ben Bleything

Have you tried backticks?  'echo `uptime`';?  That has worked for me in
the past... it seems, from other postings, that people have nothing but
trouble with exec() and system().

Good luck,
Ben

-Original Message-
From: Dave Milford [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 13, 2001 6:50 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Uptime script

Hi,

I'm trying to create a little script to show the system uptime (and
hopefully system resource usage) on my Windows 2000 Professional SP2
box.
I'm currently running Apache 1.3.20 and PHP 4.0.6 on it...  It should be
noted that I have MS' "uptime" program installed.

So far, I've tried using:  system(uptime);
That didn't work.  I get the following printed: "Warning: Unable to fork
[uptime] in d:\www\inc_top.html on line 58".

So I hit the PHP website, found out some other methods of doing this,
like:
PRINT exec("cmd \\c uptime");
This time it displays: d:\www>
(that's my HTTPd root dir)

How could I get this displaying my uptime, and maybe even resource
usage?
Any help would be appreciated.

Thanks

---
Dave Milford
ICQ  : 8516328
Email: [EMAIL PROTECTED]


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



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




RE: [PHP-WIN] Make a CD with Apache & PHP

2001-07-14 Thread Ben Bleything

How does one do this?

-Original Message-
From: alain samoun [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 13, 2001 1:43 PM
To: elias; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Make a CD with Apache & PHP

php to exe ;)

-Original Message-
From: elias [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Make a CD with Apache & PHP


how you mean make an exec?

php to exe?
or htm to exe ?

"Alain Samoun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Yes, you can make an exec file, you won't need Apache. If that what
you
> want?
> Alain
>
> On Fri, Jul 13, 2001 at 08:33:25AM +0200, Rafa Borges wrote:
> > Hello. I have done a web using PHP and now I want to store it on a
CD
with
> > all the funcionality (read from a file and use a data base odbc or
mysql).
> > How can I do this ? Can Apache and PHP work on a CD without he
tipical
> > instalation for Windows ?
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail:
[EMAIL PROTECTED]



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


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



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




[PHP-WIN] apache/php troubles (installation)

2001-07-25 Thread Ben Bleything

Hello all!
 
I've downloaded and installed the win32 version of apache 1.3.20 and php
= 4.0.6.  I downloaded the zip file with all the modules and such for
PHP.
 
The problem I'm having is that when I try to load httpd, it's =
complaining about not being able to find/load the php4apache.dll file...
= It's exactly where I'm telling apache it is, but it can't find it.
 
Any ideas?
 
Thanks,
Ben



[PHP-WIN] Which Web server to run under XP

2003-01-10 Thread Ben Edwards
I am using XP and have been trying to work out which web server to use with 
PHP & MySQL.

First I tries IIS and it said I have an OCX missing.

Then I looked at Apache and it said I need Service Pack 1, which if I 
install slows the whole machine down.  This is a know issue, Microsoft 
excuse is that it is something to do with securety.

Are there any other web servers I could use or are there work rounds for 
the above.

Regards,
Ben

****
* Ben Edwards  +44 (0)117 968 2602 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *


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


RE: [PHP-WIN] Which Web server to run under XP

2003-01-11 Thread Ben Edwards
At 15:00 11/01/2003 +1100, you wrote:


I use IIS with PHP 4.3.0. The ISAPI dll in 4.3.0 is more stable than
previous versions.


What is ISAPI dll and how do I get install it, sorry but I'me not a real teche.


Did you install IIS onto your machine? (I think you can only install IIS if
you're running XP Pro. So if you're running Home, you're out of luck)


I am using XP Pro and have installed IIS.


There are plenty of other web servers. Read the PHP Install.txt file in the
PHP root. It mentions how to get PHPO running with OmniHTTPD and Xitami for
Windows as well.

I would keep trying for IIS though.

and as far as Apache requiring Sp1. Maybe v2.0.latest does, Get 1.3.27-win32
(PHP suppoort for Apache2 is expierimental anyway)

Regards,

Sean

-Original Message-
From: Ben Edwards [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 11 January 2003 1:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Which Web server to run under XP


I am using XP and have been trying to work out which web server to use with
PHP & MySQL.

First I tries IIS and it said I have an OCX missing.

Then I looked at Apache and it said I need Service Pack 1, which if I
install slows the whole machine down.  This is a know issue, Microsoft
excuse is that it is something to do with securety.

Are there any other web servers I could use or are there work rounds for
the above.

Regards,
Ben

********
* Ben Edwards  +44 (0)117 968 2602 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *




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


********
* Ben Edwards  +44 (0)117 968 2602 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *



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


RE: [PHP-WIN] Which Web server to run under XP

2003-01-11 Thread Ben Edwards
Maybe its just that it is only bundled with pro.

At 15:26 11/01/2003 +1100, Sean Malloy wrote:


Well there you go!

I wasn't sure. I thought I read somewhere on the MSDN site saying IIS
required >= winXP pro. I must have read it incorrectly

-Original Message-
From: toby z [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 11 January 2003 3:07 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Which Web server to run under XP


sean

im ran iis 5.1 on my win xp home :)
it ran fine . till the list made me get apache ;)


chao

toby 

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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


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


********
* Ben Edwards  +44 (0)117 968 2602 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *



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


RE: [PHP-WIN] Which Web server to run under XP

2003-01-12 Thread Ben Edwards
At 23:03 10/01/2003 -0400, you wrote:


I use Win XP with Service Pack 1 and I have not had problem with my PC,
in fact it has better performance on my machine. But if you don't want
to upgrade use Xitami


I guess you were luck, it certainly screwed up my machine.


-Original Message-
From: Ben Edwards [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 10:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Which Web server to run under XP

I am using XP and have been trying to work out which web server to use
with
PHP & MySQL.

First I tries IIS and it said I have an OCX missing.

Then I looked at Apache and it said I need Service Pack 1, which if I
install slows the whole machine down.  This is a know issue, Microsoft
excuse is that it is something to do with securety.

Are there any other web servers I could use or are there work rounds for

the above.

Regards,
Ben

********
* Ben Edwards  +44 (0)117 968 2602 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *



****
* Ben Edwards  +44 (0)117 968 2602 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *



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


[PHP-WIN] Re: ARRAY Question!

2003-03-04 Thread Ben O'Neill
Well, you can add items onto the end of an array by doing:

$myarray[] = "added on end";

--


Ben "SheepCow" O'Neill
GameSpyDaily Weekend Editor
http://www.gamespydaily.com
"Matt Babineau" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ok here goes!
>
> Lets say I have an array:
>
> $myArray = array();
>
> Now lets say I am looping over something
>
>
> 
>
> How do I simply add a new value to the array??
>
> I just want to start tacking on new key/value pairs to the array.
>
> I must be missing something really basic, but I'm not getting it LOL.
>
> 
>
>
> Thanks,.
>
> 
>



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



Re: [PHP-WIN] ARRAY Question!

2003-03-04 Thread Ben O'Neill
Using that it would be:

$array_length = count($myArray);
$myArray[$array_length] = $new_data;

As arrays start at 0, and count() returns the number of elements.

- Ben O'Neill

"Chris Kranz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Something like...
>
> $array_length = count( $myArray );
> $myArray[$array_length + 1] = $new_data;
>
> This what your after? I think there might be a function for this tho,
> but I'm a bit thick :p
>
> chris kranz
> fatcuban.com
>
>
>
> -Original Message-
> From: Matt Babineau [mailto:[EMAIL PROTECTED]
> Sent: 04 March 2003 21:55
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] ARRAY Question!
>
>
> Ok here goes!
>
> Lets say I have an array:
>
> $myArray = array();
>
> Now lets say I am looping over something
>
>
> 
>
> How do I simply add a new value to the array??
>
> I just want to start tacking on new key/value pairs to the array.
>
> I must be missing something really basic, but I'm not getting it LOL.
>
> 
>
>
> Thanks,.
>
> 
>
>



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



[PHP-WIN] Re: The page cannot be displayed

2003-03-06 Thread Ben O'Neill
Goto IE, Tools, Advanced, and un-check using friendly error mesasges. That
should give a move helpful error message.

--
Ben O'Neill


"Thomas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i have just installed
> php-4.3.1-Win32
> mysql-3.23.55-win
> apache_2.0.44-win32-x86-no_ssl.msi
> following the stadard procedure using the standard httpd.conf and php.ini
> (editing only where neccesary)
> on my windows XP pro server at home.
>
> locally everything works fine (in my http://localhost/beinspired) but
> externally ther are problems.
>
> apache seems to be always working (all non php pages work fine)
> sometimes all the php etc works fine (http://www.beinspired.biz, the news
> column on the right is php and MySQL)
> sometimes it doesnt (http://www.beinspired.biz/support/ &
> http://www.beinspired.biz/phpinfo.html)
>
> when it does not work it flashes the page very briefly and then displays a
> "The page cannot be displayed" error in Internet Explorer (the titlebar
says
> "Cannot find server").
> i have only been able to test it with internet explorer but this shouldnt
be
> the error as php is serverside altho netscape might display more usefull
> error messages.
>
> any help apreciated
> thanks
> Thomas
>
>
>
>
>



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



[PHP-WIN] Re: mail() on XP

2003-03-09 Thread Ben O'Neill
Find:

[mail function]
; For Win32 only.
SMTP = localhost

In the PHP.ini file, and make sure it's set, then you'll need to be running
an SMTP server (e.g. IIS).

--
Ben O'Neill

"John Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Is it possible to set up PHP so mail() sends email (through localhost, not
another server) to a local account? I have the non-server version of Windows
XP.
>
> John
>
>
>
> -
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, and more



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



Re: [PHP-WIN] Tables (might be OT)

2003-03-29 Thread Ben O'Neill
Hi, just one correction to Kobus' code:

function myTruncate ($verylongstring, $length) {
  if (strlen($verylongstring) > $length) {
$shorterstring = substr($verylongstring,0,$length-1) . "...";
  } else {
$shorterstring = $verylongstring;
  }
  return $shorterstring;
}

He was missing a "{", otherwise it was fine.

--
Ben O'Neill


"Kobus Myburgh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,

I have done a similar thing that worked reasonably well in Visual Basic
(however, included is a PHP snippet which might do the trick - I am not a
PHP pro).

write a small PHP function to select only a part of the string, say the
first 15 characters, and append "..." to the string, for example,

 thisisoneveryveryveryveryverylongword

will become:

 thisisoneveryver...

This is standard PHP string manipulation, which might look something like
this:


function myTruncate ($verylongstring, $length) {
if (strlen($verylongstring) > $length) {
$shorterstring = substr($verylongstring,0,$length-1) . "...";
}
else
$shorterstring = $verylongstring;
}
return $shorterstring;
}


(This is untested, but should work...).

You can then call this in your table cell as follows:

print myTruncate("thisisoneveryveryveryveryverylongword", 15);

Hope this helps :)

Regards,

Kobus


>>> "Bobo Wieland" <[EMAIL PROTECTED]> 3/29/2003 12:37:02 PM >>>
When using dynamic content, like PHP interacting with MySQL it is easier to
use tables then anything else. But tables will get you into trouble! If
someone enters a really long word the tablecell will expand so that the
hwole word will be shown.

Is there some way I can prevent this? With html, php or css? I've tried
style='overflow:hidden' but it didn't work...



.bobo


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




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



[PHP-WIN] Re: Re:Subject: upload question

2003-03-30 Thread Ben O'Neill
Children, please.

If you type:
C:\apache\htdocs\filename.jpg

In the address bar of your browser it should display it, if it doesn't then
I'd just ignore it and move on...

My copies of IE6 and Mozilla display jpegs when told to.

--
Ben O'Neill

"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Neil Smith wrote in message:
>
> > Err this is fairly basic stuff. Have you tried dragging the file into an
> > open browser window instead ?
> .
>
> Yes Neil.
>
> I tried that and that works.  It shows the image of the .jpg file within
the
> browser on the upper left hand side.
>
> However in her textbook on PHP she lists the steps which I've posted in
the
> thread.
>
> The .jpg file opens within the paint program.
>
> The only thing that I can think of is that any .jpg file defaults to the
> paint program and overrides the browser.
> 
>
> > Sounds like you need to learn how to set up
> > windows file associations. I have a 'windows for dummies' book my 5yo
kids
> > use, I can lend you if its any help ?
> >
> > Cheers,
> > Neil.
> ...
>
> Ouch.
>
> Such biting words.
>
> No thanks.
>
> However, if your kids are finished with the textbook - maybe you've got a
> library in your town that you'll donate it to?
>
> Kindest regards,
> Tony Ritter
>
>



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



[PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP

2003-06-14 Thread Walter Ben

Server : Apache 2PHP  4.3.2 OS : Win XP Pro i can't load GD2 extension php_gd2.dll in 
PHP , when i 

start Apache , it always alert "Can't load dynamic 

library php_gd2.dll" . 

I'm sure that no problems in my config . When i use 

other dll file such as php_java.dll, it has no errors 

and works!!! Any similar cases? Bug of new version?



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: [PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP

2003-06-14 Thread Walter Ben
Yes, I am trying to make GD2 work for image creation;
and I am sure that the php_gd2.dll file is in the right extension directory
specified (since some other .dll (e.g. php_java.dll and php_zip.dll) in some extension 
directory works when I enable them)
 
I am wondering why some dll files work, but php_gd2.dll? 
 
many thanks.


Stephen <[EMAIL PROTECTED]> wrote:

>From my php.ini file:

;GD2 is used for image creation
extension=php_gd2.dll

Are you sure that the php_gd2.dll file is in the extension directory
specified? (Below is where my extension directory is, so my php_gd2.dll is
in c:\server\PHP\extensions\php_gd2.dll)

; Directory in which the loadable extensions (modules) reside.
extension_dir = c:\server\PHP\extensions

- Original Message - 
From: "Walter Ben" 
To: 

Sent: Saturday, June 14, 2003 2:16 PM
Subject: [PHP-WIN] Pls help- can't load GD2 extension php_gd2.dll in PHP


>
> Server : Apache 2PHP 4.3.2 OS : Win XP Pro i can't load GD2 extension
php_gd2.dll in PHP , when i
>
> start Apache , it always alert "Can't load dynamic
>
> library php_gd2.dll" .
>
> I'm sure that no problems in my config . When i use
>
> other dll file such as php_java.dll, it has no errors
>
> and works!!! Any similar cases? Bug of new version?
>
>
>
> -
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!



-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

[PHP-WIN] problems on image support function (gd2.dll)

2003-06-19 Thread Walter Ben
My phpinfo? page shows gd (extension gd2.dll) has been eabled, but I still cannot see 
any images? any simple way to test gd function really installed and work/or not? 
 
I am using: Win-xp+Apache2+php4.3.2
 
 
Thank you for reply in advance.
 
Walter 
 
 
 


-
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).

[PHP-WIN] Quick Question

2003-09-18 Thread Ben Wheeler
Has anyone heard of this company?  I just bought a motherboard from them for $20 
dollars, seems to good to be true.

http://www.tigersurplus.com

Thanks

BJ

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



[PHP-WIN] Quick Question

2003-09-18 Thread Ben Wheeler
Has anyone heard of this company?  I just bought a motherboard from them for $20 
dollars, seems to good to be true.

http://www.tigersurplus.com

Thanks

BJ

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



[PHP-WIN] Removing Content

2001-01-11 Thread Ben Cairns

I have a script that looks at a web page, parses it and grab the HTML content 
between two Tags, then outputs the result to a file.

What I need to do is another script to read this file, remove more text 
between two tags, and then display this.

How can I do this?

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] DB Select Limits

2001-01-12 Thread Ben Cairns

I have a web board script that I need to impose a limit on the database 
select.

I tried using:
SELECT * FROM posts where of_forum='$forum_num' AND POST_ID <= '$upper' AND 
POST_ID >= '$lower'
and
SELECT * FROM posts where of_forum='$forum_num' ORDER BY POST_ID desc LIMIT 
'$lower','$upper'

$lower and $upper are defined from the url.

But that doesn't seem to work. Any ideas?


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] RE: [PHP-DB] Connection to MySQL

2001-01-18 Thread Ben Cairns

try replacing host with localhost

and ensure that MySQL is actually running

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] RE: [PHP-DB] LDAP

2001-01-24 Thread Ben Cairns

It may be that you need to uncoemment the ldap line in you r php.ini file.

This is under the loadable extensions bit.

I forge the exact syntax, but I know its in there

-- Ben Cairns, Head Of Technical Operations, Intasept.com
E-Mail: [EMAIL PROTECTED] | Web: http://www.intasept.com


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




[PHP-WIN] Date + Time

2001-01-25 Thread Ben Cairns

I need to get the date, day, month,year from the server that PHP is running 
on. How can I do this.

I need this information to be returned like:
255012001

Explained:
The Date (Numerical - 2 Digits)
Day (Day Number, Weeks starts on Sunday - Sun=1, Mon=2, Tue=3)
Month (Numerical - 2 Digits)
Year (Numerical - 4 digits)

but this information has to come from the SERVER as the site visitors will 
be all over the world, and the date's will be wrong

Thanks in advance

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] Less Than x but greater than y

2001-01-25 Thread Ben Cairns

I am writing a script that adds a collection of variables and then does 
something depending on the answer

Basically, I need the syntax for this:

 0 
if ($answer >0 but <=20) { ?> more than 0 but less than or equal to 20 

But, that doesn't seem to work, Can anyone help me with the syntax?

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




RE: [PHP-WIN] Less Than x but greater than y

2001-01-25 Thread Ben Cairns

Thanks You guys, that was what i was looking 4

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] Formatting Date

2001-02-01 Thread Ben Cairns

I have this line of code in a script:
$todays_date=date("dmY");

It generates something like this:
01022001
What I need to do is get something like this from it:
Thursday, February 01, 2001

Um, How?

Thanks in adavance...

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] Tab Seperated Data

2001-02-02 Thread Ben Cairns

I have a file where the data is Tab Seperated (instead of CSV) For example:

datadatadatadata

on so on

What I need to do is to read this file, parse it, and put each field into a 
unique varible, so obviosly, I must be able to rename the variable that it 
goes into.

Does that make sense?


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] Reading CSV data into a database

2001-02-02 Thread Ben Cairns

I have this script:
";
}
}
fclose ($fp);
 
?>
It reads a csv file (actually its tab seperated) into an array called $data.

When I call this in my browser, this is fine. But what I need to do is to 
put this information into a MySQL database...

The file contains these fields:
region
event_type
event_date
title
info
times
venue
price
event_id (this is auto_incrementing)

How do I read this file into the database?

Any help appreciated, as I have RTFM but I still no idea..



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




[PHP-WIN] Includes in Xitami

2001-02-05 Thread Ben Franske

Hey everyone! I'm a Xitami/PHP4.0 user. My problems started when I moved 
from CGI scripts to PHP. I really like PHP, but I have one little problem. 
When I use PHP includes , in a filename.php 
script it doesn't reload the file if I made changes to it . For example, my 
index.php file includes a file called menu.txt which is a file that 
contains my page menu. If I make a change to menu.txt (but not to 
index.php) and then click reload in my browser the changes don't show up. 
Only when I clear my browser cache and then reload the page do the changes 
show up. It becomes even more of a problem with my php news script, if I 
add or delete a user, I have to flush my browser's cache to see the new 
user profile. I tried the same exact scripts on an apache/linux server and 
they didn't have this problem. A friend of mine with xitami had the same 
problem I do. I'm not really sure what I can do about this, I really like 
PHP but this is really kind of a large problem. Any help would be 
appreciated, thanks. After pouring over all sorts of sites, pages and 
trying all sorts of things I believe that the problem lies in some odd 
setting for php, any suggestions would be appreciated
Ben Franske


Ben Franske
Master Technical Wizard
http://www.franske.cjb.net
AOL Instant Messenger: BenFranske
---
Founder, CEO, Owner, President Ben Franske Enterprises
Master Technical Wizard, Edina High School http://edina.k12.mn.us/edinahigh
Technical Producer, Edina High School Theater
Director Of Tech Edina High School Choir Department 
http://www.edina.k12.mn.us/edinahigh/choralmusic/
Director Of Tech Edina High School Orchestra Department
Director Of Tech Edina High School Band Department http://www.edinabands.com/


[PHP-WIN] RE: [PHP-DB] Writing to a file on the user's machine.

2001-02-07 Thread Ben Cairns

Have you thought of using a cookie?

As PHP is server side, it cannot write to the users machine, only the 
server.

JavaScript may be able to help you here though, but I cant think of any 
sotrce code that imediatley springs to mind

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




RE: [PHP-WIN] Run a script for 20minutes

2001-02-12 Thread Ben Cairns

You could try putting this at the top of your script:
ignore_user_abort(true);


Although, if it taking 20-30 mins, then I think you may need to optimize 
your code, or get a WinNT box with a bit more boot.


If you want, I can quote


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




RE: [PHP-WIN] mysql and phpmyadmin

2001-02-13 Thread Ben Cairns

in your lib.inc.php
put localhost as the host value

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] My Dilema

2001-02-16 Thread Ben Cairns

I have a slight problem with this

I am returning numerical values (i.e. 22.64, 2.54 etc. All with two Decimal 
Places) from a database. I then want to add these together.

But, I don't know how many rows there are, so I cant do:
$row+$row
There may only be one row, or there may be hundreds of rows. How can I add 
all of the values together?

Any help appreciated, cos. I'm stuck!..

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




RE: [PHP-WIN] Apache, PHP4, PHPLIB, include_path

2001-02-21 Thread Ben Cairns

the path of the include file withing an included file need to be relative.

I cant remember if they need to relative to the Main script, or the first 
include file

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




RE: [PHP-WIN] LDAP Configuration

2001-02-22 Thread Ben Cairns

Please ensure that you do actually have the ldap dll, as these do NOT ship 
with the windows installer.


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




RE: [PHP-WIN] ?Finders?

2001-02-22 Thread Ben Cairns



-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




RE: [PHP-WIN] Newbie question...

2001-02-23 Thread Ben Cairns

The wildcard in PHP is a %

E.G.
select * from YOUR_TABLE where SOME_FIELD like '%$dan%'";

Hope this helps

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] RE: [PHP-DB] Resolution detect and redirect

2001-02-28 Thread Ben Cairns


if (screen.width==640) { Your Redirect Here}
if (screen.width==800) { Your Redirect Here }
if (screen.width==1024) { Your Redirect Here }


Hope this is what you need

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] PDF + WIN32

2001-03-12 Thread Ben Cairns

Has anybody had any luck creating a PDF on a Win32 machine using php.

Here is my config:

Windows NT Server 4
Apache 1.3.9
PHP 4.0.4pl1

I have a PDFLib, dont know if its the right one, or if its installed 
correctly. Could someone please send me the correct lib and install 
instructions.

Thanks.

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] MD5

2001-03-12 Thread Ben Cairns

I have a string that I want to MD5 (No prizes for guessing its a password), 
what I want to do is MD5 two strings (one supplied by the user, and one by my 
server) and compare them. How can I do this?


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] Cookies In IE5.5

2001-03-17 Thread Ben Cairns

How do I set a cookie in IE5,

I cant do it, it just wont let me...I have looked at php.net and have tried 
the examples there, but they don't seem to work!

HELP, Please

-- Ben Cairns
E-Mail: [EMAIL PROTECTED]
Just Because It Works, Doesn't Mean It Isn't Broken


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




[PHP-WIN] RE: [PHP-DB] Read lines

2001-03-26 Thread Ben Cairns

HTH...





-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] RE: [PHP-DB] auto_increment in mysql

2001-03-28 Thread Ben Cairns

Set the column up in MySQL as a CHAR column, not an AUTO_INCREMENT

and use this:

$conn = mysql_connect(DB_HOST_HERE,DB_USER_HERE,DB_PASS_HERE); 
mysql_select_db("DB_NAME_HERE",$conn);
$howmanyrows = mysql_query("SELECT * FROM YOUR TABLE where YOUR 
CONDITION",$conn); 
$howmanyrows = mysql_num_rows($howmanyrows);

if ($howmanyrows == '0') { $auto_inc_id = '0'; } else {
$auto_inc_id = (($howmanyrows+1));
};

I'm not sure if that will work, but its a start.

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] IMAP

2001-03-29 Thread Ben Cairns

I am trying to check the number of new messages in an IMAP mailbox, I ma using 
this code but it doesn't seem to work, the username, password, host etc are 
correct, but still no cigar...any ideas?

Thanks

$mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN)
  || die("can't connect: ".imap_last_error());
 
$status = imap_status($mbox,"{your.imap.host}INBOX",SA_ALL);
if($status) {
  print("Messages:   ". $status->messages   )."\n";
  print("Recent: ". $status->recent )."\n";
  print("Unseen: ". $status->unseen )."\n";
  print("UIDnext:". $status->uidnext)."\n";
  print("UIDvalidity:". $status->uidvalidity)."\n"; 
} else
  print "imap_status failed: ".imap_lasterror()."\n";
 
imap_close($mbox);


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] reading an image into a string

2001-04-17 Thread Ben Cairns

I need to open an image and convert its binary type to hex,

what I need to do is a bin2hex on the binary info of the image, sounds simple 
enough. Although, I can get php to open the image and read the (binary) 
contents into a string, can someone help me.

Thanks.


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] Sendmail

2001-04-20 Thread Ben Cairns

I know this is a windows list, but

I need to know how to configure Sendmail on a Redhat Linux machine to relay 
messages through another host.


-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK.."


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




[PHP-WIN] Re: Stream Programming - PHP Extension

2004-05-05 Thread Ben Chivers
Hi,

I am having problems trying to connect to php://input through a stream in a
php extension.  The extension successfully connects to php://input but when
I pass data to it, the code I have sent does not execute.  I also want to
retrieve the output from php as well.  You'll see what I mean in the code I
have provided below.  I am new to extension programming in PHP, so any help
with the structure or layout of my program would be most appreciated.

THANKS IN ADVANCED!

#include "php.h"
#include "php_streams.h"
#include 
#include 

PHP_MINFO_FUNCTION(benchivers);
ZEND_FUNCTION(hello_world);
ZEND_FUNCTION(passphp);

zend_function_entry benchivers_functions[] =
{
 ZEND_FE(passphp, NULL)
ZEND_FE(hello_world, NULL)
{NULL, NULL, NULL}
};

zend_module_entry benchivers_module_entry = {
 STANDARD_MODULE_HEADER,
  "phpCrypt",
  benchivers_functions,
  NULL,
  NULL,
  NULL,
  NULL,
  PHP_MINFO(benchivers),
 NO_VERSION_YET,
  STANDARD_MODULE_PROPERTIES
};


#ifdef COMPILE_DL_BENCHIVERS
ZEND_GET_MODULE(benchivers)
#endif

PHP_MINFO_FUNCTION(benchivers){
 php_info_print_table_start();
 php_info_print_table_row(2, "phpCrypt Extension", "enabled");
 php_info_print_table_end();
}

ZEND_FUNCTION(hello_world)
{
 zend_printf("Hello Ben Chivers");
}

ZEND_FUNCTION(passphp)
{
 char buf1[1024] = "";
 size_t bt;

 php_stream * stream = php_stream_open_wrapper("php://input", "w+b",
REPORT_ERRORS, NULL);
 if (stream) {
  zend_printf("Connected");

  bt = php_stream_write(stream, buf1, sizeof(buf1));

  while(!php_stream_eof(stream)) {
   char buf[1024];

   if (php_stream_gets(stream, buf, sizeof(buf))) {
zend_printf("Printing output");
zend_printf(buf);
   } else {
break;
   }
  }
  php_stream_close(stream);
 }
}



Many Regards,
Ben Chivers

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



[PHP-WIN] Multiple php.ini files with IIS5 under Win2000

2005-11-08 Thread Ben Lobo

Is there a way of getting php5 with IIS5 on Win2000 to use different
php.ini files for each site? I thought it was possible to just put a
version if php.ini into the root of the site and php would use that
version but this doesn't seem to work (I'm using php5isapi.dll).

The problem I'm trying to solve is that I've got a legacy site that
needs to have register_globals on but I don't want register_globals to
be on for the rest of the sites.

Ben

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



[PHP-WIN] Multiple php.ini files with IIS5 under Win2000

2005-11-08 Thread Ben Lobo

Is there a way of getting php5 with IIS5 on Win2000 to use different
php.ini files for each site? I thought it was possible to just put a
version if php.ini into the root of the site and php would use that
version but this doesn't seem to work (I'm using php5isapi.dll).

The problem I'm trying to solve is that I've got a legacy site that
needs to have register_globals on but I don't want register_globals to
be on for the rest of the sites.

Ben

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