Sorry, MySQL question. Any takers? If I search for 'margaret atwood', I get results in
no real structured heirachy. Any thoughts?
SELECT ST,BT,AT FROM ccl_main WHERE MATCH (ST,BT,AT) AGAINST ('margaret atwood' IN
BOOLEAN MODE);h1Search font color=blueccl.ccl_main/font For: font
I would have at least expected it give me 'margaret atwood' before it gives me
'margaret' and then 'atwood'.
Sorry, MySQL question. Any takers? If I search for 'margaret atwood', I get results
in no real structured heirachy. Any thoughts?
SELECT ST,BT,AT FROM ccl_main WHERE MATCH
I have a netiquette question here. I haven't finished it yet (nor am I
even at a prototype level) but eventually I'd like some people to review
something that I'm working on. After all isn't this what open source is
all about? :) However, I wasn't sure if this list would be an
appropriate
On Wed, 23 Jun 2004 01:22:40 -0500, Jason Barnett [EMAIL PROTECTED] wrote:
I have a netiquette question here. I haven't finished it yet (nor am I
even at a prototype level) but eventually I'd like some people to review
something that I'm working on. After all isn't this what open source is
nl2br I think is what you wnat.
http://www.php.net/manual/en/function.nl2br.php
Brent Clements wrote:
Ok I have a general problem.
I have a textarea on an html form.
Well when the user get's to the end of the textarea, it wrap's around. The problem
with this is that unless they do a
Hi there,
I am writing a backup_restore file which creates directories and picture files
with different resolutions out of an original file.
After each process completes I would like to print out a [ok] message, but
unfortunatelly it prints those msg out only when the script is completely
On Wed, 23 Jun 2004 08:34:17 +0200, Merlin [EMAIL PROTECTED] wrote:
I am writing a backup_restore file which creates directories and picture files
with different resolutions out of an original file.
After each process completes I would like to print out a [ok] message, but
unfortunatelly
John Taylor-Johnston wrote:
Sorry, MySQL question. Any takers? If I search for 'margaret atwood', I
get results in no real structured heirachy. Any thoughts?
SELECT ST,BT,AT FROM ccl_main WHERE MATCH (ST,BT,AT) AGAINST ('margaret
atwood' IN BOOLEAN MODE);h1Search font
Brent Clements wrote:
Ok I have a general problem.
I have a textarea on an html form.
Well when the user get's to the end of the textarea, it wrap's around. The problem
with this is that unless they do a carriage return, the text entered into the textarea
is a very long line. So when ever they
Hello,
I have a script I am optimizing and want to compare the before and after
in speed. So I wrote a few lines to loop this script but I have a
problem. In the script I'm optimizing there's some function definitions
and when the script starts the second iteration it throws an error
because
Hi,
I have a script that need to run on ISAPI module on one server and on CGI on anther
server.
I would like my code to be able to react differently depending on the CGI/ISAPI mode.
How can I detect the running mode of PHP??
is there a $_SERVER variable or anything??
vincent
--
PHP General
On Wednesday 23 June 2004 14:41, Greg Donald wrote:
On Wed, 23 Jun 2004 08:34:17 +0200, Merlin [EMAIL PROTECTED] wrote:
I am writing a backup_restore file which creates directories and picture
files with different resolutions out of an original file.
After each process completes I would
On Wednesday 23 June 2004 16:42, Vincent DUPONT wrote:
I have a script that need to run on ISAPI module on one server and on CGI
on anther server. I would like my code to be able to react differently
depending on the CGI/ISAPI mode.
How can I detect the running mode of PHP??
is there a
Well you could put all of your function definitions into a separate
file. Then, just include the function file before you loop through the
code that uses the functions. Or as an alternative you could also do:
?php
if (!function_exists('name_of_function')) {
function name_of_function() {
I try to check if a session is registered. This works fine if
I first do some output
echo abc;
if (!session_is_registered('userid')) { do_something(); }
else { redirect_to_somewhere(); }
and I can't redirect to another page ...
If I comment out the echo statement I get always false and
Jason Barnett wrote:
Well you could put all of your function definitions into a separate
file. Then, just include the function file before you loop through the
code that uses the functions. Or as an alternative you could also do:
?php
if (!function_exists('name_of_function')) {
function
Frank Rust wrote:
I try to check if a session is registered. This works fine if
I first do some output
echo abc;
if (!session_is_registered('userid')) { do_something(); }
else { redirect_to_somewhere(); }
and I can't redirect to another page ...
If I comment out the echo statement I get
Dear sirs,
Actually I am using virtual server and I think I have no write to use
crontab/ But this methods become to me interesting. I will try to learn more
about how to use crontab and where can I find that in my virtual server?
If I use include in my script, I need to wait result of included
Frank Rust wrote:
I try to check if a session is registered. This works fine if
I first do some output
echo abc;
if (!session_is_registered('userid')) { do_something(); }
else { redirect_to_somewhere(); }
and I can't redirect to another page ...
If I comment out the echo statement I get
Ok, i got an Backtrace
bash-2.03# gdb /netscape/server4/bin/https/bin/ns-httpd
core.ns-httpd.22451.5.60001.60001.1087980112
GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or
Please help me.
I need create *.doc file in php script. In this file, will be data from
mysql database.
Is it possible ?
Thanks you
roman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello!
I've got an XML file that has the following tag:
customtext text=first linelt;br /gt;second line /
I parse it with the following handler (simplified a bit):
function start_tag($parser, $name, $attrs)
{
global $text;
if($name == CUSTOMTEXT)
$text =
[snip]
Please help me.
I need create *.doc file in php script. In this file, will be data from
mysql database.
Is it possible ?
[/snip]
http://catb.org/~esr/faqs/smart-questions.html
Yes it is possible. It requires that you have COM and a way to search
the internet for the answers. Google,
Qt wrote:
Dear sirs,
Actually I am using virtual server and I think I have no write to use
crontab/ But this methods become to me interesting. I will try to learn more
about how to use crontab and where can I find that in my virtual server?
This isn't exactly a PHP issue, it's your operating
Anybody have the open source report writer via PHP compiled for OS X
Here is the URL http://rlib.sicompos.com/
Don Myers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anguz wrote:
Jason Barnett wrote:
Well you could put all of your function definitions into a separate
file. Then, just include the function file before you loop through
the code that uses the functions. Or as an alternative you could
also do:
?php
if (!function_exists('name_of_function')) {
On Wednesday 23 June 2004 05:08 am, Jason Wong wrote:
On Wednesday 23 June 2004 16:42, Vincent DUPONT wrote:
I have a script that need to run on ISAPI module on one server and on CGI
on anther server. I would like my code to be able to react differently
depending on the CGI/ISAPI mode.
Using PHP 4.3.2 I am trying to create an XML file that looks similar to the
following:
?xml version=1.0 encoding=UTF-8?
Server Name=pxtest01
Serical_Number0/Serical_Number
Asset_Tag0/Asset_Tag
ModelDL380/Model
Location8th Floor/Location
Cabinet2/Cabinet
[snip]
Can someone help me fix my code so that when I add an element I can
also set
some contents or a value for that element? example
serial_number000/serial_number
[/snip]
$doc = domxml_new_doc(1.0);
$root = $doc-add_root(Server);
$root-set_attribute(Name, pxtest01);
$el =
I think you only have to change one line of your php code:
$text = $doc-create_text_node(00);
instead of
$text = $doc-create_text_node($el[00]);
With best regards
Gabriel Birke
--
KONTOR4_Neue Medien
Plathnerstraße 5
30175 Hannover
Fax: +49 51184 48 98 99
mailto:[EMAIL PROTECTED]
I have a csv string. But the string also contains other strings with commas.
Explode is not working with this kind of string. For example,
1,2,3,this string gets parsed , at the comma
Result of explode(,,string) is
1
2
3
this string gets parsed
at the comma
But what I want is
1
2
3
this string
I have created an XML, via php, and doing a dump_mem() everything looks as
expected. Now I need to have it write to a file. I have found the function
DOMDocument-save(); however, when used it appears that it is unknown. I
believe this may be deprecated or because I am using domxml_new_doc()
On Tue, 22 Jun 2004 12:05:02 -0400, R4bbit [EMAIL PROTECTED] wrote:
can anyone please help with thist?
hi,
i'm having troubles converting ascii extended symbols, for exaple one of
them looks like that 'Ü' in win, but in unicode, or old ibm dos extended
ascii its black box. most of ascii art
[snip]
I have a csv string. But the string also contains other strings with
commas.
[/snip]
is the csv coming from a file? if it is try
http://www.php.net/manual/en/function.fgetcsv.php
if not there is some user comments on that page that might help.
--
PHP General Mailing List
[snip]
So I have:
$doc-save(/tmp/test.xml);
This does not work
Thoughts?
[/snip]
you have this in your previous email $doc-dump_mem() . Just do this
$file = $doc-dump_mem();
then write $file to a file.
there is also this
http://www.php.net/manual/en/function.domdocument-dump-file.php
Input is a large string. We have no control over the file, so its not
coming from the file.
Any help with parsing a string to replace those comma in string?
On Wed, 23 Jun 2004 10:12:16 -0500, Matt Matijevich
[EMAIL PROTECTED] wrote:
[snip]
I have a csv string. But the string also contains
V Patel wrote:
Input is a large string. We have no control over the file, so its not
coming from the file.
Any help with parsing a string to replace those comma in string?
On Wed, 23 Jun 2004 10:12:16 -0500, Matt Matijevich
[EMAIL PROTECTED] wrote:
[snip]
I have a csv string. But the string also
Justing,
I will be waiting for your response
Thanks,
vp
On Wed, 23 Jun 2004 08:19:55 -0700, Justin Patrin
[EMAIL PROTECTED] wrote:
V Patel wrote:
Input is a large string. We have no control over the file, so its not
coming from the file.
Any help with parsing a string to replace
Hey all, I've been working a lot more with XML recently and it seems
like there's been a fair number of other people using XML too (based on
the moderate number of XML-based problems showing up on this list). So,
I thought I might build a form with PHP that helps people trying to work
with
[snip]
Any help with parsing a string to replace those comma in string?
[/snip]
this was in the user comments on
http://www.php.net/manual/en/function.fgetcsv.php
function csv_split($line,$delim=',',$removeQuotes=true) {
#$line: the csv line to be split
#$delim: the delimiter to split by
V Patel wrote:
I have a csv string. But the string also contains other strings with commas.
Explode is not working with this kind of string. For example,
1,2,3,this string gets parsed , at the comma
Result of explode(,,string) is
1
2
3
this string gets parsed
at the comma
But what I want is
1
2
3
Jason Barnett mailto:[EMAIL PROTECTED]
on Tuesday, June 22, 2004 11:23 PM said:
I'm not really
looking for people to help me accomplish task X as much as I'm
looking for people to just make suggestions for general code
improvement.
So, where else might I find people that are willing
Thanks Justin. Works like a charm
vp
On Wed, 23 Jun 2004 08:48:57 -0700, Justin Patrin
[EMAIL PROTECTED] wrote:
V Patel wrote:
I have a csv string. But the string also contains other strings with commas.
Explode is not working with this kind of string. For example,
1,2,3,this
If you have an apache webserver setup you should look into the ab,
apache benchmark suite. This will give you a very good tool to
benchmark your files in its correct environment without altering your
code.
If youre on a windows plattform and cant locate the ab.exe tool
please tell me and I'll
We just moved a bunch of code from one web hosting company to another.
Now, one of the pages no longer works. I have been sort of starting from
scratch, and the first line is still not working. Am I using something
that I shouldn't be? Here is a code snippet:
if ($REQUEST_METHOD=='POST') {
[snip]
The part that's not working is the $REQUEST_METHOD=='POST' line.
[/snip]
try $_SERVER['REQUEST_METHOD'] instead of $REQUEST_METHOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try:
if ($_SERVER['REQUEST_METHOD'] == 'POST')
and then read:
http://us4.php.net/reserved.variables
-Brad
- Original Message -
From: Amanda Hemmerich [EMAIL PROTECTED]
Date: Wednesday, June 23, 2004 12:13 pm
Subject: [PHP] bad programming?
We just moved a bunch of code from one web
Could be something about the server environment,
you could try changing to :
$_SERVER[REQUEST_METHOD]
Run a phpinfo() and see what variables are active on your new
server. I know that IIS webservers lack alot of the variables we
take for granted mostly.
--
--
Kim Steinhaug
Dear colleagues..
I am new to php and I am trying to do the following, to create a php file
that may contain some kind of form or survey and the data entered may be
added to a database...
Here the code of the html form
-
html
head
titleSurvey/title
meta http-equiv=Content-Type
just use the flush() method. this will send all text that is already pinted
see the documentation for more info
example:
print hello;
flush();
sleep(1000);
print world;
gr GB
Merlin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi there,
I am writing a backup_restore file which
tommie ramirez.andujar mailto:[EMAIL PROTECTED]
on Wednesday, June 23, 2004 12:31 PM said:
I am new to php and I am trying to do the following, to create a php
file that may contain some kind of form or survey and the data
entered may be added to a database...
Here the code of the html
I hope I don't get too chastised for a double post ( posted in .db first
), but I'm hoping someone can help me.
I'm using PHP with ADOdb ( and an MS Access 2000 db ) to write a simple
SQL statement but was running into some case sensitivity issues. Here's
my SQL currently:
SELECT
On Wednesday 23 June 2004 03:32 pm, tommie ramirez.andujar wrote:
Dear colleagues..
I am new to mysql and I am trying to do the following, to create a php file
that may contain some kind of form or survey and the data entered may be
added to a database. Here's the code of the html form
Boy you'd think that this would be simple, but I get no filesize with
the following
for($i = 4; $i count($arrDirectory); $i++){
if(is_dir($arrDirectory[$i])){
if($theDir = opendir($arrDirectory[$i])){
while(($theFile = readdir($theDir)) !== FALSE){
[snip]
Have I gone loopy? Wait, don't answer that. Do I need to do something
else to get the file size? I have read and searched, but to no avail
yet. TIA!
[/snip]
Have you tried absolute path in filesize($theFile); or maybe chdir to
$arrDirectory[$i]
--
PHP General Mailing List
the file should be in he same folder as that of the php script,
otherwise you have to mention the absolute/relative path
Geethanandh
On Wed, 23 Jun 2004 15:06:52 -0500, Jay Blanchard
[EMAIL PROTECTED] wrote:
Boy you'd think that this would be simple, but I get no filesize with
the following
[snip]
the file should be in he same folder as that of the php script,
otherwise you have to mention the absolute/relative path
[/snip]
I have tried the absolute path, it doesn't waork. Crud.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard wrote --- napísal::
Boy you'd think that this would be simple, but I get no filesize with
the following
for($i = 4; $i count($arrDirectory); $i++){
if(is_dir($arrDirectory[$i])){
if($theDir = opendir($arrDirectory[$i])){
while(($theFile = readdir($theDir)) !== FALSE){
!= not !==
On Wed, 23 Jun 2004 15:06:52 -0500, Jay Blanchard
[EMAIL PROTECTED] wrote:
Boy you'd think that this would be simple, but I get no filesize with
the following
for($i = 4; $i count($arrDirectory); $i++){
[snip]
Boy you'd think that this would be simple, but I get no filesize with
the following
[/snip]
I HAVE gone loopy I was concating the directory HANDLE instead of
the directory PATH...problem solved, idiot slapped in/on forehead
--
PHP General Mailing List (http://www.php.net/)
To
Hi!
I wonder how i can retrive the MAC-address of the visitor using PHP?
What i am thinking about is using the MAC-address instead of the IP-address
to ban troublesome users from forums etc.
If i just use the IP-address some users will just change it. I know that
it´s possibly to spoof the MAC
I don't think you can get that information. The packet at the MAC level is
encpasulating the IP datagram. When the datagram is passed along to another
network (e.g. through a router), another MAC packet is constructed, and the
payload (datagram) of the original MAC packet is placed into the
On Wed, 23 Jun 2004 16:30:59 -0400, Geethanandh Kandasamy
[EMAIL PROTECTED] wrote:
while(($theFile = readdir($theDir)) !== FALSE){
!= not !==
!== is correct, check the manual. If you had a directory named 0, !=
false would be false.
--
paperCrane --Justin Patrin--
--
PHP General
Yngve wrote --- napsal::
Hi!
I wonder how i can retrive the MAC-address of the visitor using PHP?
What i am thinking about is using the MAC-address instead of the IP-address
to ban troublesome users from forums etc.
If i just use the IP-address some users will just change it. I know that
its
if anyone can, would you please explain why the below code does what it
does? I would expect $this-test in TestInstance to refer to the
inherited $test from Test. Using php5RC3. Thanks.
?php
abstract class Test {
private $test;
abstract public function addToTest($i);
}
class
[snip]
What i am thinking about is using the MAC-address instead of the
IP-address
to ban troublesome users from forums etc.
[/snip]
Do you make people login? If you do couldn't you just flag troublesome
users and not allow them to login.
--
PHP General Mailing List (http://www.php.net/)
To
Hi!
I need to attach a file extension .mhtml in function mail, but i too need
view the content from the body of e-mail.That is everything!
Regards,
Juan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You could just put the file contents in the body and set its
content-type to text/html.
On Wed, 23 Jun 2004 18:15:03 -0300 (ART), Juan Pablo Herrera
[EMAIL PROTECTED] wrote:
Hi!
I need to attach a file extension .mhtml in function mail, but i too need
view the content from the body of
Do you have E_STRICT turned on? If not, I believe PHP5 lets you access
private / protected vars wherever you want.
On Wed, 23 Jun 2004 13:40:48 -0400, Chris [EMAIL PROTECTED] wrote:
if anyone can, would you please explain why the below code does what it
does? I would expect $this-test in
Chris wrote --- napísal::
if anyone can, would you please explain why the below code does what it
does? I would expect $this-test in TestInstance to refer to the
inherited $test from Test. Using php5RC3. Thanks.
?php
abstract class Test {
private $test;
abstract public function
I have been having an extremely difficult getting PHP installed with
GD support on a FreeBSD 5.1 system. While I can get the default GD
package installed, I can't seem to get it installed with JPEG support.
Does anyone know of any good tutorials or instructions for people
with basic general
is it possible to attach a custom icon [like an ICO file on the server]
to a file thru php ?
I want to automatically generate a generic text file [ which is XML
that launches a Quicktime Movie] that has a custom icon attached to
it...
then, I want to automatically send that newly created
If calling the backup function can wait till after your output is generated, then
you can echo/print the output call flush(); and then call the backup routine.
Then the backup won't apper to be slowing down as it is running after the output is
send to the user.
brgds
QT sagde:
Dear sirs,
Hello,
On 06/23/2004 06:15 PM, Juan Pablo Herrera wrote:
I need to attach a file extension .mhtml in function mail, but i too need
view the content from the body of e-mail.That is everything!
MHTML messages are just HTML messages with alternative plain text
version in the same body.
You may want
ok, i understand now that private members are NOT inherited. i guess it
was just throwing me off that var_dump()/print_r() display the parents
private member, even tho its not really a member of the subclass.
thanks
Marek Kilimajer wrote:
Chris wrote --- napísal::
if anyone can, would you
It's still a member, it just can't be accessed by the sub-class's
methods. If you call the parent's methods or a method in the parent is
called that isn't defined in the subclass, the private property is
still there are still used as normal.
On Wed, 23 Jun 2004 18:35:14 -0400, Chris [EMAIL
Hi There!
I only used php and never did any scripts
in the last time by my self. Now i searched
a script but its so frustrated - i didnt had
found anything that i can use for my needs.
I want to get a script that can do the following:
If a user visits my Website - the visitor should
get send to
* Thus wrote Marek Kilimajer:
Chris wrote --- napísal::
if anyone can, would you please explain why the below code does what it
does? I would expect $this-test in TestInstance to refer to the
inherited $test from Test. Using php5RC3. Thanks.
?php
abstract class Test {
private
So what is your question.
Respectfully,
Ligaya Turmelle
Tommie Ramirez.Andujar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Dear colleagues..
I am new to php and I am trying to do the following, to create a php file
that may contain some kind of form or survey and the data
Hi,
Say you have a querystring - index.php?myname=joe
To determine whether myname has a value I have come to the following
conclusions / shortcomings when using one of the following:
ISSET = as long as the variable myname exists it's set, but there's no
guarantee of a value
!EMPTY = if your
--- Terence [EMAIL PROTECTED] wrote:
Say you have a querystring - index.php?myname=joe
To determine whether myname has a value I have come to the following
conclusions / shortcomings when using one of the following:
There is an inherent problem in the varying ways that people interpret
has
* Thus wrote Jason Williard:
I have been having an extremely difficult getting PHP installed with
GD support on a FreeBSD 5.1 system. While I can get the default GD
package installed, I can't seem to get it installed with JPEG support.
Does anyone know of any good tutorials or instructions
I think he wants us to tell him how to set up PHP and a database, and
then write some PHP code to add survey results to the database. So,
get on it!
On Thu, 24 Jun 2004 13:07:28 +1000, Ligaya Turmelle [EMAIL PROTECTED] wrote:
So what is your question.
Respectfully,
Ligaya Turmelle
83 matches
Mail list logo