Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Use Gettext In Windows 2000


How can i use gettext in windows 2000. problem in compile .po file. how can i make the .po file. tell me in detail step by step. also unable to find msgfmt.exe, libiconv.dll, libintl.dll to compile .po file in windows.




View Complete Forum Thread with Replies

Related Forum Messages:
Ms Sql Serveur 2000 On Windows 2000 !!!
I've an error with php & win 2000 & ms sql serveur 2000! listen, i've write an program with win xp easyphp1.7 and ms sql serveur 2000 all is ok on localhost ! all i use some store procedures , triggers and so on all will be ok on local ! Code:

View Replies !
Is It Possible To Authenticate Users Running Apache On MacOS X (with PHP 4) And An Active Directory On Windows 2000 Or Windows XP?
From a PHP webpage, is it possible to authenticate users running Apache on MacOS X (with PHP 4) and an active directory on Windows 2000 or Windows XP?

View Replies !
Windows 2000 Problems
when I open IE and enter in "http://localhost" I get:

"The page cannot be displayed The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings."

blah blah blah....

Then, when I click the Personal Web Manager icon in the Admin tools, I get this error:

"Error connecting to servernamehere: Unexpected error 0x80074002 occurred. Do you wish to continue to attempt to connect to it in the future?"

View Replies !
PHP On IIS Windows 2000 Server
I've downloaded the latest PHP (EXE & ZIP)....

I followed all the instructions I can find and yet PHP will not work with
my IIS !!

Can anyone talk me though exactly how to get them working together?

View Replies !
Installing Php On Windows 2000
I've just installed php on windows 2000 with a pws. How can I test it to see if it's installed correctly.

View Replies !
Installing On Windows 2000 Iis 5
for some odd reason the installer program doesn't set the file extension
..php to be associated with anything, my guess is that it should be
php-win.exe (i've tried all 3 .exe files, and the php.exe produces the
correct results in a command window)... when running a .php in IE I can see
it execute in task manager but the IE screen will not change to display the
correct info.. anyone have any idea about this? IE settings wrong or
something?

View Replies !
V4.0.2 And Exec() In Windows 2000 / IIS
Are there any tricks to getting the exec() function to work under
Windows 2000 with IIS? PHP v4.0.2 is installed on the server.

View Replies !
Problems With MS-SQL, Apace, PHP On Windows 2000
I want to use PHP for a project at work. This project requires Windows 2000 running Apache and accessing MS-SQL Server 2000. I am using the mssql php extension to access the db and have all the required files to access the db. If the environment was not correct, it shouldn't connect and successfully query int data types.

Everything works fine as long as I query for numeric datatypes such as int. However, every single time I try to query a text, char, var or datetime field, Apache crashes and I get a Windows error dialog saying that an error is being logged. Unfortunately, there is no error logged to either the Windows 2000 Event Log or the Apache log.

I love PHP and would really like to be able to use it for this project rather than JSP or ASP on IIS.

If anyone knows why this is crashing the server, I'd greatly appreciate any advice or help.

By the way, this is an enterprise-wide database so switching to MySQL is not an option.

View Replies !
How Can Windows 2000 Be Shut Down/ Restarted Via PHP?
How can windows 2000 be shut down/ restarted via PHP?

View Replies !
EGroupWare - With Windows 2000 Install
using Apache, PHP and MySQL on my own PC - been using
it for a while on ISP hosted servers and plesk to create oline forums using
things like Invision and PHPBB but decided to give running eGroupWare a go
on my own PC.

I have windows 2000 Pro and followed some online tutorial to the letter
(excpet downloaded the very latest version of MySQl, PHP, etc) to install
Apache, PHP and MySQL and all worked fine.

Now downloaded eGroupWare and put it in the c:web folder and ran the setup
file

but when I go to my browser and tpye:
http://localhost/egroupware/login.php

I get the following below can anyone point me in the direction of what it
all means??

Warning: main(C:/php/phpgwapi/setup/setup.inc.php): failed to open stream:
No such file or directory in c:webegroupwareheader.inc.php on line 102

Warning: main(): Failed opening 'C:/php/phpgwapi/setup/setup.inc.php' for
inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 102

Warning: main(C:/php/phpgwapi/inc/functions.inc.php): failed to open stream:
No such file or directory in c:webegroupwareheader.inc.php on line 110

Warning: main(): Failed opening 'C:/php/phpgwapi/inc/functions.inc.php' for
inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 110

