Hello,
Penghui Wang wrote:
Hi lists:
I am new here. And i know little about php. Sorry ask so stupid
question.
snipped ...
$headers .= Content-Transfer-Encoding: UTF-8\n;
$headers .= Content-Type: text/plain; charset=utf-8\n;
snipped ...
head
title/title
meta http-equiv=Content-Type
germ germ wrote:
In my HTML file the HREF tag is: A
HREF=www.google.com TARGET=_blankgoogle.com/A
When clicked, the link in then directed to:
http://10.10.1.5/test-a/ref/www.google.com
Basically it seems like it appends the link to the URL
path.
Yes, guess you have a base tag on the page, which
[EMAIL PROTECTED] wrote:
I m trying to check $GP[sifre] variable, $GP[sifre] must consist of alpha
numeric chars only. here, how I check the variable:
Try this:
if(eregi(^[a-zA-Z0-9]+$,$GP[sifre]))
The above say that between the beginning of the string ^ and the end
of the string $,
Evert - Rooftop Solutions wrote:
pooly wrote:
I'm trying to use a global object (declared at a upper level), but
all I got is :
Call to a member function on a non-object in
/home/pooly/public_html/templeet/modules/freedb.php on line 16
Hmm, perhaps your problem is the failed connection to your
Hello,
Octavian Rasnita wrote:
?php
$var = 1;
//Here I have also tried inserting $var = (string) $var;
echo $var;
?
This prints:
1E+012
and... not 1 as it should.
I tried the above example, and I got what you want, i.e. 1.
My environment is Windows 2k, PHP
Hello,
M. Sokolewicz wrote:
you might want to try using number_format() to change the format back
to integer likeness
After I changed to echo number_format($var), I got 1,000,000,000,000:)
Well, actually this is not my problem. I just tested this for fun.
Best
Bao
Bao Ruixian wrote:
Hello
Hello,
Octavian Rasnita wrote:
Hi,
I also use Win 2k with PHP 5 in command line mode.
This is the result I got when run from the command line:
C:\Program Files\Apache Group\Apache2\htdocs\php
Content-type: text/html
X-Powered-By: PHP/4.3.3
1,000,000,000,000
C:\Program Files\Apache
loll wrote:
Hi,
I am not sure if this is a PHP or Apache problem, but I am hoping
someone can tellme what is wrong.
When I go to www.domain.com on my server it shows the page as text
instead of parsing the php code.
If I go to www.domain.com/index.php (same page) it runs as it should.
if I go
Erik Gjertsen wrote:
I have write following code:
?php
$page_title = Welcome;
?
But I can not see Welcome on top of the page.
Can someone tell me why I not can see it?
Can you see it by reading the source of the page?:)
Best
Bao
Thanks
Erik Gjertsen
--
PHP General Mailing List
Angelo Zanetti wrote:
[snip...]
$q=select * from prospects where p_id = '$p_id';
$result=mysql_query($q, $this-link) or die (.mysql_error());
while($a_row=mysql_fetch_array($result))
{
$c_query=Insert into client (c_name, c_company, c_worktel,
John Taylor-Johnston wrote:
I'm trying to figure out something. I found some calendar making code. For each table cell, I want to add a href=$day/a around $day if an entry exists in $db.$table
$sql = 'SELECT * FROM '.$db.'.'.$table.' where eventid like '.$eventid.';';
if ($sql ??)
This
.';';
#echo $sql;
#SELECT * FROM GMCalendar where eventid like 2004-02-16;
$glquery = mysql_query($sql);
if ($glquery)
{
echo tda href=results.php?eventid=$link_date $day /a/td;
}else{
echo td $day /td;
}
Bao Ruixian wrote:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Brian Dunning wrote:
This inserts nothing into the database, but returns no error that I
can see. How come? What's wrong with it?
$dbname = my_database;
$dbconnection = mysql_connect(mysql05.powweb.com,my_user,my_pass);
mysql_select_db($dbname, $dbconnection);
$query = INSERT INTO invoices
Brian Dunning wrote:
On Feb 23, 2004, at 9:18 AM, BAO RuiXian wrote:
Have you tried to insert the same SQL statement manually, i.e., not
via your php scirpt?
I did the insert in phpmyadmin copied pasted the SQL that it
generated, and it's the same, so I'm left scratching my head big time
Based on the style of message body (short and shout), and the subject
line, and the zip attachment, I conclude it as a virus. It may or may
not a virus in face, I immediately delete it anyway:)
Best
Bao
Ben Ramsey wrote:
I would advise against sending attachments to the list with the
Piet from South Africa wrote:
i have the following problem.
when i href like this
a href=nextpage.php?name=$name
and the name contains a sign, it does not post it to the next page.
if the name is bedbreakfast it stops at bed.
Because '' is a special character in URL, you need to
wrote:
Now, my problem is next:
When I tryin' to view my phpinfo.php file, Internet Explorer is invite
me to save it to disk Not To Open Why?
I have 11 files in my PHP directory:
LICENSE
MSVCRT.DLL
php4ts.dll
php4isapi.dll
php.exe
php.ini
php.ini-optimized
First off, two routine notes for you:
1. Don't only send message to me;
2. Don't send html format message;
Then, see below...
wrote:
Yes, I moved php.ini file to C:\windows directory...
E-mail: [EMAIL PROTECTED]
- Original Message -
From: BAO RuiXian
wrote:
Hello! My name is Artem!
I want to tell you about my problem. Please, help me
When I changed my httpd.conf file like in book by Julie C.Meloni, I
try to open file phpinfo.php from directory C:\Program Files\Apache
Group\Apache2\htdocs.
But when I open Internet Explorer
: [EMAIL PROTECTED]
- Original Message -
From: BAO RuiXian [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 11:40 PM
Subject: Re: [PHP] Problem with Apache!
wrote:
Hello! My name is Artem!
I want to tell you about my problem
. It will make people hard to
follow.
Help me, please... I'm waiting for you... I have only about 5 minutes...
Please, help me. It's very improtant!
Best regards.
E-mail: [EMAIL PROTECTED]
- Original Message -
From: BAO RuiXian [EMAIL PROTECTED]
To: [EMAIL PROTECTED
Jay Blanchard wrote:
[snip]
More info about the parse error of my previous post:
The lines 45-46:
$mysql_query = INSERT INTO
sessions(sessionid,ver,agent,bwinf,screenwidth,screenheight,availwidth,a
vail
height) ;
$mysql_query .=
marc serra wrote:
Hi,
i use PEAR DB with a mysql database and i want to know if there is a
solution to get last inserted id in a table.
If the id is auto increment, can't you use max(id) to get the last
inserted one?
Best
Bao
I see that I can use sequences but it doesn't work with
tg wrote:
hi
i need returning value of function as a variable
example :
function 1 () {
return some error;
}
function 2 () {
$v = 1();
if ( $v != '' ) echo error;
}
it doesn't work this way
Are you using 1 and 2 as the function names in your real application?
Hope not, because
Al wrote:
[snip...]
I'd like to have my code clean up the newline code every pass and
standardize it. What new line should I use, \n Unix, or what?
Yes, \n is the line separator for Unix.
Best
Bao
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Ryan A wrote:
[snip...]
the source and target files are on the same filesystem.
My (simple) question is:
What is hard links? never really heard of it and googles no help either.
Am I missing something?
A link is called hard link when its system-file-identifier (SFID) is
added to the current
Radi Shourbaji wrote:
Hello All! I'm struggling to get phpMyAdmin working correctly on a new
installation of Fedora FC1. Despite my best efforts, phpMyAdmin keeps
running into problems resolving included files. I'm sure that it has
something to do with the settings in Apache / php.ini /
news.php.net wrote:
[snip...]
Inside another class (Class2) I have several functions that need database
access. So in each function I can use $db = new dbi; and then use the
functions as usual ($db-dbquery(blah);).
I am wondering, can I create the new dbi instance at the top of Class2 and
craig wrote:
Hi,
the problem is that I am trying to use a varible in the objects
attribute name. the offending line of code is:
echo img src='$row-cPic$count' border='1';
this is giving the warning:
Undefined property: cPic
I have tried playing with eval and variable variables to
get
Slava Zinkovski wrote:
[snip...]
I run it with URL like this http://localhost/myApp/test.php?param=qqq:
I expect it to print 'param=qqq' string, though it does not! :(((
Here is the output:
Array ( [param] = qqq )
Notice: Undefined variable: param in d:\phptest\test.php on line 4
Eli Hen wrote:
Hello All,
I have PHP installed on Apache and Unix with several vhosts so each vhost
has its own user account on Unix.
Now when accessing a webpage, Apache runs with user httpd.. but I want it to
run as the user of the vhost account.. How can I do that?
What version of Apache
Radwan Aladdin wrote:
Hello..
I want to prevent mySQL from storing the same value in a specified field (Username).. so how can I do it?
Regards..
Make it field UNIQUE.
Best
Bao
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hmm, this is a bit off topic, but...
Mario wrote:
[snip...]
The story: I have created a script in the cron dir that runs a php file that
sends auto emails. (The script is working fine when we run it through the
command line, so it's working fine).
The problem is that when the time comes and the
Thomas Svenson wrote:
BAO RuiXian wrote:
Make it field UNIQUE.
That's the easy method, but usually not very smart. It only causes MySQL to
Well, if there is an easy method, why we bother to use a more
complicacted way?
generate an error which you then have to take care of in your
Louie Miranda wrote:
i mean under /
Please use the unix command 'df' to see the disk drive usages for a list
of your available disks and specially for the disk where /tmp is located.
Best
Bao
-- -
Louie Miranda
http://www.axishift.com
- Original Message -
From: Louie Miranda
Tom Ray [List] wrote:
[snip]...
?php
print Test 123;
?
I'm sure I'm missing a line or two in my httpd.conf, but I really don't know what
they would be. Anyone with experience
with FreeBSD/Apache/PHP give me a hand?
Do you have the following line in your httpd.conf:
AddType
-
From: BAO RuiXian [EMAIL PROTECTED]
To: Tom Ray [List] [EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED], [EMAIL PROTECTED]
Date: Fri, 23 Jan 2004 00:11:42 +0200
Subject: Re: [PHP] Apache 1.3/PHP
Tom Ray [List] wrote:
[snip]...
?php
print Test 123;
?
I'm sure I'm missing a line
[EMAIL PROTECTED] wrote:
bit of a random thought I need answering really...
when referencing external files, what's the difference between:
../
/
./
I know that ../ means back one directory and jsut a / means look from the
root directory, but what is:
./
???
./ means the current directory.
[EMAIL PROTECTED] wrote:
Oh...
So it's the same as not having any /'s
just the file name?
Not quite. For example, when you have more than one executables with the
same name, when you use ./executable_name, it will call the the one in
your current directory, otherwise it will use the one in
Jonathan Zhang wrote:
test.php
--
?
session_start();
?
form
input type=text name=test
/form
For Win2kpro+netscape 4.7,all form data you enter in this page will lost
when resize the browser's window size, ns4.7 have reload this page when
resize the window.
But if you remove the session_start()
Mike wrote:
if you are using windows, I would highlt recommend PHPEdit, it is open
source and has function completion. It boosts productivity a lot
http://www.phpedit.net/products/PHPEdit/
Mike
Not that good. IIRC, all the error messages and the prompts are in
German, one need to guess
Don't know the HTML thead/tbody/tfoot elements can hold down on a single
page. The CSS command page-break-before:always and
page-break-after:always should play the trick on a XML sensible browser
like IE or Opera. For example, you can have a look at this page:
Adam Reiswig wrote:
$table=elements;
$sql=insert into $table set Name = '$elementName';
This works with register_globals set to on. But, I want to be able to
turn that off. My code then, I am guessing, be something as follows:
$table=elements;
$sql=insert into $table set Name =
43 matches
Mail list logo