Re: [PHP-WIN] Access javascript from php

2006-04-04 Thread David Collard
Try echo "..."; Matt Murphy wrote: ?>

Re: [PHP-WIN] Getting windows username into php/mysql

2006-03-21 Thread David Collard
I tried it using getenv('username') and it worked ok http://php.net/manual/en/function.getenv.php Alex Blundell wrote: HI, I have been searching the internet for days trying to find a way of getting the windows username (%username%) of the current logged on user and submitting it, along side

Re: [PHP-WIN] PHP include problem

2005-12-24 Thread David Collard
its not supposed to be 'include "$page.php";' is it? what is the code that sets the '$arp' variable? Ken Yarbrough wrote: I recently allowed one of my friends to host their site on my server, and we realized that when you click a link, it doesn't include the content into the main page. I'm n

Re: [PHP-WIN] Parse errors not showing up in the browser

2005-11-28 Thread David Collard
Wayne Khan wrote: Hi all, I am using Sokkit 3.5, and my parse errors are not showing up in the browser. I'm sure its something to do with php.ini, and trust me I've tried changing it, but it still doesn't show the parse errors. The result is that I spent a lot of time looking for that extra (

Re: [PHP-WIN] HTML event handling

2005-11-28 Thread David Collard
Panos Laganakos wrote: Is it possible to handle the X/HTML events through PHP or, its only possible through JS? i.e. could I handle an onload event? i suppose you could use something ajax-style to do it. try usinga javascript xmlhttprequest. -- PHP Windows Mailing List (http://www.php.ne

Re: [PHP-WIN] mysqli extension installation

2005-10-31 Thread David Collard
[EMAIL PROTECTED] wrote: hello. can someone please tell me how to install the mysqli extension for windows? I use mysql 4.1, php 4.3.1 and apache 1.3.23. I just upgraded from mysql 3.x to 4.1 and now that I have to use the mysqli functions I get the error: "Cannot instantiate non-existent clas

Re: [PHP-WIN] Win2k3 - IIS 6.0 - PHP5 - EXEC Function - Stopping/starting a Service

2005-10-25 Thread David Collard
it should have quotes before the 'net' and after 'servicename' also, if php's safe_mode is on, you can only run programs in the safe_mode_exec_dir folder, which would need to be 'C:/WINDOWS/system32' if you are using the net command. Jayvd wrote: I'm trying to start and stop a service wit

Re: [PHP-WIN] Is this a PHP bug?

2005-10-16 Thread David Collard
Ross Honniball wrote: $x = 0; // Numeric zero $y = 'Some kind of string'; if ($x == $y) echo 'they equal using =='; if ($x === $y) echo 'they equal using ==='; The above will echo 'they equal using =='. The values don't look very equal to me. Can anyone explain the logic behind this? I'm he

Re: [PHP-WIN] Handling objects as session vars

2005-10-11 Thread David Collard
Marcos R. Cardoso wrote: i'd try using serialize() to turn the object into a string which can then be put in the session, and then unserialize() when you want it back out again sessions work by using cookies, and cookies can't take php objects ;) I'm trying to use an object as a session var

Re: [PHP-WIN] Visibility of the root in an APACHE setting

2005-09-26 Thread David Collard
Tony Aldemir wrote: A rookie question: Whenever I download and unzip any PHP related solution, the term "unzip it to your web server's document root" is used. I am using APACHE and my doc root is the default "C:\Program Files\Apache Group\Apache2\htdocs". Now if I put all of the PHP code I de

Re: [PHP-WIN] Login System / Cookies

2005-09-24 Thread David Collard
Armando wrote: Greetings! I'm developing a login system in php and wondering if someone could possibly provide some advice, as I'm still relatively new to php. First, I'm limited to using cookies only for my session variables, so for instance, remembering users who wish to not have to login

Re: [PHP-WIN] Line By Line Output

2005-09-04 Thread David Collard
Sabin Finateanu wrote: Hi! I'm trying to run trace route for an address in a PHP script. My question is how can I make it display the output line by line as it appears instead of waiting for the command to finish executing an then outputting the whole result, and what command should I use: sys

Re: [PHP-WIN] My variable is not working when I echo it....

2005-07-22 Thread David Collard
Afolabi Richard wrote: I am a fascinated PHP newbie who need help. I an using WAMP5 version 1.1 - for Windows Apache MySql and PHP. I want to use the short variable $variable instead of the $_POST[variable] but the $variable is not working when I echo it. I configured "global_register = On" i

Re: [PHP-WIN] (No subject header)

2005-06-16 Thread David Collard
ddiffa wrote: Okay I at loss. I have tried but i can seem to get the php_gd2.dll to work properly. Any help this is what i have done so far. I have in my php.ini file, ; Directory in which the loadable extensions (modules) reside. extension_dir = "C:\PHP\extensions" I have also uncomme