Can php execute .exe file ( compile from BorlandC) and view result on the
browser ? PLease Help Me
Rizal
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi ,
Here's my problem :
I read a data file (no sql file) which contains 8 lines, and in each line, 8
datas
(ex: name1;picture1;title1;anything1;everything1;nothing1)
and when i run it I see only one picture(the second data) and not all of
them
If someone could help me
TYA
Here the code :
$fp = fopen($filename, 'r');
while ($l = fgets($fp, 1000))
{
list ($parts, $vignette, $marque, $nom, $pdfproduit, $commprod) =
explode (';', $l);
// now use the data
print p$parts/p; // or whatever
}
fclose ($fp);
On Mon, 8 Apr 2002, Hubert DAUL wrote:
Hi ,
Here's my problem :
Hello,
I guess anyone have made the function to coppy directories, not files.
I'd like to copy directory including sub directories to other place.
Doesn't anyone has mades that kind of function?And please telll me.
Thamks in advance.
HiroshiAyukawa
I have a new very intriguing problem at hand.
I have the name of my Images stored in my mySQL
database in one column. Now when i pick the images,
they are displayed as it as. However, they are the big
images, and the thumbnails of those images are stored
with an a at the end of thier names.
(untested)
$newname = eregi_replace('\.jpg$', 'a.jpg', $oldname);
No point messing up your database; just use something like the above when
you're outputting the image tags for the thumbnails.
miguel
On Mon, 8 Apr 2002, Thomas Edison Jr. wrote:
I have a new very intriguing problem at
$parts = preg_split('/\./', $filename);
$new_filename = $parts[0] . a.jpg;
(Not tested, but _should_ work.)
/bsh/
Thomas Edison Jr. wrote:
I have a new very intriguing problem at hand.
I have the name of my Images stored in my mySQL
database in one column. Now when i pick the images,
On Monday 08 April 2002 15:41, Thomas Edison Jr. wrote:
How can i :
1. Insert a at the end of the name of the image,
before the .extension through PHP.
The problems are that the names are stored in the
database WITH the extesion. And the extensions also
vary, some are JPG and some are GIF.
#
#
# boolean copy_dirs ( string src_dir, string target_dir )
#
#
# copy shopdirectories into a new shop
#
# Function
there was a typo...this one should work
#
#
# boolean copy_dirs ( string src_dir, string target_dir )
#
#
# copy a directory with subdirectories to a target directory
Hi,
Thanks for your relies. There are a couple of
problems. Firstly, i'm picking the filename from the
database, so my code is something like this :
if ($myrow = mysql_fetch_array($result)) {
do {
echo(
img src=\images\\$myrow[ilmage]\
);
} while ($myrow =
THANKS!
That works!!
Except on PHP side I have to produce javascript code without script tag,
like
xTest.php - SERVER1 with PHP
document.write(?php echo(\This WORKS!!!\); ?);
on server 2 I just have to write this inside script tag, like
HTML file on SERVER2 WITHOUT PHP
html
body
script
$thumbnail = eregi_replace('\.jpg$', 'a.jpg', $myrow['ilmage']);
$thumbnail = eregi_replace('\.gif$', 'a.gif', $thumbnail);
It's no problem to do it twice in a row; it'll pick up one or the other.
miguel
On Mon, 8 Apr 2002, Thomas Edison Jr. wrote:
Hi,
Thanks for your relies. There are
Do the explode and implodes like that one fellow mentioned.
So basically:
while ($myrow = mysql_fetch_array($result)) {
$img = explode('.',$myrow[ilmage]);
echo img src=\images/{$img[0]}a$img[1]\br /
}
What this will do is take your image split the image at the '.' then echo it
with the
Hi,
Thanks.. actually that problem is solved, this is what
i used :
$myrow[ilmage] = eregi_replace('\.jpg$', 'a.jpg',
$myrow[ilmage]);
$myrow[ilmage] = eregi_replace('\.gif$', 'a.gif',
$myrow[ilmage]);
and it's now showing the small images with the a!!
Thanks AGAIN!
T. Edison Jr.
---
i am a php programmer whose learning expr. is about 2 months. whatever
running script of php that written by other php programmer or me, i
always see the warning below shown, why this occurs? how to avoid?
Warning: Undefined variable: HTTP_VIA in
g:\wwwroot\phpformmail\formmail.php on line
As you may know, headers included in the 4th argument of PHP's mail() are
sent to the outgoing mail server.
What header(s) can I send to sendmail 8.10.2 (running under Linux Redhat
6.2) in order for invalid e-mails be returned to my e-mail address rather
than my hosting provider's default
Is there a way to pass variables (objects) across the different
sessions. I thought of sharing one object for all users that access my
web site (it's an object that does some operations with files common to
all users, like reading and writing). Any ideas?
Tnx in advance.
Armin
--
PHP
Sorry,
It didn't work.Mine too.
ALL of the files inside the deeoer directory come to top of the
directory.
I'll go on trying .
Thanks.
By the way , your script looks like Python script , dont'you?
Hiroshi AYukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top
--
PHP General
On Monday 08 April 2002 15:44, Anthony Rodriguez wrote:
As you may know, headers included in the 4th argument of PHP's mail() are
sent to the outgoing mail server.
What header(s) can I send to sendmail 8.10.2 (running under Linux Redhat
6.2) in order for invalid e-mails be returned to my
On Monday 08 April 2002 17:04, Hiroshi Ayukawa wrote:
Sorry,
It didn't work.Mine too.
ALL of the files inside the deeoer directory come to top of the
directory.
I'll go on trying .
Thanks.
By the way , your script looks like Python script , dont'you?
Probably the easiest way is to some
At 07.04.2002 16:22, you wrote:
Hi, I'm trying to make a PHP script that would go in a website and log in.
The website uses cookie to authenticate with its services. I made HTTP GET
requests using fsockopen and parsed the results back into a variable.
However I cannot find the cookie
Thanks,
But I can try it ,cause I like PHP and I want to write a code tahat
runs anyware.
Actually, we use both *nix windows.
I will announce if I could madde it.
Regards,
Hiroshi
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top
--
PHP General Mailing List
hi
you should try this free service http://www.webcron.org it is really great (supports
authentication, stores resulting file...) and free,
the site is in french though !
Regards
_
Hassan El Forkani
http://WarmAfrica.com EveryOne's Africa
try this:
html
head
titleSolid/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body bgcolor=#FF text=#00
table width=384 border=1
?php
$fp = fopen (album.dat,r);
while ($data = fgetcsv ($fp, 1000, ;))
{
if (isset($data[0]))
{
php-general Digest 8 Apr 2002 09:42:24 - Issue 1274
Topics (messages 91954 through 92015):
Re: Test for one bit set?
91954 by: bvr
91955 by: Lars Torben Wilson
91956 by: Charlie Killian
Disabling bars on Browser
91957 by: David Johansen
91958 by:
Hi guys!
$php_self and $php_referrer doesnt work the same in IE and Netscape
When opening a page with
IE they return for example http://localhost/directroy/index.php
but in Netscape Navigator - http://localhost/directory/
Why?
And how to solve this problem?
Thanks
--
PHP General Mailing
I'm having trouble with the Expire date - It's being set at sometime before
I was born. Any idea on how to fix this?
HTTP/1.1 200 OK
Date: Mon, 08 Apr 2002 10:07:31 GMT
Server: Apache/1.3.22 (Unix) PHP/4.1.2
X-Powered-By: PHP/4.1.2
Set-Cookie: sess=6fc0c08e2030124a8518aa5eeff034d3; path=/
How to convert or discover from IPadress country visitors on my web ?
roman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Eric (and others who might help),
Actually I haven't tried the custom error handler for function or
class definiton not found errors because I read in the manual that
the processing is continued after the statement where the error
raised. I also thought of a little hacking in php's source,
Hi,
I have two servers with Apache PHP - carrying out different tasks.
However, I have got a task that requires one application to use both
servers. One of the units holds a bunch of session vars - which I would like
to transfer to the other unit, when scripts on this second unit are called.
Hy,
I try to do a SELECT but when I test my code I
Have a parse error.
If someone can explain to me why.
Code:
$db = mysql_connect(newsmanga_db);$req =
"SELECT * FROM dvds WHERE nomdvd='".$nom."".$i"' "; /// PARSE ERROR IN
THIS LINE$res=mysql_query($req, $db);while ($ligne =
If you store your session vars in database, there will be no problem with
retrieving sessions vars...
You even can use native php4 functions for handling sessions, storing them
in DB...
Look in php manual for session_set_save_handler() function, or write your
completely own code for db sessions.
At 02:23 PM 4/8/2002 +0200, you wrote:
Hy,
I try to do a SELECT but when I test my code I Have a parse error.
If someone can explain to me why.
Code:
$db = mysql_connect(newsmanga_db);
$req = SELECT * FROM dvds WHERE nomdvd='.$nom..$i' ; /// PARSE
ERROR IN THIS LINE
Your missing a '.' after
Hi
the error appears because of the comas erroned syntaxis.
why don't u try something easire as that :
$varalacon = $nom..$i; (i don't know if there is a space or not...in
bold)
$req = SELECT * FROM dvds WHERE nomdvd='$varalacon' ;
Hope it helps
SR
Jérome Moisy a écrit :
Hy, I try to do a
On Mon, 8 Apr 2002, [iso-8859-1] Jérome Moisy wrote:
Hy,
I try to do a SELECT but when I test my code I Have a parse error.
If someone can explain to me why.
Code:
$db = mysql_connect(newsmanga_db);
$req = SELECT * FROM dvds WHERE nomdvd='.$nom..$i' ; /// PARSE ERROR IN THIS
LINE
Php works in general (phpinfo()).
The gd-lib however will not work for some reason.
I tried
extension=libgd.so
in php.ini without any result.
Anyone familiar with this problem?
/M Green
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 08.04.2002 13:00, you wrote:
How to convert or discover from IPadress country visitors on my web ?
roman
You have to make a DNSLOOKUP
If you have a linux box (server setup) you can use
system(nslookup -timeout=3 -retry=1 .$value)
where $value is the IP-Number. This gives you the
real name
At 08.04.2002 14:23, you wrote:
Hy,
I try to do a SELECT but when I test my code I Have a parse error.
If someone can explain to me why.
Code:
$db = mysql_connect(newsmanga_db);
$req = SELECT * FROM dvds WHERE nomdvd='.$nom..$i' ; /// PARSE
ERROR IN THIS LINE
Try this :
$req = SELECT * FROM
Thanks at All
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 08.04.2002 13:12, you wrote:
Hi,
I have two servers with Apache PHP - carrying out different tasks.
However, I have got a task that requires one application to use both
servers. One of the units holds a bunch of session vars - which I would like
to transfer to the other unit, when scripts
On Mon, 8 Apr 2002, Roman Duriancik wrote:
How to convert or discover from IPadress country visitors on my web ?
You need to use the 'whois' protocol. I am sure you can find sample code
snippets around. First, look up the address at whois.arin.net. Then, if
delegated to one of the regional
sure. if all users should have access to this instance of your object, then
you could store the serialized object in a file,
everyone has access to and unserialize it if needed.But don't forget to
include your object-surcecode
before unserializing the object, or you'll lose your methods. If users
At 08.04.2002 14:56, you wrote:
Php works in general (phpinfo()).
The gd-lib however will not work for some reason.
I tried
extension=libgd.so
in php.ini without any result.
Anyone familiar with this problem?
/M Green
Too few arguments ;-)
Did you already compiled GD ?
Did you compile php with
$myrow[ilmage] = eregi_replace((\.[^\.]+)$, a\\1, $myrow[ilmage]);
and if ilmage isn't a constant use $myrow[ilmage].
Thomas Edison Jr. [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
Thanks for your relies. There are a couple of
problems. Firstly,
On Saturday, April 6, 2002, at 11:44 AM, Shane McBride wrote:
Hello,
I am able to upload and download Macintosh files but they seem to lose
their
MIME type or extensions. I'm not sure what it is. I'm not a Mac dude.
When you download the file It loses the file association. It's for a
but if
$myrow[ilmage] = hallo.hmm.gif; your code won't work.
so better:
while ($myrow = mysql_fetch_array($result)) {
$img = explode('.',$myrow[ilmage]);
$img[count($img) - 1] .= a;
echo img src=\images/.implode('.', $img).\br /;
}
Richard Baskett [EMAIL PROTECTED] schrieb im
this class does just that:
http://phpclasses.warmafrica.com/browse.html/package/514.html
08/04/2002 13:49:44, [EMAIL PROTECTED] a écrit:
At 08.04.2002 13:00, you wrote:
How to convert or discover from IPadress country visitors on my web ?
roman
You have to make a DNSLOOKUP
If you have a
Dear All,
Another simple question:
What is the best way to do redirect after a
php file did some processing?
Any helps would be greatly appreciated!
--Wo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
typo..this one's right :)
while ($myrow = mysql_fetch_array($result)) {
$img = explode('.',$myrow[ilmage]);
$img[count($img) - 2] .= a;
echo img src=\images/.implode('.', $img).\br /;
}
Michael Virnstein [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL
Ok here is my problem, I have a piece of code that queries the database
pulls the results of a table into an array, on another file the results of
that array are used with a require function and then each variable is echoed
to the screen where I need it, I have a piece of javascript to open a pop
On Monday 08 April 2002 22:00, Wo Chang wrote:
Dear All,
Another simple question:
What is the best way to do redirect after a
php file did some processing?
Any helps would be greatly appreciated!
Use header() to set a location.
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
This is really simple:
header(Location: .php);
/Patrick
www.optip.com
-Original Message-
From: Wo Chang [mailto:[EMAIL PROTECTED]]
Sent: 08 April 2002 15:00
To: [EMAIL PROTECTED]
Subject: [PHP] what's the best way to do redirect within PHP
Dear All,
Another simple question:
Le lundi 8 avril 2002, à 04:00 PM, Wo Chang a écrit :
What is the best way to do redirect after a
php file did some processing?
Function header() ???
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does anyone know how to check a directory exiasts?
Thanks in advance,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bob/pickle,
I disagree -- Justin French has contributed a large number of helpful
posts to this list. Just the other day, he responded to my query for
advice -- http://marc.theaimsgroup.com/?l=php-
generalm=101779873317529w=2
It is foolish to look the gift horse of free coding advice in the
I'm trying to write some code that will look at a table of records, and output a
'tree' of those records, based on a parent/child relationship betweent their
respective record id numbers.
Anyone written anything like this they would be willing to share? I'm up against a
deadline, and I'm
Le lundi 8 avril 2002, à 03:45 PM, Erik Price a écrit :
When you download the file It loses the file association. It's for a
company
I do work for that uses a lot of .ai and .psd files.
Hi !
Have you tried with :
$filesize = filesize($your_file);
header(Content-type: .$your_mime_type);
Please post more code. Can't help any further in the moment.
Jas [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ok here is my problem, I have a piece of code that queries the database
pulls the results of a table into an array, on another file the results
On Friday, April 5, 2002, at 10:12 PM, Eric Kilgore wrote:
I'm a newbie to Linux and Apache, not so new to php itself. I'm using
Red
Hat 7.2. The RPM installs apache with php, etc. as part of the standard
install but --without-mysql in the configuration. I've read quit a bit
on
how you
file_exists will perform a check if the file, no matter if it's a directory,
a regular file or a symlink.
if you want to know if it is a directory use
is_dir($file)
or refer to the php manualHiroshi Ayukawa [EMAIL PROTECTED] schrieb im
Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Michael Virnstein wrote:
you also have to make sure, that only one user can access the file for
writing at one time, or your data gets probably
screwed. The easiest way would be storing the object not in a file but in a
database, so you don't have to care about locking.
Tnx for the help, and
Nevermind I got it fixed... I forgot to include a couple of fields from my
database into my array. =). If you would like to use the code I am putting
it here...
?php
$table = cm_dev_ads;
$dbh = mysql_connect('localhost','user_name','password') or die('Could not
connect to database, please try
For the record br/ (which would be the 'normal' xhtml style) is
unrecognized (and therefor ignored) by Netscape 4.x. However, it recognizes
and properly handles br /, which I'm sure is why it is output in that
format. If anybody has seen br/ misbehave, try going back and testing
with br /.
Le lundi 8 avril 2002, à 04:15 PM, Hiroshi Ayukawa a écrit :
Does anyone know how to check a directory exiasts?
RTFM !!
try this :
if (file_exists($dir) is_dir($dir)) {
echo $dir.' is a directory !';
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Try a bitwise and (I think the operator is '')...
?php
$bitMask = 16;
$value1 = 24;
$value2 = 36;
?$value1 has bit 5 set? ?php
if($bitMask $value1)
{
//should get here
echo 'true\r\n';
}
else
{
echo 'false\r\n';
}
?$value2 has bit 5 set? ?php
if($bitMask $value1)
{
Shane,
Eric is absolutely right, you are losing the resource fork of your mac binaries when
you upload them.
(If you don't know, on a Mac, the binary file has to parts, the data, and the
association with an application (or resource) that created the file. This is done so
that Mac file names
Can anyone tell me why when the first element in my array would disappear
with the following code:
?
//remove the unwanted item from the array
for($i=0;$icount($stores);$i++) {
$delete=0;
//checking to see if it has been requested for delete
foreach($HTTP_POST_VARS as $val) {
Here is what I get when I try to make a DSO
with apache 2.0.35 and php 4.1.2:
Script started on Sun Apr 7 13:39:30 2002
doctor.nl2k.ab.ca//usr/source/php-4.1.2$ make
Making all in Zend
Making all in main
Making all in ext
Making all in zlib
Making all in ftp
Making all in gd
Making all in
Ok this is an unusual problem, at least to a newbie like myself... I am
trying to develop a user form to select an image from a directory by use of
a select box that once the item is selected it will put that selection into
a db field and this part I have working fine, however now I will need to
Dear All,
Thanks for all the response, they all work!
--Wo
- Original Message -
From: Wo Chang [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 08, 2002 10:00 AM
Subject: what's the best way to do redirect within PHP
Dear All,
Another simple question:
What is the
Hi all!
I have a problem with the querystring.I want to add to every Link on my Homepage a
querystring, but i should have the possibility to change some details in the
Querystring.
How should i solve this problem ?
Example :
http://domain.com/index.php?dest=12item=2
The variables ?dest= and
I don't know if anybody else sent you an email about this or not, but
there's a much easier way to do what you're doing in this snippet of code...
$record = mysql_query(SELECT wel_area, ad01, ad02, ad03, ad04, ad05,
ad06, ad01_t, ad02_t, ad03_t, ad04_t, ad05_t, ad06_t FROM $table,$dbh);
On Monday, April 8, 2002, at 11:09 AM, Jas wrote:
Ok this is an unusual problem, at least to a newbie like myself... I am
trying to develop a user form to select an image from a directory by
use of
a select box that once the item is selected it will put that selection
into
a db field
try:
if(is_dir($dir)) {
echo 'directory was found';
}
Yoroshiku,
Maxim Maletsky
PHPBeginner.com
Hiroshi Ayukawa writes:
Does anyone know how to check a directory exiasts?
Thanks in advance,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top
you want to try a code line like this
print a
href=\yourpagehere.phtml?dest=$line[index]item=$line[index2]\LinkName/a;
it will only work of course if you are in the middle of a loop that processes the
results of an appropriate select statement that pulls the needed values for your dest
and
We've used email ban and IP ban but there are easy ways around this as you
all know. I am wondering if there is anything a little more hardcore to do
as far as banning goes. I had read somewhere about grabbing a MAC address
or something similar from a network card. Has anyone heard of this
My Apache server is currently not configured to use SSL, and I do not
have a certificate. There is a possibility that I will be creating a
script to send POST data to another company's web service, and that
company requires the connection to be via SSL. The logical way for me
to do this
So putting it into an UPDATE statement it would be something like this
right?
UPDATE CONCAT $table_name SET ('http://localhost/images') ad01=\$ad01\;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
At 08.04.2002 14:56, you wrote:
Php works in general (phpinfo()).
The gd-lib however will not work for some reason.
I tried
extension=libgd.so
in php.ini without any result.
Anyone familiar with this
so what does line 111 look like?
we can't read your mind...
-Original Message-
From: erich [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 3:35 AM
To: [EMAIL PROTECTED]
Subject: [PHP] difficulty in solving the unknown warning
i am a php programmer whose learning expr. is
Is there any reason the following code should not work?
I define the error function, then tell PHP to use it, then call
a function which doesn't exist (test), and it will print the error
on screen that that function doesn't exist, but it won't alert me,
so it's obviously not entering the
On Mon, 8 Apr 2002, Erik Price wrote:
My Apache server is currently not configured to use SSL, and I do not
have a certificate. There is a possibility that I will be creating a
script to send POST data to another company's web service, and that
company requires the connection to be via
On Mon, 8 Apr 2002, Jeff Lewis wrote:
We've used email ban and IP ban but there are easy ways around this as
you all know. I am wondering if there is anything a little more
hardcore to do as far as banning goes. I had read somewhere about
grabbing a MAC address or something similar from a
On Monday 08 April 2002 22:15, Hiroshi Ayukawa wrote:
Does anyone know how to check a directory exiasts?
Thanks in advance,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top
Manual Filesystem functions
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
On Monday, April 8, 2002, at 11:35 AM, Jas wrote:
So putting it into an UPDATE statement it would be something like this
right?
UPDATE CONCAT $table_name SET ('http://localhost/images')
ad01=\$ad01\;
No, like this:
The table is named test_table
The column you want to add this to is
Hi there,
I use the function mail to e-mail . This workes fine with most adresses.
Unfortunatelly there is one e-mail provider (gmx.de) which does not get anny
of those e-mails. Workes fine with all other services. I doubble checked it
with 2 other gmx accounts.
How can I find out what went
On Mon, 8 Apr 2002, andy wrote:
I use the function mail to e-mail . This workes fine with most adresses.
Unfortunatelly there is one e-mail provider (gmx.de) which does not get anny
of those e-mails. Workes fine with all other services. I doubble checked it
with 2 other gmx accounts.
How
On Monday, April 8, 2002, at 11:12 AM, [EMAIL PROTECTED] wrote:
I have a problem with the querystring.I want to add to every Link on my
Homepage a querystring, but i should have the possibility to change some
details in the Querystring.
How should i solve this problem ?
Example :
Actually, I tried it a different way and I got the results I needed... this
is what I did,
$file_var = http://www.bignickel.net/full_ad/;;
$db_name = db_name;
$table_name = table_name;
$connection = mysql_connect(localhost, user_name, password) or die
(Could not connect to database. Please try
On Mon, 8 Apr 2002, Jas wrote:
$sql = UPDATE $table_name SET ad01_t=\$file_var$files\;
Is this really what you wanted? It would set ad01_t to the same thing for
every single row in your table.
If that is what you wanted, then I think your database design is a little
weird.
miguel
--
PHP
Rather than executing a system utility you can just use the built in PHP
functions.
gethostbyaddr() - resolves an IP address into a hostname
gethostbyname() - resolves hostname into an IP address
More information is available in the PHP manual, you can access it online at
Chris,
What really matters is where the variables are coming from.
print (http://domain.com/index.php?dest=; . $var1 . item= . $var2
.br\n);
that's how I usually do it. I'm assuming that both dest and item are
variables on the referring page. Reply and let me know if this is what
you're
How does that tell you where something is?
Quick quiz, some obvious high-profile examples off the top of my head:
netvigator.com
ntlworld.com
bigpond.net
chello.com
unicc.org
miguel
On Mon, 8 Apr 2002, SHEETS,JASON (Non-HP-Boise,ex1) wrote:
Rather than executing a system
try this
preg_match(/[a-zA-Z]+/i, $str);
and if you want to go the other route.
do this
preg_match(/[^0-9\(\)\-\.\ ]+/i, $str);
this will return true if it is anything other then what is listed.
numbers 0-9
(
)
-
.
Jim Lucas
- Original Message -
From: Gary [EMAIL PROTECTED]
To:
as long as you are only inserting information into the mysql db on each page
load, then you shouldn't have a problem. make sure you keep you indecies
down to a minimum.
Jim Lucas
- Original Message -
From: Craig Westerman [EMAIL PROTECTED]
To: php-general-list [EMAIL PROTECTED]
Sent:
If object of type A ($A) contains a variable $B which is an object of
type B, how does a function within $B reference another variable in $A?
Thanks.
Here is what I need some information about, the script below opens a
directory on the server, reads the files and places them into select boxes
within a form, now I have this echoed multiple times on the page like
so...? echo $file_list; ? Now I have tried to assign a form name based
on the
Try select name=files[] The square brackets will allow you to
capture selections from multiple lists in an indexed array, $files.
Hope that does what you need.
-Kevin
The square brackets will allow you to capture the variable $file_name
-Original Message-
From: Jas [mailto:[EMAIL
Hi!
I need a php script to alert me (with a pop up window or something like that) when a
certain web page is modified. Is it possible? Where can I find that?
Tks in advance,
Rodolfo Silva
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 188 matches
Mail list logo