Warning: main(C:/php/phpgwapi/inc/xml_functions.inc.php): failed to open
stream: No such file or directory in c:webegroupwareheader.inc.php on
line 111

Warning: main(): Failed opening 'C:/php/phpgwapi/inc/xml_functions.inc.php'
for inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 111

Warning: main(C:/php/phpgwapi/inc/soap_functions.inc.php): failed to open
stream: No such file or directory in c:webegroupwareheader.inc.php on
line 112

Warning: main(): Failed opening 'C:/php/phpgwapi/inc/soap_functions.inc.php'
for inclusion (include_path='.;c:php4pear') in
c:webegroupwareheader.inc.php on line 112

Fatal error: Call to undefined function: createobject() in
c:webegroupwarelogin.php on line 26

View Replies !
Exec() Function Under Windows 2000 With IIS?
Are there any tricks to getting the exec() function to work under
Windows 2000 with IIS? PHP v4.0.2 is installed on the server.

View Replies !
Why I Cant Setup Apache In Windows 2000
i can install apache in windows 2000 professional
but when i was to install it in a LAN it cant run correctly
when i type http://localhost/ in browser i recieve The page can not find
why?

View Replies !
Installing Php4 On Windows 2000 Webserver
Is this possible? If so, how do I do it exactly? All I can find is tutorials on how to install it on Apache. If anyone knows the answer can you please help me? I'm desparate. Thanks in advance.

View Replies !
PHP5 Installation With MySQL, Windows 2000
Why I still have "undefined function error" messages?


I included path c:php to my windows env.
Edited php.ini file: include directory value. removed comment mark
from extension=php_mysql.dll
copied libmysql.dll to system32 directory
Apache2 runs fine.
I can run phpinfo.php
I can create a database into the MySQL.

View Replies !
Include PEAR DB Framework Using PHP 5.0.4 On Windows 2000
Get the following errors when trying to include PEAR DB framework using
PHP 5.0.4 on Windows 2000 with Apache 2.

Warning: main(PEAR-1.3.3/DB/DB.php) [function.main]: failed to open
stream: No such file or directory in E:Program FilesApache
GroupApache2htdocsservusincludesinclude.php on line 19

Fatal error: main() [function.require]: Failed opening required
'PEAR-1.3.3/DB/DB.php' (include_path='.includes;.') in E:Program
FilesApache GroupApache2htdocsservusincludesinclude.php on line 19

The include_path config variable looks like this:
include_path = ".includes;."

PHP is installed in
e:php-5.0.4
and the PEAR Class defs are in
e:php-5.0.4includesPEAR-1.3.3DBDB.php

The includes that fail are:
include_once("PEAR-1.3.3/DB/DB.php");

These worked with 4.4.0, but fail with 5.0.4 ...

View Replies !
UPDATE Command Is Not Working On MySQL, Windows 2000 Server
Hi all,

I encountered mysterious problem with MySQL and PHP.

UPDATE command is not working on MySQL configured on Apache 2 with Windows 2000 Server.

It pulled my hairs for atleast 5 hours.

MySQL says Affected rows: 0 (Query took ~ sec) always?

Now, I've decided to move all PHP files and db to remote server.

Can anyone suggest possible reasons for above errors?

View Replies !
Configuring Jpgraph On Windows 2000+Apache+PHP+MySql Server
Could someone walk me step by step on how to install and get JpGraph
running on a Windows 2000+Apache+PHP+MySql server?

View Replies !
GETTEXT
I was thinking about further localization of my app.

There is a problem with gettext since it is not thread aware, but I
don't mind it, since if any other page changes the localization to its
liking, mine will change it again upon (re)loading, and everyone is
happy, as far as I'm concirned :)

The problem I'm facing now is this:

I'd like to translate as much of the site as I can, and I've created a
templating system for it. But which of the 2 systems would you prefer:

1.) Having one template file with the general design, and then if there
are a few picture headers, translate them through gettext, something
like:

@TMPL_MAIN_HEADER = _( 'pictures/header_en.png' );
and let it be translated through gettext to, for example,
'pictures/header_fr.png',

or

2.) Create a subdirectories in the template directories and duplicating
the design, changing only the pictures in it? Like:
templates/en/contact.tmpl
templates/fr/contact.tmpl

The first solution is quite easier, although gettext was probably not
intended to be used in that way...

