Hi all,
Just wondering if it is possiable to add or combine 2 or more md5 checksums
togeather?
Basically i've got a value/file that i can get the md5 checksum for but want
to be able to padd the input value/file with nulls to a specific length
example:
value is
Hello,
Where is $duplicate originally being set? Are you using global variables? is
$duplicate being POST'd or GET'd or what?
If it is only gaining it's value from the duplicate_name() function, is that
function returning those possible values (1,2) based on whatever the result
of the action take
Hi all
I downloaded the oscommerce online shop. I have no experience with php. I
installed yesterday php 4.3.
Just my question: I get this error if I call the startpage of this shop:
Warning: Unknown(): Your script possibly relies on a session side-effect
which existed until PHP 4.2.3. Please
Try these:
function getIP()
{
if (getenv('HTTP_CLIENT_IP'))
$ip=getenv('HTTP_CLIENT_IP');
else if ( getenv('REMOTE_ADDR') )
$ip=getenv('REMOTE_ADDR');
else
$ip = 'unknown';
return trim($ip);
}
function getISP($addr,$byIP=true)
{
/*
Can pass in an ip, like 64.xxx.xxx.xx or a domain, lik
On Tuesday 01 April 2003 02:47 pm, Jon Haworth wrote:
> Hi Siva,
>
> > checkdate function verifies whether the date is valid or
> > not by taking month, day and year as arguments.
> > The problem is when someone enters a three digit year by
> > mistake (200 instead of 2003), this function does not
Ilyas wrote:
Hi all
I downloaded the oscommerce online shop. I have no experience with php.
I installed yesterday php 4.3.
Just my question: I get this error if I call the startpage of this shop:
Warning: Unknown(): Your script possibly relies on a session side-effect
which existed until PHP 4
Would there be a way to extract a timestamp from uniqid(), since the
function is based on the microsecond, and its purpose is not to be random in
anyway, simply unique. I understand that it is not supposed to act as a
timestamp, just wondering if anyone has a method of extracting a date or
time fro
may i ask what is it that your trying to do? Why not use time(); ?
cheers,
Sebastian
- Original Message -
From: "nooper" <[EMAIL PROTECTED]>
| Would there be a way to extract a timestamp from uniqid(), since the
| function is based on the microsecond, and its purpose is not to be random
could this not also be solved by switching register_globals as on? reading
through the error, it looks like that's what it's complaining about. there
is security risks to turning this on, which is probably why it doesn't
suggest doing it, but depends how secure you need your site to be? and also
ho
Hi everyone!
Just wanted to know what the best way to deal with a system that makes use
of lots of emails.
The application itself creates emails using php mail() function, but I
recall reading that this was not necessarily the best way to do this if
sending lots of emails.
Any suggestions or thou
If you want the microsecond use microtime().
Justin
on 02/04/03 8:44 PM, Sebastian ([EMAIL PROTECTED]) wrote:
> may i ask what is it that your trying to do? Why not use time(); ?
>
> cheers,
> Sebastian
>
> - Original Message -
> From: "nooper" <[EMAIL PROTECTED]>
>
>
> | Would there
Hi all,
Where does PHP get its settings if php.ini file doesn't exist?
BTW- I want to enable sockets that are not enabled. Could I do that without
creating a php.ini file?
Regards,
Javi.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tony Burgess wrote:
Just wanted to know what the best way to deal with a system that makes use
of lots of emails.
The application itself creates emails using php mail() function, but I
recall reading that this was not necessarily the best way to do this if
sending lots of emails.
Any suggestions o
I think php.ini file must exist.. otherwise php will not work.
- Original Message -
From: "Javier Carreras" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 11:01 AM
Subject: [PHP] Php.ini doesn't exit
> Hi all,
>
> Where does PHP get its settings if php.ini fi
you can set _some_ directives directly in php
check the manual for the set ini options, can't remember the exact
function...
php will work without an .ini file, but will have all defaults set. again,
check thru the manual to see what the defaults are.
- Original Message -
From: "Javier C
Dear all,
A friend of mine has told me that his group is trying to build a php
interface to HL7 messages.
Their spec is: They need to send through PHP (from a browser) a HL7
message with a query, interpret that HL7 message, make the request with
the information inside the HL7 message to an Info
How do applications know how many users are logged into the system? For
example postnuke will tell you '3 users online, 2 members'. Im gussing it
uses sessions, but how?
Edd Barrett
(http://www.filibusta.net)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
My guess you have a mess in your curl library installation. For example
you use header from version 7.9.5 and specify that you have version
7.10.3. Find all libcurl.so and curl.h files on your system and check if
they are really the version you think they are. You may try running rpm
-V libcurl
No, this information is not provided by the browsers.
Tomás Liendo wrote:
Thanks! Your help solved my problems!
Is there some form of obtaining the complete path??? I tried $f1_path, but
don't work... :-)
Thank you very much,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
FATAL ERROR: register_globals is disabled in php.ini, please enable it!
How can I make this?
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am trying to sort an image menu system which is passed a directory name,
and can count and name the files in a menu from simply seeing which files
are in this directory. It would be ideal if it can just do this just by
looking at the files in the directory, and their file names, but if that is
no
It should not be too difficult to change the delphi utility to post a
sql or csv file to a php script, in the script you can check the sql
commands and then execute them or parse the csv file respectively. The
password is not really hidden, maybe it is not even scrambled in the
binary, and can
At 13:32 2-4-03, you wrote:
FATAL ERROR: register_globals is disabled in php.ini, please enable it!
How can I make this?
First question would be: do i want this? Since PHP 4.10 the
register_globals is turned off by default, see the release notes at
http://www.php.net/release_4_1_0.php .
Second
fatal error? What gave you this? Enabling it might not be a good idea, for
security.
.. but if you want to enable it you have to editing the php.ini and set
register_globals to ON.
cheers,
- Sebastian
- Original Message -
From: "Ilyas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wed
There are 2 separate extenssions - iconv and recode
Michael Mulligan wrote:
Hi
So say I have some UTF-8 (not certain, but probably in UTF-8 format, I need
to check some more) encoded text. The text comes in encoded already, so it's
not an htmlspecialchars kind of quick fix. For instance, I get '
You might want to start with searching the manual for opendir()
function. There is a sample code listing all files from a directory. :)
Niklas
-Original Message-
From: Ben Whitehead [mailto:[EMAIL PROTECTED]
Sent: 2. huhtikuuta 2003 1:05
To: [EMAIL PROTECTED]
Subject: [PHP] Menu from D
Can someone please tell me how i change the following code:
if (!ereg("^[0-9]{5,5}(\-[0-9]{4,4})?$",$postcode))
to a UK postcode QQ1 1QQ
When i fill out the form it tells me that the postcode is not valid and i
think it is because it is in zip code format.
Thank you
Andy
--
PHP General Maili
Andy,
There are some ready made scripts for dealing with UK post codes on the relevant page
on the PHP site:
http://www.php.net/manual/en/function.ereg.php
HTH,
Michael Egan
-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 12:54
To: [EMAIL PROTECTED]
Subjec
hi guys i am having an issue getting a set error handler to get a function
within a class, i am also having problems trying to trigger the error, i
dont want fatals or the error handler wont catch it anyway , but user or
message picks up annoying messages like undefined index on variable , how
can
Am I making any obvious mistakes here, in my upload script? I want to
upload text-files only, they should end up in the directory from which the
script is executed and be names __traningsmatcher.txt.
HTML-form:
Fil:
And php, on the recieving end:
/
> -Original Message-
> From: thomas [mailto:[EMAIL PROTECTED]
>
> $_SERVER["REMOTE_ADDR"]
>
> If the user have a proxy the real IP is:
> $_SERVER["HTTP_X_FORWARDED_FOR"]
Maybe. If it's set and is set correctly. Even then:
How are 127.0.0.1 or 192.168.1.1 going to help you, supposing that
sorry, don't have anything to add for code, but just a note to remember that UK post
codes can also be in the form...
QQ11 1QQ
Q1 1QQ
Q11 1QQ
QQ1 1QQ
so it's a real pain to write an expression for this...
-skate-
Can someone please tell me how i change the following code:
if (!ereg("^[0-9]{
Don't forget some London postcodes are Q1Q QQQ!
Peter.
On Wed, 2 Apr 2003, skate wrote:
> sorry, don't have anything to add for code, but just a note to remember that UK post
> codes can also be in the form...
>
> QQ11 1QQ
> Q1 1QQ
> Q11 1QQ
> QQ1 1QQ
>
> so it's a real pain to write an expr
Hi Andy,
The following function seems to work for me:
function split_postcode ($postcode) {
if(eregi('(^[A-Z]{1,2})([0-9|A-Z]{1,2}).*([0-9][A-Z]{2}$)', str_replace('
', '', $postcode), $parts)){
$outcode=strtoupper(sprintf('%s%s%s', $parts[1], @str_repeat(' ',
4-strlen($part
Hi all,
I'm trying to grab information from two DBs one being a mamber db and the
other a report DB
I want to print a list of users(pilots for a Virtual Airline) from the Pilot
db and then next to them the nº of reports and total hours they have so far
from the REPORT DB. The Pilot ID on this li
hi guys , as per my previous email i am trying to sort out a similar error
handling as c or java exception, although in the error handler i am sending
an error code to it and then return to the previous page with the error on
it , the only way i can do this is to store the code in a session variabl
> -Original Message-
> From: Michael Egan [mailto:[EMAIL PROTECTED]
> Sent: 02 April 2003 13:05
>
> There are some ready made scripts for dealing with UK post
> codes on the relevant page on the PHP site:
>
> http://www.php.net/manual/en/function.ereg.php
And not one of them is 100% cor
> -Original Message-
> From: Charles Kline [mailto:[EMAIL PROTECTED]
> Sent: 01 April 2003 21:21
> To: Dan Joseph
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] getting values from objects
>
>
> My objective was to try and NOT use a temporary variable.
>
> for example I can do this:
>
> f
> -Original Message-
> From: ODCS [mailto:[EMAIL PROTECTED]
> Sent: 02 April 2003 08:10
>
> I have a form where the user inputs information - the code
> below is the
> error checking for one of the fields. The first IF statement
> just checks
> that the filed is not empty and works fine.
Looks like i have it sussed thank you to all.
HOWEVER :o(
I have two small problems that i cannot solve, and seeing as you are all
gods in my opinion maybe you can help me further before i throw myself out
the window.
I am getting this error when i am taken to the member page after correctly
fill
hi,
i want to sort messages in a sequence
the sequence is "23,12,25" (these are message nos)
now when i call like this
$nMsgSeq="23,12,25";
imap_fetch_overview($pIMAP,$nMsgSeq,0);
i get an array sorted like
Array
(
[0] => stdClass Object
(
[uid] => 21
Am I making any obvious mistakes here, in my upload script? I want to
upload text-files only, they should end up in the directory from which
the script is executed and be names __traningsmatcher.txt.
Further details: Everything works, but I'm just curious if there is some
hidden mistakes. This i
Greetings.
I have a web site which permits my clients to upload a file via php4, and it
works great ... however, some clients have requested that they be able to
upload entire directories from their windows or macintosh computers ... that
is, to select the entire folder rather than doing one file
It is an online shop : oscommerce
How can I restart Php? Any ideas???
Ilyas
At 06:42 02.04.2003 -0500, you wrote:
fatal error? What gave you this? Enabling it might not be a good idea, for
security.
.. but if you want to enable it you have to editing the php.ini and set
register_globals to ON.
ch
Your clients can zip the folder, upload the zip file, and then you can
on the server side use PclZip class to read the content
Kenn Murrah wrote:
Greetings.
I have a web site which permits my clients to upload a file via php4, and it
works great ... however, some clients have requested that the
How would that work?
--Dave
On Monday, March 31, 2003, at 09:27 AM, Marek Kilimajer wrote:
You need to use socket functions and check the response headers
David Feldman wrote:
I have a script that needs to open a remote file on another Web
server, which may or may not be protected (for exampl
Check the archives, this has been discused many times before
[EMAIL PROTECTED] wrote:
How do applications know how many users are logged into the system? For
example postnuke will tell you '3 users online, 2 members'. Im gussing it
uses sessions, but how?
Edd Barrett
(http://www.filibusta.net)
Hi all,
I'm trying to grab information from two DBs one being a mamber db and the
other a report DB
I want to print a list of users(pilots for a Virtual Airline) from the Pilot
db and then next to them the nº of reports and total hours they have so far
from the REPORT DB. The Pilot ID on this li
yes, of course they can ... but i'm looking for a way to automate the
process for them (a method which may not exist) .. i suppose i can give them
the option to upload multiple files using multiple input fields, but I'd
really like to find a way to select an entire folder instead ...
- Origin
On Wednesday 02 April 2003 22:08, Kenn Murrah wrote:
> yes, of course they can ... but i'm looking for a way to automate the
> process for them (a method which may not exist) .. i suppose i can give
> them the option to upload multiple files using multiple input fields, but
> I'd really like to fin
Check examples and user notes in the manual:
http://www.php.net/manual/en/function.fsockopen.php
David Feldman wrote:
How would that work?
--Dave
On Monday, March 31, 2003, at 09:27 AM, Marek Kilimajer wrote:
You need to use socket functions and check the response headers
David Feldman wrote:
i was afraid you were gonna say that, jason ... but i was hoping i had
overlooked something ...
anyway, thanks for your response ... i'm familiar enough with your input to
this list that, if you say it can't be done, i'll look no farther ...
thanks again,
- Original Message -
From: "Jas
At 16:15 2-4-03, you wrote:
Um, i had a look at the FTP options, (I honestly have no idea about the
security implications) but i saw only directory functions for the server.
http://www.php.net/manual/en/ref.ftp.php
but maybe one of the finished applications:
http://nanoftpd.sourceforge.net/ (i
It isn't always possible to get the visitor's real IP address, if the
user's traffic is proxied the REMOTE_ADDR will be the proxy IP address,
some proxies set the forwarded for header but for security and privacy
some do not.
If you are not being directed through a proxy REMOTE_ADDR does show t
I am trying to use the ocicollection functions. Initially everything
works fine, but after reloading the page for the second time
I get the following error:
OCITypeByName: OCI-22303: type "SISTRUT"."MENSERRO" not found
When I try half a minute later, I do manage reload the page without any
err
Hi,
How can i make sure a value sent from a form has no spaces in it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yup, you were correct. the 7.10.3 rpm was installed but I forgot to install
the 7.10.3 development rpm. I did so and all compiles fine now.
Thanks,
Don
> My guess you have a mess in your curl library installation. For example
> you use header from version 7.9.5 and specify that you have version
You are right! :-)
Other question: When I try to put a file as an anonymous user, I always
receipt this error: "Permission denied on server. (Upload)." Does some form
exists of allowing to anonymous users upload files or it is impossible?
Thank you very much,
Tom.
"Jon Haworth" <[EMAIL PROT
At 17:16 2-4-03, you wrote:
Hi,
How can i make sure a value sent from a form has no spaces in it?
Before sending: javascript that prevents this on sending or even while
typing. Check the javascript form faqs on www.irt.org for this.
After sending:
Detect spaces with
if (!(strpos(' ', $string)=
if(strpos($string, ' ') === false) {
//space found
}
if you don't want any white character:
if(ereg('\s',$string)) {
//white character found
}
shaun wrote:
Hi,
How can i make sure a value sent from a form has no spaces in it?
--
PHP General Mailing List (http://www.php.net/)
Help AGAIN!!!
Thank you for all the help so far, i am close to getting this members
section working correctly now i think!
I think i would have given up by now if it were not for the help i get from
you all, thank you.
I have a warning that i don't understand:
Warning: extract() expects first arg
Repost because no one replied originally. Are there any other lists
that anyone knows of for php that could be more helpful? I'm quite
disappointed in this one because I thought this was a fairly easy
question for those who have been working with php for a while.
I have the following issue be
Andy wrote: (and Marek fixed)
$connection = mysql_connect($host, $user,$password)
or die ("Couldn't connect to server.");
$db = mysql_select_db($database, $connection)
or die ("Couldn't select database.");
$sql = "SELECT name FROM members
WHERE username=
Hi,
This might be a newbie question but I can't find an answer anywhere I
search. I know php can be excuted by a web browser, but can it run as a
script like Perl?
The reason i ask is, I need to write a php script that updates a database in
a server. And this script needs to be running in the b
VanZee, Timothy wrote:
Repost because no one replied originally. Are there any other lists
that anyone knows of for php that could be more helpful? I'm quite
disappointed in this one because I thought this was a fairly easy
question for those who have been working with php for a while.
Sorry,
> -Original Message-
> From: VanZee, Timothy [mailto:[EMAIL PROTECTED]
> Sent: 02 April 2003 17:31
>
> Repost because no one replied originally. Are there any other lists
> that anyone knows of for php that could be more helpful? I'm quite
> disappointed in this one because I thought thi
Yes, you definitely can...
http://www.php.net/manual/en/features.commandline.php
--
Aaron Gould
Web Developer
Parts Canada
- Original Message -
From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 11:43 AM
Subject: [PHP] Can php run
Look for PHP CLI in google.
Recent versions of PHP install at CLI PHP executable by default.
e.g I ended up with one in:
/usr/local/apache/bin/php
[EMAIL PROTECTED] root]# /usr/local/apache/bin/php -v
PHP 4.3.1 (cli) (built: Feb 20 2003 14:09:35)
Copyright (c) 1997-2002 The PHP Group
Zend Engin
logname is not in my database.
It is a session variable used to hold the members login name.
In the form it is session_register('logname'); which is then set to a
variable with this code:
if ($num2 > 0) { // password is correct
$auth="yes";
$logname=$fusername;
$tod
What version of Apache are you using? Can you point us to a phpinfo() file?
- Original Message -
From: "Timothy Vanzee" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 11:31 AM
Subject: FW: [PHP] Html forms to php scripts
Repost becaus
It's an Apache 2 / PHP bug. I think if you use $_POST['ttt'], you'll get the
correct value, but I'm not sure. Try turning register globals off or using a
stable version of Apache that works with PHP (the 1.3 series).
---John Holmes...
- Original Message -
From: "VanZee, Timothy" <[EMAIL P
Hello,
I want to send an email attachment using PHP and the below code works
locally but when i upload to my RAQ Cobalt server it doesn't send the
attachment and i can't figure out why. If you can offer me any guidance as
to why this is happening it is greatly appreciated.
**The sendmail is a custo
I meant there is no row in table members where username='$logname',
whatever value $logname contains.
Don't forget to run session_start() at the begining of every script.
Andy wrote:
logname is not in my database.
It is a session variable used to hold the members login name.
In the form it is s
Thanks!
but the thing is I have php 4.2.2 version installed in that server. And
since it is not 4.3.0 therefore CLI isn't on by default. How can I check if
CLI is on or not? If it is not on, I won't be able to excute the php as a
script in another other way?
THnaks@
-Original Message-
find / -name php -print
- Original Message -
From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]>
To: "'Tim Burden'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 12:35 PM
Subject: RE: Can php run as a script?
> Thanks!
>
> but the thing is I have php 4.2.2 v
I used to use wget and run cleanup scripts from cron in the usual way.
Some people also used to use lynx to do it, I believe.
But the best way would be to install latest version of PHP, IMHO.
- Original Message -
From: "Poon, Kelvin (Infomart)" <[EMAIL PROTECTED]>
To: "'Tim Burden'" <[EM
1) Installed MySQL 4.0.12
2) Installed PHP 4.3.1
One of my config options was --with-mysql=shared,/usr
3) added the following to /etc/ld.so.conf and ran ldconfig:
/usr/lib/libmysqlclient.so
/usr/lib/mysql
4) When I try to run phpmyadmin, I get the following error:
cannot load MySQL extension,
pl
At 4/1/2003 08:49 PM, [EMAIL PROTECTED] wrote:
> Also, I've not convinced anyone where I'm at now to use smarty. In my
> mind they are penny-wise and pound foolish. The real little extra
> time you might need to use a template system is richly rewarded in
> code re-use and future changes to the s
Hi all,
I have a current php script that allows me to add/remove customer information from
a particular MySQL Database. What I would like to do, is when an employee adds a
customer, have some (if not all) of that information e-mailed to a particular e-mail
address.
I've created scripts
If it doesn't exist, it will use default settings. To see where it's
looking for php.ini, use phpinfo().
Javier Carreras wrote:
Hi all,
Where does PHP get its settings if php.ini file doesn't exist?
BTW- I want to enable sockets that are not enabled. Could I do that without
creating a php.ini
There is no trick to it. Query the database, build a string, send it off.
$value)
{
$body .= "$column : $value\n";
}
$body .= "\n";
}
mail($to, $subject, $body, $headers);
?>
HTH,
Kevin
- Original Message -
From: "Scott Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECT
Hello,
There so many functions in php that I can't find the one I need. I have
a table like that:
$lang["english"]["category"]= "Category" ;
$lang["english"]["backpage"]= "Go to the back page" ;
$lang["english"]["nextpage"]= "Go to the next page" ;
...
$lang["francais"]["category"]
I'm trying to parse a simple xml file, but I keep getting a strange error at
$node->name which returns #text. Is this normal or am I doing something
wrong?
>From what I understand, the $node->name should return "branch" but it
returns #text.
TIA
Jon
--- PHP Code ---
Hi,
Trying to install PHP with the ability to interact with MySQL. In my
configuration, I've included the option:
--with-mysql=shared,/usr
There are no compile errors. Any idea why PHP is not recognizing any MySQL
functions?
Thanks,
Don
---
Outgoing mail is certified Virus Free.
Checked by
What I would do is first read a cookie that you set on the clients machine
that follows the accept language guidelines.. so just the first two letters
then if that is not set, then take the browsers languages
$HTTP_ACCEPT_LANGUAGE and use them.
So instead of english you would have 'en', espanol =
ok, my last post stated that i've tried reconfigureing.making/makeinstalling php 4.3.1
a tons of times. well, today when i typed php -v it told me that version 4.2.2 was
the one that was installed. so apparently my installing has not been taking the place
of the old one.
The original root i
you can try just straight --with-mysql without the = and it may be in the default
path...
>>> Don<[EMAIL PROTECTED]> 04/02/03 03:18PM >>>
Hi,
Trying to install PHP with the ability to interact with MySQL. In my
configuration, I've included the option:
--with-mysql=shared,/usr
There are no com
Jason Wong wrote:
On Wednesday 02 April 2003 22:08, Kenn Murrah wrote:
yes, of course they can ... but i'm looking for a way to automate the
process for them (a method which may not exist) .. i suppose i can give
them the option to upload multiple files using multiple input fields, but
I'd really
Ben Whitehead wrote:
I am trying to sort an image menu system which is passed a directory name,
and can count and name the files in a menu from simply seeing which files
are in this directory. It would be ideal if it can just do this just by
looking at the files in the directory, and their file nam
> From: "Scott Miller" <[EMAIL PROTECTED]>
>
> I have a current php script that allows me to add/remove customer information
> from a particular MySQL Database. What I would like to do, is when an
> employee adds a customer, have some (if not all) of that information e-mailed
> to a particular e-
Ford, Mike [LSS] wrote:
-Original Message-
From: VanZee, Timothy [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 17:31
Repost because no one replied originally. Are there any other lists
that anyone knows of for php that could be more helpful? I'm quite
disappointed in this one because I th
Vincent M. wrote:
Hello,
There so many functions in php that I can't find the one I need. I have
a table like that:
$lang["english"]["category"]= "Category" ;
$lang["english"]["backpage"]= "Go to the back page" ;
$lang["english"]["nextpage"]= "Go to the next page" ;
...
$lang["franca
Try $languages = array_keys($lang);
This will create an array $languages = array("english","francais");
Matt
- Original Message -
From: Vincent M. <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 4:58 PM
Subject: [PHP] So many functions!
> Hello,
>
> There so
I think you mean:
$example_string = '?action=kick&item=me';
"Jose" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I might be wrong here, but with the code below I would expect $_GET to be
filled and the script to output the next line:
// expected output:
//
// array(2) { ["acti
> "Jose" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> I might be wrong here, but with the code below I would expect $_GET to be
> filled and the script to output the next line:
>
>$example_string = 'action=kick&item=me';
>parse_str($example_string);
>var_dump($_G
Is it feasible to have a php form update two different MySQL DB's at the
same time, with all info going to one DB, and just certain info going to the
second?
Just dreaming of ways to make my life easier.
Scott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
Hi everyone,
Is it possible, using just PHP, to pull a select menu from a DB, then when
the person makes a selection have it populate a second drop down select
menu, and again for a third one? Would javascript need to be involved here
to keep it all on the same page?
I'm in pretty desperate need
Hi, I had it setup on my server before i reloaded it, but what i need to have happen
is so that when i'm passing variables to a php file, I don't have to include the .php
in the link...so i can have
http://www.my-domain.com/page1?var1=3&var2=4
instead of
http://www.my-domain.com/page1.php?var1
--- Krista <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> Is it possible, using just PHP, to pull a select
> menu from a DB, then when
> the person makes a selection have it populate a
> second drop down select
> menu, and again for a third one? Would javascript
> need to be involved here
> to kee
You can accomplish this by enabling multiviews in your httpd.conf
> -Original Message-
> From: Teren Sapp [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2003 3:18 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Making it so the .php isn't needed
>
>
> Hi, I had it setup on my server
1 - 100 of 148 matches
Mail list logo