Hi ,
When i'm using the declare construct i'm getting an error "Cannot
open the site.The connection with the server was reset".
Culd u please help me in this...
Thanks in advance..
Shiju
Hello all,
I have an app that I wrote some time ago using Delphi and Kylix that retrieves e-mails
from an account and save only .txt, .csv and .zip attachments to a directory and
depending on the files it does some database processing such as updating records that
are lated browsed with php sc
Alright i'll take care of that, thanks a lot!
Jule
On Wednesday 01 May 2002 00:26, you wrote:
> On Wednesday 01 May 2002 11:48, Jule wrote:
> > but not the second one:
> >
> > if (isset($Guestbook[mailinglist])) {
>
> You should be using:
>
> if (isset($Guestbook['mailinglist'])) {
>
> >
On Wednesday 01 May 2002 11:48, Jule wrote:
> but not the second one:
>
> if (isset($Guestbook[mailinglist])) {
You should be using:
if (isset($Guestbook['mailinglist'])) {
> if (mysql_db_query ($DBName, $Query2, $Link)) {
> echo "You
Hello,
John Hughes wrote:
> For the second time in less than a week, the commercial Web service
> provider where I have four domains hosted has managed to break PHP.
> In particular, I get this message:
>
> Warning: mail() is not supported in this PHP build
>
> I'm not interested in what cause
Hello,
Fred wrote:
> Hello,
>
> I have a pb with mail() function.
> my script run ok on a linux but not on a nt:
> ini_set("SMTP", "192.168.0.126");
> ini_set("sendmail_from", "info <[EMAIL PROTECTED]>");
> mail("fred <[EMAIL PROTECTED]>", "the subject", "message");
> ?>
>
> On my windows nt s
So it executed the first if:
if (mysql_db_query ($DBName, $Query, $Link)) {
echo "Your entry will be addedClick
here
to go back.";
} else {
echo "There was an error in during the posting,
please contact mailto:[EMAIL PROTECTED
I don't know, every time i submit the form w/ the checkbox checked. it gives
me the echo string which comes when the if is not executed..it adds the
entries from the form to the guestbook table, but doesn't add the name and
email to the mailinglist table. it doesn't give me any php or mysql err
Two things,
if you gonna use files for such things it might help to follow such
format inside the file
[use]=somebody
[password]=theirpass
it might be easier if you have the file named after the user and it sould
store the pass
eg. somebody.txt
then have php check for the file with file_exists
On Wednesday 01 May 2002 07:34, Jule wrote:
> Hey,
> This time it's not about missing quotes or parenthasies i hope.
> I'm trying to make a form which sends name, email, website, favsong and
> comments to table guestbook, but when the checkbox mailinglist is checked
> it should send the name and e
Addressed to: Philip Olson <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from Philip Olson <[EMAIL PROTECTED]> Tue, 30 Apr 2002 22:45:49
+ (GMT)
>
> Btw, I can't think of a reason why a script designed
> with register_globals = off would not work with it
> on. Which i
Try filling up pass.txt with the same password over and over and use a
regular login.txt. Then try it with a username from somewhere in the
middle of the files. I think your problem has something to do with array
indexes - if what I suggested works, you can then work your way through
it by cha
This one will actually remove money from your bank account if you pass
the constant PHP_TAKE_MY_MONEY as the 10th argument.
---John Holmes...
> -Original Message-
> From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 8:06 PM
> Cc: [EMAIL PROTECTED]
> Subject
Computing-intensive, time-consuming and whatever else expensive
functions do ;-)
Bogdan
Joshua E Minnie wrote:
>Expensive how?
>
>-josh
>
>"Bogdan Stancescu" <[EMAIL PROTECTED]> wrote:
>
>>I'd recommend writing a wrapper around base_convert, naming it hex2bin
>>and using that instead. base_con
http://www.php.net/manual/en/language.variables.scope.php
On Tuesday 30 April 2002 19:09 pm, you wrote:
> Why would the following function not return a value: (both $lastname and
> $firstname are defined)
>
> function get_handle($lastname, $firstname)
> {
> $handle_guess=$lastname;
> $handle=a
Computation time. CPU cycles.
On Tuesday 30 April 2002 13:56 pm, you wrote:
> Expensive how?
>
> -josh
>
> "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote:
> > I'd recommend writing a wrapper around base_convert, naming it hex2bin
> > and using that instead. base_convert() is way too expensive for
Why do you even bother? Just name your file SFISFWEF.html and have that
as your password. If security isn't important, then don't use it at all.
And please don't program anything for anyone else.
---John Holmes...
> -Original Message-
> From: Rodrigo [mailto:[EMAIL PROTECTED]]
> Sent: Tu
Hi guys, I'm trying the following code and the problem is that I always
get the denied page...
What I'm trying here is to make a login thru a text file. The logins are
in one file named login.txt, and the passwords are in the file called
pass.txt . I need Help, I can't seem to get thru here and I
you're only returning the value, and not setting the global variable
you could place a "global $handle_guess:" as the first line of your function
or you could do "$handle_guess = get_handle($lastname, $firstname);"
-Original Message-
From: Mark Pelillo [mailto:[EMAIL PROTECTED]]
Sent: We
Why would the following function not return a value: (both $lastname and
$firstname are defined)
function get_handle($lastname, $firstname)
{
$handle_guess=$lastname;
$handle=array();
$fp=fopen('../truelies/userdb', "r");
while ($d=fgetcsv($fp, 250, ";")) {
$handle[] = $d[0];
I'm having problems accessing/passing old session variables after a user has
logged in. I'm using Apache 1.3.23, PHP 4.1.2, and PostgreSQL 7.2.
My setup:
The first user form page, "sponsor" contains the user's name and data. The
user then enters information into a second form page , "rap", wi
There are some classes that use sockets to send mail by connecting
directly to an SMTP server. Look on hotscripts.com or phpclasses.com
(.org?)
---John Holmes...
> -Original Message-
> From: John Hughes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 30, 2002 10:01 AM
> To: [EMAIL PROT
> 1. Can u guys provide any links on php script master details forms?
http://www.google.com/search?sourceid=navclient&querytime=B&q=php+script
+master+details+forms
> 2. data grids?
http://www.google.com/search?sourceid=navclient&querytime=-ZMXjB&q=data+
grids
---John Holmes...
--
PHP Gene
Perhaps you could use something a little more KISS- like
rawurldecode(chunk_split ( $hexstring, 2 , "%"))
not sure if it would be faster than base_convert or not, but it
wouldn't be too hard to find out.
On Tuesday 30 April 2002 11:50 am, you wrote:
> Although the first comment was not what
Sure you got your permissions set right?
On Tuesday 30 April 2002 16:29 pm, you wrote:
> When I run this the first time, file.txt contains value of 30. Then I add
> 15 to it with following script and file now contains value of 45. I look at
> file.txt after write and it does indeed contain numb
Or you could try something like this:
function isInclude ( $this_scripts_true_location ) {
if ( $SCRIPT_FILENAME != $this_scripts_true_location )
{
return TRUE;
}
else { return FALSE; }
}
On Tuesday 30 April 2002 17:20 pm, you wrote:
> // In your config file:
>
> function selfAwareI
Hello friends,
1. Can u guys provide any links on php script master details forms?
2. data grids?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Check Out Zend Studio. www.zend.com This was created by the folks who
created php.
Jason
"Liam Gibbs" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anybody know of any PHP project editors,
> something that will group together all the PHP, INC,
> HTML, C
I've got PHP 4.2 and what I believe to be the newest version of the GD
library up and running.. For some reason, my PNG images do not preserve
their transparencies but rather have a white background. I do not have this
problem on my production server, so this has something to do with my local
se
// In your config file:
function selfAwareInclude($filename) {
define($filename, true);
}
// in the file you are making an include
selfAwareInclude($filename)
include($filename);
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
> --
In addition to everything else discussed:
1. make sure the referring page (ie, the form) was as expected (ie, an
address you trust). This may block a small % or users who's browser doesn't
set a referrer string.
2. ensure that all values were submitted via $_POST, which will prevent the
user fr
On Tue, 30 Apr 2002, PHP List wrote:
> Is it possible to detect if a file is being called as an include or require?
>
> ex:
> include("file.php")<-- file.php code can "detect" that is has been
> called as an include.
Compare $PHP_SELF with __FILE__, maybe?
miguel
--
PHP General Mailing L
I wasn't paying that much attention. The /i is a preg thing. It's the same
as changing from ereg to eregi.
miguel
On Wed, 1 May 2002, John Fishworld wrote:
> aha !
> thats very strange then because mine works at the moment but if I add the /i
> at the end then it doesn't !
>
> > On Wed, 1 May
The problem with this is you will loose the scope of your variables.
So $filename will not have access to anything from where the function is
called...
-mark
On Tue, 30 Apr 2002, Billy S Halsey wrote:
> Try this code (untested):
>
> function selfAwareInclude($filename)
> {
> defin
Try this code (untested):
function selfAwareInclude($filename)
{
define($filename, true);
include($filename);
}
Inside your include file, make calls such as
if (defined($filename)) {
// Do whatever
}
Then use the selfAwareInclude() function instead of include(). You could
do the s
Hi,
Is it possible to detect if a file is being called as an include or require?
ex:
include("file.php")<-- file.php code can "detect" that is has been
called as an include.
Thanks,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey,
This time it's not about missing quotes or parenthasies i hope.
I'm trying to make a form which sends name, email, website, favsong and
comments to table guestbook, but when the checkbox mailinglist is checked it
should send the name and email to table mailinglist, but it doesn;t seem to
w
When I run this the first time, file.txt contains value of 30. Then I add 15
to it with following script and file now contains value of 45. I look at
file.txt after write and it does indeed contain number 45. But when I run
script 24 hours later via cron job, it still thinks file.txt is holding
nu
Hi,
The -c option does not seem to work for me. I saw it in the manual and
was the first thing I tried.
It just seems to get ignored - The php scripts that are supposed to be
working under that directive work just fine... But they use the ini file
from c:\winnt
Any other ideas?
Thanks,
/P
--
Use .htaccess, setting register_globals at runtime
will not have the desired affect.
Btw, I can't think of a reason why a script designed
with register_globals = off would not work with it
on. Which is why assuming register_globals = off will
make your scripts more portable.
See also: impo
aha !
thats very strange then because mine works at the moment but if I add the /i
at the end then it doesn't !
> On Wed, 1 May 2002, John Fishworld wrote:
> > Thanks after playing about with that I've got the following which does
seem
> > to work !
> >
> > $imode_code[$i] = eregi_replace("(src=)
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jason Sheets) wrote:
> > From: Jeff Bearer [mailto:[EMAIL PROTECTED]]
> >
> > Is there a way to turn register globals on or off in the script at
> > runtime?
> Chapter 3 in the PHP manual covers setting PHP configuration directives via
> the .
On Wed, 1 May 2002, John Fishworld wrote:
> Thanks after playing about with that I've got the following which does seem
> to work !
>
> $imode_code[$i] = eregi_replace("(src=)(\")([a-z0-9_\/-]+\.gif)(\")",
> "\\1\\2$path/\\3\\2", $imode_code[$i]);
>
> Very very very slowly getting the hang of re
Thanks after playing about with that I've got the following which does seem
to work !
$imode_code[$i] = eregi_replace("(src=)(\")([a-z0-9_\/-]+\.gif)(\")",
"\\1\\2$path/\\3\\2", $imode_code[$i]);
Very very very slowly getting the hang of regexs !
What does your /i do at the end ???
Thanks
> T
Chapter 3 in the PHP manual covers setting PHP configuration directives via
the .htaccess file.
I use this to enable register globals where needed so that I can keep it off
for the scripts that do not depend on them.
Jason
-Original Message-
From: Jeff Bearer [mailto:[EMAIL PROTECTED]]
I have a server where I'm running some third party apps.
until now I've had register globals 'on', now I have a new app that
requires register globals 'off' for it to work, if I change the php.ini
to off then it breaks some of the other applications.
Is there a way to turn register globals on or
I have been successfully using Sablotron with PHP for the last year and
half.
Recently I have started investigating Libxslt(running on my windows machine
I get
much better performance with it as compared to sablotron.)
I am trying to find any information about installing Libxslt on Linux
running
Expensive how?
-josh
"Bogdan Stancescu" <[EMAIL PROTECTED]> wrote:
> I'd recommend writing a wrapper around base_convert, naming it hex2bin
> and using that instead. base_convert() is way too expensive for this
> purpose (you know that any hex figure is translated to exactly four
> bits, so you
Check out your php.ini file and look for some lines that read something
along the lines of
zend_extension=/path/to/ZendOptimizer.so
zend_optimizer.optimization_level=15
Then either:
a. Get rid of those lines; or
b. Get the Zend Optimizer and put it some place where PHP can see it can
modify
The only fool proof method is is to have the application generate an image.
The image will contain a random number or series of letters. The user must
type these into a form field to continue. It's a password that only humans
can read. It won't prevent an outside script from 'trying' to access
I'd recommend writing a wrapper around base_convert, naming it hex2bin
and using that instead. base_convert() is way too expensive for this
purpose (you know that any hex figure is translated to exactly four
bits, so you don't need any actual conversion - just replacement). This
is why I sugge
This random number, because it is being sent to the user is just as easy to
forge as the rest of the fields on the form. The only thing you can do is check
the refferer on the submitted page, but alas even this can be forged with enough
technohow. Good luck!
James
-Original Message-
Fro
thx that worked, the problem is that I am installing XMB which is
php/mysql based message board, and they are useing syntax similar to mine
( without $_GET).
Is there a workaround for it, without having to edit their code?
I'll try to recompile the PHP with trackvars enabled as suggested by other
On Wednesday 01 May 2002 04:05, Cal Evans wrote:
> Generate a random number when creating a form, store it in the session and
> in a hidden on the form. Then when the post comes back, make sure the
> hidden is there and that it matches the one in the session.
But the flaw in that is if the nasty
On Tue, 30 Apr 2002, Cal Evans wrote:
> Generate a random number when creating a form, store it in the session and
> in a hidden on the form. Then when the post comes back, make sure the hidden
> is there and that it matches the one in the session.
That doesn't help, that I can tell - when the fo
Buon giorno, Emiliano,
Do you have root access to the system? If so, try downloading the gcc
package from http://www.sunfreeware.com/. Installing it in package
format should make everything work for you. Also make sure that your
LD_LIBRARY_PATH contains the correct locations (such as /usr/loca
On Tue, 30 Apr 2002, Lazor, Ed wrote:
> SomeSite This is a
> description of the site.
>
> I'm trying to parse out the address, site name, and description into
> separate variables. How can I do this?
I assume you mean http:// and not http:\\.
$str = 'http://www.someaddress.com";>SomeSite Thi
Make sure enable track vars is enabled.
Try specifying
global $arg
before you access it.
Try using phpinfo(); in your script. That will display all available
variables.
-Original Message-
From: efa [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 1:04 PM
To: [EMAIL PROTECT
Generate a random number when creating a form, store it in the session and
in a hidden on the form. Then when the post comes back, make sure the hidden
is there and that it matches the one in the session.
Cal
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-O
Hi!
I have a problem with passing variables to php script with simple GET.
example:
--- hello.html -
hello
--- hello.php --
");
?>
output from clicking on the link is:
arg=
I should mention that I use mod_userdir and the script/h
On Tue, 30 Apr 2002, Warrick Wilson wrote:
> I'm having a hard time explaining what I'm trying to do, which is why I'm
> having a hard time finding anything online/in manuals...
>
> My site serves a form for the user to fill in. User has been authenticated
> with a login and we're using PHP 4 ses
I have a file with this:
SomeSite This is a
description of the site.
I'm trying to parse out the address, site name, and description into
separate variables. How can I do this?
Thanks,
-Ed
This message is intended
I'm having a hard time explaining what I'm trying to do, which is why I'm
having a hard time finding anything online/in manuals...
My site serves a form for the user to fill in. User has been authenticated
with a login and we're using PHP 4 sessions. When using Internet Explorer,
the user can hit
Hi people,
I know there is a lot of material about it. I´m installing PHP under Solaris 8 and
obtain the message that gcc cannot create executables. I know that gcc has libraries
that are not installed by default under Solaris. If I download a version of gcc newer
and complete will I pass this
Hey,
I use MacroMedia's ultra dev for my JSP/ASP pages but i know it supports
PHP.
The only problem i see is that it sure as hell aint free, you can use it for
the first 30 days of course...
after than i've heard that SOME people crack it and use it illegallybut
i dont know much about that
The commas were inside the string enclosed by "". If changed to periods,
that would create a SQL error.
miguel
On Tue, 30 Apr 2002, Richard Emery wrote:
> When constructing $Query, end each line with a period (.) not a comma(,).
> Same applies to $Query2.
>
> $Query = "INSERT into $TableName v
When constructing $Query, end each line with a period (.) not a comma(,).
Same applies to $Query2.
$Query = "INSERT into $TableName values('0', '$Guestbook[dateadd]'.
'$Guestbook[name]', '$Guestbook[town]', '$Guestbook[email]'.
'$Guestbook[website]','$Guestbook[favsong]', '$Guestbook[comments]')"
Although the first comment was not what I needed, I did find another
built-in function that converts between any base, base_convert($number,
$frombase, $tobase) worked wonderful for what I needed.
Josh
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]..
On Tuesday 30 April 2002 21:09, John Fishworld wrote:
> Duh ! lol sorry !
> href="imode.fpl?op=imodecard&prefix=IMODE&nummer=1&suffx=&uid=55%2eFAGAE&pa
> > > > Unfortunately, no. Could you post say 20 lines of this file you're
> > > > talking about.
> >
> > I mean the file that you're readin
On Tue, 30 Apr 2002, Joshua E Minnie wrote:
> I know that there is a built-in function for bin2hex(), but does any body
> know have any code to do just the opposite, convert hex2bin?
Check the first comment in the manual under bin2hex.
miguel
--
PHP General Mailing List (http://www.php.net/)
I know that there is a built-in function for bin2hex(), but does any body
know have any code to do just the opposite, convert hex2bin?
--
Joshua E Minnie/CIO
[EMAIL PROTECTED]
Phone: 616.276.9690
Fax: 616.342.8750
Nextel: 616.862.2847
"Don't work for recognition, but always do work worthy of rec
Thanks for that, yeah i should be more carefull before going to the list..
i'll watch out for it next time.
Jule
On Tuesday 30 April 2002 13:54, Miguel Cruz wrote:
> You're missing a closing quote on the assignment for $Query2.
>
> Come on people, keep your eyes open. This is basic stuff. Doesn'
Looks like your problem is on line 24. See below.
-Steve
On Tuesday, April 30, 2002, at 12:48 PM, Jule wrote:
> Hey guys, i'm writing this guestbook script for my site, and i'm
> getting a
> random parse error where i think everything is normal, it gives it on
> line 26
> which is
>
> echo "
Does anybody know of any PHP project editors,
something that will group together all the PHP, INC,
HTML, CSS files together into one logical project?
Preferrably freeware/shareware, obviously.
__
Do You Yahoo!?
Yahoo! Health - your guide to health a
Austin Marshall wrote:
>
> To bring balance in the force, there is www.phpbb2.org. It has a few
> arguments of why it is BAAADDD... I know i will never use phpbb2
>
It's a pretty lame page/site that amounts to someone whining about
the fact that
1. The phpbb website looks good, th
I agree, try using a select after the delete.
-Steve.
-Original Message-
From: Joshua E Minnie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 1:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Checking to see if a DELETE was successful from MSSQL
I tried that already, it always
You're missing a closing quote on the assignment for $Query2.
Come on people, keep your eyes open. This is basic stuff. Doesn't take
any special genius to count quotes and braces.
miguel
On Tue, 30 Apr 2002, Jule wrote:
> Hey guys, i'm writing this guestbook script for my site, and i'm gettin
R wrote:
> Hey all,
>
> This email is not for any questions/suggestions etc but a thank you note.
> Some time back i posted an email asking if anyone had any recomendation for
> a BBS system and I got a lot of replies.
> I thank each and every one of you who wrote in,
> after checking out the lin
Hello everyone,
I have host that does not support Curl. I was wondering, if there was
another program I can use to make a secure connection (in PHP).
I need to make an ADC Connection to Authorize.net.
Pleae let me know.
FYI:
Do those of you who use Dreamweaver Ultradev & Phakt, Dreamweaver M
»Fredrik Arild Takle« sagte am 2002-04-30 um 18:48:37 +0200 :
> I've parsed some XML, when I do xml_parse it outputs the html-codes.
Wrap into a output buffer. ob_start, ob_get_contents
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:
Hey guys, i'm writing this guestbook script for my site, and i'm getting a
random parse error where i think everything is normal, it gives it on line 26
which is
echo "Your entry will be posted!";
my script follows
Jule
--SCRIPT--
mailto:[EMAIL PROTECTED]\";>me and I will fix the
problem."
That was exactly what I needed. Thanks, this group has been so helpful.
.:. Josh .:.
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tue, 30 Apr 2002, Joshua E Minnie wrote:
> > I tried that already, it always returns true. The reason is bec
On Tue, 30 Apr 2002, Joshua E Minnie wrote:
> I tried that already, it always returns true. The reason is because it
> will always return true since it is only deleting if the user exists.
> This means that the query will run and successfully complete. But if
> the user does not exist it still
I tried that already, it always returns true. The reason is because it will
always return true since it is only deleting if the user exists. This means
that the query will run and successfully complete. But if the user does not
exist it still runs and completes successfully, but the user was no
Hi,
This is more a SQL question that a php one, but here goes:
I have a table with 3 fields, Date, IP, ISP.
Basically I have written some php to store the following in the table each time
someone hits a page on my site. Now I want to display some info about the users
currently on my site, but I
On Tue, 30 Apr 2002, Ed Lazor wrote:
> Pull everything except a specific word from a sentence. For example,
> pulling everything except the word run from "the water run was steep".
$str = 'the water run was steep';
print preg_replace('/(\s*water)/', '', $str);
> Pull all words from a str
On Tue, 30 Apr 2002, Liam Gibbs wrote:
>> Before starting a test, dump your database with the
>> mysqldump command.
>> Edit this file to create/use your test database.
>> Load your test database with this file.
>
> Hmm. No I didn't do this. Not too familiar with all
> the intricacies of MySQL (or
Load the experimental apache2filter.dll instead.
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
"Kirk Babb" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTE
For the second time in less than a week, the commercial Web service
provider where I have four domains hosted has managed to break PHP.
In particular, I get this message:
Warning: mail() is not supported in this PHP build
I'm not interested in what causes the PHP mail() function to become
unava
On Wednesday 01 May 2002 00:24, Randum Ian wrote:
> Hi there,
>
> I got a number of files in the directory "/reviews/txt" which are reviews.
> They are submitted by people all over the world.
>
> Can someone please tell me what I need to do so that I can display them in
> date order, newest at the
Hi,
this might be a silly question, but I really haven't used XML alot with PHP.
I've parsed some XML, when I do xml_parse it outputs the html-codes.
I want to make a variable out of it, so I can write it to a file. I've tried
$output = xml_parse();
--
PHP General Mailing List (http://www.ph
Try this,
$query = "DELETE FROM [users] WHERE [user] = '$user'";
$result = mssql_query($query) or die("Unable to delete user");
if ($result)
//delete worked.
else
//delete failed.
-Original Message-
From: Joshua E Minnie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 3
Can anyone tell me the best way to check that a DELETE query was successful.
I have tried using mssql_num_rows() and mssql_rows_affected() but it is
always telling me that the DELETE was successful, even when it shouldn't
have been. Here is the code that I am trying to work with right now.
0) e
For the sake of legibility you could always assign the contents of
$_SERVER['PHP_SELF'] to another variable before using it in the print
statement:
$PHP_SELF = $_SERVER['PHP_SELF'];
print "";
Shouldn't be a problem security-wise as long as register_globals is off;
Even if somebody tried to pass
At 30.04.2002 17:24, you wrote:
>
>Hi there,
>
>I got a number of files in the directory "/reviews/txt" which are reviews.
>They are submitted by people all over the world.
>
>Can someone please tell me what I need to do so that I can display them in
>date order, newest at the top on a webpage?
>
I was trying to compile php command line and got some problem.
Maybe some of you can help.
version: 4.1.2
I did:
./configure --with-ldap --with-oracle --with-oci8
--with-mysql=/usr/src/mysql-3.23.43-pc-linux-gnu-i686 --enable-track-vars
--disable-debug --prefix=/usr/local/apache/php
--with-con
Hi there,
I got a number of files in the directory "/reviews/txt" which are reviews.
They are submitted by people all over the world.
Can someone please tell me what I need to do so that I can display them in
date order, newest at the top on a webpage?
Cheers, Ian.
---
Randum Ian
DJ / Reviewer
Hi,
I am having a small problem with PHP/Windows.
[config]
Windows 2000 Server
IIS 5
PHP 4.0.6
I have a server with a php.ini in the c:\winnt directory and a site
running fine with that configuration.
I need to set up a new site, using a different php.ini. The new site is
set up in IIS but
I have copied these three lines from the php install.txt file into
httpd.conf:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
and php4ts.dll is in winnt\system32. Apache freezes unless I comment out
those lines. When I test php scrip
Try some diagnostics to tell you what's going on
In the page you're submitting to try
Foreach($HTTP_POST_VARS as $key=>$value) echo("$key=>$value");
Part of your problem may be that you're using the number of
form elements returned to control the for loop. It doesn't
really have any significanc
1 - 100 of 165 matches
Mail list logo