php-windows Digest 24 Mar 2004 07:06:43 -0000 Issue 2179
Topics (messages 23237 through 23248):
ldap_8859_to_t6
23237 by: Juan Angel Martin
Convert string to date
23238 by: Harpreet K. Singh
23240 by: Svensson, B.A.T. (HKG)
23242 by: Trystano.aol.com
Re: Replicating Double quotes
23239 by: Justin Patrin
23243 by: Trystano.aol.com
Re: Major apache start error!!
23241 by: Matt Gagné
23244 by: hubo
23245 by: Matt Gagné
23246 by: Jim Hunter
23247 by: DvDmanDT
HTTP Error 404 - File or directory not found.
23248 by: isis.bluewin.ch
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 ---
Hi all,
I'm trying to use the LDAP function ldap_8859_to_t61() but I get this error:
PHP Fatal error: Call to undefined function: ldap_8859_to_t61()
The PHP version is 4.3.3 and I use others LDAP functions like ldap_connect()
without any problem.
Can anyone help me?
Thanks in advance
Juanan
--- End Message ---
--- Begin Message ---
I have a report that has an expiration field
I want to sort by expiration but when clicked it sorts alphanumerically and
shows january 01 before march 03 no matter what the year.
If i do select expiration and sort it works fine but if i say
select [expiration]=convert(char(10), expiration, 101) it sorts alpha
numerically.
I want to display in the format above but sort by date
Please help
--- End Message ---
--- Begin Message ---
With MS SQL server you can do something like this:
select convert(char(10), expiration, 101) as <something>
...
order by convert(varchar, expiration, 112)
112 gives the date format as "yyyymmdd", and that should
solve your problem.
-----Original Message-----
From: Harpreet K. Singh
To: 'Php-Windows '
Sent: 23-3-2004 19:06
Subject: [PHP-WIN] Convert string to date
I have a report that has an expiration field
I want to sort by expiration but when clicked it sorts alphanumerically
and shows january 01 before march 03 no matter what the year.
If i do select expiration and sort it works fine but if i say
select [expiration]=convert(char(10), expiration, 101) it sorts alpha
numerically.
I want to display in the format above but sort by date
Please help
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
There are date functions that should allow you to manipulate and work with
date's and their corresponding attributes. Check them out.
For example, if you pass a date as a parameter to the 'mktime()' function you
will get returned an integer value that represents the amount of seconds
passed since 1970 (or around there). By working with these
date-converted-to-integer values you can find out what date is lower or higher.
Just make sure that you pass the 'mktime()' function the appropriate
parameters. This may require that you break up the date into days, months, year etc.
Cheers
Tryst
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
Hi all,
I have a problem in that when I am retrieving data from MySQL that containes
double quotes, the double quotes gets repeat, and also the string that does
contain double quotes gets double quotes added to the begin and end of it For
example I get the following:
"16"" Manikin"
From what should be the following
16" Manikin
Wh I inserted the data into the database I used the 'addslashes' function.
Even when I use the 'stripslashes' the output is still the same.
Anyone have any clues? :-s
Cheers
Tryst
It's how you're inserting it. Check your insert code to try to find the
problem. Also, you could post it for people to look at,
--
paperCrane <Justin Patrin>
--- End Message ---
--- Begin Message ---
Hi all,
>
> I have a problem in that when I am retrieving data from MySQL that
containes
> double quotes, the double quotes gets repeat, and also the string that does
> contain double quotes gets double quotes added to the begin and end of it
For
> example I get the following:
>
> "16"" Manikin"
>
> From what should be the following
>
> 16" Manikin
>
> Wh I inserted the data into the database I used the 'addslashes' function.
> Even when I use the 'stripslashes' the output is still the same.
>
> Anyone have any clues? :-s
Ok, here is the procedure in which I am inserting the data into the
database...
// Retrieve a line from a file
$line = trim($file_contents[$i]);
//explode the line into an array
$arr = explode(",", $line);
// and then add slashes to exploded data items
$name = addslashes(trim($arr[1]));
With the name variable I then use it inside a query string
When retrieving the data from the database I use the following...
stripslashes($rows[ 'name' ])
--- End Message ---
--- Begin Message ---
Sumito,
Yes, the win32 installer copied them to the windows folder AND I copied them
to the apache/modules directory and as you can see, by my original post, in
the httpd.conf I am explicitly calling them from the apache/modules
directly.
Matt
"Sumito_oda" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> >Sorry, forgot to mention that I am on WinXP Pro
>
> Did you copy php4ts.dll to c:/windows/system32
> or a proper directory?
>
> http://www.php.net/manual/en/install.apache.php
> http://www.php.net/manual/en/install.windows.php
>
> Moreover, you might have to add the description of
> AddModule directive for mod_php4.c to httpd.conf.
>
> --
> Sumito_Oda mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
It is not a bad idea to update to Apache 1.3.2x.
>
> Anyway, here's the poop. With Apache 1.3.14 for windows (php said working
> with Apache2 was experimental so I went with version that was not) and php
> 4.3.4 for win and I have these lines enabled in the httpd.conf (as per php
> install.txt):
>
--- End Message ---
--- Begin Message ---
What about updating to Apache2 altogether?
Matt
"Hubo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It is not a bad idea to update to Apache 1.3.2x.
> >
> > Anyway, here's the poop. With Apache 1.3.14 for windows (php said
working
> > with Apache2 was experimental so I went with version that was not) and
php
> > 4.3.4 for win and I have these lines enabled in the httpd.conf (as per
php
> > install.txt):
> >
--- End Message ---
--- Begin Message ---
Matt,
Don't worry about the term 'experimental' attached to the 2.x versions of
Apache for Windows. I am running a server with 20 domains on it from my
WinXP Home computer and I am using Apache 2.0 with PHP 4.3.4, MySQL 3.23
56-nt and everything is running great. If I remember correctly, I used the
install from the PHP Magazine CD to install everything fresh on the new
computer. If you do not subscribe to this magazine I highly recommend it.
You will find that, IMHO, everything seems to run much faster and cleaner on
Apache 2.0 then it did on 1.3.x.
Just my opinion...
Jim Hunter
-------Original Message-------
From: Matt Gagné
Date: Tuesday, March 23, 2004 03:14:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Major apache start error!!
What about updating to Apache2 altogether?
Matt
"Hubo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It is not a bad idea to update to Apache 1.3.2x.
> >
> > Anyway, here's the poop. With Apache 1.3.14 for windows (php said
working
> > with Apache2 was experimental so I went with version that was not) and
php
> > 4.3.4 for win and I have these lines enabled in the httpd.conf (as per
php
> > install.txt):
> >
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
--- End Message ---
--- Begin Message ---
Personally, I'd suggest an upgrade to Apache 1.3.29.. While Apache 2 works,
it doesn't work as well as 1.3 does.. I've tried them both, several times,
and I keep going back to 1.3 after a while..
Well, good luck..
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Matt Gagné" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hey all! First post to this forum! Woo Hoo!
>
> Anyway, here's the poop. With Apache 1.3.14 for windows (php said working
> with Apache2 was experimental so I went with version that was not) and php
> 4.3.4 for win and I have these lines enabled in the httpd.conf (as per php
> install.txt):
>
> LoadModule php4_module modules/php4apache.dll
> AddType application/x-httpd-php .php
>
> I get this error when restarting the apache service:
>
> "The procedure entry point add_property_string_ex could not be located in
> the dynamic link library php4ts.dll."
>
> What did I miss? Or forget to do? And if nothing, what is the fix/work
> around?
> --
> Matt
> --------------------------
> La Croix Technologies
--- End Message ---
--- Begin Message ---
Hi,
I'm relativ new in this mailing-list and also on IIS with PHP.
I tried to install PHP 4.3.4 on a Windows Server 2003 with IIS 6. It isn't
my first installation of PHP on Windows and IIS, but the first installation
on a Windows Server 2003 with the IIS 6. While others installations works
fine, with the configuration Windows Server 2003, IIS 6 and PHP 4.3.4 the
error "HTTP Error 404 - File or directory not found" occurs.
I tried several things to eliminate the error or isolate the problem.
- First .html in the same directory are found and displayed.
- Second, I looked after the permissions of the needed files.
- Third I assured that the mapping from .php-Files to php.exe exists.
Now, I don't know where I can or should search for the problem. What's the
next thing to find the fault in the configuration? Where should I search
for a solution or have had someone the same problems with this configuration?
Thanks a lot for your help.
Best regards
Manfred
--- End Message ---