On Wednesday 21 April 2004 13:51, Barry Stokes wrote:
Yes, it's still undefined.
Apparently you configured php with --enable-dbase, did you restart your
webserver? Does phpinfo() show anything about dbase?
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems
On Wednesday 21 Apr 2004 07:01, Jason Wong wrote:
On Wednesday 21 April 2004 13:51, Barry Stokes wrote:
Yes, it's still undefined.
Apparently you configured php with --enable-dbase, did you restart your
webserver? Does phpinfo() show anything about dbase?
I didn't restart the webserver as
On Wednesday 21 April 2004 14:07, Barry Stokes wrote:
I didn't restart the webserver as I have not changed the config.
--enable-dbase was built in the first time around.
phpinfo shows --enable-dbase as a config option, and also in the section
marked Additional Modules.
Which version of PHP
Please read the document.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Travis Low wrote:
Michal Migurski wrote:
Don't take the database down for backups.
I can think of no logical reason why you'd want to kill the DB to back
it up, since it's just a big read operation.
Referential integrity might be a reason.
Good point, though if this is a concern, the OP
Gabe wrote:
I double checked the names. Everything looks okay. Another ideas?
Did the ADOdb list answer not work?
http://phplens.com/lens/lensforum/msgs.php?id=9285
Single and double quotes can be a problem in SQL.
--
Lester Caine
-
L.S.Caine Electronic Services
--
-{ Rene Brehmer }- wrote:
Hmm ... why the heck 65 characters ??? ... Old EGA screens were 80x34
characters, VGA is 80x43 characters ... The reason Usenet standard is 76
chars wide messages (today anyways) is that text-mode readers need the last
4 characters to display window borders and control
There's a nu-fork library or something around.
There's a pear package which provides an API to this. Have a look around.
Michal Migurski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
We have a web application that forks off an external program to inject
an email in the outgoing
Any help will be greatly appreciated. Perheaps someone has a link to a
newsgroup or a forum where I can find an answer
thx
[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi,
I've learn how to compile a simple (with only one .C file) extension
under Windows and Linux. And multi .C file
Hi, i was trying to create thumbnail using a tutorial on image galleries,
I am having problems creating thumbnail images using GD. The thumbnail is
created with the sizes prorerly, however the image is black.
I have posted a temporary php file i created to investigate the problem
below.
I
Hi there
I have a site driven by a database and I need a search engine...when someone enter a
word the script to search the entire database for that word and return the results.
Could someone give me the link to that kind of tutorial?
Please email me asap
Hi all
I have a problem where, when I click on a link and when the page is finish
loading
I would like for the cursor to ready in the correct html text box.
I cant seem to find a solution
If anyone could help, that would be most appreciated
Kind Regards
Brent Clark
--
PHP General Mailing List
Hi there
I have a site driven by a database and I need a search engine...when
someone enter a word the script to search the entire database for that word
and return the results.
Could someone give me the link to that kind of tutorial?
Please email me asap
Not that my database (mysql) is big or
You can use javascript to perform this... Do the following:
script type=text/javascript
document.formName.boxName.focus(); // set the focus to the box
/script
Brent Clark escribió:
Hi all
I have a problem where, when I click on a link and when the page is finish
loading
I would like
You can use javascript to perform this... Do the following:
script type=text/javascript
document.formName.boxName.focus(); // set the focus to the box
/script
Thank you
Worked like charm
Much appreciated
Kind Regards
Brent Clark
--
PHP General Mailing List
Hi,
I have a problem using sockets in PHP 5. I create a socket in non-blocking
mode, and when I read in that socket, socket_read() function waits for
incoming data (as in a blocking socket).
However, if I use system 'ltrace' in my script, I can see that:
recv(3, 0x4078f1c4, 1, 0) = -1 EAGAIN
put a JS code in yor body tag:
body onLoad=this.document.form_name.textbox_name.focus=true
Brent Clark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all
I have a problem where, when I click on a link and when the page is finish
loading
I would like for the cursor to ready in
Greetings!!!
I hope that there would be someone could help me in
installing CURL Version 7.11.0 for PHP Version 4.3.2.
I've already configure the CURL in PHP using on this
way:
./configure --with-mysql=/usr/local/mysql \
--with-nsapi=/usr/iplanet/iWS \
--with-curl=/usr/local \
Subject: Problem installing CURL for phpMySearch
To: [EMAIL PROTECTED]
Greetings!!!
I hope that there would be someone could help me in
installing CURL Version 7.11.0 for PHP Version 4.3.2.
I've already configure the CURL in PHP using on this
way:
./configure --with-mysql=/usr/local/mysql \
Perhaps I'm tired, perhaps I've missed something obvious, but I can't
get this simple thing which I practically does every week to work
Ok, here is what I do:
?php
$foo = urlencode(Delete from whatever where ditten = 'datten');
echo 'a href=foo.php?strSQL=' . $foo . 'Click here to test/a';
?
http://ie.php.net/manual/en/function.get-magic-quotes-gpc.php
use stripslashes() :
?php
echo stripslashes(urldecode($_GET[strSQL]));
?
Cheers
Victor spång arthursson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Perhaps I'm tired, perhaps I've missed something obvious, but I
Brent Clark wrote:
Hi all
I have a problem where, when I click on a link and when the page is finish
loading
I would like for the cursor to ready in the correct html text box.
I cant seem to find a solution
If anyone could help, that would be most appreciated
Kind Regards
Brent Clark
Stick this
According to historical records, on Wed, 21 Apr 2004 13:16:35 +0800 Jason
Wong [EMAIL PROTECTED] wrote about Re: [PHP] PHP Web Hosting:
On Tuesday 20 April 2004 23:38, -{ Rene Brehmer }- wrote:
I've got mine registered at enom through Westhost, and westhost gives me a
registrar interface so I
Hi there going back to the discussions of objects in a session. I would like
to know what are the benifits of this, and in what scenarios would it be
used. I have an application I am trying to make scalable if possible, it
uses a sub class to a phplayers menu class which parses an xml file and
According to historical records, on Tue, 20 Apr 2004 23:02:50 -0500 Andre
wrote about [PHP] redirection with PHP and closing windows?:
I want to be able to process a PHP script and then if successful redirect to
another page. Is there a good way to do this with PHP or do I need to stick
to
Phpu wrote:
Hi there
I have a site driven by a database and I need a search engine...when someone enter a word the script to search the entire database for that word and return the results.
Could someone give me the link to that kind of tutorial?
Please email me asap
IT may be that full text
According to historical records, on Wed, 21 Apr 2004 12:28:27 +0300 Phpu
wrote about [PHP] A good search tutorial :
Hi there
I have a site driven by a database and I need a search engine...when someone enter a
word the script to search the entire database for that word and return the results.
I would like to use eval() to evaluate another PHP file and store the output
of that file in a string.
So, let's say, for example, that I have a file called colors.php which
contains this:
pColors: ? echo Red, Yellow, Green, Blue; ?/p
Then, in another file, I have this:
$file =
OrangeHairedBoy wrote:
I would like to use eval() to evaluate another PHP file and store the
output of that file in a string.
You could use output buffering to do this a bit more easily, I think:
ob_start();
include('colors.php');
$colors = ob_get_contents();
ob_end_clean();
--
PHP General
While that is an awesome idea, I don't think it will work for me.
There's two reasons why. First, colors.php is actually stored in a MySQL
server.
Second, before the PHP code inside colors.php I want to be able to replace
data inside that file. For example:
$file = str_replace( Green , Orange ,
There is a good search engine tutorial at devshed -
http://www.devshed.com/c/a/PHP/Quick-and-Dirty-Search-Engine-with-PHP-and-My
SQL/
I use it for a few searches on our site and it works well.
Thank You
Brian Paulson
Sr. Web Developer
[EMAIL PROTECTED]
www.chieftain.com
1-800-279-6397 x 207
OrangeHairedBoy wrote:
I would like to use eval() to evaluate another PHP file and store the output
of that file in a string.
So, let's say, for example, that I have a file called colors.php which
contains this:
pColors: ? echo Red, Yellow, Green, Blue; ?/p
Then, in another file, I have this:
Marek,
OK...that worked...kinda, but it doesn't pass the output to $colors. It
echos it. I need the output to be passed to $colors.
Lewis
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
OrangeHairedBoy wrote:
I would like to use eval() to evaluate another PHP file
It sort of did. It may have corrected that error, but now I get a new
error:
Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access
Driver] Operation must use an updateable query., SQL state S1000 in
SQLExecDirect in d:\adodb\drivers\adodb-odbc.inc.php on line 504
S1000:
OrangeHairedBoy wrote:
I would like to use eval() to evaluate another PHP file and store
the output of that file in a string.
You could use output buffering to do this a bit more easily, I think:
ob_start();
include('colors.php');
$colors = ob_get_contents();
ob_end_clean();
While that
Thanks Michael Marek! It worked! :)
Michael Sims [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
OrangeHairedBoy wrote:
I would like to use eval() to evaluate another PHP file and store
the output of that file in a string.
You could use output buffering to do this a bit more
Suppose I don't have access to a database server.
I have any indexed array of like keyed arrays, essentially mimicing a
database table.
Are there any libraries or functions that I can use to 'query' the array in
a SQL like manner ?
e.g.
$data = array
(array(a=1,b=2,c=3)
,array(a=2,b=3,c=4)
Here's another version of the SQL statement and I get a different
error now. When I copy and paste this exact same SQL statement into an
update query in Access it works fine. When I try to use it in my PHP
code, I get the following error:
SQL Statement:
UPDATE tblFAQ_Book SET fldTitle = 'one
* Thus wrote Jason Wong ([EMAIL PROTECTED]):
On Wednesday 21 April 2004 14:07, Barry Stokes wrote:
I didn't restart the webserver as I have not changed the config.
--enable-dbase was built in the first time around.
phpinfo shows --enable-dbase as a config option, and also in the section
At 11:01 AM 4/21/2004, you wrote:
Here's another version of the SQL statement and I get a different
error now. When I copy and paste this exact same SQL statement into an
update query in Access it works fine. When I try to use it in my PHP
code, I get the following error:
SQL Statement:
UPDATE
After googling the error message for you, I found about a zillion pages
which all basically say the same thing.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q175168
-Dave
At 11:01 AM 4/21/2004, Gabe wrote:
Here's another version of the SQL statement and I get a different
error now.
Hi, I have a form where I have a user entering in the date in a numeric
string. For today they would enter 04212004 and so on...I'm working on
this date within mysql server, and mssql server handles dates as
04-21-2004 when you use convert(varchar,field,110). So how in PHP can I
change a
Mmmm... do you have another test box?
How much time does it take using, let's say, ftp or samba??
-William
El mi? 21-04-2004 a las 00:57, Yavuz Malak escribi:
full duplex
- Original Message -
From: William Lovaton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 20,
Two forms (form1 and form2 submit to the same controller.php file. The
controller redirects the page depending on the value of hidden value
'page'. I want form data 'username' and 'password' to be available on
both redirected pages (staff.php and customer.php). How do I accomplish
this?
Hi Jay,
El mar, 20-04-2004 a las 07:52, Jay Blanchard escribió:
[snip]
I have two text files with two rows of data on each line sperated by a
tab for about 20 lines in each file. Would it be faster accessing this
data by putting it in a mysql table?
[/snip]
Sounds like the perfect
For ease of use, i would create a session and handle it that way or you
could pass it through $_GET[]
Query string.
Would recommend $_SESSION though.
Cheers
Sobajo [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Two forms (form1 and form2 submit to the same controller.php file. The
Something like this would work:
=
?php
function dateConvert($date)
{
$newdate = ;
$newdate .= substr($date,0,2);
$newdate .= -;
$newdate .= substr($date,2,2);
$newdate .= -;
$newdate .= substr($date,4,4);
return $newdate;
}
echo dateConvert(04212004);
?
Thanks Dave. It's working now. I searched many different places for an
answer and yet for whatever reason, I just didn't check Google. We're
all allowed a few brain mishaps, right? :-)
Thanks again.
David O'Brien wrote:
After googling the error message for you, I found about a zillion
El mar, 20-04-2004 a las 08:24, John Nichel escribió:
Jay Blanchard wrote:
There is always awk!
Aw, no votes for cat | grep? ;)
No, that would be worse since the system needs to spawn a new process
and this is slow too. Specially on a high loaded system.
If you are concerned
I agree. $_GET[] would expose the username and password on the URL.
For ease of use, i would create a session and handle it that way or you
could pass it through $_GET[]
Query string.
Would recommend $_SESSION though.
Cheers
Sobajo [EMAIL PROTECTED] wrote in message
news:[EMAIL
Travis Low mailto:[EMAIL PROTECTED]
on Tuesday, April 20, 2004 10:02 PM said:
Michal Migurski wrote:
[snip]
Good point, though if this is a concern, the OP will probably use the
built-in enforcement of referential integrity and transaction
support of whatever database they are running.
William Lovaton wrote:
El mar, 20-04-2004 a las 08:24, John Nichel escribió:
Jay Blanchard wrote:
There is always awk!
Aw, no votes for cat | grep? ;)
No, that would be worse since the system needs to spawn a new process
and this is slow too. Specially on a high loaded system.
If you
Hi, I have two php pages that upload files to a mysql db. I do not know how
to change this code to accept more than plain text files. Specifically, I
would like to accept .doc and .xls files. Can anyone help? Thanks...Will
This is my upload form
body
h3 Upload a New File/h3
form
Good point, though if this is a concern, the OP will probably use the
built-in enforcement of referential integrity and transaction support
of whatever database they are running.
If a single database is spread over files A, B, and C, then in the time
it took for a naive backup to grab
On 21-Apr-2004 Yavuz Maºlak wrote:
full duplex
What's the output of:
mount and sysctl -a | grep '^hw' ?
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do
Haddad Said wrote:
Hi, i was trying to create thumbnail using a tutorial on image galleries,
I am having problems creating thumbnail images using GD. The thumbnail is
created with the sizes prorerly, however the image is black.
I have posted a temporary php file i created to investigate the
Electroteque wrote:
Hi there going back to the discussions of objects in a session. I would like
to know what are the benifits of this, and in what scenarios would it be
used. I have an application I am trying to make scalable if possible, it
uses a sub class to a phplayers menu class which
Hi,
does anybody know a way to get the memory-size of an object?
I'm triing to seek some memory-leaks in a php-daemon-program wich cannot be
reproduced easily to track them down, so i thought to monitor the size of
the objects while running in a production-enviroment.
Thanks!
Thomas 'Neo' Weber
Greetings,
I have an archive of PDF documents that are stored in a non web accessible
directory. I wrote a small script that will load a PDF document from this
directory, dump it to the browser and display it in the Acrobat Plug-in.
This works ok. Where the problem lies is in the naming of the
Gabe wrote:
It sort of did. It may have corrected that error, but now I get a new
error:
Warning: odbc_exec(): SQL error: [Microsoft][ODBC Microsoft Access
Driver] Operation must use an updateable query., SQL state S1000 in
SQLExecDirect in d:\adodb\drivers\adodb-odbc.inc.php on line 504
Hi everybody,
I run Appache/PHP (latest or near the latest versions) on Windows 2000.
This was installed by pre-configured package WAMP5 (I'm the beginner), and it works
fine, except I don't know how to obtain support for T1LIB library that is required for
some graphics functions.
I read all
On Wed, 2004-04-21 at 14:50, Nikola Novakovic wrote:
Hi everybody,
I run Appache/PHP (latest or near the latest versions) on Windows 2000.
This was installed by pre-configured package WAMP5 (I'm the beginner), and it works
fine, except I don't know how to obtain support for T1LIB library
Hi,
Has anyone worked with Simplewire SMS SDK ?
If yes, is it possible to send WAP push messages with it and
if yes how.
If anyone has any info about some PHP + WAP push combination
i would be very grateful.
Thank you,
Catalin
P.S.
I've googled for it
--
PHP General
I'm trying to create a simple (I think) SOAP function that checks
whether or not a file was uploaded to a server. I have everything set
up, but when I try to use the function I get an array disguised as an
object. The function I've created should return either TRUE or FALSE
and I can't find
Orangehairedboy wrote:
I would like to use eval() to evaluate another PHP file and store the output
of that file in a string.
Personally, I try to avoid using eval(). It can be very useful, but
there are also potential security issues depending on your setup. Based
on what you said in another
Richard A. Devenezia wrote:
Suppose I don't have access to a database server.
I have any indexed array of like keyed arrays, essentially mimicing a
database table.
Are there any libraries or functions that I can use to 'query' the array in
a SQL like manner ?
e.g.
$data = array
* Thus wrote KidLat Ngayon ([EMAIL PROTECTED]):
Subject: Problem installing CURL for phpMySearch
To: [EMAIL PROTECTED]
Greetings!!!
I hope that there would be someone could help me in
installing CURL Version 7.11.0 for PHP Version 4.3.2.
I've already configure the CURL in PHP using on
Hi,
i have a script that searches a database after a specific word.
this function check the entered word
function valid_word($word) {
if(ereg(^[a-zA-Z0-9_]{3,15}$, $word)) {
return true;
} else {
return false;
}
}
If i search for a word is ok but when i searches for a
Hi,
i have a script that searches a database after a specific word.
this function check the entered word
function valid_word($word) {
if(ereg(^[a-zA-Z0-9_]{3,15}$, $word)) {
return true;
} else {
return false;
}
}
If i search for a word is ok but when i searches for a
you need to account fir white space if you want phrases
\s+
I would switch to preg_match() instead of ereg()
http://www.php.net/manual/en/function.preg-match.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What kinds of phrases are you looking for? If you want to know whether
an *exact* phrase is going to appear in a block of text, just use
strstr() or strpos(), they tend to be faster than regexes anyway.
http://www.php.net/strpos
function valid_phrase ($phrase, $search = 'text to search for')
Hi there, needing some more advise, is this function correct ?
function create_object($class_name,$dir = null, $serialize = null)
{
$dir ? $dir = $dir./ : $dir = ;
require_once(.CLASS_PATH.$dir.$class_name..php);
if
Hi
I was wondering about includes and classes. I have a class in which
depending on a member variable, i should load
the proper include, which is really the proper config file for that moment.
Now if i do this in the constructor
i can't seem to be able to use the variables found in my config in
[EMAIL PROTECTED] wrote:
Hi there, needing some more advise, is this function correct ?
function create_object($class_name,$dir = null, $serialize = null)
{
$dir ? $dir = $dir./ : $dir = ;
require_once(.CLASS_PATH.$dir.$class_name..php);
If your goal is to store certain objects in sessions and some not, then
this should be fine. Just be sure that you intend to have only one
instance of the objects you want to serialize, or hell can still break
loose :)
Yes thats fine, there is a DB and auth and template class i instance
Dubreuilmedia wrote:
Hi
I was wondering about includes and classes. I have a class in which
depending on a member variable, i should load
the proper include, which is really the proper config file for that moment.
How does a member variable control this? E.g. you set the member
variable in the
Yes thats fine, there is a DB and auth and template class i instance
globally, these are across pages aswell should i do the same ?? I dont wont
to go overboard and slow the system down, I'd really want to make it
scalable. These dont store any data as such though like the rest. The
others i
where in the ereg(^[a-zA-Z0-9_]{3,15}$, $cuvant) i should place \s+ ?
- Original Message -
From: Matt Matijevich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, April 22, 2004 3:34 AM
Subject: Re: [PHP] Problems with patterns
you need to account fir white
I have found a funky situation that I am trying to figure out if it is
bug or not:
I see this behavior on both redhat 9 and fedora running
php 4.3.4
httpd(apache) 2.0.48
calling umask(0002) in a script leaves the httpd process with a umask of
2 after exit so that the next process to hit that
Hi all,
Wondering if someone could help me with an sql statement
MySQL version 4.0.18
I have three tables:
1. visitor_data (Visitor_ID, IP Address)
2. visit_data (Visit_ID, Visitor_ID)
3. page_data (Page_ID, Visit_ID, Visitor_ID, URI)
If you look closely you can see the
So far I've made multiple statements pulling out all the data and using PHP
to formulate the information. But I know there is a better way using mysql.
Only thing is I haven't got the faintest idea how to do it in one query and
keep overheads low. I start to get lost when I'm doing select
* Thus wrote Bret Hughes ([EMAIL PROTECTED]):
I have found a funky situation that I am trying to figure out if it is
bug or not:
I see this behavior on both redhat 9 and fedora running
php 4.3.4
httpd(apache) 2.0.48
calling umask(0002) in a script leaves the httpd process with a
* Thus wrote Marc Greenstock ([EMAIL PROTECTED]):
Hi all,
Wondering if someone could help me with an sql statement
MySQL version 4.0.18
I have three tables:
1. visitor_data (Visitor_ID, IP Address)
2. visit_data (Visit_ID, Visitor_ID)
3. page_data (Page_ID, Visit_ID,
Jason Barnett wrote:
So far I've made multiple statements pulling out all the data and
using PHP
to formulate the information. But I know there is a better way using
mysql.
Only thing is I haven't got the faintest idea how to do it in one
query and
keep overheads low. I start to get lost when
i know this isnt quite php exactly but anybody thats ever installed phpedit
before remember how long it took to install on windows?? seems like mine is
taking about 6 hours to install for some strange reason...
its either massive huge or my computer is super slow for some reason...
--
PHP
85 matches
Mail list logo