-Original Message-
From: RT [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 1:40 AM
To: Jake McHenry
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Similar functions?
I'm not sure if this is what you're looking for but if it is
it will be much easier the regex's
hello,
Where should php-cli scripts be installed?
I have put the main file in /usr/local/bin/script.php
but I wonder where requires should be installed?
/usr/local/bin/script_inc/ ?
the problem is that it have to be exec from a boot shell after a cd
to find the requisites :-/
I also would like
On Thursday 20 November 2003 14:34, David HM Spector wrote:
I'm seeing really odd behavior using session variables and wonder if
I'm really just missing something obvious...
My env is: RH9, httpd-2.0.40-21.5, PHP 4.2.2 (RH RPM, gazillion
compile flags enabled), session support enabled,
David HM Spector wrote:
I am writing a multi-page form, on the first page I
session_register() a mess of variables (8 of them), the first time
through the form everything works as expected, I can get things out
of form variables and into relevant the $_SESSION variables. Items
are put
I've made a php script that works fine on many servers, but in one of
them I get $_REQUEST not populated, if I print_r($_REQUEST) I get my
cookies, and not GET or POST vars!
I need to user _REQUEST and not _GET or _POST for some reason, and I
can't change all the scripts (2Mb and more of php
Hello!
Scuse me, if I write some totally dumb thing.
I am quite new to PHP and programming, and maybe I'm not understanding the
question, but:
What if you assign a value to every form field like this:
input type=text name=something value=?php echo $something; ?
or - safer, with
On Thu, Nov 20, 2003 at 11:22:02AM +0200, Veress Berci wrote:
:
: Scuse me, if I write some totally dumb thing.
: I am quite new to PHP and programming, and maybe I'm not understanding
: the question, but:
:
: What if you assign a value to every form field like this:
:
: input type=text
-Oorspronkelijk bericht-
Van: Eugene Lee [mailto:[EMAIL PROTECTED]
On Thu, Nov 20, 2003 at 11:22:02AM +0200, Veress Berci wrote:
:
: Scuse me, if I write some totally dumb thing.
: I am quite new to PHP and programming, and maybe I'm not understanding
: the question, but:
:
:
Andrea Pinnisi wrote:
I've made a php script that works fine on many servers, but in one of
them I get $_REQUEST not populated, if I print_r($_REQUEST) I get my
cookies, and not GET or POST vars!
I need to user _REQUEST and not _GET or _POST for some reason, and I
can't change all the scripts
Cpt John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
From: Kenn Murrah [EMAIL PROTECTED]
I need to be able to pass a PHP variable to a Javascript and can't
figure out how to do it. In short, the Javascript win() statement is
used open a page as defined in PHP --
If you're using NTFS file system... please make sure that the PHP's temporay
UPLOAD directory and SESSIONDATA directory are set with the correct
permissions.
I mean that the user IUSR_YOURCOMPUTER has write permissions in these
directories.
Hope it will help
- David Strencsev
--
PHP General
I am not sure what the problem is here. The script runs and deletes the
relevent row but still returns DATA from albums loaded
row id 658 did not get sent
Error deleting row!
Warning: Cannot modify header information - headers already sent by (output
started at
You may play with these functions:
addslashes();
stripslashes();
htmlentities();
html_entity_decode();
Good luck
- David Strencsev
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I make som images on-the-fly with php.
Scandinavian spesial characters comes out with a square instead.
I use a font that I have placed on root.
What can I do to fix this?
egil berntsen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Can anyone recommend a good, simple PHP-only polling script?
[/snip]
I found this by using Google
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=267lngWId=8
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=PHP+voting+script
--
PHP General Mailing List (http://www.php.net/)
Martin Cameron wrote:
$ndays=14;
function get_next_dates($ndays)
{
$today=date(m-d-Y,mktime(0,0,0,date(m),date(d),date(Y)));
$forward_date=date(m-d-Y,mktime(0,0,0,date(m),date(d)+$few_days,date(Y)));
print h1$today === $few_days === $forward_date/h1;
for($i=0;$i$ndays;$i++)
{
Jay Blanchard wrote:
[snip]
Can anyone recommend a good, simple PHP-only polling script?
[/snip]
I found this by using Google
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=267lngWId=8
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=PHP+voting+script
I keep hearing about this
PAUL FERRIE wrote:
I am not sure what the problem is here. The script runs and deletes the
relevent row but still returns DATA from albums loaded
row id 658 did not get sent
Error deleting row!
Warning: Cannot modify header information - headers already sent by (output
started at
So your saying i should be using POST rather than GET?
John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
PAUL FERRIE wrote:
I am not sure what the problem is here. The script runs and deletes the
relevent row but still returns DATA from albums loaded
row id 658 did
Marek Kilimajer ha scritto:
variables_order - usualy set to EGPCS
It's already EGPCS, I'm waiting more info from the system administrator
of that server.
Is there any enviroment variable that may help to solve this problem? I
don't want to post the entire phpinfo :-)
Thanks
Andrea
--
PHP
Well, should have make one long string to the $res_str variable a lot
shorter. :-)
It turned out that the for() loop isn't the slow part when you mentioned
about substr(). I tried out the while() loop and it is pretty much the same
when the loop take over 5 minutes. So, it now seem to have to
Hello
Curt wrote:
php has to run as a mod in order to have mmcache run. Make a php
I knew this from the start. So I configured Apache (i think i did it right)
to run php as module.
I had an httpd.conf.runphpasmodule file, and I had renamed it to
httpd.conf
page with the output of phpinfo(). It
I can give the strpos() a shot but I seem to have problem with getting the
strpos() to give me two seperate !CDATA[[]] tags instead of just hte
first one only...
Scott
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Scott,
Please dont post 500+ lines of stuff to the
Here's an example of how to get the ENUM into a drop down list in a web
form. I use it all the time..
[code]
/*
Get_Enum : Retreives the enum options from an enum type field in a
MySql Database
*/
function Get_enum($table,$field,$db,$link) {
mysql_select_db($db,$link);
$result =
when should i use echo ' '; vs. print ' ';
Jay Fitzgerald, Design Director
- Certified Professional Webmaster (CPW-A)
- Certified Professional Web Designer (CPWDS-A)
- Certified Professional Web Developer (CPWDV-A)
- Certified E-Commerce Manager
Hi
I want to get the last date in a week.
Is there anybody who know how i can do this.
something like this:
function date getDateFromWeek( $week, $year){
...
...
return date;
}
- Petter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi Everyone!
Is there a way to get the strpos() to find the next needle in the
haystack instead of just the 1st one only? (Where the 1st needle is the
same string as the next needle)...
Thanks,
Scott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
-Oorspronkelijk bericht-
Van: Eugene Lee [mailto:[EMAIL PROTECTED]
On Thu, Nov 20, 2003 at 11:22:02AM +0200, Veress Berci wrote:
:
: Scuse me, if I write some totally dumb thing.
: I am quite new to PHP and programming, and maybe I'm not understanding
: the question, but:
:
:
Hey--
Maybe this will help:
http://www.phparch.com/mailinglists/msg.php?a=557061
Cheers,
Marco
Fredrik wrote:
Hi
I want to get the last date in a week.
Is there anybody who know how i can do this.
something like this:
function date getDateFromWeek( $week, $year){
...
...
return
As a substitute for substr, you might want to give a regex a chance.. have
no clue if it's faster, but it might just be.
/^.{2}(.{0,8})/
would be your regex if you want to start at offset THREE and take out a MAX
EIGHT char string (remove the 0 and get ONLY EIGHT char strings). Not sure
Hi,
Friday, November 21, 2003, 12:37:50 AM, you wrote:
JF when should i use echo ' '; vs. print ' ';
JF
JF Jay Fitzgerald, Design Director
JF - Certified Professional Webmaster (CPW-A)
JF - Certified Professional Web Designer (CPWDS-A)
JF -
Beautiful,
many thanks
Ahbaid.
Martin Cameron wrote:
$ndays=14;
function get_next_dates($ndays)
{
$today=date(m-d-Y,mktime(0,0,0,date(m),date(d),date(Y)));
$forward_date=date(m-d-Y,mktime(0,0,0,date(m),date(d)+$few_days,date(Y)));
print h1$today === $few_days === $forward_date/h1;
On 20 November 2003 14:53, Scott Fletcher wrote:
Hi Everyone!
Is there a way to get the strpos() to find the next needle in
the haystack instead of just the 1st one only? (Where the 1st
needle is the same string as the next needle)...
Look at the optional 3rd parameter to strpos().
Not sure why this is happening but I think it has something to do with
an include statement...
[Server environment]
Apache/2.0.47 (Unix) DAV/2 PHP/4.3.3
register_globals On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
Session Support enabled
[Script
How does one go about using a JavaScript variable with PHP code. I have a
function in JavaScript that takes a single input parameter (ID). I want to
use this ID variable as the value on the where clause of a database query.
Example: select * from somedatabase where field=ID
Can this be done,
Hi Everyone!
I'm having a little trouble understanding how exactly to use the XML
parser. I haven't found the right settings to set up the XML Parser's
option because of no definition of the encoding setting in the XML tags I
received. So, I'll post the script here and hope to get some
* Thus wrote Veress Berci ([EMAIL PROTECTED]):
Hello
Curt wrote:
php has to run as a mod in order to have mmcache run. Make a php
I knew this from the start. So I configured Apache (i think i did it right)
to run php as module.
I had an httpd.conf.runphpasmodule file, and I had renamed it
David Strencsev wrote:
You may play with these functions:
addslashes();
stripslashes();
htmlentities();
html_entity_decode();
Thanks for your help manu and david. I'm going to attempt converting
the html characters and see if that works, but something also makes me
think this might be a
How does one go about using a JavaScript variable with PHP code. I have
a function in JavaScript that takes a single input parameter (ID). I
want to use this ID variable as the value on the where clause of a
database query.
Example: select * from somedatabase where field=ID
Can this be done,
Mike Knittel wrote:
How does one go about using a JavaScript variable with PHP code. I have a
function in JavaScript that takes a single input parameter (ID). I want to
use this ID variable as the value on the where clause of a database query.
Example: select * from somedatabase where field=ID
John Nichel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
For premade scripts, there's always here too...
http://www.phpresourceindex.com
Is this page a joke? When I go there, I get this message:
error
Active Server Pages error 'ASP 0241'
CreateObject Exception
/Default.asp
What is the simplest way to avoid duplicate order
entry on a form? Some people aren't patient enough to
wait for the SSL/credit card processing and will click
the submit button two, three, or more times causing
duplicate orders.
Is there a quick way to disable the submit button at
least in
Hi,
Is this page a joke? When I go there, I get this message:
error
Active Server Pages error 'ASP 0241'
CreateObject Exception
/Default.asp
The CreateObject of '(null)' caused exception C005.
/error
Looks ok to me, except last I remmeber, ASP gave you a line number it
Rob Adams wrote:
John Nichel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
For premade scripts, there's always here too...
http://www.phpresourceindex.com
Is this page a joke? When I go there, I get this message:
Nope, no joke...just not thinking while I type
The way I do is, on the result page, to create a variable (for example
$done) and I put to into the session. So if this variable already
exists, I don't re-execute the form treatment code.
Hope this helps
--
Cordialement,
---
Sophie Mattoug
Développement web dynamique
Jerry [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]...
Hi there !
I am curretly looking for suitbale solutions for encoding PHP scripts
after developing a couple of comercial applications in PHP.
Has anybody made any experience with several encoders like IONCUBE,
need to issue a
session_start()
at top of page
Pete
Jas wrote:
Not sure why this is happening but I think it has something to do with
an include statement...
[Server environment]
Apache/2.0.47 (Unix) DAV/2 PHP/4.3.3
register_globalsOnOn
report_memleaksOnOn
safe_modeOff
psuedo code
session_start()
if (incoming POST and $_SESSION['in_database'] != 1)
{
insert to DB
$_SESSION['in_database'] = 1
}
pete
J J wrote:
What is the simplest way to avoid duplicate order
entry on a form? Some people aren't patient enough to
wait for the SSL/credit card
I want to do two-way encryption on a file coming through the web server. In
this context, I would want to generate a public and private key, encrypt the
file stream (i.e., don't want to write the unencrypted file to disk first
and then encrypt it; I want to encrypt the stream as it comes in) with
J J wrote:
What is the simplest way to avoid duplicate order
entry on a form? Some people aren't patient enough to
wait for the SSL/credit card processing and will click
the submit button two, three, or more times causing
duplicate orders.
Is there a quick way to disable the submit button at
It seems like this question came up before. Is there a resource for people
looking for jobs working with open source products (LAMP specifically)?
Thanks,
susan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ray mailto:[EMAIL PROTECTED]
on Thursday, November 20, 2003 5:29 AM said:
Any ideas on how to accomplish this within the PHP construct?
Instead of reinventing the wheel you can just use HTTPS.
Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
I want to do two-way encryption on a file coming through the web server. In
this context, I would want to generate a public and private key, encrypt the
file stream (i.e., don't want to write the unencrypted file to disk first
and then encrypt it; I want to encrypt the stream as it comes in) with
Thanks, that worked
David Strencsev [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
If you're using NTFS file system... please make sure that the PHP's
temporay
UPLOAD directory and SESSIONDATA directory are set with the correct
permissions.
I mean that the user IUSR_YOURCOMPUTER
Ray mailto:[EMAIL PROTECTED]
on Wednesday, November 19, 2003 9:44 AM said:
Any ideas on how to accomplish this within the PHP construct?
You already posted this question and I've already responded to it. Check
the old thread.
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
POBs is really good, but I have had some weird problems when encoding large
files, especially if you take out the line breaks in the options.
Another problem with POBS is that you can have your config.php file not
encoded with the rest of the files, since it changes your variables (eg
$email
Hello,
I have an array like that:
$return[0][photo] = monuments_01.jpg
$return[1][photo] = monuments_00.jpg
$return[2][photo] = monuments_03.jpg
$return[3][photo] = monuments_02.jpg
$return[4][photo] = monuments_04.jpg
If I use the sort function:
sort($return) ;
I get:
How exactly does the 3rd parameter option work. I tried this but it doesn't
work, so I don't know how exactly does it work... There isn't detail
information on the php.net website...
--snip--
$XML_Start = (strpos($res_str,![CDATA[,1)+9);
$HTML_Start = (strpos($res_str,![CDATA[,2)+9);
Chris,
I thought of that and I do plan on implementing it on the way in and out.
However, to meet HIPA and other business requirements, the data can not
exist at any point in time on my system in unencrypted form. I do not want
to be able to view it and I do not want to know what is there.
Any
Yeah I did that, sorry I just didn't note it in the snippit.. and it is
now working with the $_SESSION function, i just had to restart the
browser to clear the cache after updating the code.
jas
Pete M wrote:
need to issue a
session_start()
at top of page
Pete
Jas wrote:
Not sure why this
I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote
computer name?
[Snippit used]
$ipaddy = $_SERVER['REMOTE_ADDR'];
$host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of
the server (i.e. localhost, 168.2.2.1)
jas
--
PHP General Mailing List
array_reverse()
Vincent M. wrote:
Hello,
I have an array like that:
$return[0][photo] = monuments_01.jpg
$return[1][photo] = monuments_00.jpg
$return[2][photo] = monuments_03.jpg
$return[3][photo] = monuments_02.jpg
$return[4][photo] = monuments_04.jpg
If I use the sort
Try using rsort()
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Fitzgerald wrote:
when should i use echo ' '; vs. print ' ';
You should always use echo. It'll make a significant performance
increase in your scripts as it's only four letters instead of five.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect:
Jas wrote:
[Script registering vars - sessions.php]
/* Format Date Time */
$hour = (date(H:i:s));
$day = (date(d));
$date = (date(F $day, Y));
Don't you mean
$data = date('F d, Y');
I don't see why you're calculating $day and then putting it in date().
/* Register vars */
$_SESSION['date'] =
On Thu, 20 Nov 2003, Scott Fletcher wrote:
How exactly does the 3rd parameter option work. I tried this but it
doesn't work, so I don't know how exactly does it work... There isn't
detail information on the php.net website...
The optional offset parameter allows you to specify which
On 20 November 2003 17:39, Scott Fletcher wrote:
How exactly does the 3rd parameter option work. I tried this
but it doesn't
work, so I don't know how exactly does it work... There isn't detail
information on the php.net website...
--snip--
$XML_Start =
Ray mailto:[EMAIL PROTECTED]
on Thursday, November 20, 2003 9:32 AM said:
I thought of that and I do plan on implementing it on the way in and
out. However, to meet HIPA and other business requirements, the data
can not exist at any point in time on my system in unencrypted form.
I do
On Friday 21 November 2003 01:31, Ray wrote:
I thought of that and I do plan on implementing it on the way in and out.
However, to meet HIPA and other business requirements, the data can not
exist at any point in time on my system in unencrypted form. I do not want
to be able to view it and
Jas wrote:
I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the remote
computer name?
[Snippit used]
$ipaddy = $_SERVER['REMOTE_ADDR'];
$host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of
the server (i.e. localhost, 168.2.2.1)
jas
HTTP_HOST returns the name (or
Hello,
I am having trouble returning attributes from an LDAP dir and was
curious if anyone had experienced similar issues. I am able to retrieve
the attributes in the $nds_stuff fine. However, once I add an attribute
to the array, I can get the last attribute in the array, but not the one
that
I know this may be off-topic but I've got a problem that I do not know how
to work around...
I'm displaying a SELECT list and the problem is getting the value back
after an 'onChange' event. Code is like this:
HTML
HEAD
SCRIPT LANGUAGE=JAVASCRIPT
!--
function jump()
{
On Friday 21 November 2003 02:24, Robin Kopetzky wrote:
I know this may be off-topic but I've got a problem that I do not know how
to work around...
Hey list moderators, can this list be renamed the
php-general-javascript-and-the-kitchen-sink list?
--
Jason Wong - Gremlins Associates -
when should i use echo ' '; vs. print ' ';
Here's a link listed in the manual at
http://www.php.net/manual/en/function.print.php
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
Kirk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Ah-hah! Jason hides under an email address that does not exist so one cannot
reply directly to him, only via the list. Does that not describe the person
well?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[Snippit used]
$ipaddy = $_SERVER['REMOTE_ADDR'];
$host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of
the server (i.e. localhost, 168.2.2.1)
jas
HTTP_HOST returns the name (or ip) of the machine on which php is
running. REMOTE_ADDR will return the ip of the client
Ah-hah! Jason hides under an email address that does not exist so one
cannot reply directly to him, only via the list. Does that not describe
the person well?
Insofar as he is cautious about spam, sure.
-
michal migurski-
[snip]
Ah-hah! Jason hides under an email address that does not exist so one
cannot
reply directly to him, only via the list. Does that not describe the
person
well?
[/snip]
I found Jason's reply to be humorous! You yourselef said that your
request was off topic. What did you expect? Here is
Tom Rogers wrote:
Hi,
Friday, November 21, 2003, 12:37:50 AM, you wrote:
JF when should i use echo ' '; vs. print ' ';
JF
JF Jay Fitzgerald, Design Director
JF - Certified Professional Webmaster (CPW-A)
JF - Certified Professional Web Designer
Jason Wong wrote:
On Friday 21 November 2003 02:24, Robin Kopetzky wrote:
I know this may be off-topic but I've got a problem that I do not know how
to work around...
Hey list moderators, can this list be renamed the
php-general-javascript-and-the-kitchen-sink list?
My kitchen sink
So in that case there isn't a $_SERVER function to gather the remote
computer name?
Jas
John Nichel wrote:
Jas wrote:
I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the
remote computer name?
[Snippit used]
$ipaddy = $_SERVER['REMOTE_ADDR'];
$host = $_SERVER['HTTP_HOST']; // as
On Friday 21 November 2003 02:38, Robin Kopetzky wrote:
Ah-hah! Jason hides under an email address that does not exist so one
cannot reply directly to him, only via the list. Does that not describe the
person well?
My address only accepts mail directly from the list, cuts down on the spam
Robin Kopetzky wrote:
Ah-hah! Jason hides under an email address that does not exist so one cannot
reply directly to him, only via the list. Does that not describe the person
well?
Jason's actions describe him, not his email address. Jason is a valued
member of this list and has helped
[snip]
My kitchen sink always gets clogged when we clean out the fridge. Does
anyone know of a way I can fix that? ;)
[/snip]
$strSinkTrap = fopen(/under/the/cabinet/, w+);
while(!feof($strSinkTrap)){
unscrewFittings($pipe);
if($pipeUnscrewed == TRUE){
Jason Gerfen wrote:
John Nichel wrote:
Jas wrote:
I am at a loss here but doesn't $_SERVER['HTTP_HOST'] return the
remote computer name?
[Snippit used]
$ipaddy = $_SERVER['REMOTE_ADDR'];
$host = $_SERVER['HTTP_HOST']; // as of now it is getting the name of
the server (i.e. localhost,
1. When you say on my system in unencrypted form do you indeed mean you
want data that can be encrypted and then unencrypted as opposed to a hash
like md5() that cannot be reversed? (I only ask this because a lot
times people use them synonymously when they should not.)
Yes, two way, like PKI.
Jay Blanchard wrote:
[snip]
My kitchen sink always gets clogged when we clean out the fridge. Does
anyone know of a way I can fix that? ;)
[/snip]
$strSinkTrap = fopen(/under/the/cabinet/, w+);
while(!feof($strSinkTrap)){
unscrewFittings($pipe);
if($pipeUnscrewed ==
On Friday 21 November 2003 02:59, Jason Gerfen wrote:
So in that case there isn't a $_SERVER function to gather the remote
computer name?
1) print_r($_SERVER) to see what is available
2) it may be available if you have set your webserver to do DNS lookups. But
because it is expensive (ie takes
$strSinkTrap = fopen(/under/the/cabinet/, w+);
while(!feof($strSinkTrap)){
unscrewFittings($pipe);
if($pipeUnscrewed == TRUE){
removeClog($hair, $grease, $grime);
}
}
fclose($strSinkTrap);
You may want to call the screwFittings
Jason Wong wrote:
snip
3) you can always use gethostbyaddr($_SERVER['REMOTE_ADDR']) whenever it is
needed. But do note that $_SERVER['REMOTE_ADDR'] is not a wholly reliable
indicator of who your client is.
Right...it doesn't return the machine name for any of my client machines
(didn't
I've been using array_search in my scripts for a while now, but have
come across a problem. My new page has a textarea field. If I enter
any new lines in the textarea, array_search returns false.
I have tried using html_encode, addslashes, serialize and nothing yet
has worked. My only other
Funny off-off topic stuff. But to address the original question, which
I deleted already, the problem is in your html, not your javascript.
The syntax for selects is:
select name=state_name onChange=
option label=Colorado value=ColoradoColorado/option
You had the name parameter in the option,
[snip]
I've been using array_search in my scripts for a while now, but have
come across a problem. My new page has a textarea field. If I enter
any new lines in the textarea, array_search returns false.
I have tried using html_encode, addslashes, serialize and nothing yet
has worked. My only
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 2:48 PM
To: Jake McHenry; [EMAIL PROTECTED]
Subject: RE: [PHP] array_search
[snip]
I've been using array_search in my scripts for a while now,
but have come across a problem. My
On Friday 21 November 2003 03:33, John Nichel wrote:
Right...it doesn't return the machine name for any of my client machines
(didn't expect it too on the DHCP boxes, but thought it might on the two
static boxes). For the two static machines, it returns the Charter
(cable connection) and
I like POB too but it's an obsfuscator. To fix your $email problem just do
a search for $2d4g3a5sd and change them all to $email.
An encoder would be Ioncube or Turck's mmcache but the server needs to be
installed with their software to run the encoded scripts. POB doesn't need
anything
-Original Message-
From: Jake McHenry [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 2:51 PM
To: 'Jay Blanchard'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] array_search
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Thursday,
On Thu, 20 Nov 2003, Jay Blanchard wrote:
$foo = $_POST['textarea'];
$newFoo = str_replace(\n, , $foo);
$arrayFoo = explode( , $newFoo);
In the code above any spaces on the lines will also be delimiters...
I missed that part of the requirement...?
Maybe I'm not understanding the problem, but
On Thu, Nov 20, 2003 at 09:45:45AM -0500, Scott Fletcher wrote:
:
: I can give the strpos() a shot but I seem to have problem with getting the
: strpos() to give me two seperate !CDATA[[]] tags instead of just hte
: first one only...
Use the offset parameter:
?php
$haystack
On Thu, Nov 20, 2003 at 12:36:42PM -0500, John W. Holmes wrote:
:
: Jay Fitzgerald wrote:
:
: when should i use echo ' '; vs. print ' ';
:
: You should always use echo. It'll make a significant performance
: increase in your scripts as it's only four letters instead of five.
p
1 - 100 of 129 matches
Mail list logo