View Replies !
Gettext With PHP
I spent the last days trying to make Gettext work on my new server. I really need your help. Eveything was ok while running on my local server (easyphp : apache) but it doesn't work anymore since I am on the new server (debian, php5). Here is the code I use :

$language = 'en'
putenv("LANG=$language");
setlocale(LC_ALL, $language);

// Set the text domain as 'messages'
$domain = 'messages'
print bindtextdomain($domain, "/var/www/mysite/languages");
print "<br>";
textdomain($domain);

echo _("input_description_tag");


Gettext doesn't seem to find my .mo file which is located in /var/www/mysite/languages/en/LC_MESSAGES/messages.mo

The value returned by Gettext is the orginal string ( "input_description_tag) and not its english translation. The permission of the file has been turned in 777. I have tried everything possible if you have any tips, I would the happiest one in the world .

View Replies !
Use Gettext With PHP.
I am trying to use gettext with PHP. We have to place strings to be translated inside gettext commands to use gettext. ex: echo gettext("String to be translated"); But how can I place strings with many lines inside gettext command. ex: echo gettext("line 1 line 1 line 1 line 2 line 2 line 2 line 3 line 3 line 3").

View Replies !
Gettext Fails Me
I can not get gettext to work at all under PHP. I run ubuntu 6.06.1
LTS, and the php5 package there announces that it supports gettext.
Also, php -i sais gettext GetText Support =enabled, so it should be
working. Here follows a minimal example that should be working, but
isn't (gettext and msgfmt are the normal GNU gettext tools):

[redhog@thalari:~/Projects/DemoWave]$ cat foo.php
#! /usr/bin/php
<?php
bindtextdomain($argv[1], $_ENV['TEXTDOMAINDIR']);
echo dgettext($argv[1], $argv[2]);
?>
[redhog@thalari:~/Projects/DemoWave]$ cat
locale/sv_SE/LC_MESSAGES/demowave.po
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2006 RedHog (Egil Möller) <redhog@redhog.org>
# RedHog (Egil Möller) <redhog@redhog.org>, 2006
#
msgid ""
msgstr ""
"Project-Id-Version: DemoWave 0.9"
"POT-Creation-Date: Sun Oct 24 19:51:42 2004"
"PO-Revision-Date: 2004-10-24 21:02+0200"
"Last-Translator: RedHog (Egil Möller) <redhog@redhog.org>"
"Language-Team: "
"MIME-Version: 1.0"
"Content-Type: text/plain; charset=UTF-8"
"Content-Transfer-Encoding: "
#
msgid "A message"
msgstr "Ett meddelande"
[redhog@thalari:~/Projects/DemoWave]$ msgfmt -o
locale/sv_SE/LC_MESSAGES/demowave.mo
locale/sv_SE/LC_MESSAGES/demowave.po
[redhog@thalari:~/Projects/DemoWave]$ ./foo.php demowave "A message"
A message[redhog@thalari:~/Projects/DemoWave]$
[redhog@thalari:~/Projects/DemoWave]$ gettext demowave "A message"
Ett meddelande[redhog@thalari:~/Projects/DemoWave]$
[redhog@thalari:~/Projects/DemoWave]$

View Replies !
Gettext Problem
In the first instance I made a test using the following structure:

includes/tests/locale/el/LC_MESSAGES/

Under the above dir are messages.po and messages.mo generated bu poedit
On the includes/tests/ I placed also the localization.php and test-gettext.php

Localization.php has the following code:

View Replies !
Enable Gettext
I'm using windows 2003 server, and php 4.2.3.

how I can enable gettext extension?

View Replies !
Gettext Vs Custom Ways
Does anyone here have experience with PHP gettext functions? I'd
like to know how they work better. Also, is gettext more efficient
than serializing the language strings into language files and
unserializing them at each request?

I found this on Google saying that some guy sped up gettext, but I
have no idea how fast it was in the first place:

I was planning to just unserialize the appropriate language file at
each page request and then use the strings kind of like phpBB does
(language strings are assigned to constants and the needed strings are
assigned to the template engine per-page). It seems to me that this
would be easier to deal with than using _() and an English string to
encode every string before sending it to the template engine.

View Replies !
Preg_replace & Gettext Problem
I could not find any info on this so I will ask here, maybe someone has an experience with this.

Ok, so basically i`m taking a whole chunk of code from the database that is generated once in a while. My website has several languages so i want that translated to all languages.

I concatenated all the strings in the database-stored "chunk of code" via <ff> </ff>. And then I use something like this: Code:

View Replies !
Will PHP And GNU Gettext Work Properly With Apache?
Can someone point me to a definitive source for the
answers to the following two questions:

1)
In an environment with Redhat Linux 2.4.21-27.0.1,
Apache 1.3.31, PHP 4.3.10, and GNU gettext 0.14.1,
will using PHP's gettext support along with the
GNU gettext utilities work properly?
For example, I've seen references to the translated
strings in .mo files not always being what appears
on webpages, presumably due to the caching built
into GNU gettext.

2)
In December 2003, in the php.i18n newsgroup, in a posting titled
"GNU gettext support for PHP programs",Bruno Haible said:
- The just-released GNU gettext 0.13 has improved support
for PHP programs
- Unfortunately, GNU gettext is not yet ready for being used
in a multithreaded environment where each thread may need
to use a different locale/language.

The README file in the hello-php directory for GNU gettext
0.14.1 says:
------------------------------------------------------------------
The gettext/PHP binding has a limitation: While it works fine for
standalone PHP programs, it cannot be used inside a web server, to
translate parts of web pages into the preferred encoding of user
that makes a HTTP connection. The reason is that a web server
usually is multithreaded, and the gettext() API relies on the
process' global locale.
------------------------------------------------------------------

Do the above statements mean that using GNU gettext with PHP
and Apapche 2.0 will not work? Does anyone know if there are
plans to change GNU gettext to support multiple threads?

View Replies !
Gettext On Debian Woody 3.0 Stable: Resolution
After several hours I found out how to make this work:

1) Here is the test.php script, "Who are we" is the message for the
translation

Code:

View Replies !
Php Setup On Win 2000 IIS
php setup on win 2000 IIS how is it done, i've try but the pages dont show up . any one know of a step by step setup tutrioal on this please. I have phpMyAdmin 2.3.3 and My SQL.

View Replies !
Window 2000 & PHP.ini Set-up
I know i have to change some of the settings in the php.in file, can anyone tell me how to configure this file. At the moment the PHP works but does not save any session cookies. I only use the machine for web development. Spec :

- Windows 2000
- PHP 4.2.3

View Replies !
MS-SQL Server 2000
i have a huge database that is mantained and updated on a daily basis. It is on a MS-SQL 2000 server. I need that data to be exported, preferably by a php script using a cron job every morning, to a MySQL database if anything has changed. I can write the code to do the SQL stuff and maipulate the data, but i'm confused as hell as how to connect to a MS-SQL server using either windows or linux (preferably linux) in order to GET the data!
php's documentation of MS-SQL functions is very "lacking".

View Replies !
Upgrading Php On WIN 2000 Advanced
I am currently using php 4.04 on a WIN 2000 advanced server and I want to upgrade. I downloaded the win32 4.3 installer and think its just a matter of running the installer to complete the process.

Is there anything else I need to configure (besides the php.ini) to keep my existing scripts running correctly? I am running multiple sites on one domain so I don't want to screw up the upgrade and cause any downtime.

View Replies !
Can't Output To Excel 2000
I can't seem to get Excel 2000 to translate an html page. I have Excel 97 perform the same task without a problem, but 2000 just diplays a series of broken image icons.
This the code that I am using to connect to Excel-

Header("Content-Disposition: inline; filename=myfile.xls");
Header("Content-Description: PHP4 Generated Data");
Header("Content-type: application/vnd.ms-excel; name='MIMS_Excel'");
flush;

Is it a coding issue or a setting on Excel that I don't know about, or is it simply impossible.

View Replies !
Number Of Days In 1/1/2000
I am looking for a script that can report the number of days since
2000. It should handle leap years but I am not worried about accuracy
to the hour/minute or seconds. I am writing a calendar program and need
a reference point to base all my dates from. So I picked 1/1/2000.

View Replies !
Compile A Program On Win 2000?
What do I need to compile a program on win 2000? how do i do it? What about with GD Support?

View Replies !
5 / SQL Server 2000 Problem
I just setup my server with IIS6, PHP5, and all that's working great. Now I'm trying to install SQL Server 2000, and I'm running into one particular problem.

When I add the extension in php.ini for php_mssql.dll, then try to connect to to the database i created for it... all it does is sit there looping forever "waiting for "servername"".....

I installed client network unitlity, created alias with IIS virtual directory..

View Replies !
MS Access 2000 Pagination
I am using an MS Access 2000 database with PHP, via ODBC. I would like to create the navigation links "last, prev, next, last" from a retrieved data recordset. I have managed to do this with MySQL using the "LIMIT" clause in the SQL statement, but Access does not seem to support that. It seems to me that one can oly retrieve the top n or bottom n records, but not something in the middle.

View Replies !
PHP / Microsoft SQL V7/2000 - Page Results
Anyone know a simple way to page results of a SQL Select using Microsoft SQL ? I don't believe they have anything as handy as MySQL LIMIT.

View Replies !
Install PHP On Microsoft 2000 Professional
how to install PHP onto my computer. It uses microsoft 2000 professional. I have downloaded one of the later versions of the source code from php.net, but I'm having trouble configuring it. I tried the automatic installer, but I think it needs to be done manually.

View Replies !
PHP With ADO Stored Procedures In SQL Server 2000
here is the problem..

When this procedure runs I am supposed to get 2 output parameters.
When an insert statement is going to generate duplicate names I get 1
for @checker and 3 for @insertid. When the Insert statement runs
properly I am supposed to get 2 for @checker and an actual identity
for @insertid.

When using the code below, the part where the insert statement is
unsuccessful works just as desired, however the part where it inserts
the record returns zeros for both parameters.

When the stored procedure is run using query analyzer it performs
correctly in both instances.

Here is my PHP code

$cmd = new COM("ADODB.Command", NULL, CP_UTF8);
$cmd->CommandText = "STP_insertartist";
$cmd->CommandType = 4;
$cmd->ActiveConnection = $conn;
$par=$cmd->Parameters;
$par->Append($cmd->CreateParameter("@firstname",200,1,50,$_POST["txtfname"]));
$par->Append($cmd->CreateParameter("@lastname",200,1,50,$_POST["txtlname"]));
$par->Append($cmd->CreateParameter("@livedate1",3,1,9,$begdate));
$par->Append($cmd->CreateParameter("@livedate2",3,1,9,$enddate));
$par->Append($cmd->CreateParameter("@style",200,1,300,$_POST["txtstyle"]));
$par->Append($cmd->CreateParameter("@datedescription",200,1,75,$datetext));
$par->Append($cmd->CreateParameter("@insertid",3,2,4));
$par->Append($cmd->CreateParameter("@checker",3,2,4));
$rec=$cmd->Execute;
$invid=$cmd->Parameters["@insertid"]->Value;
$check=$cmd->Parameters["@checker"]->Value;
echo("Check: ".$check." Invid: ".$invid);.........

View Replies !
Problems With PDO And MSSQL (SQLserver 2000)
I have to fix a error within one of our php sites which accesses
several identical MSSQL 2000 databases.

The php-script is able to access some of these databases and can
retrieve data out of the tables.
But on some databases it only can connect but does not get any data
from these databases.
Of course I checked the connects and that there is data in the
databases. This is all ok.

I assume know that I have to change some settings at the MSSQL
databases which are not working properly. Does someone know which
prerequisites are required on MSSQL side to interact correctly with PHP
via pdo ?

View Replies !
MySql Permission Problems (Win 2000)
I screwed up the permissions on my database. Basically I revoked all
the permissions of the root account on the mysql table.

To try to fix this, I went through all of the instructions here:

http://dev.mysql.com/doc/refman/5.0...ermissions.html

running:
mysqld-nt.exe --defaults-file="C:Program FilesMySQLMySQL Server
5.0my.ini" --init-file=C:mysql-init.txt

except in the mysql-init.txt file I put this:

GRANT ALL ON mysql.* TO root

View Replies !
ODBC Query Of Access 2000 Db Using LIKE
Attempting to query MS Access database with the ODBC drivers for PHP. When
using the LIKE statement no records are returned.

Example:

$query = " Select * From Dispatch Where Customer Like '*A*' ";
$result = odbc_prepare($db,$query);
odbc_execute($result);

Does anyone out there know the syntax that I should be using for the Like
statement in the Where clause? When I do a normal query, it works
fine....Just using wildcards it does not work....

View Replies !
MYSQL Select Using BETWEEN '1/1/2000' And '1/1/2004'
What is the syntax for a mysql select statement to select values between a range of dates. I am trying to use:

SELECT * from net5 WHERE Transaction_Date between '6/7/2004' and '11/3/2004'

My dates are stored as date_time in the database.

View Replies !
Problem Running PHP Script On 2000 Server
I am a web designer, and to process a form I placed a PHP script in it. The script sends input to an e-mail and writes it to a comma-delimited file as well.
Well, I tested it on a Linux server and it works fine. However, when the IT guys placed it on a Windows 2000 server, the form does not process. I got this message from IT:

"I tried installing Apache Webserver for windows and it displays the script on the screen when submitted but does not run the form. Rick, Is there anyway you can convert PHP -> ASP?" Code:

View Replies !
Ldap Queries Return Only 2000 Ad Users
I have a problem in a large domain, it seems like php ldap is limited to search / progress 2000 users, is this something related to php upload limit or something?

View Replies !
Insert Html / Pdf Into "image" Column In MSSQL 2000
I am trying to insert uploaded files into a M$ SQL 2000 database. The uploaded files are validated as either PDF or HTML and then passed to the database. They need to be stored in an image column so that they can be indexed for fulltext searching.

Currently I get the following error when inserting the files into the db -

"Operand type clash: text is incompatible with image"

The files are read into a buffer and then they are prepared for the insert. I have tried both addslashes() and replacing a "'" (single quote) with "''" (two single quotes). I have seen suggestions that the data should be base64encode()'ed but can't get anything to work consistantly.

View Replies !
CLI And Windows
The portion of the PHP manual entitled "Using PHP from the command
line"
states that "The CGI SAPI supports the CLI SAPI behaviour by means of
the -C switch when run from the command line.":

http://us2.php.net/features.commandline

However, "php -h" says of the -C switch, "Do not chdir to the script's
directory".

Further, running php -Cr "echo 'test'" results in an error saying
that
the -r switch doesn't exist, even though it should if it were acting
like the CLI version.

This, coupled with the fact that the Windows installer doesn't seem to
install a seperate CLI exe means that, unless I'm missing something,
CLI isn't something that can be used on Windows, contrary to what the
docs say.

View Replies !
Php On Windows
I try to install PHP on Win 95 platform using Windows PHP installer,
but it does't work. When running php.exe, I got error message "php.exe
file is linked to missing export kernel32.dll: cancello." Where is
wrong? Is it due to php not support win 95?

View Replies !
Pop-up Windows
I have a form coded as: <form action="test.php" method="post"> the form has two buttons: Preview and Submit

if ($Preview) {// perform action 1}
else {// perform action2}

My question: If Preview is clicked, I would like to open a new pop-up window without closing the original one. I would like the results of action 1 to be displayed on this new pop-up window.

Is there a way to do that without using javascript?
If no, then how would you do that with javascript?

i cannot use target=_blank in the form tag because i would like to have the pop-up window only if Preview is selected. But maybe there is a better way to code everything!

View Replies !
PHP On Windows XP Using IIS
I am trying to request form elements from a form from a page that
looks like this:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<form action="result.php" method="post">
Name: <input type="text" name="username" value="brenda"><br />
Email: <input type="text" name="email" value="hipples"><br />
<input type="submit" name="submit" value="Submit me!">
</form>
</body>
</html>

Here is the results page, using multiple methods of variable retreival
and it will not work locally but up on the web server it works
fine....

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<?php

// Available since PHP 4.1.0

echo $_POST['username'];
echo $_REQUEST['username'];

import_request_variables('p', 'p_');
echo $p_username;

// Available since PHP 3. As of PHP 5.0.0, these long predefined
// variables can be disabled with the register_long_arrays directive.

echo $HTTP_POST_VARS['username'];

// Available if the PHP directive register_globals = on. As of
// PHP 4.2.0 the default value of register_globals = off.
// Using/relying on this method is not preferred.

echo $username;
?>
</body>
</html>

When I view the source of the result.php page, the opening <HTML> is
never there, leading me to beleive that there is a header issue of
some sort.

View Replies !
PHP And Windows CMD.exe ?
I'd like to somehow manage to get php sending things to windows cmd.exe.  Is thier any possible way for example.

I have to run a program to register a user, and I need to knwo if php is even capable of speaking with it.

C:Documents and SettingsUSERDesktopSOMEFOLDER
eleasesystem>addlicense.exe -a42790
8484 -psomepassword -ysomeuser -zsomepassword -l4 -b0

this is an example of what Im sending.

View Replies !
PHP Under Windows
I read somewhere that you need to install a virtual server (or something like that) if you want to run PHP scripts on a PC. The background is that I'd like to make the pages of my site dynamic, but would like to be able to view the site offline on my computer.

Is there such a piece of software, possibly easy to install? I'm not too familiar with servers.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved