http://php.net/rename
-Original Message-
From: Randy Johnson [mailto:[EMAIL PROTECTED]]
Sent: 13 iulie 2001 20:53
To: Randy Johnson; Chris Lambert - WhiteCrown Networks;
[EMAIL PROTECTED]
Subject: [PHP] Rename a File?
How do I rename a file on Linux in PHP?
Thanks
Randy
http://www.w3.org/TR/WD-html40-970708/charset.html
-Original Message-
From: Mark Lo [mailto:[EMAIL PROTECTED]]
Sent: 12 iulie 2001 08:46
To: [EMAIL PROTECTED]
Subject: [PHP] charset
Hi,
What will the problem if i don't specific what charset to
use in the
metal tag. And
I have an small problem on my Apache Stronghold 3 Server (a simple
Apache 1.3.12 + mod_ssl) using a statically compiled PHP3 module.
PHP version is latest (3.0.18) and is compiled against UW-Imap
libc-client, openldap 1 and oracle librarys to provide IMAP, LDAP
and Oracle support for HORDE/IMP
Hi,
is there a way to get the full HTTP Header
without patching PHP?
I use a debugger coded in PHP a lot. Now i need
to debug some intershop enfinity pages. However,
enfinity uses a lot of fields with the same names.
So my debugger overwrites the variables and i get
only the last one. As i cant
Hi all.
I know this is a silly question but i dont know how to do it so thats why i am asking.
Be gentle towards me. Im just a stupid swede! ;-)
statement:
I have a table cell in my upper right corner.
I have a small php script which checks wheter my user is online or not. If the user is
i
How you mean *in it's original form* ?
Lasse [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
..Or call it a riddle.. Whatever... :-)
What did the following code look like in it's original form?
function bitdef($prefix, $name, $bitnum)
{
try,
$result = mysql_query(select avg(tbl1.age) as avg1, avg(tbl2.age) as avg2
from tbl1, tbl2);
$r = mysql_fetch_array($result);
$avg = ($r[avg1] + $r[avg2]) / 2;
Jeff Lewis [EMAIL PROTECTED] wrote in message
see eregi()
James W Greene [EMAIL PROTECTED] wrote in message
032f01c109fd$53ad0b70$0cfb94d0@calcutta">news:032f01c109fd$53ad0b70$0cfb94d0@calcutta...
Hi All,
I have an e-mail message stored in the var $message How can I grep
for
say the From lines and such in $message using PHP. I
Hi
I need to fill a variable a value (writers name) with the data coming from 2 different
tables depending on the choice from the previosu page (add a new article or edit an
old one). Is their an easier way to do this as the sql is rather ugly that I am using
later as itis not clean in its
Well, I guess what you can do is embed the PHP within the table cell and
call an if statement. Like this...
table
tr
td
// if the user is online, then display the online image
?php
If ($user = online) {
?
img src=online.gif
// else if
Hi folks
I have a filed in data type time , how would I compare the value submited from the
form with the value in that filed, which is in format 11:00:00 ?
When I do this in query:
select * from table where time = '12:00:00'; ( in order select all records that have
time before noon)
it
try this:
select * from table where TIME(time_field) = 12
Jack [EMAIL PROTECTED] wrote in message
060101c10b0d$cd941940$[EMAIL PROTECTED]">news:060101c10b0d$cd941940$[EMAIL PROTECTED]...
Hi folks
I have a filed in data type time , how would I compare the value submited
from the form with the
Rainer Kohnen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
is there a way to get the full HTTP Header
without patching PHP?
I use a debugger coded in PHP a lot. Now i need
to debug some intershop enfinity pages. However,
enfinity uses a lot of
Hi there,
Im just a new in PHP, please help me in installing PHP with mysql support using the
RPM's format. It is much easier to install packages in Redhat6.2 in RPM's but it does
not automatically install PHP mysql support.
Please help me, i keep on trying installing this but it doesnt work.
I've tried for a while now to figure out how to test from within php
if a url (http://xxx/file.html) is present and what error code is
returned (200,201,202,404, etc...)
the only way to test a url seems to be to open
file('http://xxx/file.html')
and see if it can be done. but that
have a look at date_format in the mysql help and pull your sate filed out as
a date
Steve
-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2001 21:04
To: [EMAIL PROTECTED]
Subject: [PHP] time compare in my sql
Hi folks
I have a filed in data type time ,
Hey,
I have a problem using apostrophes/single quotes.
I am using PHP and MySQL. The user enters data into
the text field and everything goes ok, until an
apostrophy/single quote is added in the middle of the
text - then disaster occurs!
Now i want to allow the user the ability of adding
×𾴵ĻáÔ±£¬ÄúºÃ£¡Ò¼Ê³Æ·ÖйúÍø·þÎñÐÅÏ¢¹©Äú²Î¿¼£º
ÓµÓÐ×Ô¼ºµÄÍøÉϹ«Ë¾£¬Õ¹Ê¾¹«Ë¾²úÆ·ºÍ·þÎñ£¬Ìá¸ßÆóÒµ¾ºÕùÁ¦,ÄúÓÐÁ½ÖÖÑ¡Ôñ£º
1/ ÍøÕ¾¶¨ÖÆ http://www.ifood1.com/aboutus/ourservices/web.asp :
Heidi Belal wrote:
I have a problem using apostrophes/single quotes.
I am using PHP and MySQL. The user enters data into
the text field and everything goes ok, until an
apostrophy/single quote is added in the middle of the
text - then disaster occurs!
Use addslashes() on the text before
mysql front is by far my favourite
available from mysql download section.
Steve
-Original Message-
From: Steph [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2001 05:01
To: [EMAIL PROTECTED]
Subject: [PHP] Alternative to phpMyAdmin
Hi all! I love phpMyAdmin, just makes life so easy
[EMAIL PROTECTED] (Steve Brett) wrote:
mysql front is by far my favourite
available from mysql download section.
or mysqlfront.de
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
I have used this one with success, mysql and multi-level authorization
support:
http://www.phpsecurepages.f2s.com/
Can lock individual pages or parts of it with a little modification or
well placed include();s.
Also, about forms and session IDs, simple solutions would be pass the SID
on
You can also do as:
img src=checkonline.php
and create a file: checkonline.php
?
// make some tests to determine if user is online
if ($online_condition)
{
Header(Location: ../images/online.gif);
}
else
{
Header(Location: ../images/offline.gif);
}
exit();
?
Good luck,
Johan Vikerskog
I can suggest Session Variables instead of cookies,
Try http://www.zend.com / Tutorial Section there, about Authorization and
Session Variables,
Kristjan Kanarik [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Dear list,
I'm sorry to bother (or sorry for being
Hey,
A simple example with one field:
?
if (isset($submit))
{
// do fields checking here...
if (empty($fname))
{
$errmsg = Name not entered please fill it in!;
}
else
{
// proceed here
}
}
?
html
body
form
? if (isset($errmsg)) { ?
font
Hi php'ers
Since I have a site that relies on cookies it would be good to
detect if a user has turned them off.
How cat I determine if that is the case?
Kind regards,
Morten Winkler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Peter Clarke [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Rainer Kohnen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
is there a way to get the full HTTP Header
without patching PHP?
I use a debugger
I saw this post in an HTML or Javascript group (can't remember) and I
wondered if it is possible in PHP. Can one get the username of a person
logged in on a Windows machine with a PHP variable? I have scanned the
doc's quickly but I cannot find anything.
Tx
Bernie
--
PHP General Mailing
I am thinking of building a search engine with the grep command for our
site.
i have my information in a mysql db,
but i am putting it back into text files.
reoson being is that maybe the mysql db goes down under hevy load,
and then our site would look like a tree with out branches.
So i put all
[EMAIL PROTECTED] (Orvî÷inklÏ ²ørÏkîskî) wrote:
Hi php'ers
Since I have a site that relies on cookies it would be good to
detect if a user has turned them off.
How cat I determine if that is the case?
a hack could be just to try to set one, like
if (setcookie(...)) {
Why reinvent the wheel? Use htdig or one of the other open source search
engines. There's a memo on the htdgi site on integrating PHP and htdig.
Miles Thompson
At 02:26 PM 7/12/01 +0200, void wrote:
I am thinking of building a search engine with the grep command for our
site.
i have my
Dave,
The code below gives me an error in IE 5.+
Here is the error:
IE cannot download ..blah blah try again later
Do you use this code on your site or do i just need to tweak it
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001
Is it possible?
I am writing a recommend script, and I already know that the $HTTP_REFERER
can come empty or even not set, tested turning off the 'Enable Referer
Logging' on Opera.
But, an invalid $HTTP_REFERER is also one smaller than 10 characters?
I believe the smallest referer you
that does not work since cookie will just be available on the next
page..
try
tesp.php
?
if (!(isset(cookietest))) {
setcookie(blahblah...);
//new request, so cookie will be send to server
header(Location: test.php?cookietest=yes);
exit;
} else {
if
Here's some code I've been using for that. YMMV. :)
- Tim
http://www.phptemplates.org
//
// checks $url, returns true/false and sets the response code in $response
//
function dt_checklink($url, $response) {
$ua = parse_url($url);
$host = $ua[host];
$port = ($ua[port] != 0) ?
Hi,
Does anyone know of any PHP related chatrooms?
Tx
Bernie
--
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]
Hi everybody
i have the following database query:
$result=mysql_db_query(database,select item1,item2 from table);
while ($row=mysql_fetch_array($result)){
$a=$row[item1];
$b=$row[item2];
}
what i need is an associative array, with $a as
Try #php :) Lots of people hanging out in there all the time.
HTH
Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 x289
[EMAIL PROTECTED]
-Original Message-
From: Bernie Kruger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 8:46 AM
To:
$result = mysql_db_query(database,select item1, item2 from table);
while ($row = mysql_fetch_array($result)) {
$myArray[$row['item1']] = $row['item2'];
}
-Original Message-
From: Martin Lucas [mailto:[EMAIL PROTECTED]]
Sent: 12 iulie 2001 16:25
To: '[EMAIL PROTECTED]'
Maybe what you say about smallest refeerer length is true...
but why don't you check via regexps the validity of the REFEERER format only
if it was set?
InéRcia Sensorial [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Is it possible?
I am writing a
That's also something worth to be done, but first I need to know some
possible variations of $HTTP_REFERER...
I never saw one, when coming from another domain, without the
'http://'´part, so that's a regex to check, but I may be wrong...
--
Julio Nobrega.
One and One and One is Three
Hi.
I've (or rather the company I work for) recently transferred to a new new
PHP host (www.hotchilli.com). All is fine, but they do not allow file
uploads via a form, stating the following security risk:
Arbitrary file disclosure through PHP file upload
run 'make clean'
find out where your current PHP stuff is *now*.
use that directory as --prefix=[dir] for the configure script.
make; make test; make install;
then, restart apache. always do this whenever you make
any changes to anything even remotely apache-related.
-Original
link to the mail form like this:
mailform.php?subject=Requesting+information+on
and in the mailform, have a subject field something
like this:
INPUT TYPE=TEXT NAME=subject VALUE=?= $subject ?
-Original Message-
From: Ed Peddycoart [mailto:[EMAIL PROTECTED]]
Subject: [PHP] php mail
[EMAIL PROTECTED] (Sam Masiello) wrote:
Try #php :) Lots of people hanging out in there all the time.
It seems that #php on efnet is more interesting than others :)
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Ok, here's the print_r() output of my 2 arrays. The first really just has an
extra dimension. How can I get the format of the first one looking like the
bottom one (just an array of key = value pairs)?
Thanks!
Array ( [0] = Array ( [trade_date] = Trade Date )
[1] = Array (
Dear php support !
Im using the fgets() command in a counter. Basically the counter opens
a txt-file gets the information from the previous query (see code
below). Later this information will be evaluated and be written back
into the txt-file (this is not in the code below).
$fn = qrydata.txt;
Jorge Inti Benites RocheHi!
i'm trying to compile php4.0.6 for it i do:
./configure --with-zlib --with-mm --with-mysql --with-mcal=../libmcal --with
-ldap --with-imap=/usr/lib --with-gettext --enable-ftp --with-db3=/usr/local
/BerkeleyDB.3.2 --with-apache=../apache --with-mcrypt
ok
but when i
foreach($oldArray as $a)) {
list($key, $value) = each($a);
$newArray[$key] = $value;
}
-Original Message-
From: Michael Champagne [mailto:[EMAIL PROTECTED]]
Sent: 12 iulie 2001 17:37
To: PHP General Mailing List
Subject: [PHP] Array problem in PHP. Please help.
hi adrian,
many thanks for your tip. it works fine.
kind regards
martin
-Ursprüngliche Nachricht-
Von: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 12. Juli 2001 15:46
An: Martin Lucas
Cc: [EMAIL PROTECTED]
Betreff: RE: [PHP] associative arrays
$result =
I'm running into some unexpected behavior that I can't figure out. This is
with PHP version 3, where, to my knowledge, boolean is not built in.
?php define (true, 1);
define (false, 0);
echo gettype(true);
echo gettype(false); ?
The type of true is returned as an
-Original Message-
From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 5:40 PM
To: PHP General List (E-mail)
Subject: [PHP]I'm puzzled. TEXTAREA related.
hey-
i have a page containing a form with a textarea field. The
first part of the page is a
PHP PEOPLE,
Sorry this is way off topic but can anyone point me to a place where I can
find out how to mount/automount a tape drive in Linux? I need to know device
name mount commands and tape drive commands etc...Been searching on the net
for hours and the bits and pieces are not forming a whole
I have a PHP file that gets included by a lot of other files in a lot of
other directories. Among other things, this file needs to display a link
to that original page.
I know I could specify this in a variable in each original file before the
INCLUDE statement, but I'd like to do something
The way PHP works currently, $PHPSELF will point to your original file.
This is actually a problem, as it means that you cannot use relative
includes in the included file if its in a different directory. There's
currently discussion on the PHP-DEV list about changing this. Perhaps
there's going
Hola everybody;
this is a simple form to send a mail via php, check if a field
was filled in and prompt an error msg (if not) is easy but
when the Submit button is presssed the text in the rest of
the fields dessapear.
How to avoid fields draining if one of them is no filled in?
thanks
Ani
So sprach »Aral Balkan« am 2001-07-11 um 14:59:44 -0400 :
Personally, I couldn't be happier that Netscape won't be making browsers
Ah, so Microsoft also stopped making operating systems?
anymore and I wish that trouble-some bug of an excuse for a browser would
just go away :)
Well, Netscape
I'm having problem with regular expression, not a good eek this week it
seen like I alway's get a wall of problem. I know that it surely been
ask a 1000 times, I look around, didn't find anythings, if you find
somethings please point me out.
So here what I want to do, I need to parse a xml
Elias [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
How you mean *in it's original form* ?
Lasse [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
..Or call it a riddle.. Whatever... :-)
What did the following code look
hi. I am a newbie. We have a database server on the network along with an IIS (MS
Internet Information server)server. We have PhP installed on IIS. What would the db
connection parameters look like if I wanted to connect to our DB server. The database
server name is USABASE.
would it
a partial suggestion would be to try an fopen() on the
HTTP_REFERER if it was a static document like .html or .txt
but if someone is being redirected from a CGI script or
dyanmic page of any sort, it'll be virtually impossible
to find out exactly where they came from and if that
page is
and to answer one of the previous questions,
yes... it is *very* resource intensive to scan an entire
directory tree full of files every single time a user
wants to search
as far as i know, htdig indexes the information into one
big file, and just reads thru that... which will save you
You might also take a look at:
http://www.php.net/manual/en/ref.mnogo.php
On Thu, 12 Jul 2001, scott [gts] wrote:
and to answer one of the previous questions,
yes... it is *very* resource intensive to scan an entire
directory tree full of files every single time a user
wants to search
This sounds interesting. Where can I find htdig?
-Original Message-
From: scott [gts] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 12:20 PM
To: php
Subject: RE: [PHP] building a search engine ??
and to answer one of the previous questions,
yes... it is *very* resource
http://www.htdig.org
-Original Message-
From: Navid A. Yar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 10:50 AM
To: 'scott [gts]'; 'php'
Subject: RE: [PHP] building a search engine ??
This sounds interesting. Where can I find htdig?
-Original Message-
From: scott
On Thu, 12 Jul 2001 14:26:33 +0200 impersonator of [EMAIL PROTECTED] (Void)
planted I saw in php.general:
I am thinking of building a search engine with the grep command for our
site.
i have my information in a mysql db,
but i am putting it back into text files.
reoson being is that maybe the
I second that recommendation-- MySQL-Front is downright excellent!
http://www.mysqlfront.de/
-Original Message-
From: Steve Brett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 6:47 AM
To: Steph; [EMAIL PROTECTED]
Subject: RE: [PHP] Alternative to phpMyAdmin
mysql front
I'd like to cast my vote for Webmin :-)
www.webmin.com
Clayton Dukes
CCNA, CCDA, CCDP, CCNP
(c) 904.477.7825
(h) 904.292.1881
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
- Original Message -
From: Matthew Loff [EMAIL PROTECTED]
To: 'Steve Brett' [EMAIL
So sprach »Matthew Loff« am 2001-07-12 um 14:07:16 -0400 :
I second that recommendation-- MySQL-Front is downright excellent!
http://www.mysqlfront.de/
Well, but how is that going to work, if Steph wants to manage his
databases on his providers server?
Besides, mysqlfront is a Windows
After a little investigation, I figured out what was wrong - for whatever
reason the server is requiring /index.php as part of the url. But thanks
guys, I'll definitely look into MYSQL- Front!!
-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001
i manage the production mysql database on a linux server
from my windows desktop at work
it's an extremely nice program. :)
many compliments to the authour, if he reads this list.
-Original Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001
Thank you Scott for the various ideas. I am preventing an eventual 'no
referer' situation with a default url provided by who opens an account.
I am getting (and trying to give :)) help on this list, so I will ask
first before doing... Is it normal to announce personal projects here? This
one
Great, I'd like to steal it too then :). I just check php.net, but
couldn't find it.
In what section would you put it?
Thanks.
Reuben D. Budiardja
On Tuesday 10 July 2001 05:34 pm, Rasmus Lerdorf wrote:
Have any of you seen those calendar applications that let you program
events that
Not quite live yet. You'll see it when it goes live.
By the way, there is a very complete date class in PEAR that has pretty
much everything you would need to build a calendar app. See
pear/Date/Calc.php
-Rasmus
On Thu, 12 Jul 2001, Reuben D Budiardja wrote:
Great, I'd like to steal it too
i know that i am always interested to see code posted
on this list... even if i cannot personally use the code,
i'm always curious to see how people write code.
-Original Message-
From: Inércia Sensorial [mailto:[EMAIL PROTECTED]]
Subject: Re: [PHP] Re: $HTTP_REFERER 10
Thank you
If you use the documented mechanism for handling file uploads, then there
is no such security problem. See
http://www.php.net/manual/en/features.file-upload.php
ie. use the move_uploaded_file() function.
-Rasmus
On Thu, 12 Jul 2001, Toby Goldstone wrote:
Hi.
I've (or rather the company I
Jorge Inti Benites RocheHi!
i'm trying to compile php4.0.6 for it i do:
./configure --with-zlib --with-mm --with-mysql --with-mcal=../libmcal --with
-ldap --with-imap=/usr/lib --with-gettext --enable-ftp --with-db3=/usr/loc
al
/BerkeleyDB.3.2 --with-apache=../apache --with-mcrypt
ok
Same here... I run MySQL on Win2k as well as Linux machines, and use
Mysql-Front for things like table creation, user management, etc.
It's also a great tool for EXPLAINing massive queries to find the most
efficient.
-Original Message-
From: scott [gts] [mailto:[EMAIL PROTECTED]]
libmcal is a pain in the butt to set up, but once it's set up, it has
some great features... I had to write a PHP page that handled
scheduling of appointments, and mcal saved me a lot of time, after I
spent the initial 2 hours pulling my hair to set it up. :)
-Original Message-
From:
I am having a problem - hopefully someone can help me :o)
I am trying to use a php document on a secure server, but instead of displaying output
from the script, it tries to download the file. Even code this simple does it:
?php
print(Hi);
?
Thanks!!
some questions ;)
have you tried accessing the script non-secure?
is php properly installed and running on your server?
did you restart the server after installing PHP?
are you using a different server to handle secure queries?
does that server have php installed and configured properly?
The ereg_replace for some reason doesn't always work.
I tried this:
HTLM
BODY
?
$st = This +is a test;
$st = ereg_replace (=+is, and_is, $st);
echo $st;
?
/BODY
/HTML
..and got:
REG_BADRPT in b/usr/local/httpd/htdocs/test.php/b on line 5
What is wrong and how can I do what I want to?
Thanx a
Lazy me, after a short break, alway's helping, I found out wthat it has
to be:
/\(?!\?xml|\!DOCTYPE|\!ENTITY|image|item|\/item)/
the ?! negate this text, I though that I could put it in every value
like this (?!\?xml|?!\!ENTITY ... but no by putting in first he do it
for all (k.i.s.s.
Try this : $st = ereg_replace (\+is, and_is, $st);
you have to escape the + sign it mean other things then just literal
André Weidemann wrote:
The ereg_replace for some reason doesn't always work.
I tried this:
HTLM
BODY
?
$st = This +is a test;
$st = ereg_replace (=+is, and_is, $st);
I have custom 404 error handling setup on my linux apache
box, however, there's a problem with files that have a PHP
extension. it seems that apache itself does not check for the
existence of the requested .php file and fires up PHP no matter
what. if PHP does not find the requested file, it'll
on 7/12/01 12:38 PM, scott [gts] at [EMAIL PROTECTED] wrote:
I have custom 404 error handling setup on my linux apache
box, however, there's a problem with files that have a PHP
extension. it seems that apache itself does not check for the
existence of the requested .php file and fires up
the RPM is a binary. if mysql support is not in the RPM,
there's no way to add it
if you want to install PHP the simplest way, get the
sources and compile it yourself as a stanalone binary
(NOT using --with-apache or --with-apxs)
then you can tweak it however you want, and compile
in
also: mysql_escape_string()
will format data properly for use in MySQL queries
-Original Message-
From: Alexander Wagner [mailto:[EMAIL PROTECTED]]
Subject: Re: [PHP] quotes
Heidi Belal wrote:
I have a problem using apostrophes/single quotes.
I am using PHP and MySQL. The
You may also want to try Manuel Lemos' Form class -- it is very detailed and
well coded solution that handles all sorts of form validation, including
credit cards:
http://www.phpclasses.upperdesign.com/browse.html/package/1
Aral :)
__
([EMAIL PROTECTED])
New
Use javascript to validate. This way the form is not submitted in the first
place. You could use some server-side (PHP) validation just in case.
html
head
titlemail send/title
Script Language=JavaScript
function validate()
{
jumpto = ;
errors = ;
var reg1str =
Hi,
I just installed apache 1.3.20 on solaris7-sparc machine. When I try to
start apache with PHP compiled as a module, I get...
/www bin/apachectl start
Syntax error on line 208 of /www/conf/httpd.conf:
Cannot load /www/libexec/libphp4.so into server: ld.so.1:
/www/bin/httpd: fatal:
What you might want to try is something called
ksearch.cgi, you'll find it at cgi-resources.com It's
actually very good and very very small. It actually
indexes your site and stores the info in several db
databases or a text file, your choice and offers, if
I'm not mistaken, boolean search, oh
My output does not validate as XHTML because of the sign in the a href that is
automatically appendet by the php session management. it should be exchanged by an
amp; entity. Is there a way to do this? There should be one I guess ...
Thanks,
Jan.
You can change the arg_separator setting in your php.ini file.
ie.
arg_separator = amp;
or perhaps:
arg_separator = ;
-Rasmus
On Fri, 13 Jul 2001, Jan wrote:
My output does not validate as XHTML because of the sign in the a
href that is automatically appendet by the php
Hello! I have images stored in a MySQL Database. I can retrieve the images and display
them without a problem, but I'd really like to be able to create thumbnails. The code
that I've written just doesn't seem to work. Preferably, I'd like to pull the image
from the database, and create the
hello,
ok heres the thing ;)
lets say i have array(part1, part2, part3, part4);
now i have string like
$string = here's PART and heres PART, another PART here and final PART
here;
now i wanna replace first PART in string with part1 from array and second
PART with part2 from array ...
one more
Shoot from the hip response... untested
function resolveParts( $str, $partsArray )
{
// explode the original $str based on 'PART'
$stringBits = explode( 'PART', $str );
//Ok. So now we have two arrays. The length of partsArray
// should be one less than stringBits
I was searching for a Flash book today and ran across the following
book, due to be released in September 2001:
http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=190345016
0
It's entitled Foundation Php for Flash 5
Now, I've never heard of using PHP to control Flash and, given the
http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=190345016
0
BTW, in case this link doesn't work for some of you, note that some mail
clients (including my version of Outlook) wrap the href and don't
maintain the link. (note the trailing 0 in the link above)
Sorry for any
PHP is a great language. It makes it fast and easy to create web
pages. However, one feature which is critical for doing rock-solid
stable websites is strong typing. The reason for this is that you're
dealing with untrusted user input. Strong typing helps because if you
are expecting an INT,
1 - 100 of 135 matches
Mail list logo