Hi all and Good Morning.
I have been struggling with this code: I was wondering if someone could
lend me a hand.
I am working with this code and can't get the error to disappear.
After running I get
|-|
|
On Sunday 17 March 2002 16:38, Daniel Negron/KBE wrote:
Hi all and Good Morning.
I have been struggling with this code: I was wondering if someone could
lend me a hand.
I am working with this code and can't get the error to disappear.
After running I get
Daniel,
$myrow[artist] and $myrow[title]
might be a good place to start. It looks like all your ; are in place.
I don't think you can place inside [] like that:
echo trtd.$myrow[artist].td.$myrow[title];
I have been struggling with this code: I was wondering if someone could
lend me a
I seem to be getting unexpected information from a mysql fetch field query.
My table has three fields- here is the schema-
CREATE TABLE template (
id smallint(6) NOT NULL auto_increment,
name mediumtext NOT NULL,
multiple tinyint(4) DEFAULT '0' NOT NULL,
PRIMARY KEY (id),
UNIQUE
On Sat, 16 Mar 2002, Edward van Bilderbeek - Bean IT wrote:
maybe you better use:
session_unregister(counter);
I've put that, but it doesn't run. As you can see in the URLs
below, my code is:
if ($id == logout) { // the user wants logout :(
session_unregister(counter);
}
Actually I've alreasdy worked it out- sorry
-Original Message-
From: caspar kennerdale [mailto:[EMAIL PROTECTED]]
Sent: 17 March 2002 10:31
To: [EMAIL PROTECTED]
Subject: [PHP] mysql fetch field
I seem to be getting unexpected information from a mysql fetch field query.
My table has
At 17.03.2002 07:35, you wrote:
Hi,
is it possible to send automated faxes via PHP?
Thanks in advance,
Senih
If your ISP or your server is able to, yes.
something like
exec(sendfax options,$foo);
should do this. check out your system and ISP for more infos on it.
Some ISP´s offer the sending of
At 17.03.2002 00:45, you wrote:
Hi,
I'm wanting to retrieve a remote page and extract information from it to
insert into my own page. I know that this can be done with fopen, however
the page I am wishing to retrieve is generated with a POSTed form.
Is there any way that I can retrieve a page
Hi there,
I did put a password via htaccess on my website to hide my testing
environment from other users. Now I discovered, that PHP can't read
imagefile information via getimagesize because it does not get access to
this dir anymore.
How could I add php as a user with propper password ?
At 17.03.2002 17:09, you wrote:
Hey folks, I read this with half of mind, but as I know, the function
date needs something to convert from.
$date = date (MD);
for my opinion it should be called $date=date(MD,time());
or $date=date(MD,mktime(..));
then everything should work
$to_path =
At 17.03.2002 03:10, you wrote:
Does anyone know of another snippet any place where I can copy *.*
(files and all sub-directories) from one drive to another? In other
words, a backing-up function. The snippet I got from
http://www.php.net/manual/en/function.copy.php has been a disaster.
John
At 17.03.2002 10:01, you wrote:
?php
class A
{
function A($i)
{
$this-value = $i;
// try to figure out why we do not need a reference here
$this-b = new B($this);
}
function createRef()
{
$this-c = new B($this);
}
function
hi
If you put:
?
session_start();
as the first line on your page it will behave as you want I think.
Tom
At 08:41 PM 17/03/2002, Carlos Costa Portela wrote:
On Sat, 16 Mar 2002, Edward van Bilderbeek - Bean IT wrote:
maybe you better use:
session_unregister(counter);
I've
At 16.03.2002 22:24, you wrote:
Hi! I'm building a class, and am trying to include an authorization
function the code works when used outside of the class, but when I put
it inside the class, for some reason my session variables won't get
set. Am I attempting the impossible, or am I
Hi there,
I am wondering if it would be possible to replace all chars which are not
inbetween [a-z] with a valid asccii coresponding to it. I have a db with a
bunch of citynames and I would like to create valid filenames out of those.
The prob is, that I do not know all special chars. For
On Sun, 17 Mar 2002, Tom Rogers wrote:
hi
If you put:
?
session_start();
as the first line on your page it will behave as you want I think.
Thank you very much. It runs now ok :-). But I don't understand
why, if I call session_destroy(), the system remember the value of the
A good solution is to store the file under a random generated filename
and store that name,
together with the real name, to the database.
bvr.
andy wrote:
Hi there,
I am wondering if it would be possible to replace all chars which are not
inbetween [a-z] with a valid asccii coresponding to
I don't agree. Under this circumstances no picture search engine is gonna
find this file. Thats why I am rewriting this module.
Thanx anyway.
Andy
Bvr [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
A good solution is to store the file under a random
Hi
As you had not started a session at that point there was none to destroy or
unregister :)
Tom
At 11:53 PM 17/03/2002, Carlos Costa Portela wrote:
On Sun, 17 Mar 2002, Tom Rogers wrote:
hi
If you put:
?
session_start();
as the first line on your page it will behave as you want
On Mon, 18 Mar 2002, Tom Rogers wrote:
Hi
As you had not started a session at that point there was none to destroy or
unregister :)
Ok!!!. Thank you very much,
Carlos.
http://www.tertulandia.com : sea cual sea tu tema... allí está tu sitio!
___Carlos Costa
At 02:31 PM 3/17/2002 +0100, andy wrote:
Hi there,
I am wondering if it would be possible to replace all chars which are not
inbetween [a-z] with a valid asccii coresponding to it. I have a db with a
bunch of citynames and I would like to create valid filenames out of those.
The prob is, that I
I have complied PHP with the enable trans id option
However, when I start a session and go to a relivtive link , (./page.php)
I do not get a session id in my URI.
Any Ideas?
Michael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When writing to a file several problems occur with this code:
?php
$stuff = include (news.txt);
$file = fopen (news.txt, w);
$newnews = include (template.txt) . $stuff;
fwrite ($file, $newnews);
?
However, this code works:
?php
$file = fopen(template.txt, w);
fwrite ($file, $temp);
fclose
Hi!
On my Server i can`t use the date(W) function, and on another it works.
How can i first run the script on the other server and then include it in a
script on my server so i can use the date(W) variable?
thanks,
Martin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Monday 18 March 2002 00:46, Ben Waldher wrote:
When writing to a file several problems occur with this code:
?php
$stuff = include (news.txt);
$file = fopen (news.txt, w);
$newnews = include (template.txt) . $stuff;
fwrite ($file, $newnews);
?
However, this code works:
?php
$file
oops... meant to send this to the list
- Original Message -
From: Jason Bell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 17, 2002 10:27 AM
Subject: Re: [PHP] Class Function Issue
Thanks for the tip. I tried that... I passed $HTTP_SESSION_VARS as a
parameter, and it
php-general Digest 17 Mar 2002 18:49:42 - Issue 1232
Topics (messages 88804 through 88837):
Re: Again, and Again, and AGAIN!
88804 by: Jason Wong
Re: check on pictures
88805 by: Martin Kampherbeek
send fax
88806 by: Senih
88818 by: heinisch.creaction.de
Hi,
I need to create a dBase III file however, my ISP does not have PHP compiled with
--enable-debase. Does any one have or know of a class that could accomplish this?
Thanks,
Don
Hello there,
I am trying to use substr_count() to count the number of Hebrew characters
in a string,
I tried substr_count($test, /[à-ú]/), but it returns 0 as if it can't
match the regex I have inserted there, I hoped it will work the same as
preg_match() that works great (preg_match(/[à-ú]/,
?
function count_hebrew($string)
{
$i=0;
while(preg_match(/[à-ú]/,$string))
{
$string=preg_replace(/[à-ú]/,,$string,1);
$i++;
}
return $i;
}
$hebrew_characters=??? àhhjúkkk;
$number_of_hebrew_characters=count_hebrew($hebrew_characters);
echo $number_of_hebrew_characters;
?
Op zondag 17
At 17.03.2002 10:49, you wrote:
Thanks for the tip. I tried that... I passed $HTTP_SESSION_VARS as a
parameter, and it didn't work. :/
I also built another function inside the class to set session variables:
function SetSVAR($var,$value) {
global
Try adding a slash to the end of the URL i.e. www.whatever.com/~jondoe/ and
see if that helps.
Maybe Apache tries to parse your PHP file as if it is an HTML file.
Omland Christopher M [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi all, I'm new to the
I have a html report and am looking into using phplib to generate a pdf
instead. I have got it installed and started experimenting with it but
ether it is extremely convoluted or I am missing something. How would I
create a simple list report (the type you would do in a table). It seems
I don't agree.
First of all, picture search engines don't use filenames, they use ALT
attributes and surrounding text.
Secondly, you can still make the images available using both the database
ID and a urlencoded version of the original filename:
On Sun, 17 Mar 2002, Ben Edwards wrote:
I have a html report and am looking into using phplib to generate a pdf
instead. I have got it installed and started experimenting with it but
ether it is extremely convoluted or I am missing something. How would I
create a simple list report (the
Hi,
I got a table where I on the left has a link to page1. Another place in the
table I have a button, which also links to page1. Is it possible to tell
which of the two links has been pressed.
I need to know so I only show a specific message when the button has been
pressed.
Regards,
Morten
On Sun, 17 Mar 2002, Morten Nielsen wrote:
I got a table where I on the left has a link to page1. Another place in the
table I have a button, which also links to page1. Is it possible to tell
which of the two links has been pressed.
I need to know so I only show a specific message when the
I am completely stuck, and I am preying that someone will be able to help me.
I have set up a php web form that allows one of my users to write columns for my site.
This works great, I do a search and replace to replace /n with br because they
don't know much about html. I have managed to
At 17.03.2002 18:21, you wrote:
Hi list,
I'm developing a system to store Resumes, since my form has a lot of fields,
about 70, i'd like to have the ability to save the filled ones if my user
wants to finish it later. Wha'ts the best way to implement this kind of
feature. Maybe I could use
On Sun, 17 Mar 2002, Daniel Negron/KBE wrote:
$sql= SELECT * FROM cd_list WHERE $searchstring LIKE '%searchstring%'
ORDER BY artist ASC;
How about:
SELECT * FROM cd_list WHERE searchstring LIKE '%{$searchstring}%'
Then again, do you actually have a column called searchstring in your
I run a script on my page that has worked fine before with 4.0.3 but now
when my provider has upgraded to 4.1.2, a bunch of error messages appear. I
get some messages about variables not being defined just as if I can't send
variables via the adressbar (/ ../index.php?$kat=0 for example. ) How
On Sun, 17 Mar 2002, Markus Falk wrote:
I run a script on my page that has worked fine before with 4.0.3 but now
when my provider has upgraded to 4.1.2, a bunch of error messages appear. I
get some messages about variables not being defined just as if I can't send
variables via the adressbar
If you want to do this the hard way (for you) then you can create a form
which asks for the number of rows/columns and pops up another form with
a table and rows x columns input boxes - then you can build the table
code and maybe even insert it in the original code via JavaScript
(assuming
Right now, I have a static server time clock on my page, produced by date().
I would like to make it move, and I was wondering if anyone has code that
returns the server time to javascript to animate it or something?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I think you have to draw a line somewhere... you can't give them
everything they want, becasue the costs involved in making these
simple tools available is massive. And at every step where you give
them more control, you lose a little more control.
Do you REALLY want them creating tables? This
Windows :)
John
[EMAIL PROTECTED] wrote:
At 17.03.2002 03:10, you wrote:
Does anyone know of another snippet any place where I can copy *.*
(files and all sub-directories) from one drive to another? In other
words, a backing-up function. The snippet I got from
Don,
Since you are creating this file, you can wrap your character fields in
quotes. (Surely you can amend it to look after plumbing issues?) They're
automatically stripped off in the APPEND FROM .. DELIMITED WITH
delimited. Alternately you can use tabs to separate fields, tildes,
almost
I'm receiving Parse error: parse error, expecting
`T_CONSTANT_ENCAPSED_STRING' in /host/plugged/index.php on line 3 error
when trying to require_once a couple of files.
top of index.php looks like so (line 3 is where I use $homeDir .
/common/header.php)
?php
require_once(homedir.php);
On Sun, 17 Mar 2002, Leif K-Brooks wrote:
Right now, I have a static server time clock on my page, produced by date().
I would like to make it move, and I was wondering if anyone has code that
returns the server time to javascript to animate it or something?
Are you particularly concerned
is there any limitation with header function?im wondering why it not realy
working for me. it really gives me a headache.
i've done exactly what you've told us but it does'nt work. i remove the
comment from the left.php or right.php and retain the index.ph as-is, but
still it doesnt jump out the
I am trying to get a form to work with pull down menu. But I am so brain
dead I forgot how to get the input from the pull down menu. Where do I put
input to pass on to php?
Chuck Payne
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dropdownmenu is a select name=ddmenuoption/select
So the php variable that will hold the user's choice is stored in variable $ddmenu.
Thus, no input needed.
cheers,
--thalis
On Sun, 17 Mar 2002, Chuck PUP Payne wrote:
I am trying to get a form to work with pull down menu. But I am so
Ok, but I have this as an example
select name=abc size=1
option value=a selectedA/option
option value=bB/option
option value=cC/option
option value=dD/option
/select
Are you saying that abc should be $abc? I not
What does I get that it can't do the query mean? What error are you getting?
On Sun, 17 Mar 2002, Chuck Payne wrote:
Ok, but I have this as an example
select name=abc size=1
option value=a selectedA/option
option value=bB/option
do other variables you pass to the script get set?
if not, do you have register_globals (or whatever it is) turned on?
maybe use $_GET or $_POST instead?
-Original Message-
From: Chuck Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 1:36 PM
To: Thalis A. Kalfigopoulos
Cc:
When I go to post, I get the following alertCouldn't execute query so
I know I can connect, so it must be my SQL statement. That why I wondering
how to pass the menu information to php so that it can do the SQL statement.
I don't have $abc in the menu but I do have abc. So I am trying to
Another thing you might want to try doing is throwing in phpinfo() somewhere
to see what variables you are actually getting
-Original Message-
From: Chuck Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 1:44 PM
To: Thalis A. Kalfigopoulos
Cc: PHP General
Subject: Re: [PHP]
I guess I should have walked away then come back to it. I was just trying
to get this code to work with little effort as possible. I guess, I should
have done it right in the first place. What I didn't realize is that I
mistakenly made
$sql= SELECT * FROM cd_list WHERE $searchstring LIKE
Is it possible to check the Mysql log and tell us its point of view?
On Sun, 17 Mar 2002, Chuck Payne wrote:
When I go to post, I get the following alertCouldn't execute query so
I know I can connect, so it must be my SQL statement. That why I wondering
how to pass the menu information
I think it I am the right path now, it has to do with $_GET or $_POST not
passing the information on to mysql.
But I will look at the log shortly.
Chuck
- Original Message -
From: Thalis A. Kalfigopoulos [EMAIL PROTECTED]
To: Chuck Payne [EMAIL PROTECTED]
Cc: PHP General [EMAIL
simple answer - yes and possibly
I believe, anything that's run on a server to output stuff to a browser, can
be considered a CGI program
The second question is like asking - Will COBOL ever become obsolete? -
maybe, possibly, but there'll, no doubt, be someone, somewhere still using
it.
I'm attempting to get file uploads via a HTML form to work. I've been
working on this for a couple of days, reading the PHP.net manual, and
searching the newsgroups and various web sites. Haven't come up with a
solution to my problem.
Basically I'm unable to upload any files to my web site. I
On Monday 18 March 2002 06:31, Markus Falk wrote:
I run a script on my page that has worked fine before with 4.0.3 but now
when my provider has upgraded to 4.1.2, a bunch of error messages appear.
I get some messages about variables not being defined just as if I can't
send variables via the
I need some experienced people to become managers of the CGI Open Source
Foundry (COSF)?
I am planning to make a CGI Open Source Foundry
We will start in stages.
Stage 1 getting initial members (Hard Part)
- Once we gain 10-20 members we will start stage 2.
Stage 2 Dividing them into
Hello,
Is there any way to password protect a file for an include(); that is off
site?
Server A has a php script that has a call to a text file on server B, but to
get access I need the A user to enter a password ID before they can take a
look at the file on B.
htaccess only works for images
On Sun, 17 Mar 2002, David Duong wrote:
Can PHP be considered CGI?
Sometimes.
CGI is a standardized interface between web servers and backend
applications. PHP can communicate with web servers using that mechanism,
but it doesn't have to (depends on the web server in use).
I think the
I mean any time you hear the word CGI it is rarely referring to PHP, always
Perl (My most comfortable Web language). You'd think that CGI only refers
to Perl.
If you goto a site and download scripts under category CGI you would be
downloading Perl scripts, PHP has its own category.
Should CGI
I think the meaning of CGI is quite blured.
Anyone else think so?
I think the the meaning of CGI (Common Gateway Interface) has lost it's
meaning by a lot of people who just hear the acronym and not the full
phrase. It's like the term PC - when people hear that, they almost
straight away think
On Sun, 17 Mar 2002, David Duong wrote:
I mean any time you hear the word CGI it is rarely referring to PHP, always
Perl (My most comfortable Web language). You'd think that CGI only refers
to Perl.
Back in the day, CGI repositories had a greater representation of programs
written in C and
Hi,
I'm trying to use $_SESSION on Windows2000+PHP4.1.2 binary version.
But it seems that $_SESSION doesn't work, even in the simplest samples
like;
--
?php
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
else {
I'm writing a page that will do a little snooping into a db (based on a
previous form submit) and start a session based on the results.
The problem is that PHP seems to be sending the HTTP headers when it
encounters the first blank line in the code (which I do use to help separate
the code a
On Mon, 18 Mar 2002, Michael Zornek wrote:
The problem is that PHP seems to be sending the HTTP headers when it
encounters the first blank line in the code (which I do use to help separate
the code a bit).
Am I right in this assumption .. and then the big Q.. how do I do PHP
calculations
Roy Daniel , ST
IT Developer System - PT BERCA COMPUTEL
My E-mail : [EMAIL PROTECTED]
and : [EMAIL PROTECTED] / [EMAIL PROTECTED]
My ICQNumber : # 103507581
My Phone Cell : 0816-1192832
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Twas 3/18/02 12:21 AM, when [EMAIL PROTECTED] [EMAIL PROTECTED] said:
Just make sure the blank lines are ? inside php tags ?
If they're out in the raw HTML area, the headers will get packaged up and
the content output buffer collection will begin.
After some investigation I saw an extra
I need a function to traverse a pathname
to check if the path exists, if not start from scratch
and create (MkDir) the path.
Let's say:
$to_path = c:\\aaa\\bbb\\ccc\\ddd\\;
or
$to_path = c:/aaa/bbb/ccc/ddd/;
if(!is_dir($to_path))
{
#I need to explode by both \\ AND / to find out
On Mon, 18 Mar 2002, jtjohnston wrote:
I need a function to traverse a pathname
to check if the path exists, if not start from scratch
and create (MkDir) the path.
Let's say:
$to_path = c:\\aaa\\bbb\\ccc\\ddd\\;
or
$to_path = c:/aaa/bbb/ccc/ddd/;
if(!is_dir($to_path))
{
#I need to
Hello everyone
I have a problem to post messages to newsgroups. How can i do it.
thanks
Muhammad Fawad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.php.net/manual/en/function.copy.php
Thanks all! I needed to check if pathname exists:
if (!is_dir($to_path))
{
echo Creating destination pathbr;
create_path($to_path);
}
John Steele helped out with a few lines of code. I added a comment to
78 matches
Mail list logo