Hi Guys,
How do you reference both a named anchor and a query string in a link? i.e.
link text I am not sure if this is
even possible?
thanks
Scott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi.
Don't forget to increment j :
> //loop to check for bad email addresses:
> $j = 0;
> $flag = 0;
> while ($j < count($User)){
> if
> (($User[$j]!="")&&!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$",
> $User[$j]))
> {
> $flag = 1;
> $errorNo = $j + 1;
> }
>$j
Dear PHPmania,
I am new to PHP and I start to write some script.
$folder = USER_ENV(ID_user);
// echo $folder;
$destination = "/home/gilijk/data/".$folder;
// echo $destination;
if ($filename1!="none") {
copy($filename1,$destination."/".$filename1_name);
echo "$filename1_name telah
Hallo all,
might be a bit OT but nevertheless quite important.
See http://lwn.net/daily/#t33
--
Wolfgang Ebneter M.Sc. Data Engineering
Medienzentrum Osnabrück
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
Caleb Carvalho wrote:
> $sybase_query="INSERT into problem
> VALUES('$product','$pro_title','$description','$solution')";
> $sybase_result=sybase_query($sybase_query);
>
Hi try this :
$sybase_query=quoted_printable_decode("INSERT into problem
VALUES('$product','$pro_title','$description'
Yes Devin, mySQL is fast enough, but it is not *really* a database.
There are many reasons why some say mySQL is rather close to a file
system with SQL interface than to a DBMS. If you really care about how
robust and efficient your database is then you should look into
PostgreSQL which by many
I always using session together with header() and never got a
problem. Here's something might be a hint to you:
http://...";
// in the "new location"
?>
Alex
- Original Message -
From: "sagar N Chand" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 9:5
Awesome... Works perfectly!!
Thanks for your help!
__
Jason Dulberg
Extreme MTB
http://extreme.nas.net
> -Original Message-
> From: Maxim Maletsky (PHPBeginner.com)
> [mailto:[EMAIL PROTECTED]]
> Sent: October 2, 2001 1:03 AM
> To: 'Jason Dulberg'; [EMAIL PROTECTED]
> Su
... DESC LIMIT 1,1
As you wrote yourself.
Sorry, haven't taken in consideration ;-)
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Jason Dulberg [mailto:[EMAIL PROTECTED]]
Sent: martedì 2 ottobre 2001 6.59
To: Maxim Maletsky (PHPBeginner.com); [EMAIL PROTECTED]
Subjec
Thank you for your lightning fast response!!
I tried your query but it appears to be coming up with the current id rather
than the users last login.
__
Jason Dulberg
Extreme MTB
http://extreme.nas.net
> -Original Message-
> From: Maxim Maletsky (PHPBeginner.com)
> [mai
Hi,
Well probably because you've got that automatic
PHPSESSID thing carryover in your php.ini which
through your situation indicates that it doesn't work
in a header() so either you'll put cookies on, or use PHPSESSID.
=
*
Know more about me:
http://www.geocit
Hi,
Well take a look at a library I've implemented in PHP
:
http://www.paphe.com/php/scripts/authlib.html
P.S - PHP is way faster, and ofcourse much more
elegant than ASP, however it's a matter of personal preference.
=
*
Know more about me:
http://www.geoci
Hi,
The reason probably is that you're limiting from the
2nd row, instead of the first, 0 is the row starting
point (I think).
So :
$sql="select id,agent,host, DATE_FORMAT(time_in, '%M
%d, %Y, %l:%i') AS
unixdate from logged_in WHERE userid='$current_user'
ORDER BY id DESC LIMIT 0, 1";
=
*
Ì컥¿Æ¼¼Â¡ÖØÍƳöÊ®ÔÂÆóÒµ½¨Õ¾´óÓÅ»ÝÌײͣ¬¼Û¸ñ¿Õǰʵ»Ý£¬ÈÃÄúÇáËɽøÈëÍøÂçÉÌÎñÁìÓò¡£Á¼»ú²»¿É´í¹ý!
¡î»ù±¾´óÀñ°ü£¬Á¢¼´½ÚÊ¡60Ôª!
»ù±¾ÐͿռä+¹ú¼ÊÓòÃû 350Ôª/Äê
×î¾¼ÃµÄÆóÒµ½¨Õ¾·½°¸!
ÈÎÑ¡¹ú¼ÊÓòÃû£¬ÈÎѡһÖÖ»ù±¾ÐͿռä(ASP¡¢PHP¡¢JSP)
ËÍ5¸öPOPÆóÒµÓÊÏä¡£
¡îÔöÇ¿´óÀñ°ü£¬Á¢¼´½ÚÊ¡100Ôª!
ʵÓÃÐÍÆóÒµ½¨Õ¾·½°¸
>From http://www.namo.com/products/we4/info/features/we4_sitewiz.html
"Do you still think you have to learn about HTML tags, JavaScript, and
Photoshop? Do you still think you have to buy all those expensive and
hard-to-learn programs? Namo WebEditor 4 comes with Site Wizard that
helps you create
What about this:
$sql="select id,agent,host, DATE_FORMAT(time_in, '%M %d, %Y, %l:%i') AS
unixdate from logged_in WHERE userid='$current_user' ORDER BY id DESC
LIMIT 1";
I think this should work for your case.
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Jason Dulber
i realize a solution using strspn/strcspn was offered, but you asked for
eregi :)
anyway, i use ereg, but i think this should work
eregi("^[a-z0-9_\-]+$",$string)
notice that i had to escape the dash with a backslash
the plus sign forces atleast one character. you can use {x,y} in place of
the
This is kindof a weird question so bear with me as I try to explain.
I have a session table that gets updated when a user logs in/out. If they
don't logout, some info is left unchanged. I have a cron script that takes
care of the stray sessions so that's all good. In the sessions table,
there's a
by searching google, perhaps
Maxim Maletsky
www.PHPBeginner.com
-Original Message-
From: Justin Rodino [mailto:[EMAIL PROTECTED]]
Sent: martedi 2 ottobre 2001 5.30
To: Petras Virzintas
Cc: PHP General List
Subject: Re: [PHP] Namo Web Editor
Where does one find this "Namo Web Editor"
sure
On Tue, 2 Oct 2001, Devin Pittman wrote:
> I would like to begin coding a online website creation tool for clients of
> my small web design firm, and I'd like to use MySQL for the backend. I only
> have one question - is MySQL fast enough and robust enough to handle large
> amounts of data?
I would like to begin coding a online website creation tool for clients of
my small web design firm, and I'd like to use MySQL for the backend. I only
have one question - is MySQL fast enough and robust enough to handle large
amounts of data? For example entire pages of text, etc.
Thanks for any
Thanks guys, that's just what I wanted to hear.and so quick too!
> From: [EMAIL PROTECTED] (Lawrence Sheed)
> Newsgroups: php.general
> Date: Mon, 1 Oct 2001 22:40:29 -0400
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: RE: [PHP] Simple Question, I think
>
> Simple to do it in php, bu
Where does one find this "Namo Web Editor"?
===
Justin
Network Engineer/Systems Analyst
Interlink Companies
On Tue, 2 Oct 2001, Petras Virzintas wrote:
> Date: Tue, 2 Oct 2001 11:35:51 +1000
> From: Petras Virzintas <[EMAIL PROTECTED]>
> To: PHP General List <[EMAIL PROTECTED]>
> Subject: [
Hi, does anyone here know how to correctly configure php.ini to be able to
use browscap.ini in linux so that I can get the get_browser() function to
work properly, I need it because I'm building a statlog from scratch for my
web site.
Any help will be apreciated.
Iván
P.S. Sorry about my spelli
Hi,
Well I'm not totally sure, why socket_get_status would
not give you the correct value, other than a bug, as
the manual does indicate the socket functions are
experimental.
There are altenative ways to get the number of bytes
in the buffer, like using ioctl with FIONREAD,
ofcourse that is a C
Still not working ...
Here is some output that shows the session is being registered and the ID is
the same between pages ... but the var $user gets lost.
LOGIN PAGE
---
userid h:
session_name(): PHPSESSID
Session ID: f227e539d7b9b8db2c2a2b63dc79c6e2
Session name: PHPSESSID
after succe
Can someone explain this to me? I am not very confused after reading this
post ...
>are you sure you have session_start() on all three pages and you have
>enabled 'track_vars'???
I have done no such thing. The PHP book I have doesn't mention any of this.
It simply says that using session_star
Simple to do it in php, but i would think its better done in apache using
virtual host configuration.
do a google search for virtual host apache
-Original Message-
From: Ratfish [mailto:[EMAIL PROTECTED]]
Sent: October 2, 2001 10:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Simple Quest
Perhaps check the URL and direct as such using header();. Use phpinfo(); to
find what var holds the current URL.
- k
- Original Message -
From: "Ratfish" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 10:25 PM
Subject: [PHP] Simple Question, I think
> All
HELLO,
I am finished working with the html and css levels and want to take my
design to the next level. I realize that JS is getting outdated and many new
technologies have started popping up. I do want a database driven site. I am
running Windows and have both the 98 and 2000 versions. There's o
Nope.
Still doesn't work.
I still have to do a refresh on the page manually...
Any other ideas?
Thanks,
Brad
-Original Message-
From: Wayne K [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 2 October 2001 11:38 AM
To: Bradley Goldsmith
Subject: Re: Sessions, sessions, sessions...
registe
All I want to do is what an ASP page I have is doing.
I just want to host multiple sites with one page like the one in the article
below until I can get my head around the real way of doing it.
http://www.zdnet.com/devhead/stories/articles/0,4413,2418330,00.html
Surely there is a PHP equivalent
hi all,
i'm using a php4.0.6 with apache on win2k. when i register a session and immediately
if i redirect to another
page the session seems not to be registered. eg.
when i go to the new page i c that the session has not been reigstered.
but in case if i dont redirect from php rather use a h
Hi, apparently the Namo Web Editor has a PHP generator together with a MySQL
interface. Is this truly an alternative to products such as PhpEd? Has anyone used it
for production applications? Any other useful comments?
Petras
are you sure you have session_start() on all three pages and you have
enabled 'track_vars'???
cuz if you don't you'll have to manually pass the session id trought the
form...
At 07:50 1/10/2001 +, Jean-Christian Imbeault wrote:
>Ok, newbie I am but ... I seem to be losing my session vars wh
I had the same problem... chmod doesn't work in Windows...
I'm using win2000 server... to make uploads possible you have to set
permissions to the users: IUSR_COMPUTERNAME and IWAM_COMPUTERNAME, set them
both to FULL and test...
At 15:54 1/10/2001 -0500, Joseph Koenig wrote:
>The script is mov
Hi,
I am using php4 (great) under win32 apache (not so great) ...
I am trying to regsiter two session variables. When the page is
first displayed, the variables are registered thus:
session_register("Sheet");
$HTTP_SESSION_VARS["Sheet"]=serialize($Sheet);
Hello folks,
Today, I found a very powerful editor, called TextPad. I said it is
'powerful'
because it can recognize syntax of php, html, java, css and also many
many more great featuresmuch better that Windows Notepad. You can
download and try. You need to take a few minutes to explore i
Nope, still no go. Removing the single quotes stops PHP from updating the
fields with $set's literal "$fieldname", but still doesn't update the record
with the value (or anything).
===
CODE
===
if ($submit) {
// if there is an ID, then it's an update
if ($id) {
| The result: PHP updates the values of lang, record, date, what (etc.) to
| [LITERALLY] $lang, $record, $date, etc--NOT the values of those fields
| submitted by the form. I'm kinda lost as to what to do... Any
| suggestions??
Ow yea, little mistake of mine, sorry.
I think removing the single
Thankyou...
I should have made it clearer that I did want to use only the legal
characters to compare the string by.
Tim
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Well, either you need to know the valid chars or the invalid ones. Make
php is serverside, PHP_AUTH_USER is set by the client, therfore when you
unset() the serverside instance of PHP_AUTH_USER the client doesnt know
about this and keeps sending the username/pass. the only way I know of is to
re-send the http auth headers and change the domain. this works for me.
Hi all, please help me with this problem i'm desperate...
I have a problem with form submits.
I have an access control form that my users fill to enter to a private
web page, this access page saves 2 session variables and shows the
result page that it's an php page with several queries to s
Well, either you need to know the valid chars or the invalid ones. Make
up your mind and use strspn() or strcspn() appropriately.
-Rasmus
On Mon, 1 Oct 2001, Tim Ballantine wrote:
> "Returns the length of the initial segment of str1 which does not contain
> any of the characters in str2."
>
>
"Returns the length of the initial segment of str1 which does not contain
any of the characters in str2."
I realise that i could see if this matches with the length of the entire
word, and is there a way to get it to compare the word by the legal
characters, because the amount of illegal symbols,
$PHP_AUTH_USER is filled in based on the value coming from the browser.
unsetting it in PHP makes no sense as the browser is simply going to set
it again on the next request. There is no way to clear this from the
client-side short of changing the realm or denying the authentication with
a 403.
Huh? You better read that documentation page again. You only need to
list the illegal symbols. And what do you mean by length?
-Rasmus
On Mon, 1 Oct 2001, Tim Ballantine wrote:
> Is there anything which doesnt use length? And something like eregi, because
> it would be infeasible to list all
Hi all,
I have a problem with form submits.
I have an access control form that my users fill to enter to a private
web page, this access page saves 2 session variables and shows the
result page that it's an php page with several queries to several
tables. Well, when i submit my access control f
I used a pretty basic system to check HTTP authentication values against
database values, but I can't seem to find a way to allow the user to log
out. I tried:
unset($PHP_AUTH_USER)
but Internet Explorer hangs on to that value until all browser windows are
closed. Is there any way around that?
Is there anything which doesnt use length? And something like eregi, because
it would be infeasible to list all of the symbols that a user could use, to
compare a string by.
Tim
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> See php.net/strcs
See php.net/strcspn
On Mon, 1 Oct 2001, Tim Ballantine wrote:
> Hello,
>
> Could anyone tell me how to eregi a word, to see if it only contains either
> numbers, letters, the "_" and the "-", so that any other symbol with call it
> invalid. For example, theres the word "expressio_n" that will be
Hello,
Could anyone tell me how to eregi a word, to see if it only contains either
numbers, letters, the "_" and the "-", so that any other symbol with call it
invalid. For example, theres the word "expressio_n" that will be valid, but
the word "express%^$-n" will be invalid.
Thankyou,
Tim
-
Something like this might work for you. (Just typed in the code and didn't
test it, so take with a grain of salt. It doesn't really take into account
all types of data, but maybe it will help with an idea.)
Have groups of the following in your form:
column_name1
column_name2
| But here's what I want to do now: I want to use the same two
| lines of code for any possible form data that might be submitted
mysql_list_fields retrieves all field names of $table;
with that you can build your SET-clause for the query.
something like:
$fields = mysql_list_fields($d
I'm having a REALLY hard time with something that's probably easy to do (for
someone :-)...
Normally, to perform an update on a table with data from a submitted form, I
would use something like:
$sql = "UPDATE $table SET pet='$pet', name='$name' WHERE id=$id";
$result = mysql_query($sql);
A
Hi,
Got a big problem with PHP 4.0.6 and PDFLIB 4.0.1.
I got a script which is part of an application i wrote on a linux server
(2.4 kernel) under php 4.0.5, mysql and PDFLIB 3.0.3. This script work
very fine in this configuration.
Today, i need to port the intranet application that use this s
Hi Joe,
I'm not familiar with PHP on Windows myself, but I just checked out the
manual pages to see if it said anything and it sounds like chmod() doesn't
work on windows:
http://www.php.net/manual/en/function.chmod.php
"Note: This function does not work on Windows systems"
ditto for chgrp and
The script is moving the file to its final destination and then doing a
chmod(filename, 0777) (the php function, not through exec() or
anything); Even setting the mode to 0777 doesn't help at all. Am I doing
this completely wrong from IIS/NT? Thanks,
joe
Joe Kaiping wrote:
>
> Sounds like their
Hi,
Exactly what does the unread_bytes parameter of the return of
socket_get_status() mean? I thought it would be the amount of data waiting
to be gotten via fgets() or fread(), but not according to my lil' test
(interactive mode):
bool(false)
["blocked"]=>
bool(true)
["eof"]=>
bool(f
Hi,
Got a big problem with PHP 4.0.6 and PDFLIB 4.0.1.
I got a script which is part of an application i wrote on a linux server
(2.4 kernel) under php 4.0.5, mysql and PDFLIB 3.0.3. This script work
very fine in this configuration.
Today, i need to port the intranet application that use this s
Hi...
If I use the session_start or session_register I'll
never be able to open two sessions in the same
computer in the same time?
regards,
Augusto
___
Yahoo! GeoCities
Tenha seu lugar na Web. Construa
Change the session_name and you can.
On Mon, 1 Oct 2001, [iso-8859-1] Augusto Cesar Castoldi wrote:
> Hi...
>
> If I use the session_start or session_register I'll
> never be able to open two sessions in the same
> computer in the same time?
>
> regards,
>
> Augusto
>
>
>___
In article <584FAB68EB77D511BEF500508BB9191217695D@ATLEXC01>,
[EMAIL PROTECTED] (Howie Oakes) wrote:
> I am working on a secure
> implementation of PHP that will only allow certain functions to be used by
> end users. (But I still want to have full functionality for other scripts,
> so disable_
Hi...
If I use the session_start or session_register I'll
never be able to open two sessions in the same
computer in the same time?
regards,
Augusto
___
Yahoo! GeoCities
Tenha seu lugar na Web. Construa
Hi all,
I have a problem with form submits.
I have an access control form that my users fill to enter to a private
web page, this access page saves 2 session variables and shows the
result page that it's an php page with several queries to several
tables. Well, when i submit my access control fo
Sounds like their upload script isn't setting the correct file permissions
when creating the file. Directory permissions don't seem to be a problem
for you.
-Joe2
> -Original Message-
> From: Joseph Koenig [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 01, 2001 12:38 PM
> To: [EMAIL
Folks,
I am relatively new to PHP & MySQL. I took on a side project some months
ago which I now realize is over my head. The project is a real estate
catalog. I adapted the catalog system from Welling and Thomson's "PHP &
MySQL Web Development" from SAMS.
I really need to wrap this project up
> Thanks for the reply. I am trying to implement PHP in a very secure
> environment. My security department wants our developers to only be able to
> use functions from an approved list. My plan was to scan any PHP files when
> they get saved, get a list of the functions used and compare those to
I've got a script on an NT (IIS 4.0) server that uploads a file. When
the user attempts to replace the uploaded file with a new one via the
form, the script is generating errors.
Warning: Unable to create
'D:/public/HJ/www.h-jenterprises.com/test/pics/catalog/104_2.gif':
Permission denied in
D:\p
Hi Ramsus,
Thanks for the reply. I am trying to implement PHP in a very secure
environment. My security department wants our developers to only be able to
use functions from an approved list. My plan was to scan any PHP files when
they get saved, get a list of the functions used and compare those
Sorry if this is a little off topic.
I was wondering if anyone knew of a simple yet effective CRM package
written in PHP and MySQL. If have seen a couple on hotscriptsw.com
but they are a little outside what I need.
All I need is a package that you can install on a webserver which
would allow v
> I am trying to find a way to scan a php script and list all of the functions
> used in that script. Does anyone know if there is anything out there. (In
> Perl or PHP) I know that Perl has the C::scan module to do this with C code,
> but I have not seen anything for PHP. I am working on a secure
Hello-
I am trying to find a way to scan a php script and list all of the functions
used in that script. Does anyone know if there is anything out there. (In
Perl or PHP) I know that Perl has the C::scan module to do this with C code,
but I have not seen anything for PHP. I am working on a secure
Short answer. http://www.php.net/manual/en/function.flock.php
-Original Message-
From: Kmarada [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 11:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] fopen
is it possible to use fopen to open 5000 files differents simultaneous
and edit
is it possible to use fopen to open 5000 files differents simultaneous and
edit it simultaneous ?
I have one file. if four user edit it simultaneous what happen? there is
something to lock the file until one finish to edit?
I read at manual something like flock how can i use it?
--
PHP Ge
is it possible to use fopen to open 5000 files differents simultaneous and
edit it simultaneous ?
I have one file. if four user edit it simultaneous what happen? there is
something to lock the file until one finish to edit?
I read at manual something like flock how can i use it?
--
PHP Gene
When doing XML/XSL stuff that applies to just about any scripting language
as Java has always been the reference implementation for this. When
leaving the XML space the same is not true. But yes, we have a bit of
catching up to do when it comes to XML/XSL/XSLT.
-Rasmus
On Mon, 1 Oct 2001, Chri
Lectori Salutem,
I have apache 1.3.20 running with php 4.0.6 on an freebsd 4.3 server. It is
a busy server, serving more than 400k PHP-pages daily.
I have a few troubles with it; first Apache is generating large errorlog
files filled with "httpd in free(): warning: recursive call." and "httpd in
Check out this page of SOAP implementations:
http://www.soapware.org/directory/4/implementations
It lists several for PHP, so those may give you a solution.
This is an interesting issue though, especially in light of you bringing up
Tomcat. I don't mean to start a big flame war over languages,
Thanks. That's what I'm doing, and it is working, but it doesn't seem like
it will be very robust, and I don't know if my roll your own will be
compliant with MS SOAP messages and Apache SOAP messages.
I'm reading the Soap:Envelope and Body XML via the $HTTP_RAW_DATA_POST
variable. It comes as a
You could also consider possibly the reverse of what you're doing. I'm not
sure if it would actually work well, nor can I give you real details on how
to do it, but you can always use Java classes from PHP. Depending on how
much SOAP is needed/used across your site, you could continue with PHP f
thank you all, you've been a really good help
I must say i've learned a lot, i will now try and get busy
ps. this php mailing list really works :>)
many thanks
Caleb Carvalho
Application Engineer
CSO Europe
LoadRunner/APM
Hi,
I suggest to you:
var_dump($sybase_query);
It may help you to make wellformed query-string.
- Original Message -
From: Caleb Carvalho <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 11:04 AM
Subject: [PHP] Warning: Sybase message: Incorrect syntax near
hi
don't put an expiry date in the cookie, this way it should expire when the
browser window is closed, just aguess...
regards
At 22:07 30/09/03, Ryan Mahoney wrote:
>When a client date is ahead of my server or incorrect the cookie that php
>uses to maintain the session is expired immediately
Where is the closing brace for your while loop?
-Steve
On Monday, October 1, 2001, at 07:04 AM, Tom Churm wrote:
> hi,
>
> my problem is this: i'm using a while loop to check elements in an
> Array for valid email syntax. if $User[0] is a valid email address but
> $User[1] is not, the code f
> -Original Message-
> From: Caleb Carvalho [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 01, 2001 4:04 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Warning: Sybase message: Incorrect syntax near 't'.
>
>
> Hi am trying to add data from html form, and it seems like
> the line 14
My god does PHP need one. Or a library of functions to use.
Yes, I have built in CURL support and am reading the $HTTP_RAW_DATA_POST
variable and rolling my own as they say, but it sure would be nice. I've
seen Manual Lemos' soap classes, and they are cool, but aren't really what I
need.
PHP i
Thank you so much! This eases my worries for next semester.
Would happen to have an example script showing PHP using recursion?
Thanks again!
Martin wrote:
>Hi Andres,
>
>Yes, PHP support "recoursion". That means, that you are calling a function
>again and again, but with new start-parameters.
Recursion means you call a function which calls itself to get the job done.
Recursive functions have two parts, the base case and the recursive method.
The base case is the goal which signals that your function stops calling
itself...
sort of like the condition in a while loop... but for a functio
echo $PHPSESSID on every page, is it the same on every page ?
I usually recommend that you create the register variables too.
else {
$userid = '';
$userpassword = '';
session_register('userid');
session_register('userpassword');
}
if $PHPSESSID is set then session_start() will find it a
$sql = " select firstname, lastname, address etc from TABLE";
execute sql statement;
while fetching records {
$firstname = stripslashes( $firstname);
$lastname = stripslashes ( $lastname); // "O\' Reily" now becomes "O'
Reily"
}
that's all
- Original Message -
From: "Caleb Ca
thank you s much that was much much better indeed :),
i am assuming that i need to use the same for sql_quey sql_display
is that correct?
Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise T
bonjour ,
Aimeriez-vous survoler pendant 20 mn la Provence en hélicoptère ?
admirer plus de 400 photos et textes inédits ?
tout cela existe maintenant sur un simple CD expédiable au tarif lettre.
pour plus de détails visitez la rubrique CATALOGUE du site :
http://www.lavand
You just add more fields:
$sql = "Insert into TABLE values('$name', $surname, $comments);
that's assuming that the order of the data exactly matches the order of the
fields in the table.
Take the time to work through a couple of MySQL tutorials(assuming that's
what you're using), and have a lo
Use addslashes() to escape single quotes or double quotes. It 's in the
manual
// giving some values
$firstname ="Bob";
$lastname = "O' Reily"; // This could cause an error if not use addslashes
$address = "Somewhere";
$age= 19;
// adding slashes to quotes
$firstname = addslashes($firstname)
Hi Dimitris,
thanks, but what if I have 5 fields to add into ie name,surname,comments?
Caleb Carvalho
Application Engineer
LoadRunner/APM
-
Enterprise Testing and Performance Management Solutions
--
hi, _lallous:
i've tried it with "==" and it still doesn't work: code for the valid
variables is executed before my die() function is called.
thanks, though,
tom
_lallous wrote:
>
> > if ($flag = 1) {
> > die ("Email #$errorNo is not a valid e-mail
>
> should be:
>
> if ($flag == 1) //
and btw Maxim...I didn't write the $naught_words array in the first place...
"Maxim Maletsky )" <[EMAIL PROTECTED]> wrote in message
news:014a01c14a54$05530640$4829abd4@tatiana...
Sorry, I meant since PHP 4 only, as it is when function in_array() was
introduced
Maxim Maletsky
www.PHPBeginner.c
PersonalDB´Â »õ·Î¿î °³ÀÎ Áö½Ä ¹× Á¤º¸°ü¸® ½Ã½ºÅÛÀÔ´Ï´Ù.
PersonalDB¿Í ÇÔ²² »õ·Î¿î Á¤º¸È ¼¼°è·Î ³ª¾Æ°¡Áö ¾ÊÀ¸½Ã°Ú½À´Ï±î?
To. php-general ´Ô²²
PersonalDB.net ȸ¿øÀ¸·Î ÃÊ´ë¹ÞÀ¸¼Ì½À´Ï´Ù.
From. À¥°ü¸®ÀÚ ( mailmaster )
_
> if ($flag = 1) {
> die ("Email #$errorNo is not a valid e-mail
should be:
if ($flag == 1) // notice the double-equal signs
"Tom Churm" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi,
>
> my problem is this: i'm using a while loop to check elements
1 - 100 of 117 matches
Mail list logo