At 3:59 PM +1000 23/4/02, Brian White wrote:
>Is there any way to get it to save as a file called "file.zip"?
>Is there any header I can set? The headers it currently returns
header("Content-type: application/octet-stream; name=\"file.zip\"");
header("Content-Disposition: attachment; filename=\"
At 6:37 AM + 23/4/02, mm fernandez wrote:
>hi...is it possible to store pics (jpeg/gif) on the mysql database? if so,
>how and what type should that field be?
How: just addslashes() on the content and insert it.
What: a blob of an appropriate size.
...R.
--
PHP General Mailing List (htt
Yes. The field would need to be some kind of binary blob.
You would need to access it using a PHP script that
set the header eg:
header( "Content-type:image/gif" )
and then out put the image.
At 16:37 23/04/2002, mm fernandez wrote:
>hi...is it possible to store pics (jpeg/gif) on the
Hello,
How can I take the IP of the visitator of my php page?
not gethostbyname...
I need the ip of any visitator not for the specified visitator.
Thank you
Cosmin
At 11:04 23/04/2002 +0300, Cosmin Vlasiu wrote:
>Hello,
>How can I take the IP of the visitator of my php page?
>not gethostbyname...
>I need the ip of any visitator not for the specified visitator.
>
>Thank you
>
>Cosmin
Hello,
function http_data()
{
$user_data = array ();
// IP Numbe
Ya I found
$ip = gethostbyname($REMOTE_ADDR);
Thanks anyway
Cosmin
"Cosmin Vlasiu" <[EMAIL PROTECTED]> wrote in message
007d01c1ea9d$9db78660$[EMAIL PROTECTED]">news:007d01c1ea9d$9db78660$[EMAIL PROTECTED]...
Hello,
How can I take the IP of the visitator of my php page?
not gethostbyname...
I ne
$ipaddr=getenv("REMOTE_ADDR");
Cam asta ar fi...
On Tue, 23 Apr 2002, Cosmin wrote:
> Ya I found
> $ip = gethostbyname($REMOTE_ADDR);
> Thanks anyway
>
> Cosmin
>
> "Cosmin Vlasiu" <[EMAIL PROTECTED]> wrote in message
> 007d01c1ea9d$9db78660$[EMAIL PROTECTED]">news:007d01c1ea9d$9db78660$[EMAI
I have an array where each element contains an array that in turn contains
2 numbers indexed by "id" and "parent".
Every id except for the first one belongs to another, its parent.
What I want to do now is sort the array so that every id is put after its
parent starting with id 1.
Example:
arr1
Hello,
Suppose i've got the following array
$a = array(
"color" => "red",
"taste" => "sweet",
"shape" => "round",
"name" => "apple",
3 => 4
);
Now I would like to remove the "color" field and value. Whats the best
way to do this?
Thanks
--
PHP General Mail
Hello,
Suppose i've got the following array:
$a = array(
"color" => "red",
"taste" => "sweet",
"shape" => "round",
"name" => "apple",
3 => 4
);
Now I would like to remove the "color" field and value. Whats the best
way to do this?
Thanks.
--
PHP General M
Hello,
i think that unset($a['color']); is the best way :)
Regards
Michal Dvoracek [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks to all, very usefull samples
Cosmin
"Cosmin Vlasiu" <[EMAIL PROTECTED]> wrote in message
007d01c1ea9d$9db78660$[EMAIL PROTECTED]">news:007d01c1ea9d$9db78660$[EMAIL PROTECTED]...
Hello,
How can I take the IP of the visitator of my php page?
not gethostbyname...
I need the ip of any visita
Miguel Cruz wrote:
>
> On Mon, 22 Apr 2002, Leif K-Brooks wrote:
> > I use $formvar for form processing, I don't use the arrays. This is how I
> > was taught to do it. If my host upgrades to 4.2.0, my website is as good as
> > gone! What am I supposed to do?!
>
> Fix them! This direction was
Hey,
I am trying to make a drop down list such that, when some one selects an
option, it refreshs and displays the option on the same page. There are a
couple of things already in the URL [ the query string ], which need to
remain there. How would I do this easily?
Regards,
Kunal Jhunjhunwala
"Mi
php-general Digest 23 Apr 2002 11:02:04 - Issue 1303
Topics (messages 94084 through 94134):
Re: From where was function called?
94084 by: Martin Towell
94119 by: Adrian Ciutureanu
Re: Second opinion needed - javascript blocker
94085 by: Martin Towell
94114 b
Hi!
How on earth do I make Internet Explorer to download a file generated with:
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=$fname");
include($this->dir . $fname);
exit;
It works on http but I need it on htt
I got a strange request from a client. He wants to be able to take his ASP
pages and move them over to PHP so that he can run them on apache on his
linux server. I saw a tool yesterday ASP2PHP, but I am wanting to know does
it work, how much is lost, is it easy to use? Is there another way to chan
I think this is only an issue with an un-patched IE5.01, anything higher
than that should work fine.
.b
> -Original Message-
> From: Negrea Mihai [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 12:26
> To: [EMAIL PROTECTED]
> Subject: [PHP] file download in IE
>
>
> Hi!
>
> How on eart
Having moved a moderately sized website last year from ASP to PHP I can say
from experience that if you can re-write it, the move will go smoother and
you will have fewer lines of code. I ended up with about 1/2 as many lines
of code to maintain after the port was done.
=C=
*
* Cal Evans
* Journe
Hi Kunul,
I think I have code that does what you want:
function QuickJumpSelect($name="", $optionvalues, $optionnames, $stylestr="")
{
($stylestr != "")? $style = $stylestr : $style = "";
// Calculate stuff
$count = co
I am in the process of porting an ASP site to PHP and am really chuffed with
how easy it is so far. I am slightly worried that doing a straight
conversion may not be the best idea, but I plan to go through the site again
when i'm done, and optimise for PHP where possible.
.b
> -Original Me
Hi all,
I have a question regarding array indices:
At a certain point in code, I run array_diff() on two arrays to produce a reduced
version of one of the argument arrays.
Problem is, I dont want the key-value associations to be preserved.
I need that the returned array has new (integer, not st
This variable contains the IP address of the visitor:
$HTTP_SERVER_VARS["REMOTE_ADDR"]
Best regards,
Eivind
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This variable contains the IP address of the visitor:
$HTTP_SERVER_VARS["REMOTE_ADDR"]
Best regards,
Eivind
- Original Message -
From: "Cosmin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 12:16 PM
Subject: [PHP] Re: get ip of visitor
hi
have look at this code:
class test {
function test(){
//$this->a = 10;
print_r($this);
}
function test2(){
print_r($this);
}
}
$t=new test();
$t->test2();
what do you see? empty object twice...
now uncomment the commented line. now the object got a variable - which i
Hi all,
I would like to enter directly into MySQL-table.
How do I escape? the above so that the script is executed?
Is it possible?
Web inventor
Michael Cronstrom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Are you talking about refreshing/dynamicly modifying the pull-down (client
side, javascript), or refreshing the page (server side, php)??
You can set a pull down to submit the form onchange, (check out javascript
sites for this FAQ) and the action of your form would be something like
(untested):
I disagree with your assessment of the situation being related to the
index.html. If I browse directly to
http://gdpim.glencoe.com/login/login.php (using IE 6.0 on Windows) I get an
error from IE (not from the webserver) saying 'The page cannot be
displayed". It is the same error that I get if I
First thing I should say is, you only need to quote the relevant part of
an email -- that way, everyone knows exactly what to read (rather than
pages of old email threads) to answer the question. But don't worry
about it.
Now, on to your situation --
> That clears up a lot. I sort of thought
I have php compiled as both a module and cgi on my server...
Running php from the command line works just fine, no unexpected output..
However running it as cgi from the webserver is really wierd...
The very first line #!/usr/bin/local/php ALWAYS shows up on the webpage...
Its driving me nuts.
Not sure if this is exactly what you are looking for, but you might want
to take a look at the Eval function.
(http://www.php.net/manual/en/function.eval.php )
/a
Michael Cronström said:
> Hi all,
>
> I would like to enter directly into
> MySQL-table. How do I escape? the above so that the s
> -Original Message-
> From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 04:54
>
> Why get strlen involved???
>
> $string = substr("$string", 0, -1);
Why get quotes involved???
$string = substr($string, 0, -1);
Cheers!
Mike
Does anybody know if they completed the handling of the 'echo shortcut' to
work with all 3 opening tag styles?
(As of 4.0.x, I seem to recall that 'http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> -Original Message-
> From: michael kimsal [mailto:[EMAIL PROTECTED]]
> Sent: 21 April 2002 04:17
>
> Second, *HOW MANY* PHP statements can be followed by a { ?
>
> I can think of three
>
> if (foo) {
> function foo () {
> class foo {
>
> Maybe there's one more that I'm missing [...]
I use a template page and then split out the middle of the page to do my PHP
stuff depending on a variable I pass to it.
I have a problem I hope someone can help me on.
The template page has a meta refresh in the header set for 60 secs. One of
the things this page does is insert data into a MySQL
On Tue, 23 Apr 2002, .ben wrote:
> I think this is only an issue with an un-patched IE5.01, anything higher
> than that should work fine.
In my experience, there're problems even with MSIE 6.x.
Regards,
Rodolfo.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
Haha you wouldn't feel that way if you saw some of MY code... ;)
On Monday 22 April 2002 20:57 pm, you wrote:
> Because I'm kinda stupid. :)
>
> tyler
>
> - Original Message -
> From: "Evan Nemerson" <[EMAIL PROTECTED]>
> To: "Tyler Longren" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> S
Hello,
Anybody have any suggestions on how i could get the test.html from the following:
http://www.mydomain.com/member.php/randy/test.html
Here is the part that I am having trouble with:
the randy is not a directory it is a member name so it can change
ie bill, car, jack, moneypower
On Tuesday, April 23, 2002, at 06:48 AM, Rouvas Stathis wrote:
>> This change improves your security, so it'd be rational to be happy
>> about
>> it.
>
> No it doesn't. It just provides another excuse for lazy programming.
> Nothing will save a lazy programmer or one that doesn't understand ba
HTMLEDITOR is very good. I use it and i catch beatifull results.
- Original Message -
From: ".ben" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 9:36 AM
Subject: [PHP] PHP editor for windows
> Other than notepad, interdev, ultraedit, etc (which i curren
No, this has not been implemented. I can't think of anything uglier and
less sensical than Code should be readable and not misleading.
-Rasmus
On Tue, 23 Apr 2002, Brinkman, Theodore wrote:
> Does anybody know if they completed the handling of the 'echo shortcut' to
> work with all 3 opening
On Tuesday, April 23, 2002, at 07:01 AM, Kunal Jhunjhunwala wrote:
> I am trying to make a drop down list such that, when some one selects an
> option, it refreshs and displays the option on the same page. There
> are a
> couple of things already in the URL [ the query string ], which need to
On Tuesday 23 April 2002 6:59 pm, [EMAIL PROTECTED] wrote:
> ie bill, car, jack, moneypower etc...
>
> example
>
> http://www.mydomain.com/member.php/moneypower/test.html
>
>
> I have experimented with the php variables that come in , but the only way
> I could figure out to get test.html out
You could use a SESSION variable called for instance 'SUBMIT_TO_DB'.
After submitting to the database, you simply set this variable 'SUBMIT_TO_DB' to
'NO'...
The next time the page is reloaded, you won't have to submit one more time to the
database, provided you check whether 'SUBMIT_TO_DB' is
There is also one called 'phpbuilder'...
Eivind
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What do I have to do to upgrade from PHP 4.1.2 to 4.2.0? Do I just overwrite
all the old PHP files with the new ones or must I do something else?
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Matt,
Thanks That worked perfectly! I cannot believe I did not think of
explode, i have used it before :-)
Thanks again,
Randy
- Original Message -
From: "Matt Williams" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Dave Sugar" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesda
Do you want to submit every time the dropdown changes? If you just want the
second dropdown to update and don't want a submit, let me know. I am doing
this in one of my programs and I can send you some code if you think it
would help.
Ex of my program:
We want to show populations. There's a s
Just do it like you're installing new. You don't have to remove the old
one, just:
./configure --blah-blah
make
make install
restart apache.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: "Sebastian A." <[EMAIL PROTECTED]>
To:
Are you using Windows? That's the one I can give you a tip about :-)
Stop the server, overwrite all php files with the new ones, pick up the
new "php4ts.dll" and copy it to your Windows, Windows\System and
Windows\System32. Restart the server :-)
--
Julio Nobrega.
Um dia eu chego lá:
http:
not exactly sure if what you want is to extract the username or if its the
html file at the end but here goes..
To extract the html file you could use
basename()
ex:
$file = basename("http://www.mydomain.com/member.php/randy/test.html";);
echo $file; // outputs test.html
if you want the userna
Is there a way to add an ftp user and assign them to a directory when the
host server does not and will not load the ftp module?
Shane McBride
RDI Technologies
www.rditech.net
Office: 410-575-6326
Fax:410-575-6327
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
On Tue, 23 Apr 2002, Rouvas Stathis wrote:
>Miguel Cruz wrote:
>>
>> On Mon, 22 Apr 2002, Leif K-Brooks wrote:
>>> I use $formvar for form processing, I don't use the arrays. This is how I
>>> was taught to do it. If my host upgrades to 4.2.0, my website is as good as
>>> gone! What am I suppo
Could you write the user info to a file and have a cron job parse the file
and add them as a user?
- Original Message -
From: "Shane McBride" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 9:43 AM
Subject: [PHP] Add FTP user via PHP?
> Is there a
Hi,
I'm looking for PHP module which allows to send mail and attachment
both. Is there any one ? Thank You for any suggestions.
Krzysztof
--
Muzyka dla Twoich uszu... >>> http://link.interia.pl/f15ac
--
PHP General Mailin
function mail_attachment ($to, $subject, $message, $addr_from, $attachment,
$filename) {
/*
This function sends an e-mail with a file attachment using the
standard
PHP mail function with parameters $to, $subject and $message.
The $attachment parameter is a string w
Im having a problem wiht creating a db in MSSQL, Ive only used Mysql
be for so I tryed the syntax just the same way.
Im trying to execute this code:
create table test
(
news_id int not null auto_increment
, title varchar(50) not null
, ndate varchar(50) not null
, headline varchar(150)
I believe the auto increment field has to be set as the primary key as well.
- Original Message -
From: "David Orn Johannsson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 10:04 AM
Subject: [PHP] MSSQL help w/ auto_increment
I'm having a problem wiht creatin
That is my goal to only use only file and I do use a lot of IF statements.
I will try this. I have not used the Header() function. I will take a look
at it. If you have an example, that would be great.
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April
Unfortunately there is a lot of variation from one RDBMS' SQL
implementation to another.
Try something like this:
create table test (
news_id int identity,
title varchar(50), blah blah...
miguel
> - Original Message -
> From: "David Orn Johannsson" <[EMAIL PROTECTED]>
> To: <[EMAI
I have a problem.
I am fetching rows from a MySQL table called "temp." Each row has four
fields: "Name", "1", "2" and "3"
Then I do this function which will eventually generate records for a
lookup table for any skills in the 1, 2 or 3 fields that equal the string
"YES" associated with the Nam
I forgot to show you some output from this thing...
---{0,BLOW, JOE}---Name is BLOW, JOE, Key = 0 |
---{Name,BLOW, JOE}---Name is BLOW, JOE, Key = Name |
---{1,YES}---1 |
---{2,}---
---{3,YES}---3 |
The way I see it, that first line should have not printed because $key is
equal to 0 not "Na
The # is used to point to an anchor on a page. Usually, you need the anchor
name after the hash symbol, i.e. http://www.example.com/#anchor.
However, in this case, odds are it's a JavaScript thing. In some older
browsers, like pre-Netscape 4.7, I believe, when you created a link that
had an o
Erik Price wrote:
>
> On Tuesday, April 23, 2002, at 06:48 AM, Rouvas Stathis wrote:
>
> >> This change improves your security, so it'd be rational to be happy
> >> about
> >> it.
> >
> > No it doesn't. It just provides another excuse for lazy programming.
> > Nothing will save a lazy programme
Amazing things happen when you compare values of different types. The
numerical value of "Name" is zero. Try using === to compare type as well
as value.
miguel
On Tue, 23 Apr 2002, John S. Huggins wrote:
> I forgot to show you some output from this thing...
>
> ---{0,BLOW, JOE}---Name is BLOW
Is there a way to create a file to a remote host.
IE: I have a php script on www.somedomain.com for example - and I want to
fill out a form on this php script and make it create a file called
"index.html" on say www.someotherdomain.com for example.
I have admin and root access to BOTH domains.
The Earth shook, Angles sang, there was much rejoicing.
Behold Miguel is correct. === did the trick.
It sure is nice to know I am not going nuts.
Much thanks.
John
On Tue, 23 Apr 2002, Miguel Cruz wrote:
>-Amazing things happen when you compare values of different types. The
>-numerical v
On Tuesday, April 23, 2002, at 11:46 AM, Rouvas Stathis wrote:
> Preventing namespace pollution...now you convince me.
>
> I used the term "lazy programming" without explaining what I meant,
> hence the misunderstanding. I refer to "lazy programming" in the sense
> of not properly and thoroughl
Miguel Cruz wrote:
>
> On Tue, 23 Apr 2002, Rouvas Stathis wrote:
> >Miguel Cruz wrote:
> >>
> >> On Mon, 22 Apr 2002, Leif K-Brooks wrote:
> >>> I use $formvar for form processing, I don't use the arrays. This is how I
> >>> was taught to do it. If my host upgrades to 4.2.0, my website is as g
Hi all,
I am wondering. When you use an if else statement and a condition exists
isn't the if part suppose to stop?
Then if the condition doesn't exist it is suppose to do something else?
I am wondering because I have a form that goes something like this.
select such and such from the table
if
On Tue, 23 Apr 2002, Jennifer Downey wrote:
> I am wondering. When you use an if else statement and a condition exists
> isn't the if part suppose to stop?
> Then if the condition doesn't exist it is suppose to do something else?
>
> I am wondering because I have a form that goes something like t
Wow, I didn't know Angles could sing...:-) Sorry, bad attempt at humor.
-Original Message-
From: John S. Huggins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:53 AM
To: Miguel Cruz
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] List, Key, Value oh my.
The Earth shook, Angles s
> If and else expect to be followed by exactly 1 statement. To aggregate
> multiple statements as one, surround them with {curly braces}. I'm
> guessing you didn't do that, and you're seeing the execution of all but
> the first of the statements following the else.
>
> So it should be:
>
> if (
Does it show the message and the form or just the message?
-Natalie
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] If else question
> If and else expect to be followed by exactly 1 st
It shows both.
"Natalie Leotta" <[EMAIL PROTECTED]> wrote in message
7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC3@SSIMSEXCHNG">news:7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC3@SSIMSEXCHNG...
> Does it show the message and the form or just the message?
>
> -Natalie
>
> -Original Message-
> From:
Hello:
How could I disable the browser cache?, I have a script that generates
an image and shows it via . The problem is if I change
the image, the browser doesn't reflect the changes until I push refresh. I
supose is sending a header, but which header?
Best Regards.
-
Im trying to connect to a mssql server but i results a could not
connect to server error.
The server is Win2000 IIS running MSSQL 2000.
PHP 4.1.2
Server API CGI
mssql config:
mssql
MSSQL Support
enabled
Active Persistent Links
0
Active Links
0
Library version
7.0
Directive
Local Valu
http://www.php.net/manual/en/function.header.php
RT... M :)
On Tue, 23 Apr 2002, José León Serna wrote:
> Hello:
> How could I disable the browser cache?, I have a script that generates
> an image and shows it via . The problem is if I change
> the image, the browser doesn't reflect the cha
José León Serna <[EMAIL PROTECTED]> wrote:
> Hello:
> How could I disable the browser cache?, I have a script that
> generates an image and shows it via . The problem
> is if I change the image, the browser doesn't reflect the changes
> until I push refresh. I supose is sending a header, but w
PLEASE TAKE THIS OUT OF MY THREAD.
I am trying to get an answer to my question. Not yours.
Thank you
Jennifer
"Stuart Dallas" <[EMAIL PROTECTED]> wrote in message
000d01c1eae5$96243450$de01420a@stuart">news:000d01c1eae5$96243450$de01420a@stuart...
> José León Serna <[EMAIL PROTECTED]> wrote:
> >
My officemate and I talked about this and the only thing he could come up
with was a possible problem with your parser. Are you using a beta version
or something unusual? I don't know if you have a way to know this - the
programmers didn't set up PHP where I work, but I know our web server is
ap
I have one directory that is protected with an .htaccess file on my server
where I store all member content. What I want to do is have a page where
members can log in, and after they have entered there user name and password
I what the php script to authenticate them against the .htaccess file. If
OS : Redhat 7.1
apache compile option : --prefix=/path --enable-module=so
php compile option : --with-apxs2=/path/bin/apxs
--enable-force-cgi-redirect
--with-pear
I just looked at my hosting service thinkg it may have been because they
just upgraded to 4.1 php. so I dumped my database and loaded it to my
machine at home and find that it does the same thing.
I have 4.06 php on win me my hosting service is 4.1 php on redhat linux so
I'm thinking that is not
Is this a nested if? (inside another if statement?)
- Original Message -
From: "Jennifer Downey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 1:05 PM
Subject: Re: [PHP] If else question
>
> I just looked at my hosting service thinkg it may have been becau
No this is the first if statement but there are nested if's after that. I'd
post the code but everyone yells at me about my coding style.
If you promise not to yell I will post it.
Jennifer
"-Bd-" <[EMAIL PROTECTED]> wrote in message
001d01c1eae9$d58f4360$[EMAIL PROTECTED]">news:001d01c1eae9$d58f
-Original Message-
From: José León Serna [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 9:31 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Browser cache
Hello:
How could I disable the browser cache?, I have a script that
generates
an image and shows it via . The problem is if
OK...this has dragged on...
Jennifer, show us your ACTUAL code, including database access statements.
We can't help you if you expect us to read your mind...
- Original Message -
From: Jennifer Downey <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 12:17 PM
Sub
There are several ways to do that,
But in your case, I believe the best would be having a page somewhere
and include the "protected" files.
Alternativelly look into the Chapter 17. of PHP Documentation: HTTP
authentication with PHP
http://it2.php.net/manual/en/features.http-auth.php
Sincerely,
Have the new DOM XML functions been included in the latest version of PHP
(4.2) when I try to use one of the new functions, such as domxml_open_file()
I get an error message saying I am calling and undefined function. Has
anyone successfully used these new functions with PHP 4.2? My second
questio
Look also at the examples in docs:
--
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");// Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-store, no-cache, must-re
Post it, Jennifer, post it - we promise not to yell
(ignore the yelling people - they never sleep enough, that is why...)
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]
Sorry, that was regarding the browser cache.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
-Original Message-
From: Maxim Maletsky (PHPBeginner.com)
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 7:44 PM
To: 'Richard Emery';
Have you checked the obvious, that the condition of the if statement is
actually being met? I mean are you sure that $var is returning greater then
1?
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subjec
Ok you asked for it.
Don't say I didn't warn you.
session_start();
$query = "SELECT name FROM {$config["prefix"]}_users WHERE
uid={$session["uid"]}";
$ret = mysql_query($query);
while($row = mysql_fetch_array($ret))
{
$user = $row['name'];
$query = "SELECT uid, id, iname, image, quantity, typ
Just try it on. I heard some good reviews about it.
And, if the site is not too complex, try estimating the time it would
take you to re-create the functionality and compare it to the time you
think you would take for debugging. I once had to do this and have
choosen rewriting the code ourselves.
OK, here's what I've done from your code.
Check the line I mentioned.
$iname$quantity$type";
echo "$display_block";
if($type == "food") {
//if the item food is present then set
an option and
Oh well.
The line I mentioned was not the right one.
I misSAW your comment.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
www.PHPBeginner.com // where PHP Begins
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 7:48 PM
To:
Try : news_id int(11) auto_increment
-Ursprüngliche Nachricht-
Von: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 23. April 2002 5:16 PM
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Re: [PHP] MSSQL help w/ auto_increment
Unfortunately there is a lot of variation from
Try this, Jennifer:
Without messing the rest of your code, change the line:
$quantity = $row['quantity'];
With this one:
$quantity = 0;
In other words: hardcode it for testing.
If "else" always prints, then you are missing something in your query.
Otherwise y
1 - 100 of 197 matches
Mail list logo