php-windows Digest 18 Jun 2007 19:30:08 -0000 Issue 3262
Topics (messages 28093 through 28111):
Re: Sybase
28093 by: Ben
28094 by: Niel Archer
28095 by: Ben
28096 by: Niel Archer
28097 by: Ben
28098 by: Niel Archer
28099 by: Ben
28100 by: Niel Archer
28101 by: Niel Archer
28111 by: Ben
Translation of html?
28102 by: Gustav Wiberg
28103 by: Jarrett Meyer
28104 by: Bill Bolte
28105 by: Gustav Wiberg
28106 by: Gustav Wiberg
28107 by: Mikael Grön
28108 by: phpml.getaroundtoit.co.uk
IIS Help
28109 by: Matthew Gonzales
28110 by: Chetanji
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 ---
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.
--- End Message ---
--- Begin Message ---
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.
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
--- End Message ---
--- Begin Message ---
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).
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Hi
> I see. Which files do you suggest I copy then?
I have no idea. I've never used Sybase so wouldn't know what files are
there.
> When doing a quick search through the Sybase folder I didn't see
> anything relating to PHP, just connectors for ADO.NET, ODBC, ...
It wouldn't be relating to PHP. It's the Sybase client library that the
PHP extension is compiled/linked against. It *might* be called
something like libsybase.dll, or it may not even exist in that
installation.
Their web-site lists the following components in the developers SDK:
Open Client
Embedded SQL/C
Embedded SQL/COBOL
jConnect for JDBC
ODBC Driver for Adaptive Server Enterprise
OLE DB Provider for Adaptive Server Enterprise
ADO.NET for Adaptive Server Enterprise
three of which you've already identified.
Niel
--- End Message ---
--- Begin Message ---
Hi
I did some googling. The file is probably called "libct.dll"
Niel
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Hi there!
Is this possible? I can't find any functions for this (I don't exactly what to
search for)
Translation of
Html-string from
$str = "<h1>This is a title></h1><table><tr><td>test</td></tr></table>";
To a string that is like:
This is a title
Test
?
Best regards
/Gustav Wiberg
--- End Message ---
--- Begin Message ---
Hack:
Explode on "<" will give you :
h1>This is a title
/h1>
table>
tr>
td>test
/td>
/tr>
/table>
Explode on ">", and only keep the second entry in the array. Would that work?
----
Jarrett M. T. Meyer
http://jarrettmeyer.blogspot.com
http://www.jarrettmeyer.com
No trees were harmed during this transmission; however, several electrons were
terribly inconvenienced.
----- Original Message ----
From: Gustav Wiberg <[EMAIL PROTECTED]>
To: "'php windows' ([EMAIL PROTECTED])" <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2007 10:23:00 AM
Subject: [PHP-WIN] Translation of html?
Hi there!
Is this possible? I can't find any functions for this (I don't exactly what to
search for)
Translation of
Html-string from
$str = "<h1>This is a title></h1><table><tr><td>test</td></tr></table>";
To a string that is like:
This is a title
Test
?
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
There isn't anything built in to PHP to do this but one could do it with
Regular Expressions. You might check through the Pear libraries or the
PHP classes website for functions/classes already built.
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Monday, June 18, 2007 9:23 AM
To: 'php windows' ([EMAIL PROTECTED])
Subject: [PHP-WIN] Translation of html?
Hi there!
Is this possible? I can't find any functions for this (I don't exactly
what to search for)
Translation of
Html-string from
$str = "<h1>This is a title></h1><table><tr><td>test</td></tr></table>";
To a string that is like:
This is a title
Test
?
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi there!
Isn't there any function for acheiving this? Of course I could do some
regexp... Is that the only way?
Best regards
/Gustav Wiberg
-----Original Message-----
From: Jarrett Meyer [mailto:[EMAIL PROTECTED]
Sent: Monday, June 18, 2007 4:30 PM
To: 'php windows' <\([EMAIL PROTECTED])>
Subject: Re: [PHP-WIN] Translation of html?
Hack:
Explode on "<" will give you :
h1>This is a title
/h1>
table>
tr>
td>test
/td>
/tr>
/table>
Explode on ">", and only keep the second entry in the array. Would that work?
----
Jarrett M. T. Meyer
http://jarrettmeyer.blogspot.com
http://www.jarrettmeyer.com
No trees were harmed during this transmission; however, several electrons were
terribly inconvenienced.
----- Original Message ----
From: Gustav Wiberg <[EMAIL PROTECTED]>
To: "'php windows' ([EMAIL PROTECTED])" <[EMAIL PROTECTED]>
Sent: Monday, June 18, 2007 10:23:00 AM
Subject: [PHP-WIN] Translation of html?
Hi there!
Is this possible? I can't find any functions for this (I don't exactly what to
search for)
Translation of
Html-string from
$str = "<h1>This is a title></h1><table><tr><td>test</td></tr></table>";
To a string that is like:
This is a title
Test
?
Best regards
/Gustav Wiberg
--
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
--- End Message ---
--- Begin Message ---
Hi there!
Ok, thanx! Then I'll know!
Best regards
/Gustav Wiberg
-----Original Message-----
From: Bill Bolte [mailto:[EMAIL PROTECTED]
Sent: Monday, June 18, 2007 4:32 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Translation of html?
There isn't anything built in to PHP to do this but one could do it with
Regular Expressions. You might check through the Pear libraries or the
PHP classes website for functions/classes already built.
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Monday, June 18, 2007 9:23 AM
To: 'php windows' ([EMAIL PROTECTED])
Subject: [PHP-WIN] Translation of html?
Hi there!
Is this possible? I can't find any functions for this (I don't exactly
what to search for)
Translation of
Html-string from
$str = "<h1>This is a title></h1><table><tr><td>test</td></tr></table>";
To a string that is like:
This is a title
Test
?
Best regards
/Gustav Wiberg
--
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
--- End Message ---
--- Begin Message ---
strip_tags($string); removes all html from any string, but won't put in
any spaces so you'd get:
This is a titletest
Mike
Gustav Wiberg skrev:
Hi there!
Ok, thanx! Then I'll know!
Best regards
/Gustav Wiberg
-----Original Message-----
From: Bill Bolte [mailto:[EMAIL PROTECTED]
Sent: Monday, June 18, 2007 4:32 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Translation of html?
There isn't anything built in to PHP to do this but one could do it with
Regular Expressions. You might check through the Pear libraries or the
PHP classes website for functions/classes already built.
-----Original Message-----
From: Gustav Wiberg [mailto:[EMAIL PROTECTED]
Sent: Monday, June 18, 2007 9:23 AM
To: 'php windows' ([EMAIL PROTECTED])
Subject: [PHP-WIN] Translation of html?
Hi there!
Is this possible? I can't find any functions for this (I don't exactly
what to search for)
Translation of
Html-string from
$str = "<h1>This is a title></h1><table><tr><td>test</td></tr></table>";
To a string that is like:
This is a title
Test
?
Best regards
/Gustav Wiberg
--- End Message ---
--- Begin Message ---
Gustav Wiberg wrote:
> Hi there!
> Is this possible? I can't find any functions for this (I don't exactly what
> to search for)
>
> Translation of Html-string from
> $str = "<h1>This is a title></h1><table><tr><td>test</td></tr></table>";
>
> To a string that is like:
> This is a title
> Test
This class converts HTML to plain, formatted ASCII text. By default, the
text is wrapped to 70 characters, and some basic formatting is applied
to preserve some of the HTML formatting. Some examples:
* Paragraphs are indented
* Heading tags <h1> - <h3> are all caps
* Horizontal lines, <hr>, are converted to hyphens
* Links are preserved as a footnoted list at the end
http://chuggnutt.com/html2text.php
Regards,
=dn
--- End Message ---
--- Begin Message ---
Hello,
My name is Matthew Gonzales and I am new to PHP and I am loving it. I am
having all kinds of trouble though getting it to work with IIS. I have a
web applications that I have created using WAMP but I need to be able to
host the site on IIS. That is my companies policy. Does anyone out there
have any success with this? If so your help would be greatly
appreciated. Thanks!
--
Matthew Gonzales
IT Professional Specialist
EITS
[EMAIL PROTECTED]
706-542-9538 Office
--- End Message ---
--- Begin Message ---
Hey Matthew, in your next post tell us your version of Windows and PHP
version. In the meantime go to the top of the php.net home page to
'documentation' then click on 'english' then go to 'instllation on a windows
system' then to 'Microsoft IIS / PWS'. This is where I learned alot on how
to set up IIS. This should answer most of your questions. There are some
very basic beginner issues that this tut doesn't answer, but it should do
the trick.
I hope this helps,
Chetanji
Matthew Gonzales wrote:
>
> Hello,
>
> My name is Matthew Gonzales and I am new to PHP and I am loving it. I am
> having all kinds of trouble though getting it to work with IIS. I have a
> web applications that I have created using WAMP but I need to be able to
> host the site on IIS. That is my companies policy. Does anyone out there
> have any success with this? If so your help would be greatly
> appreciated. Thanks!
>
> --
> Matthew Gonzales
> IT Professional Specialist
> EITS
> [EMAIL PROTECTED]
> 706-542-9538 Office
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
View this message in context:
http://www.nabble.com/IIS-Help-tf3941645.html#a11180730
Sent from the Php - Windows mailing list archive at Nabble.com.
--- End Message ---