Look at this:
http://www.example.com/";); /* Redirect browser */
exit; /* Make sure that code below does
not get executed when we redirect. */
?>This needs to be before anything else being outputted or you can use
javascript to
redirect.location='Re: [PHP] XML Data push
> You want the receiving page to be php that makes an xml page that is
> then pushed to be a processing page back to the user?
> I think some more detail might be needed...
The reason I want to do this is so that other things (such as a program
on a client's PC, another web site) can push XML data
Eric,
When the page gets reloaded it "forgets' the variables passed to it from the
previous page. Try putting the log in information and anything else needed
in hidden fields in your form.
Hugh
- Original Message -
From: "eric" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, De
Hi list :
This is maybe a silly question from deamweaver users, i hope you people
understand what i mean.
im working on a site php, smarty,css , etc. the directory structure of
the site is this:
--
- classes
- Files of the smarty cl
This has been covered several times recently - check
the archives.
zend.com has a great article detailing how to
accomplish this.
olinux
--- Adam Voigt <[EMAIL PROTECTED]> wrote:
> Make the download link a PHP page:
>
> download.php?fileid+AD0-199
>
> Then check to make sure there session is
use absolute path
or
http://www.sitename.com/style.css";
type="text/css">
--- Daniel Masson <[EMAIL PROTECTED]> wrote:
> Hi list :
>
> This is maybe a silly question from deamweaver
> users, i hope you people
> understand what i mean.
>
> im working on a site php, smarty,css , etc. the
> di
I have an issue with PHP when Cookies are not enabled on the client. I am
using 4.2.x (have tried on various versions) and enable-trans-sid is ON.
The problem is that the automatic url encoding that enable-trans-sid
performs works great for anchor tags (links) but it does NOT WORK for POST
forms
On Friday 13 December 2002 04:00, Tom Culpepper wrote:
> I am trying to get the mail() function to work right on my system and
> while I get no PHP errors the mail is never sent. Running on a linux
> server with PHP3 and I have confirmed that the command line mail
> function does work along with a
Thanks for your reply ... I know about absolute paths ... My question is
why it did work ???
Cordialmente;
Daniel E. Massón.
Web: www.imagine.com.co
Te Deseamos una Feliz Navidad
y un Prospero 2,003
> -Mensaje original-
> De: olinux [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves, 12
I have found what looks to be a problem with the php mail() function
and string in the message body with \n newlines in them.
using the following piece of code to test
generates the following output
Warning: Server Error in d:\apache\htdocs\mailtest.php on line 8
Res:
If I change $msg to
$ms
>>previous page. Try putting the log in information and anything
>>else needed
>>in hidden fields in your form.
YIKES!...hidden form fields are viewable in the html source generated.
session_register() anyone?
I thought you were trying to re-use the db connection?
if so, use mysql_pconnect() i
On Thursday 12 December 2002 20:06, DL Neil wrote:
> Spam Arrest Sender VerificationYesterday we held an amusing discussion
> which highlighted the futility of using (badly implemented) technological
> 'solutions' to a social problem...
>
> Herewith I attach a response received pursuant to a list c
On Thursday 12 December 2002 18:48, Steve Jackson wrote:
> It doesn't work in that it doesn't update the database.
> I have a form which when loaded takes a variable ItemCode from the
> previous page (which gets the Itemcode from the DB) and puts it into a
> hidden field which I call oldItemCode, t
I was wondering if there is a easy way to loop through the same SQL results
many times.
I have a for loop that loops 3 time. Each time I want to loop through the
SQL result printing.
The end result is printing the SQL results 3 times in a order.
The problem is I have to reset the SQL result arra
On Friday 13 December 2002 05:40, Mark McCulligh wrote:
> I was wondering if there is a easy way to loop through the same SQL results
> many times.
> I have a for loop that loops 3 time. Each time I want to loop through the
> SQL result printing.
>
> The end result is printing the SQL results 3 ti
Mark,
Try looking at :
http://www.php.net/manual/en/function.mysql-data-seek.php
and see if that function gives you the desired result.
HTH
-Brad
> I was wondering if there is a easy way to loop through the same SQL results
> many times.
> I have a for loop that loops 3 time. Each time I want to
On Thursday, December 12, 2002, at 03:10 PM, Marek Kilimajer wrote:
Does anyone know a way to change endianness of a binary string?
Hi Marek:
You might look at pack() and unpack().
http://www.php.net/manual/en/function.pack.php
Perhaps one of the options for unpack?
HTH
David
--
PHP Gene
>>The problem is I have to reset the SQL result array on each for
>>loop. How do
>>you do that?
$myNewArrayFullofSqlResultsThatICanLoopOverAsManyTimesAsIWant =
mysql_query($sql);
-Craig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You could put it in yourself
action="somepage.php"
or my preference is stick the session as a hidden field
/>
Cheers!
Rick
"Finish each day and be done with it. You have done what you could; some
blunders and absurdities have crept in; forget them as soon as you can.
Tomorrow is a new day; y
I just found out that the server taht I though was running sendmail is
in fact running another program (communigate). I think php is just not
interfacing with it correctly. I know this is kinda off topic but is
there anyway to monitor what is being sent back to the system from the
PHP command
If I understand you if you use the mysql_query($sql) again won't it rerun my
SQL again, not just reprint.
Example:
$result = mysql_query($sql);
for ($i = 1; $i <= 3; $i++) {
while ($row = mysql_fetch_array($result)) {
//Some Code
echo $row['filed'];
}
//Reset result arra
Set the new array before your for loops, then loop over the array.
-Craig
>>-Original Message-
>>From: Mark McCulligh [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, December 12, 2002 4:56 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [PHP] PHP + MySQL looping question
>>
>>
>>If I understand yo
At 12/11/2002 08:09 PM, you wrote:
Okay, so how do you know what to replace something like [author] with?
What exactly are you doing again? I've forgotten the original question.
:)
Ok, got a sentence, like:
a pile of [metal] 600 feet wide and 30 feet tall. On top of it is
a [monster].
Hi all,
I'm writing a guestbook and message in the guestbook might contain & < > so
to make sure this wasn't a problem I was advised to great entities in my xml
file like so
]>
and when I write to my xml file if I convert all & < > characters to &
< > problem solved.
I'm having
I have a php files dependencies in this order:
.../php/index php
.../php/globals/db_connection.php
.../php/globas/global_functions.php
in db_connection.php I declared a variable with the connection to a
postgreSQL
database.
on index.php, everything is fine
I can use the database connection
ASSISTANCE
WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND
PLANNING OF THE NIGERIA NATIONAL PETROLEUM CORPORATION
(NNPC)IN WEST AFRICA. THIS COMMITTEE IS PRINCIPALLY CONCERNED
WITH CONTRACT AWARDS AND APPROVAL. WITH OUR POSITIONS,
WE HAVE SUCCESSFULLY SECURED FOR OURSELVES
php
How did a Nigerian oil scam e-mail get on this list, anyway?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Another problem I have is I did $message = str_replace("\n","",
$message);
and instead of getting
Helo <
Hey
Hey
I have
Helo <
Hey
Hey
Any ideas please?
Thank you
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I have following problem:
list.php3
line 36 while($row = mysql_fetch_row($mysql_result))
{
//get columns
$id = $row[0];
$ynimi = $row[1];
$ylahi = $row[2];
$ypostios = $row[3];
$ypostitmp = $row[11];
Got to love people who use all capitals.
How would the scammer profit from this? I guess given your full details and
bank number they can do what?
Cheers
"John Meyer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> php
>
> How did a Nigerian oil scam e-mail ge
:)
Paul Marinas
Technical Support
RDS Craiova
Phone: +402-51-410-194
Mobile: +407-22-451-439
Fax:+402-51-416-579
www.rdsnet.ro
.
Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicated
Well, are you getting a valied response from the database?
Perhaps it would be nice to add some error handling into your code...
i.e.:
$mysql_result = mysql_query($query, $mysql_link)
or die("Invalid query: $query");
or echo out mysql_error();
GWAD Mailinglist wrote:
> Hi,
>
> I have following
On Friday 13 December 2002 06:58, Russ Taylor wrote:
> Got to love people who use all capitals.
>
> How would the scammer profit from this? I guess given your full details and
> bank number they can do what?
They ask you to put some money upfront. Believe it or not, some gullibles mugs
have been
Of course Identity theft is another issue
Classic email scam to get people's bank account numbers. I think I have seen such
on this mailing list about 2-3 times over the past couple of months.
Jason Wong wrote:
> On Friday 13 December 2002 06:58, Russ Taylor wrote:
> > Got to love people who
Hi,
If phpinfo() does not have an 'XML' section, and so 'XML Enabled true' is not
there, but the compile line is '--with-xml=shared,/usr', does this mean that I have
XML support or not?
PHP 4.0.3pl1, Apache 1.3.9
I am checking the configuration of a server before implementing on it - in f
On Friday 13 December 2002 09:20, enediel wrote:
> when I make a call from index.php to a function defined on
> global_functions.php, the called function can not use the database
> connection referred before.
Inside the function declare the variable you want to use as "global", see
manual for de
>> $mysql_result = mysql_query($query, $mysql_link);
I am not sure if this is your only problem or not, but mysql_result(); is a
function in php. Using a function name as a variable seems like it will
just lead to confusion to me. I'd try to avoid it.
>>--> line 36 while($row = mysql
You need to do some error handling, as in:
> $mysql_result = mysql_query($query, $mysql_link);
>
> // get each row
>
> --> line 36 while($row = mysql_fetch_row($mysql_result))
>
Make sure $mysql_result is a valid resource as PHP
is telling you it's not. Here's one way:
i
hi all,
i have successfully run php as a cgi on Solaris and on another OS X
machine, but now, with php 4.2.3, my pages are spitting out "Content-type:
text/html" at the top. of course, "Content-type: text/html" is important,
but why is it showing up on my page...? maybe apache is already outputtin
--> line 36 while($row = mysql_fetch_row($mysql_result))
>>
>>Anyway, where do you define $row?
>>
>>HTH
>>
>>-Craig
DOH! it's been a long one...
-Craig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi All
This is probably off-topic here and my only real excuse is that after
having searched google as well as both php and mysql sites/manuals I'm
no closer to an answer for something I'd like to get solved this
morning...
I have two database tables (mysql). One contains information about
image
I must be a suspicious character, but I haven't come across Expert Rating
before, nor do I know what Pete's connection with Expert Rating is, so I
went and looked at the PHP web site (where we are led to believe that we
would expect to find "a lot of excitement") but a site-wide search fails to
yie
I tried to ftp with php's ftp functions, but was only able to upload zero byte files.
So, I then tried to upload with fsockopen, but again, my script uploads a zero byte
file. It bombs out at:
FTP transaction:
220 marlborough FTP server (CH/1.9) ready.
331 Password required for [EMAIL PROTECTE
hi Russ,
why don't you just str_replace the <, > and & with their entities and when
they get extracted the parser will normally replace them with their original
form, won't it?
Regards,
Khalid Al-Kary
Hi all,
I'm writing a guestbook and message in the guestbook might contain & < > so
to m
Hi,
If you are going to use this output in HTML pages, it won't matter at all,
because HTMl only cares about (s), so the additional line-feeds and even
additional spaces(except the first space) won't be taken care of by the
browser ;) or you have something additional to say ?
Regards,
Khalid A
Hi,
Then you can do whatever you want with them... but I can't see why you'd
write them to a disk file AND write them to a mysql database -- wouldn't it
be one or the other?
on 13/12/02 2:49 AM, Antti ([EMAIL PROTECTED]) wrote:
> How can I take some text before the mark - and after it and pu
yes this is javascript - for some reason I thought jsp was another term for
javascript so I apologize. Let me try these code changes, and see how this
shakes out.
Jeff
"Chris Wesley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm pretty sure everyone else
Wouldn't this involved a sub-query?
i.e.
select * from images where
( select * from categories where cat_id = 3 AND cat_id != 5)
Now, the question is, do the more recent versions of mysql support
subqueries?
Take a look at:
http://www.mysql.com/documentation/mysql/bychapter/manual_Introduction
because dreamweaver knows what your local root folder
is, so it can find it.
--- Daniel Masson <[EMAIL PROTECTED]> wrote:
> Thanks for your reply ... I know about absolute
> paths ... My question is
> why it did work ???
>
> Cordialmente;
> Daniel E. Massón.
> Web: www.imagine.com.co
> Te Deseam
Karel wrote:
I'm having a lot of trouble with loading times...
Let me explain in detail:
I've a full & huge coded website based upon a mysql database...
mysql entries: at least 2M
php code: at least 1M lines (longest file about 25k, without includes)
about 2 months ago we resetted the entire d
Hi,
Friday, December 13, 2002, 9:09:43 AM, you wrote:
QB> Hi,
QB> If phpinfo() does not have an 'XML' section, and so 'XML Enabled true' is not
there, but the compile line is '--with-xml=shared,/usr', does this mean that I have
XML support or not?
QB> PHP 4.0.3pl1, Apache 1.3.9
QB> I am
Hay guys i was wondering if there was a form parameter of something
equivalent for input text boxes that when a user enters a number or series
of numbers that it removes the spaces.
If there is no alternative how would you go about solving this issue.
Your help is appreciated.
Thanks.
Netway N
Daniel Masson wrote:
Hi list :
This is maybe a silly question from deamweaver users, i hope you people
understand what i mean.
im working on a site php, smarty,css , etc. the directory structure of
the site is this:
--
- classes
-
Hi guys,
It goes something like this:
class Myclass extends GtkWindow {
var $run_xpm;
var $pixmap;
var $mask;
function Myclass() {
$this->run_xpm = array("bla", "bla");
$this->GtkWindow(GTK_WINDOW_TOPLEVEL);
$this->connect("destroy", array($this, shutdown));
$this->set_title("Ru
"Olinux" <[EMAIL PROTECTED]> wrote in message > > problem here. But ... since
scriptsN.php need the
> > So the browser shouldnt find the style sheet because
> > TemplatesN.html
> > call ../style.css and ../style.css doesnt exists
> > relative to
> > http://site/scriptN.php , and for my surprise the
"Tom Culpepper" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> while I get no PHP errors the mail is never sent.
> mail("[EMAIL PROTECTED]", "testing 1234", "this is a test message");
I don't think this shows an error if it doesn't work. Try
$mailsuccess
Hi All,
I would lik eto get the information about the location of the visitors to my
site like From which IP, What browser and which part of the world etc.
How can get the information about the location of the visitor, using PHP?
for me, the
time zone is sufficient.
Thanks in advance.
Jacob Jos
Hi
When I run phpize I am getting following error
bash-2.02$ phpize
configure.in:46: error: possibly undefined macro: AC_PROG_LIBTOOL
autoheader: `config.h.in' is unchanged
/export/home/bt6817/php/php-4.2.3/bin/phpize: libtoolize: not found
The Php is compiled and installed sucessfully (in Solari
I actaully already wrote one like that. The PHP is going fine, the
problem I believe is PHP interfacing with my mail server. Thanks though
Steve Yates wrote:
"Tom Culpepper" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
while I get no PHP errors the mail is
You can get the IP using getenv()
(http://www.php.net/manual/nl/function.getenv.php) not sure how you
would get the time zone though.
-tom culpepper
Jacob Mangalyajyothy wrote:
Hi All,
I would lik eto get the information about the location of the visitors to my
site like From which IP, What br
Found this tutorial that might be helpful
http://martin.f2o.org/php/localtime
-tom
Jacob Mangalyajyothy wrote:
Hi All,
I would lik eto get the information about the location of the visitors to my
site like From which IP, What browser and which part of the world etc.
How can get the information
I'm about to embark on a project where I have to enter many, many fields
into a MySQL database, and I don't know how to approach the database
structure. The data is statistics for a golf course. There are 18
holes, and each hole has a Red Tee Par, White Tee Par, and Blue Tee Par,
which is 54
I've solved similar things, i.e. removing commas from a number of text
fields, by looping through the input boxes and doing a search/replace -
all using Javascript via the onSubmit event. This chunk of code removes
commas from input boxes:
for (var i = 0; i < form.elements.length; i++)
Matty Rozen wrote:
by using the 'curl' module, you can use any calls needed to any type of
scripts. you can use curl to "talk" with the cgi.
Ok, I'll look into CURL. If I understand their system, it is meant to be
called from a form so CURL might be applicable.
> let me know if you need more
I want to use mm for session handling and as I haven't enabled it before
my first action was to try to enable mm in php.
apache configure:
LD_SHLIB=ld ./configure --with-layout=OpenBSD --enable-module=rewrite
--enable-module=so --enable-module=info --server-uid=www --server-g
id=www
php configur
I know that fwrite needs to be written as such:
$Open=fopen($MyFile, "w");
fwrite($Open, "Text to add to file.\n");
The file is being saved on a Unix server, but Windows/Mac users will be downloading
the file. How can I create line breaks that notepad/textpad will use to create new
lines, inste
How would take a regular non-formatted text link (http://www.link.com) and
turn it into ready to post HTML? (http://www.link.com>http://www.link.com)
Darn, Outlook formats it, but you get the idea. It would just be typed out
normally.
Any ideas?
--
PHP General Mailing List (http://www.php.net
On Thu, Dec 12, 2002 at 11:01:47PM -0800, Troy May wrote:
>
> How would take a regular non-formatted text link (http://www.link.com) and
> turn it into ready to post HTML? (href=http://www.link.com>http://www.link.com)
>
> Darn, Outlook formats it, but you get the idea. It would just be typed out
On Fri, Dec 13, 2002 at 12:44:14AM -0600, Jami wrote:
>
> I know that fwrite needs to be written as such:
>
> $Open=fopen($MyFile, "w");
> fwrite($Open, "Text to add to file.\n");
>
> The file is being saved on a Unix server, but Windows/Mac users will be downloading
>the file. How can I creat
On Fri, Dec 13, 2002 at 02:19:07PM +1100, Andrew Wilson wrote:
>
> Hay guys i was wondering if there was a form parameter of something
> equivalent for input text boxes that when a user enters a number or series
> of numbers that it removes the spaces.
Are you saying that your users will hit the
101 - 170 of 170 matches
Mail list logo