Yeah, but it works it you pass it into MySQl. Obligatory I think.
I found my problem 10 lines up. A missing ; but singled out that line - just to
confuse me.
Sorry, it wasn't that after all. Thanks,
John
Tom Rogers wrote:
> Hi,
>
> Sunday, March 23, 2003, 4:25:29 PM, you wrote:
> JTJ> I'm blind
Hi,
Sunday, March 23, 2003, 4:25:29 PM, you wrote:
JTJ> I'm blind or tired or both. Anyone see anything wrong with:
JTJ> $sql = 'SELECT * FROM '.$table.' WHERE MATCH
JTJ>
(author,title,book,journal,volumenumber,issuenumber,placeofpublication,publisher,year,pages)
JTJ> AGAINST (\''.stripslashes($
Thanks jason, john.
http://www.php.net/manual/en/function.mysql-fetch-object.php
$row and $result
Jason Wong wrote:
> On Sunday 23 March 2003 13:13, John Hicks wrote:
> > $result = mysql_query($sql) ;
> > ^
> > while ($rec = mysql_fetch_object($results))
> > ^
>
> I think $row is more c
I'm blind or tired or both. Anyone see anything wrong with:
$sql = 'SELECT * FROM '.$table.' WHERE MATCH
(author,title,book,journal,volumenumber,issuenumber,placeofpublication,publisher,year,pages)
AGAINST (\''.stripslashes($searchenquiry).'\' IN BOOLEAN MODE) ORDER BY id asc;';
I've tried lookin
never mind this is the only way i can probaly do this
'NOT_ALLOWED_EXTENSION' => "Not Allowed File Extension, the following
filetypes are allowed : (".$_SESSION['ext_type'].")
-Original Message-
From: Dan Rossi [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 23, 2003 2:56 PM
To: Php-General
On Sunday 23 March 2003 13:13, John Hicks wrote:
> $result = mysql_query($sql) ;
> ^
> while ($rec = mysql_fetch_object($results))
> ^
I think $row is more commonly used than $rec. And you have an extra 's' on the
second $result.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
$result = mysql_query($sql) ;
^
while ($rec = mysql_fetch_object($results))
^
On Saturday 22 March 2003 11:56 pm, you wrote:
> Hi,
> I'm writing an academic paper detailing how my
> bibliographic database works.
>
> $myinput = mysql_query($sql) or die(print " color=red>".mysql_error().""
hi guys , i am sure this worked on an earlier version of php,
'NOT_ALLOWED_EXTENSION' => "Not Allowed File Extension, the following
filetypes are allowed : ($this->type)\n", this is inside an array
then i used to do
$this->extract_filetypes($this->imgtypes);
$this->error_codes[NOT_ALLOWED_EXTEN
Hi,
I'm writing an academic paper detailing how my bibliographic database works.
$myinput = mysql_query($sql) or die(print "".mysql_error()."");
while ($mydata = mysql_fetch_object($myinput))
{
}
What is the usual, normal, standard nomenclature for $myinput and $mydata? How do
people "usually"
> You can use Curl to send post requests, take a look at
> http://www.php.net/curl
>
> If you have compiled PHP --with-openssl you can also access https
> locations with functions such as file_get_contents.
>
> If Curl is not an option and you have PHP compiled with streams and
> --with-openssl yo
Hello Rodney,
You can use Curl to send post requests, take a look at
http://www.php.net/curl
If you have compiled PHP --with-openssl you can also access https
locations with functions such as file_get_contents.
If Curl is not an option and you have PHP compiled with streams and
--with-openssl
Greetings!
Is there a PHP function that will allow a script to connect to a web server
using SSL?
I would need to post data from a script to a remote server securely. The
remote server has SSL enabled.
Thanks,
Rod
CinchHost.com - Web Hosting Made Ea
I'm an Apache user - I had runscripts on for the main server, but I had a
virtual host which did not - I assumed incorrectly that the virtual would
inherit the other settings. I was wrong.
B.
- Original Message -
From: "Burhan Khalid" <[EMAIL PROTECTED]>
To: "Beauford.2002" <[EMAIL PROTEC
On March 22, 2003 04:03 pm, Beauford.2002 wrote:
> I just installed Win2k server and IIS (need it for a project I am
> doing) and get the following error after installing PHP. All
> permissions are set correctly. This appears to be a common problem
> as a search comes up with hundreds of the same p
Worked great. Thanks so much.
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Whoops! Try this:
>
> preg_replace('|%INCLUDE_FILE\\[[^\\]]*\\]%|','',$final_footer);
>
>
> Nate Sanden wrote:
>
> >Thanks! That worked almost. It removed everything except for the 2 %
> >s
Whoops! Try this:
preg_replace('|%INCLUDE_FILE\\[[^\\]]*\\]%|','',$final_footer);
Nate Sanden wrote:
Thanks! That worked almost. It removed everything except for the 2 %
signs.
How might I remove those as well?
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Try
Thanks! That worked almost. It removed everything except for the 2 %
signs.
How might I remove those as well?
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Try this (entirely untested!):
> $final_footer =
> preg_replace('%INCLUDE_FILE\\[[^\\]]*\\]%','',$final_foot
Thanks! That worked almost. It removed everything except for the 2 %
signs.
How might I remove those as well?
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Try this (entirely untested!):
> $final_footer =
> preg_replace('%INCLUDE_FILE\\[[^\\]]*\\]%','',$final_
stripslashes("\'2003-1-3 00:00:01\' AND \'2003-3-10 23:59:59\'");
"Domintcom" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> ok - found urldecode which is now giving me the following;
>
> \'2003-1-3 00:00:01\' AND \'2003-3-10 23:59:59\'
>
> original string;
>
> '2003-1-3 00:00:01'
Try this (entirely untested!):
$final_footer =
preg_replace('%INCLUDE_FILE\\[[^\\]]*\\]%','',$final_footer);
Nate wrote:
hi,
i need to search $final_footer for a string such as
%INCLUDE_FILE[/path/to/file]% (where /path/to/file could be anything) and
delete it from the string. it being %INCLUDE
http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
DomIntCom wrote:
ok - found urldecode which is now giving me the following;
\'2003-1-3 00:00:01\' AND \'2003-3-10 23:59:59\'
original string;
'2003-1-3 00:00:01' AND '2003-3-10 23:59:59'
"Domintcom" <[EMAIL PROTECTED]> wrote in me
-> Mike,
MD> I have been having this problem for a while now, and I cant figure it out. the
code is:
MD> $host = "localhost";
MD> $uname = "sniper";
MD> $pass = "starcraft";
MD> $database = "sha";
MD> $tablename = "members";
MD> $connect = mysql_connect ($host, $uname, $pass);
MD> $select = "my
php-general Digest 23 Mar 2003 01:53:33 - Issue 1954
Topics (messages 140678 through 140723):
upload files and file types
140678 by: Dan Rossi
140690 by: Larry E. Ullman
Re: variales within define constants
140679 by: Dan Rossi
140692 by: Jim Lucas
14
hi,
i need to search $final_footer for a string such as
%INCLUDE_FILE[/path/to/file]% (where /path/to/file could be anything) and
delete it from the string. it being %INCLUDE_FILE[/path/to/file]% (not just
/path/to/file)
im new to regexps but im guessing I should use preg_match for this?
Can som
ok - found urldecode which is now giving me the following;
\'2003-1-3 00:00:01\' AND \'2003-3-10 23:59:59\'
original string;
'2003-1-3 00:00:01' AND '2003-3-10 23:59:59'
"Domintcom" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> ok - I know how to pass these variables by append
You can use a static salt from within your application though.
Jason
Justin French wrote:
on 23/03/03 2:02 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
On 23 Mar 2003 Justin French wrote:
I just md5() the passwords, and reset them if needed... rather than
retrieving. The advantage for me
on 23/03/03 2:02 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
> On 23 Mar 2003 Justin French wrote:
>
>> I just md5() the passwords, and reset them if needed... rather than
>> retrieving. The advantage for me on this is that it's portable... md5() is
>> part of the base PHP install, whereas
ok i need to e able to predefine messages in a settings file , but need
dynamic variables to print out , the variables are within a class ,
basically i want the message settings seperate from the class itself so they
are configurable, this is mostly need for when emailing messages , i need to
be ab
Hi,
Just a thought. Have u put all the dlls in the system32 forlder?
Denis
- Original Message -
From: "Beauford.2002" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Sunday, March 23, 2003 8:03 AM
Subject: [PHP] PHP and IIS
> I just installed Win2k server and IIS (need i
I just installed Win2k server and IIS (need it for a project I am doing) and
get the following error after installing PHP. All permissions are set
correctly. This appears to be a common problem as a search comes up with
hundreds of the same problem - funny though - no answers.
Any help is apprecia
ok - I know how to pass these variables by appending variables to the link.
however, I'm trying to pass the following string;
'2003-1-1 00:00:01' AND '2003-3-20 23:59:59'
now - when I pass it what I get is the following;
date='2003-2-1%2000:00:01'%20AND%20'2003-3-1%2023:59:59'
it seems what I'm
At 22:24 22.03.2003, Jason Dulberg said:
[snip]
>Thanks for your help...
>
>I tried the code as you suggested however when I attempted to echo the
>variables for testing but nothing showed.
>
>for($i = 0; $i <= 1; ++$i) {
> echo "address".$_POST['address'][
hmm there is a problem, i set my defines in a defines.php file , i place it
right at the top of my main includes file , which sets the paths for other
include files , i have my funtion within a class , so the order is
include("defines.php");
include("class.php");
$class = new class;
would it wor
Just don't use PHP for sending the mail like that.
It's better to have the mailserver run the list management. Then you only
send one message to the server, and its distribution list system handles
the delivery of all the messages.
Depending on the mailserver, your PHP would then only have to nee
Thanks for your help...
I tried the code as you suggested however when I attempted to echo the
variables for testing but nothing showed.
for($i = 0; $i <= 1; ++$i) {
echo "address".$_POST['address']['address'][$i];
echo "city".$_POST['address']['city'][$i];
}
The form fields are as you sug
At 20:59 22.03.2003, Jason Dulberg said:
[snip]
>My problem is that I'm not sure how to set up the array for the fields and
>how to take the input fields and insert them. Do I need a multidimensional
>array for this?
>
>ie.
>
>
>
>How would I decode that to c
I need to create a form where work/home address details need to be entered.
I'd like to have these listed as 2 entries in the mysql db so I'm assuming I
need to create an array and loop through the array to do the insert.
So I have an address[1] and address[2] for example for a total of 12
add
At 21:59 22.03.2003, Vincent M. said:
[snip]
>Yes I know but my aim is to make a php script which checks automaticly
>if the php and the shell functions I need are available.
[snip]
You can use function_exists() and
Hello Adam,
Since timestamps are in seconds you just subtract them and then use date
to convert it to a more human readable format.
You could also use the strtotime function to convert a string to a
timestamp.
PHP has many date and time functions, take a look at
http://www.php.net/manual/en/
Hi y'all. I am working on a mail list app that's pretty simple...don't need to let
users post, only admins, and it's very straightforward. I tested it out with mail()
on 50 addresses, and it took 78 seconds plus massive server load. Part of that may be
the mail scanner we have, but I also kno
Hello Joel,
Saturday, March 22, 2003, 9:52:20 PM, you wrote:
JC> from the user posts at php.net
JC> http://www.php.net/manual/en/function.session-set-cookie-params.php
JC> The idea of a session is that it ends when the user closes the browser
JC> (maybe even before hand). If you want a cookie t
Greetings all,
A while ago I was using asp and when I started using php the harder
thing to learn was "Dealing with dates". There isn't a datediff function
like asp.. Instead you have timestamps. Powerful it may be but a little
hard to learn about and use. Other wise I find php to be very
Hi,
As I belive, the sessions (session cookies) will expire after the
browser has been restarted. So even if you put the session id in a cookie,
after ten days you might have your old session id, but it would be delete
from the server long ago. The server doesn't keep session for that log
from the user posts at php.net
http://www.php.net/manual/en/function.session-set-cookie-params.php
The idea of a session is that it ends when the user closes the browser
(maybe even before hand). If you want a cookie to last longer, than use the
setcookie() function.
-Kevin
Sent out by
Joel
-> rentAweek,
rL> In my PHP script I have coded e.g.:
rL> $sql = "INSERT INTO `$owners` ( `FirstName`, `LastName`) VALUES (
rL> '$firstname' , '$lastname' )";
rL> $result = mysql_query($sql);
rL> So along comes e.g. John O'Groats and nothing gets inserted into the
rL> database.
rL> OK, I can
On Sat, 22 Mar 2003 12:59:19 -0800, you wrote:
>Yes I know but my aim is to make a php script which checks automaticly
>if the php and the shell functions I need are available.
If you look at the output of phpinfo() you'll see a whole bunch of
variables that are set differently depending on the
OK, I can bypass my oversight by stripping out apostophes from the
variable values. There has to be a better way please.
Turn on Magic Quotes GPC or use the addslashes() function. Or, if you
want to be more precise and MySQL-specific, use the
mysql_escape_string() or mysql_real_escape_string() f
and , you need to escape the values that you are inputing
ie. htmlspecialchars() or htmlentities() those values
Jim
- Original Message -
From: "rentAweek Ltd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 22, 2003 9:50 AM
Subject: [PHP] Separators in variable values c
On Sat, 22 Mar 2003 17:50:30 +, you wrote:
>OK, I can bypass my oversight by stripping out apostophes from the
>variable values. There has to be a better way please.
http://www.php.net/manual/en/function.mysql-escape-string.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
you must remove the backticks.
Jim
- Original Message -
From: "rentAweek Ltd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 22, 2003 9:50 AM
Subject: [PHP] Separators in variable values causing MySQL commands to fail
> In my PHP script I have coded e.g.:
>
> $sql =
Sebastian wrote:
put this in a .php file:
it'll tell you what OS, (usually)
check if safe mode is on.. if it's on then usually you can't "exec"
anything.
cheers,
- Sebastian
Yes I know but my aim is to make a php script which checks automaticly
if the php and the shell functions I need are availa
In my PHP script I have coded e.g.:
$sql = "INSERT INTO `$owners` ( `FirstName`, `LastName`) VALUES (
'$firstname' , '$lastname' )";
$result = mysql_query($sql);
So along comes e.g. John O'Groats and nothing gets inserted into the
database.
OK, I can bypass my oversight by stripping out apost
Chris Monson has written a pure PHP implemntation of SHA. It is
available on PHP Classes at
http://phpclasses.promoxy.com/browse.html/package/65.html.
Jason
Bill Kearney wrote:
Anyone got a php script for generating sha1sum hashes from a short bit of text?
Hi Bill,
The target platform does
On Sat, 22 Mar 2003 09:31:14 -0500, you wrote:
>First off, there are multiple encryption methods out there -- PHP
>crypt() and the mcrypt functions, and MySQL encrypt(), for encryption;
>and the md5 etc. functions for hashing. Is there any information on
>best practices here, particularly in u
yes, you can do this, but you have the order wrong.
you must set the variable before you use it.
and you must have double quotes around the variable in the define() call
single quotes denotes a literal string which will not include the value of a
variable, you would end up echo'ing "Hello $var"
On Sat, 22 Mar 2003 09:34:03 -0500, you wrote:
>When validating user input to remove quotes and other characters that
>can be used for hacks, does one need to be concerned about the high-
>ASCII characters which have 'quote' meanings (e.g. 0x91 - 0x94). I
>presume not, but just wanted to verify
hi there , i was wondering on security of file uploads , i am currently
using the pear uploader class , i can check for allowed file
extensions ,
but it doesnt seem to check for file type , i can currently rename say
an
image to zip and it uploads , is there anyway a hacker could rename an
execut
Warning: ob_gzhandler() [ref.outcontrol]: output handler
'ob_gzhandler' cannot
be used twice in /blahblah/includes/bottom.inc on line 25
I can't speak as to why this would only happen occasionally, but I
believe that you should comment out the output_buffering line in the
php.ini file when using
-> php-general.
I used such code:
$exp = 60*60*24*10; # for ten days.
session_set_cookie_params($exp);
But it works wrong - cookies were removed right after i have rebooted.
The other way is to put session id into the cookies, but...
Isn't it the same?
Thank you.
Yours, L0
On 23 Mar 2003 Justin French wrote:
> I just md5() the passwords, and reset them if needed... rather than
> retrieving. The advantage for me on this is that it's portable... md5() is
> part of the base PHP install, whereas the mcrypt stuff isn't (or wasn't).
Something like that was my inclinatio
I just md5() the passwords, and reset them if needed... rather than
retrieving. The advantage for me on this is that it's portable... md5() is
part of the base PHP install, whereas the mcrypt stuff isn't (or wasn't).
Justin
on 23/03/03 1:31 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
> I
Why? You wouldn't even know it happened - nor would the site. This is just a
security precaution.
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 22, 2003 2:25 AM
Subject: Re: [PHP] Sessions question
> On Saturday 22 March 2003 08
When validating user input to remove quotes and other characters that
can be used for hacks, does one need to be concerned about the high-
ASCII characters which have 'quote' meanings (e.g. 0x91 - 0x94). I
presume not, but just wanted to verify that PHP will not interpret
these as quotes.
---
I am trying to build password authentication into a database front end
for a MySQL DB. I find the php docs on this point quite confusing so I
have a lot of questions.
I can use a one-way hash to do this if that's the best way, as I don't
need to retrieve the password. However if I could do so
Anyone got a php script for generating sha1sum hashes from a short bit of text?
The target platform does not have any of the libraries, let alone the latest
php, installed.
So before I rewrite it in PHP I figured I'd ask
-Bill Kearney
--
PHP General Mailing List (http://www.php.net/)
To u
Unless, of course, you need real text encoding.
XML-RPC *only* supports USASCII. No unicode, not even ISO-8859-1. And it's
spec author actively fights /against/ improving this situation.
-Bill Kearney
"Tony Bibbs" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> That seems network
Hi everyone,
I have ALMOST gotten this working (mySQL part works).
I have gotten the advice that this is easier to do in PHP then to try
and make this query work in mySQL. Here is the query and a sampling of
the current results (from phpMyAdmin)
SELECT p.fname, p.lname,
w.web_li
?? why would i not try it before posting heh :O
-Original Message-
From: Daniel Diehl [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 23, 2003 12:23 AM
To: 'Dan Rossi'; 'Php-General'
Subject: RE: [PHP] variales within define constants
Just try it :)
> -Original Message-
> From: Da
hi there , i was wondering on security of file uploads , i am currently
using the pear uploader class , i can check for allowed file extensions ,
but it doesnt seem to check for file type , i can currently rename say an
image to zip and it uploads , is there anyway a hacker could rename an
executab
php-general Digest 22 Mar 2003 13:25:23 - Issue 1953
Topics (messages 140651 through 140677):
md5 & cookies
140651 by: Sebastian
Re: Sessions question
140652 by: Beauford.2002
140673 by: Jason Wong
Resume PHP Sockets?
140653 by: Richard Mikalsen
Re: How to
Just try it :)
> -Original Message-
> From: Dan Rossi [mailto:[EMAIL PROTECTED]
> Sent: Samstag, 22. März 2003 08:09
> To: Php-General
> Subject: [PHP] variales within define constants
>
>
> hi guys i'm sure i've done this before but is it possible ?
>
> i would like it to show up like
"Gilberto Garcia Jr." <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I´m a newbie on this class. But i´m getting this error.
can you post snippet of the code and exact error that you get?
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
T
hi guys i'm sure i've done this before but is it possible ?
i would like it to show up like this
define('CONSTANT','Hello $var');
$var = "Dan";
echo CONSTANT
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
> Hi Guys,
>
> I want to create webservices using NUSoap + PHP. I have gone through
NUSoap
> Site at http://dietrich.ganx4.com/nusoap/faq.php but havenot found any
thing
> to start with. Can any body point me to some good examples + Manuals on
the
> matter.
>
> PHP Webservices sounds promi
74 matches
Mail list logo