I'm sure http://www.php.net exists. :)
No, what my sentence meant was you're trying to do some operations on a
mis-typed file descripter?
$fp = fopen...
fputs($fp2...
^- There should be no 2.
Possibly something like that?
with fopen(). Everytime I try to use fopen, I get some
I'm not sure how the DBF format is, but I think you can export the Fox's
.dbf to comma-seperated-values no?
If yes, you can easily then put them back into MySql.
Yang [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
use php Convert between(foxpro) `.dbf' files
Original message
From: Ashwin Kutty [EMAIL PROTECTED]
Date: Thu, Aug 30, 2001 at 10:51:20PM -0300
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] header() + link..
Hi,
Is there a simple way to hide the redirect url when using the header
function? I would like for the script url or even the
Original message
From: Julio Nobrega Trabalhando [EMAIL PROTECTED]
Date: Thu, Aug 30, 2001 at 12:56:38PM -0300
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] Delete files older than X seconds.
Hi All,
Another doubt. How can I delete files older than X seconds from a given
folder?
At
Hei all.
I've got this string, $string = test; and I want to make a $t; out of
$string.
Is this possible?
I tried ${substr($string, 0, 1)}, but that didn't work ;)
Any help appreciated.
TIA.
--
Stig-Ørjan Smelror
Systemutvikler
Linux Communications AS
Sandakerveien 48b
Box 1801 - Vika
Hi,
I'm using the following code:
for ($i = 0; $i 100; $i++) {
$k = (int) microtime();
echo br$k;
for ($j = 0; $j 1; $j++)
$m = $j *3;
}
but it prints me only 0..
Where can be problem ?
Thanks,
Rosen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Original message
From: John Meyer [EMAIL PROTECTED]
Date: Thu, Aug 30, 2001 at 03:49:57PM -0700
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] Is there anything in here that could be considered a parse error?
1 if (empty($DidSurvey[$p_surveyid])) {
2 if (is_array($p_answers)){
3
You are casting microtimes results as an integer value. It isn't an integer
value, hence the 0.
From the manual It returns the string the string msec sec where sec is
the current time measured in the number of seconds since the Unix Epoch
(0:00:00 January 1, 1970 GMT), and msec is the
I can only speak for apache...
== apachectl graceful
Raphael Pirker wrote:
Hi,
i just moved my PHP project from my local PC to the online webserver and I
will need to do a few adjustments to the server. since the server is used by
all the employees in the company, there is no chance I
?php
$a=123 456;
echo (int)$a;
$b=(int) $a;
echo br;
echo $b;
?
Produces :
123
123
So I don't think that the problem is how PHP makes the casting but the algorithm is
useless. Do that :
$ar=explode(' ',microtime());
$a=$ar[1]+$ar[0];
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
string microtime(void);
you see? you're casting from a string to int by your code:
(int) microtime();
you can do: $k = microtime() w/o the (int)
Rosen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I'm using the following code:
for ($i = 0; $i 100;
It also depends on the font!
it might be a fixed font or not a fixed font!
Don Read [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On 30-Aug-2001 John Meyer wrote:
Is there anyway to determine the pixel width of a string?
$font=2;
I'm sorry I have to ask these stuff, but I havent found anything like
this in the manual.
I am running win98 with properly insalled xitami web server with php
support (I ran installshield). Any way, I cant figure out hov to make
a smple program with echo command, because I don't know where to
If you choose to install Apache/PHP and perhaps even mySQL and you want to
avoid downloading each individually, then configuring them to work together.
You can download at straight-forward easy installation distribution that
includes all three. Check out Nu-Sphere, and download one of their free
Hi,
The problem is, thath I want to generate random number between 1 and 1
How can I do it ?
Thanks,
Rosen
Lawrence Sheed [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]
...
You are casting microtimes results as an integer value. It isn't an
integer
value,
On 31-Aug-2001 _lallous wrote:
It also depends on the font!
it might be a fixed font or not a fixed font!
True, but the five installed GD fonts are fixed cell fonts.
Don Read [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On 30-Aug-2001 John Meyer
Hi Nikola,
You need to add your PHP code to your HTML. I'm sure Dreamweaver allows you
to edit the HTML directly, but I don't know how I'm afraid. To check
everything's up and running, open Notepad (should be under
StartProgramsAccessories) and paste this in:
---start---
html
head
titleTest
Hi all.
I have this variable cn$
which sometimes is in base64 format and sometimes it isnt.
This is how the script looks like. It will get bigger but this is one of the problem i
have to get threw first.
If you wonder why i dont use the built in ldap function in PHP i just can tell you
that i
In article 67DF9B67CEFAD4119E4200D0B720FA3F70FCBC@BOOTROS,
[EMAIL PROTECTED] (Jon Haworth) wrote:
You need to add your PHP code to your HTML. I'm sure Dreamweaver allows you
to edit the HTML directly, but I don't know how I'm afraid.
Yep, just use DW's HTML Source view (or open in Homesite)
hi to all,
i have a long string (about 255 characters) and i would like to show only 10. how
can i do it?
thanks in advance,
marcos
hi,
i'm awared that this is not exactly the correct forum for these
questions. please humor me this one time:
1) can anyone refer me please to a public, postable MySQL newsgroup?
i've found a few MySQL newsgroups, but none of them allows posting. it
would be great if you could also tell
Hi Marcos,
use substr();
http://www.php.net/manual/en/function.substr.php
$string = substr($string, 0, 10);
James
Marcos Lloret [EMAIL PROTECTED] wrote in message
019701c131f1$f57bdfa0$371c94c1@mlloret">news:019701c131f1$f57bdfa0$371c94c1@mlloret...
hi to all,
i have a long string
$string=abcdefghijklmnopqrstuvxyz
$string = substr($string, 0, 10);
Thats all there is to it.
-Original Message-
From: Marcos Lloret [mailto:[EMAIL PROTECTED]]
Sent: den 31 augusti 2001 09:53
To: [EMAIL PROTECTED]
Subject: [PHP] just 10 characters from a string
hi to all,
i have
HEllo,
Did anybody have a luck with a good Chat Program.?
Thanks,
Mehmet.
=
Mehmet Erisen
http://www.erisen.com
__
Do You Yahoo!?
Get email alerts NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
--
PHP General
how to insert the new key/value pair into assiosiative array in php.
TIA,
Kiat Kin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
1) can anyone refer me please to a public, postable MySQL newsgroup?
i've found a few MySQL newsgroups, but none of them allows posting. it
would be great if you could also tell me the name of the (public)
newsgroup server hosting the group.
Not sure, but a hunt around on
Original message
From: Marcos Lloret [EMAIL PROTECTED]
Date: Fri, Aug 31, 2001 at 09:53:01AM +0200
Message-ID: 019701c131f1$f57bdfa0$371c94c1@mlloret
Subject: [PHP] just 10 characters from a string
hi to all,
i have a long string (about 255 characters) and i would like to show only 10.
$ar_name[$new_key]=$value;
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: Kiat Kin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 31, 2001 12:35 PM
Subject: [PHP] assosiative array in php
how to insert the new
i'm awared that this is not exactly the correct forum for these
questions. please humor me this one time:
Hmmm.
if you don't know of a newsgroup, how about a good (digest-capable)
mailing list? i've tried the MySQL general mailing list, but they don't
offer a 'digest' option and i can't
Hi all,
I am still failing to fix this problem with headers. I receive the following
error:
Warning: Cannot add header information - headers already sent by (output
started at c:\apache\apache\htdocs\client-secure.php:11) in
c:\apache\apache\htdocs\client-secure.php on line 18
Which would
Sondra Russell [EMAIL PROTECTED] wrote in message
news:p05100303b7b4263f844e@[212.43.200.227]...
Hello everyone!
Crazy question:
I've created a little script that reads in .txt files and, with the
help of phplib templates, matches them up with a collection of
templates and spits out the
Hello,
can anybody suggest me where could i get a script to convert a integer value to a
phrase.
for eg. 135 to One Hundred And Thirty Five
thanks in advance.
carry
--
Get real
On Fri, 31 Aug 2001, Nic Skitt wrote:
Warning: Cannot add header information - headers already sent by (output
started at c:\apache\apache\htdocs\client-secure.php:11) in
c:\apache\apache\htdocs\client-secure.php on line 18
Which would indicate that the line 11 is sending output to the
Hello!
I have a question regarding sessions when
register_globals = off
in php.ini
Using the example from www.php.net:
?
session_register(count);
$HTTP_SESSION_VARS[count]++;
?
This works well when
session.save_handler = files
However, when
session.save_handler = user
where the
A colegue of mine said to me a month ago that in the routines on phpbuilder.com there
are one or few bugs. Look at the code. The
problem is in session handlers.
Hope this will help you.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
Chris,
Thanks, Andrey pointed me in the right direction. It was the error output
that was causing the headers to be sent ergo more errors :-P
Cheers
Nic
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Original message
From: Carry Ian [EMAIL PROTECTED]
Date: Fri, Aug 31, 2001 at 12:36:20PM +0200
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] number to word converter
Hello,
can anybody suggest me where could i get a script to convert a integer value to a
phrase.
for eg. 135 to One Hundred
Original message
From: * RzE: [EMAIL PROTECTED]
Date: Fri, Aug 31, 2001 at 02:03:06PM +0200
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] number to word converter
Oh... btw... It works uptil 99. So you can convert everything
between 1 and 99. Zero (0) cannot be converted (stupid but
Is there a way to force re-authentication without closing and re-opening the
browser.
Thanks
Boris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL
On Thu, 30 Aug 2001, Rasmus Lerdorf wrote:
Just do a putenv() from PHP?
We've tried doing that - that's how c-client normally wants to learn about
the krb4 ticket file (with the KRBTKFILE variable).
But... something is caching the KRBTKFILE value in appropriately, and it's
not getting reset
Just restart the web server -- IIS or Apache
Miles
At 02:06 PM 8/31/01 +0800, Raphael Pirker wrote:
Hi,
i just moved my PHP project from my local PC to the online webserver and I
will need to do a few adjustments to the server. since the server is used by
all the employees in the company,
Greetungs.
Is it possible to use data collected in a form ON THE SAME PAGE without
using the form's submit button? In other words, if a text field is filled
in, can I capture (via PHP or other means) the info typed there and display
it elsewhere on the same page?
I realize the answer may very
Original message
From: webmaster [EMAIL PROTECTED]
Date: Fri, Aug 31, 2001 at 07:46:41AM -0500
Message-ID: 003001c1321a$fb84afc0$[EMAIL PROTECTED]
Subject: [PHP] form data used on the same page?
Greetungs.
Is it possible to use data collected in a form ON THE SAME PAGE without
using the
I've got a website, we'll call it MainDomain.com.
I created a specialty site in a sub-directory. We'll call the
sub-directory Widgets.
I want a different domain to point to that sub directory. We'll call the
new domain WidgetWorld.com
My webhost will allow me to park WidgetWorld.com at
This is a one-time mailing only. You are receiving this message because you recently
submitted to one of our websites -- this is simply an attempt to update our files by
verifying your email address [EMAIL PROTECTED] at 206.43.192.76
Hello,
Zeev Suraski wrote:
At 01:40 31-08-01, Manuel Lemos wrote:
Whoever hears you may even believe that Microsoft products and
supporting sites are successful because they don't have flaws. Sorry,
but honestely this sounds like an excuse for not doing it.
Microsoft chooses which sites
Thanks Jack
arcad.
Jack Dempsey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
you have to use $GLOBALS[SCRIPT_FILENAME]
jack
Arcadius A. wrote:
Hello !
Why this script prints an empty string(it prints nothing) as the
value of
the variable u
You have to move or delete your file so it have not te be in the /tmp after your
script finishes or /tmp will get crowdy.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: --- [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday,
Hi,
I thought as much.. And no, dont want to use frames.. Id rather just have the
URL shown in the Location Field..
I do realise, there is no real way to ever hide the URL, however, I just dint
want to make it too obvious for the users to bookmark or pass around to people
who are not authorized
Original message
From: Ashwin Kutty [EMAIL PROTECTED]
Date: Fri, Aug 31, 2001 at 10:44:04AM -0300
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] header() + link..
Hi,
I thought as much.. And no, dont want to use frames.. Id rather just have the
URL shown in the Location Field..
I do
This line in my code :
imageCopy($im,$source,10,10,0,0,$this-width,$this-height);
Give me a segmentation fault in apache :
[Fri Aug 31 13:58:43 2001] [notice] child pid 4158 exit signal Segmentation
fault (11)
If I replace this fonction by
Won't sending a 401 header do the trick?
?php
header(WWW-Authenticate: Basic realm='my realm');
header(HTTP/1.0 401 Unauthorized);
?
Not sure, but worth a try.
Cheers
Jon
-Original Message-
From: Boris [mailto:[EMAIL PROTECTED]]
Sent: 31 August 2001 13:08
To: [EMAIL PROTECTED]
Sorry for my ignorance.
I just saw some PHP syntax that I am not aware of. Could someone please shed
some light on this.
What is the purpose of the @ in the following call to the PHP mail method?
@mail( /* some parameters */ );
If I remove the @, then php compiler complains.
Thank you in
The @ suppresses any warning/error messages that are produced - hence the
complaints when it's taken out :-)
Cheers
Jon
-Original Message-
From: Erols [mailto:[EMAIL PROTECTED]]
Sent: 31 August 2001 01:06
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Syntax question.
Sorry for my
Php'ers:
These are great points that have been brought up (a kinda synopsis, since we
are repeating here :)
synopsis
1) some want direct marketing
2) Some believe the status quo is enough
3) all agreee php is useful as a web development tool/language
4) some agree that it can/should be more
I have a form that reads in a couple variables via:
input type=textbox name=bob1
input type=textbox name=bob2
input type=textbox name=bob3
input type=textbox name=bob4
Now... I want to read in those variables in something like the following:
for($i=1;$i4;$i++) {
echo $bob$i;
}
BUT that
Original message
From: Ninety-Nine Ways To Die [EMAIL PROTECTED]
Date: Fri, Aug 31, 2001 at 10:28:56AM -0400
Message-ID: [EMAIL PROTECTED]
Subject: [PHP] Variable Syntax Question
I have a form that reads in a couple variables via:
input type=textbox name=bob1
input type=textbox name=bob2
Original message
From: * RzE: [EMAIL PROTECTED]
Date: Fri, Aug 31, 2001 at 04:36:36PM +0200
Message-ID: [EMAIL PROTECTED]
Subject: Re: [PHP] Variable Syntax Question
Btw... Why not just use an array?
input type=text name=bob[]
input type=text name=bob[]
input type=text name=bob[]
input
On Thu, 30 Aug 2001 17:06:38 -0500, [EMAIL PROTECTED] (Gary)
wrote:
Can someone tell me why I am getting an error for the second line below.
It works locally but not live.
?php
$filename = www/name/test/free.txt
missing semicolon there.
tiger
--
PHP General Mailing
I am looking for a good, practical tutorial on what I should be doing as a
developer to create a secure web site (PHP related). I have looked in my PHP
text and searched the web, but haven't found anything real useful. I am not
interested in Apache or OS security, as this is -hopefully- taken
Actually this originally started (If you're referring to the thread itself)
with my question as to what to tell my JSP-loving buddy that PHP isn't an
antiquated and dying language/processing system.
I NEVER would have thought it was balloon into this conversation!
On 8/31/2001 10:29 AM this was
So sprach »Arcadius A.« am 2001-08-31 um 05:27:04 -0700 :
$u = $SCRIPT_FILENAME;
Because you did not define $SCRIPT_FILENAME anywhere. If you want to
access the global variable, you've got to say so:
global $SCRIPT_FILENAME;
Alexander Skwar
--
How to quote: http://learn.to/quote (german)
So sprach »Arcadius A.« am 2001-08-31 um 05:27:04 -0700 :
$u = $SCRIPT_FILENAME;
Because you did not define $SCRIPT_FILENAME anywhere. If you want to
access the global variable, you've got to say so:
global $SCRIPT_FILENAME;
Or, so you don't have to specify all the variables you are
From: Robin Bolton [EMAIL PROTECTED]
Also, if you are considering using JavaScript to validate your form, you
may
want to reconsider doing it in PHP as JavaScript is easy to circumvent.
I think most if not all of us doing industrial-strength Web programming for
our living end up doing it at
So sprach »Boget, Chris« am 2001-08-31 um 10:04:49 -0500 :
Or, so you don't have to specify all the variables you are using
as globals (especially if you are using *alot* of them), you can
use:
$GLOBALS[SCRIPT_FILENAME];
What's the gain? 'global ' has 7 characters, whereas '$GLOBALS[]'
Does anyone know how to share cookies between servers.
What I want to do is set a cookies on non secure server for a
secure server.
Here is
setcookie(SessionID,$sessid,time() + 7200,https://domainname.com;);
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Or, so you don't have to specify all the variables you are using
as globals (especially if you are using *alot* of them), you can
use:
$GLOBALS[SCRIPT_FILENAME];
What's the gain? 'global ' has 7 characters, whereas '$GLOBALS[]' has
10 characters. So, you don't type less. And with
RE: [PHP] PHP_SELF or REQUEST_URI within Function ?Ok Men !!!. Now I see
thanks alot for the inputs ! :o))
Arcad
- Original Message -
From: Boget, Chris
To: 'Alexander Skwar'
Cc: Arcadius A. ; [EMAIL PROTECTED]
Sent: Friday, August 31, 2001 8:22 AM
Subject:
So sprach »Boget, Chris« am 2001-08-31 um 10:22:28 -0500 :
True. But take the following function:
function processLotsOfFormVars() {
global $fieldOne, $fieldTwo, $fieldThree, $fieldFour;
global $fieldFive, $fieldSix, $fieldSeven;
global $PHP_SELF, $REQUEST_URI;
global
Does anyone know of a way to go directly from a PHP/MySQL application to
having a fax sent out??? I am trying to set up my application so that when a
transaction is completed. Both parties receive a fax. Anyone done anything
like this?
Thanks,
Ari Nepon
--
PHP General Mailing List
You can't set a cookie for a different domain or subdomain. If you set a
cookie for a domain and then goto to SSL then the cookie will still be
presented.
Regards
Jon
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07968 524175
PGP Key available, send blank email to
use exec() to call fax program on Linux.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: Ari Nepon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 31, 2001 6:25 PM
Subject: [PHP] PHP to fax
Does anyone know of a
One of the downside of PHP IMHO is, that you do not have to define
variables. This leads to a lot of errors. At least there should be a
option, which forces you to define variables, like maybe so:
dim $some_var;
I definitely agree there. I've been bitten by this bug more times
than
Ignore my previous post it is incorrect
Sorry
Jon
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07968 524175
PGP Key available, send blank email to [EMAIL PROTECTED]
- Original Message -
From: Jon Farmer [EMAIL PROTECTED]
To: Jason Radley [EMAIL
Cool ...
Now that we're talking about PHP
I'd like to ask a question
You know the overloading function in C++ Is that possible in PHP ?
Basically , I'd like to define more than one function having the same name
but different number of variables/parameters ... so PHP would know
We have installed PHP4.06 manually to use it with IIS 5 on win2000server
We did everything the installation guide told us to do.
We uncommented some options in php.ini including
extension=php_oci8.dll
Afer we stopped and started the Web server every dll was loaded except
php_oci.dll
unable
Apparently I caused some agitation with my reply to Eric.
I want to be clear so that everyone knows.
I apologies for my reply and I will not be sending anymore OOAR to the list.
Once again, I apologize.
Phil Labonte
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Cool ...
Now that we're talking about PHP
I'd like to ask a question
You know the overloading function in C++ Is that
possible in PHP ?
No, I do not believe so.
Basically , I'd like to define more than one function having
the same name but different number of
One of the downside of PHP IMHO is, that you do not have to define
variables. This leads to a lot of errors. At least there should be a
option, which forces you to define variables, like maybe so:
I've not followed this thread but this is pretty much what E_NOTICE is
for, turn it on in
Hi Ari,
If you are using Linux (if not you should! really) You can use lprfax
which will let you use 'lpr -Pfax -Jnumber or name', mgetty-fax, efax
or something like that. If you use one of those programs dump the
information to file and use exec() from PHP.
Sean C. McCarthy
looks bright.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Ok .I see Thanks to you both !
Have a nice weekend
Arcad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I have an array of names, like below...
$people = array(Jim,John,JP);
Is there a way in an IF statement to see if someone's name is in the array?
Like...
if ($people =~ $person) { }
I don't want to have to create a foreach loop to go through the array to see
if that person is there.
Joseph
Great question - I'd love to know too.
I can give you one hint. Make sure that you validate any variables passed
in the url. I had a script that should take an integer, and realised if
someone put in a fraction or text then the script output errors to the html
page showing file and directory
from http://php.net/quickref.php
$os = array (Mac, NT, Irix, Linux);
if (in_array (Irix, $os)){
print Got Irix;
}
Andrey HristovIcyGEN Corporationhttp://www.icygen.comBALANCED SOLUTIONS
- Original Message -
From: Joseph Bannon [EMAIL PROTECTED]
To: PHP (E-mail) [EMAIL
Is there any way to see whether or not the cookie setting has actually
worked without going to another page? I suspect there isn't but I'd like
confirmation ;)
Cheers
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Thanks for the tip. This is what I am talking about. Even with an error like
the one you mention below, preferably the page should die nicely and not
output a bunch of secret info or other stuff to the client. I am generally
careful to prevent that from happening in all my dealings with my mySQL
?php
$alertthem = Testing your browser for cookies.;
if(empty($check)){
$page = $PHP_SELF?check=1;
header(Location: $page);
setcookie(testcookie,1);
}
else{
if(empty($testcookie)){
$alertthem = H3Please enable cookies.brYou need cookies to shop
just to add some info. rememember this is case sensitive and spaces do
matter, sometimes (depending on your goals) the following will apply :
$good_names = array('jim','philip','sasheen');
$my_name= 'PHiliP';
if (in_array(trim(strtolower($my_name)),$good_names))
and, another good
I can't cope the fact that I loose my variables every time I reload the
page. If someone could point me to the right direction, I'd be grateful.
Present problem:
I have a script that has some globals (surprise). Within this script,
pretty deep in a function call tree, a function saves a query
Joseph,
The below postings are what you're looking for. Hopefully the in_array PHP
function uses a smart search algorithm and doesn't go through the entire
array. If you store your values in a db you can make use of an index on the
column, or you could write your own search algorithm that uses a
So sprach »Arcadius A.« am 2001-08-31 um 17:36:51 -0700 :
Would this work ?
Kinda, but not really.
If you want to do this, you've got to stuff it all in one function, like
so:
function dunno($mandatory, $optional1 = NULL, $opt2 = NULL){
if (NULL === $optional1){
//
So sprach »Marcos Lloret« am 2001-08-31 um 09:53:01 +0200 :
i have a long string (about 255 characters) and i would like to show only 10.
how can i do it?
substr
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:
synopsis
1) some want direct marketing
2) Some believe the status quo is enough
3) all agreee php is useful as a web development tool/language
...
Did you open source your thread filter program? :)
Good job anyway. For me the most important point is that
the developer/maintainer of the
I am having big troubles here. I wrote this code just as it said in the manual, and
it prints
{$beer}'s taste is great;?
html
head
titlePHP Test/title
/head
body
?php
$beer = 'Heineken';
echo h1{$beer}'s taste is great/h1;
?
/body
/html
and if I don't put string into h1 it prints nothing !
All you should need to do is echo H1$beer's taste is great/H1;
don't use the braces.
-Jbell
- Original Message -
From: Nikola Veber [EMAIL PROTECTED]
To: php forum [EMAIL PROTECTED]
Sent: Friday, August 31, 2001 9:38 AM
Subject: [PHP] help again
I am having big troubles here. I wrote
echo sends a literal string to the output and eventually evaluates variables
that are found inside, so it seems that your instruction should be:
echo h1{$beer}'s taste is great/h1;
Why it worked with h1 outside, I guess because it was closing some former
tag in your code or something like
Sounds like you want to do :
$guiness = 'Thick and Creamy!';
$beer= 'guiness';
print ${$beer}; // Thick and Creamy!
Regards,
Philip Olson
On Fri, 31 Aug 2001, Nikola Veber wrote:
I am having big troubles here. I wrote this code just as it said in the manual, and
it prints
I think with everyone replying to The future of PHP e-mails and putting in
their two cents, we're eventually going to raise that $100,000 in no time.
g
Yeah.. not to mention the time it takes to read or just download those
messages.
I stopped counting and started hitting the delete button.
Tim Ward wrote:
Be careful using values of submit buttons ... if the user hits return
instead of clicking one of the buttons you won't get anything. If you want a
default value try a hidden field before the submits with same name.
Tim, thanks for the tip. I had heard of this behavior before,
1 - 100 of 171 matches
Mail list logo