I have another idea - to use javascript to change hidden value
(input type=hidden id=chkbox value=0)
When you check this box - javascript changes hidden value to 1 and submits form
(
function chkboxAndSubmit()
{
var box_name = document.GetElementById('box_name');
var chkbox =
Hi,
I have PHP running on my Debian (unstable distribution) box. I'm trying to
generate an email via the mail() function.
It keeps failing because I do not have a properly installed/configured SMTP
daemon on my machine. This is despite the fact that I have modified the
SMTP variable in the
I'm trying to read a record from a dbase data base so I've previously
opened it successfully. The problem is that I call the function
dbase_get_record, but it returns no records. The database is ok because I
call the funcion dbase_numfields and dbase_numrecords and they give me
correct
I don't really know anything about dbase. But don't you need to tell it
which tables and fields you wish to retrieve?
Regards,
[ lucas ]
Alejandro Viana [EMAIL PROTECTED] wrote in message
001e01c15ec9$d3d566a0$9db2243e@miordenador">news:001e01c15ec9$d3d566a0$9db2243e@miordenador...
I'm
On Fri, 26 Oct 2001 20:54:00 -0400 impersonator of [EMAIL PROTECTED]
(Gerard Onorato) planted I saw in php.general:
Hi,
Another solution I have used when I have to do conditional includes which
may cause the same page to be included twice
Unfortunately, you can't include FUNCTION()
I include files in each other all the time, and some of them might call the
same functions (like database functions).
I just use a string in all function declaration with the name of the
functions or set of functions in the file.
if(!$function_test)
{
$function_test=1;
function test()
{
Unfortunately, you can't include FUNCTION() conditionaly (well, you
can, but then you can't use it out of this if():). Why only such
dumn restriction, PHP developers?
I think it's only true for php3
I use many many class definitions in php4 that are inluded
conditionally in another classes'
Hello guys
function replace_text_smiley(){
global $comment;
// To add a relation between a text smiley a an image smiley do this:
// $faces[text smiley here] = img tag to image smile here;
$faces[:)] = IMG SRC=\emoticons/smile.gif\;
$faces[:P] = IMG SRC=\emoticons/tongue.gif\;
$faces[:D]
It has only 1 table . Thanks
--
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]
Hello guys
function replace_text_smiley(){
global $comment;
// To add a relation between a text smiley a an image smiley do this:
// $faces[text smiley here] = img tag to image smile here;
$faces[:)] = IMG SRC=\emoticons/smile.gif\;
$faces[:P] = IMG SRC=\emoticons/tongue.gif\;
$faces[:D]
What if pass some parameters to function - i mean not use global $comment
but
do like function replace_text_smiley($comment)
- Original Message -
From: Daniel Harik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, October 28, 2001 12:20 AM
Subject: [PHP] Replace text
Hello guys
I've asked a few questions before on Smarty here and I've worked through them but this
one really has me.
I checked the Smarty lists for answers and couldn't find a clear answer. Here is my
problem.
i want to do something to this effect
{section name=loop_index loop=$DATA_ARRAY}
Hi There,
I have a query whenever I try to insert something into a mysql table. This is
the code I am using:
?
$host1 = gethostbyaddr($REMOTE_ADDR);
$date = date(Y-m-d h:i:s);
$link = mysql_connect($host, $user, $passwd);
mysql_select_db($database, $link);
$sql = INSERT INTO vcstats VALUES('',
What if you single quotes like this:
'$REMOTE_ADDR'
???
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 27, 2001 3:20 PM
Subject: [PHP] HELP PLEASE!! Get query error when inserting into MySql
Hi There,
I have a query whenever I try to insert
Hello All,
I'm trying to use php sessions to logout a user that may be sharing a
computer with another user.
In other words. I don't want user1 to access my site and then user2 be
able to access user1's account with an auto login because the session
was saved.
I've seen a few sites that have
Hello guys
Thank You very much for your previous replies, could u help me with 1
more thing?
You see i have huge(for me) 100 000 record access table, i wanted to
convert it to mysql, i thought of making php convertor that uses odbc
and mysql, but maybe there is faster way?
And other thought
At 04:11 PM 10/27/01 -0800, Daniel Harik wrote:
You see i have huge(for me) 100 000 record access table, i wanted to
convert it to mysql, i thought of making php convertor that uses odbc
and mysql, but maybe there is faster way?
Daniel,
You're making it too hard on yourself.
1. CREATE TABLES
Hi All,
What do you guys think of a import feauture for php. This allows developers
to use packages and a package trees for including files. We're using a php
written import for the binarycloud app framework with grat success. It's
extremly handy, easy to use, clear and straight forward.
We
Hi All,
What do you guys think of a import feauture for php. This allows developers
to use packages and a package trees for including files. We're using a php
written import for the binarycloud app framework with grat success. It's
extremly handy, easy to use, clear and straight forward.
We
Here's the problem:
I want a PHP scrip ton my shared server to be able to create some
directories and files. I don't want to make a directory with 777
permissions. Also, I'm going to distribute this script, so I don't want to
do set web or nobody as having write access in my system.
Solution?
I try the simplest script and it just shows in Netscape 6.0 and it just
shows the php code, it does not process the information. How do I check
to see it apache processes the information?
Thanks,
Evan P.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Another idea that may work... and I say may because I have never done it
myself. Is to use MyODBC drivers and do the import code native to Access.
I would be interested to hear if others have done this.
Gerard
-Original Message-
From: Jeff Gannaway [mailto:[EMAIL PROTECTED]]
Sent:
Yet another good way (if you have Windows) is to grab a copy of the MSDE
(comes with most distros of Office, on the CD.. you'll hafta search for
it), which is essentially a stripped down version of Microsoft SQL Server.
Install that, and on your start menu somewhere (it'll say like MSDE or
On Sat, 27 Oct 2001 13:21:58 +0200 impersonator of [EMAIL PROTECTED]
(Tamas Arpad) planted I saw in php.general:
Unfortunately, you can't include FUNCTION() conditionaly (well, you
can, but then you can't use it out of this if():). Why only such
dumn restriction, PHP developers?
I think it's
From: Brad Hubbard [EMAIL PROTECTED]
I am using fsockopen to post data to a dll on a SSL server. I setup the
socket data and successfully posted the data to port 80 but as soon as I
switch to port 443 I received no errors or text.
Does this help? I use this on web servers to test
I used Jeff's method
http://adsl20066.estpak.ee/emt here is it working live
Thank You Jeff so much
--
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:
Hi Ray,
@ 1:56:29 PM on 10/27/2001, Ray Todd Stevens wrote:
I have been trying to get the php code to compile and can't seem to
make this work. I keep getting an error
In file included from /usr/include/errno.h:36,
from zend_language_scanner.c:2718:
On Saturday 27 October 2001 17:11, Daniel Harik wrote:
You see i have huge(for me) 100 000 record access table, i wanted to
convert it to mysql, i thought of making php convertor that uses odbc
and mysql, but maybe there is faster way?
Your subject says excel but above, you say access. If,
I have a file called miec.php that does quite a lot of processing and then
include()s user_track.inc.php...
miec.php:
?
a lot of db processing (NO OUTPUT whatsoever)
include(user_track.inc.php);
UserTrack($products);
the output starts here...
?
Hi all,
I am a bit puzzled by the way PHP treates variables that have the same name
in a base class and a child class.
It seems to me that if a child class and its parent both have a variable
with the same name, then they should be different variables. Instead, the
example below indicates that
My mind is going blank here and I feel like I'm missing something basic.
I have an insert form for movie profiles that takes cast members, writers and
directors and inserts them into the
tables for the correct movieid.
In the old version of the script I would repeat the inserting section of
$HTTP_POST_VARS['middlecasts']['key']['subkey']['wecould']['go_on']['forver'];
;)
Mike
Ian Evans wrote:
My mind is going blank here and I feel like I'm missing something basic.
I have an insert form for movie profiles that takes cast members, writers and
directors and inserts them into
Hi,
Thanks for the info. about free web hosting www.multimania.com , i will be
greateful if any one help in the steps of config. mysql and php on this web
hosting, the problem is that site is in non-english language (i think its in french
which i dont understand). if any one let me know briefly
Onething I should note.. this doesn't work within a string.
For example:
let's say:
$HTTP_POST_VARS['key']['subkey'] = 'Hello World!';
$HTTP_POST_VARS['key2'] = 'World #2!';
if we do:
echo key2: $HTTP_POST_VARS[key2];
The output will be:
key2: World #2!
However, if we do:
echo
In my phpadmin, I have something called: Table comments.
Can I acccess this somehow? Can't find it in the function database.
I've tried this since, but can't get syntax right:
?php
$myconnection = mysql_pconnect(localhost,,);
mysql_select_db(,$myconnection);
$rows = mysql_query(SHOW TABLE
?php
$db = mysql_connect('localhost','user','password');
mysql_select_db('database', $db);
$sql = 'SHOW TABLE STATUS LIKE table_name';
$result = mysql_query($sql);
// Only returning 1 row, but I put it in a while() loop in case the
result is empty
// Then I don't get any
Wow, that holds the land speed record for a reply. Thanks for your help!
Mike Eheler wrote:
$HTTP_POST_VARS['middlecasts']['key']['subkey']['wecould']['go_on']['forver'];
--
Ian Evans
Digital Hit Entertainment - News and Information
http://www.digitalhit.com
--
PHP General Mailing List
Hello!
Is there something I don't understand ?
Yes.
According OOP concepts, derived class inherits all functionality and data
from the base. So, if you have $shared variable in the base class, your
derived class will have it automatically. But PHP allows you to declare this
variable once again
I'm still getting Supplied argument is not a valid MySQL result resource
for:
while ($data = mysql_fetch_array($result)) {
mysql_free_result($result);
presumably $result
?php
$myconnection = mysql_pconnect(localhost,,);
mysql_select_db(,$myconnection);
$sql = 'SHOW TABLE STATUS
Hello!
Yiu must have linux includes installed.
Best regards,
Andrew Kirilenko.
-Original Message-
From: Ray Todd Stevens [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 27, 2001 8:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] can't seem to compile 4.0
I have been trying to
Hello,
I am writing a script using php's command line ability and I am lost on
how to work with a file when I don't kow what the file's name is.
Example:
script.php -f file
In my script, how do I reference the file when I have no idea what it's
name is going to be?
The scrip will get called
Hi,
I'm having some trouble with this formToEmail script. It shuld take
variables from html form, send them to me, and then send auto reply to the
person who filed the form. But the problem is that, if the person dont enter
e-mail, or enter "sjhdfzg" or leave empty, i receieve internal server
That's because you're not selecting a database.
You need to either put the database name in mysql_select_db, or change
the query to:
SHOW TABLE STATUS FROM databasename LIKE 'table_name';
so change the line to:
$sql = SHOW TABLE STATUS FROM db_name LIKE 'bookmark_unit4';
Mike
jtjohnston
Does anyone know of a function that assists with checking URL
strings to make sure they haven't been monkeyed with?
Ideally something that calculates the md5 hash of a string and then
automatically verifies it when a user clicks a link.
I've checked the usual places (hotscripts, devshed,
Guys getting more serious here now, 3 500 000 records, foxPro
i'll try Jeff's method
--
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]
This is what I'm trying to do, and I think I'm just missing some logic in
how to think like PHP.
I have a global included file (global.inc) where I set up variables, open
the database, etc, and I include it in the header of every HTML file on the
site.
One thing I would like to set as a
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Nathaniel Merriam) wrote:
I have this at the top of the page:
?php
$banner = include (banner.inc);
?
(which immediately spits out the result of the include!)
But I want to print the results several times a page with this:
?=$banner?
I found sessions to be kind of fussy to get working, perhaps that's just
because I didn't have any experience with them until the last site I
did...
A simple call to session_unset() won't erase the session, but should
clear whatever username/passkey (I say passkey, assuming/hoping it's
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Jeff Gannaway) wrote:
Can PHP run some FTP or TELNET commands?
http://php.net/ftp
http://php.net/fsockopen
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Hello guys
function replace_text_smiley(){
global $comment;
// To add a relation between a text smiley a an image smiley do this:
// $faces[text smiley here] = img tag to image smile here;
$faces[:)] = IMG SRC=\emoticons/smile.gif\;
$faces[:P] = IMG SRC=\emoticons/tongue.gif\;
I am writing a script using php's command line ability and I am lost on
how to work with a file when I don't kow what the file's name is.
Example:
script.php -f file
In my script, how do I reference the file when I have no idea what it's
name is going to be?
The scrip will get
Hi!
I plan to build a web page which will use my system user.
So what function should I use to check the system password.
FYI I'm using Linux RedHat.
Thanks in advance.
-TaiPan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I'm trying to figure out how am I supposed to write this snippet
properly:
if (($index = array_search($search, array_keys($pages))) !== false) {
echo index: $index\n;
} else {
echo Not found\n;
}
When I search for something that I know exists, it returns the $index
just fine.
http://babelfish.altavista.com
That URL may help you translate the page...
Andrew
- Original Message -
From: Kamran H. Hassan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 27, 2001 7:22 PM
Subject: [PHP] help needed for multimania.com
Hi,
Thanks for the info. about
Thanks for your help, I've got it working now (I think!). You're right, I
had an echo at the bottom of the included script and I think was loathe to
mess with it since I spent about 12 hours getting that one to work!
I had read the man page for include -- even the example with the return! --
I've asked a few questions before on Smarty here and I've worked through
them but this one really has me.
I checked the Smarty lists for answers and couldn't find a clear answer.
Here is my problem.
i want to do something to this effect
{section name=loop_index loop=$DATA_ARRAY}
Dl Neil [EMAIL PROTECTED] wrote in message
0a4e01c15e72$c47db560$a516100a@jrbrown">news:0a4e01c15e72$c47db560$a516100a@jrbrown...
Thanks for the idea. I have just resurrected and had another play with my
'testbench.php', running it from both
IE/Apache and in a DOS box.
It includes the
Hi,
I have a form which when submitted, calls an html page which contains PHP code.
Within that code, I wish to redirect my users to another page under certain
conditions. So, in my code, I have the following lines:
Header( Location:http://www.mydomain.com/mypage.html;);
exit;
However,
From the manual:
Remember that the header() function must be called before any actual output
is sent, either by normal HTML tags blank lines in a file, or from PHP.
This is the cause of your error. Something is sending output before your
call to header();
--
Justin Garrett
Don [EMAIL
hi,
I can make an URL like www.some.com/index.php/value1/value2/ on Linux+Apache
but I can't do it on my win2k+apache 1.3.22 machine.
Why? How could I do it?
(I want to get values with explode ('/',$PATH_INFO) )
Thanx a lot!
c
--
PHP General Mailing List (http://www.php.net/)
To
Christian Dechery wrote:
I have a file called miec.php that does quite a lot of processing and
then include()s user_track.inc.php...
Where did you register the session variable?
If you are registering local variable as session variable, it may
not work...
I suggest to use
61 matches
Mail list logo