On Thu, Jun 28, 2012 at 7:23 PM, Daevid Vincent wrote:
> Is there a way to customize the 'Username' and 'Password' strings in a 401
> auth dialog box?
>
> I want to change mine to say "Webmaster ID" and "Authentication Key".
>
> http://php.net/manual/en/features.http-auth.php
>
>
This http://www
we got off list, without meaning to, it seems.
Here are the last few posts in the thread:
>
>>> On Fri, Jun 1, 2012 at 12:46 AM, Govinda
>>> wrote:
> Perhaps you should spend some time looking for a better text editor
> for your OS. :) When the current tools I use does not give
On Thu, May 31, 2012 at 11:17 PM, Govinda wrote:
>>
>> You need to get better tools. I found this with Notepad++ for Windows
>> searching "case" within *.php files filter within the root directory
>> of the extracted zip/tarball:
>>
>> H:\data\Downloads\dev\PHP\htmlpurifier-4.4.0\library\HTMLPur
>
> You need to get better tools. I found this with Notepad++ for Windows
> searching "case" within *.php files filter within the root directory
> of the extracted zip/tarball:
>
>
> H:\data\Downloads\dev\PHP\htmlpurifier-4.4.0\library\HTMLPurifier\AttrDef\CSS\Font.php
> (6 hits)
> Line
On Thu, May 31, 2012 at 10:48 PM, Tommy Pham wrote:
> On Thu, May 31, 2012 at 10:33 PM, Govinda
> wrote:
>> Hi guys
>>
>> anyone here using HTMLpurifier and CSStidy together? (like e.g. to allow
>> users to create their own external style sheets via form input)
>>
>> ...for example, in the way
On Thu, May 31, 2012 at 10:33 PM, Govinda wrote:
> Hi guys
>
> anyone here using HTMLpurifier and CSStidy together? (like e.g. to allow
> users to create their own external style sheets via form input)
>
> ...for example, in the way this post's answer explains how to use
> HTMLpurifier and CSSt
t: Friday, October 22, 2010 5:45 PM
> > To: Daniel P. Brown
> > Cc: PHP General
> > Subject: Re: [PHP] Is there a way to write to the php error log from a
> php
> > script?
> >
> >
> > On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote:
> >
> &
> -Original Message-
> From: Tamara Temple [mailto:tamouse.li...@gmail.com]
> Sent: Friday, October 22, 2010 5:45 PM
> To: Daniel P. Brown
> Cc: PHP General
> Subject: Re: [PHP] Is there a way to write to the php error log from a php
> script?
>
>
> On Oct
On Oct 22, 2010, at 7:31 PM, Daniel P. Brown wrote:
On Fri, Oct 22, 2010 at 20:24, Tamara Temple
wrote:
I'm trying to log some data for debugging and don't have use of the
standard
output to do so. I'd like to write the info to the php error log.
Can this
be done from within PHP? I've sea
On Fri, Oct 22, 2010 at 20:24, Tamara Temple wrote:
> I'm trying to log some data for debugging and don't have use of the standard
> output to do so. I'd like to write the info to the php error log. Can this
> be done from within PHP? I've searched the web site for logging functions,
> but cannot
On Jul 3, 2009, at 7:31 PM, Govinda
wrote:
my code:
require 'DB.php';
// $db=DB::connect('db_program://user:passw...@hostname/database');
if (DB::isError($db)) { die("Can't connect: " . $db->getMessage
()); }
is returning:
"Can't connect: DB Error: connect failed"
Any advi
No.
You could perhaps wipe out *EVERYTHING* in $_GLOBALS, which would be
the included file and anything in the main file[s] that went before.
If you need an environment that is that "pure" for testing or
something, you can run a different PHP process on each file.
Otherwise, you simply have to a
jekillen wrote:
On Mar 7, 2007, at 11:47 PM, Larry Garfield wrote:
No there is not, because an included file *executes* at the time it is
included and is then done. Any memory-resident objects (function/class
definitions, variables, etc.) that it defies then exist until you make
them
un-exis
On Mar 7, 2007, at 11:47 PM, Larry Garfield wrote:
No there is not, because an included file *executes* at the time it is
included and is then done. Any memory-resident objects (function/class
definitions, variables, etc.) that it defies then exist until you make
them
un-exist (with unset() f
No there is not, because an included file *executes* at the time it is
included and is then done. Any memory-resident objects (function/class
definitions, variables, etc.) that it defies then exist until you make them
un-exist (with unset() for variables or, well, you can't with functions and
AFAIK there's no function to un include a file, but i don't see a problem
here, as when you include your second file, everything (all conflicting
variables) will be overwritten.
If you still have problems, you might want to use classes around your
functions and variables.
Tijnema
On 3/8/07, jek
On Thursday 08 March 2007 07:18, jekillen wrote:
> Hello;
> Is there a way to un include a file once it has been included in a
> script.
You seems to want the wrong thing...
I could be mistaken, but from my point of view you would NOT include the file
if not apropriate at that moment.
> My c
please keep the replies 'on list' ...
Khai Doan wrote:
> Sorry, I hit the Send button by mistake. My problem is that these
> constant are defined at compile / startup time, before my script get to
> run. In Perl, I can close STDERR and STDOUT and re-open them to any
> file at anytime. In Perl,
Khai wrote:
> STDERR and STDOUT are defined as constants. Is there a way to redefine
> these constants?
only if you use runkit (which is probably not recommended in production
environments):
http://php.net/runkit
consider that constants are called as such for a reason. you should consi
Khai wrote:
STDERR and STDOUT are defined as constants. Is there a way to redefine
these constants?
Nope. Once they're set, they're set.
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsu
On Tue, March 21, 2006 4:44 pm, mslemko wrote:
> this is what I am trying to do:
>
> On a web form I might have a select input with multiple selections
> enabled, however I want to have access to the list within PHP after
> submission.
>
>
For PHP, use name='myselect[]'
Then PHP turns it into an
Hi Mark,
Actually you can access this variable within Javascript in the following
manner:
function chgablacted() {
box = regs['myselect[]'];
value = box.options[box.selectedIndex].value;
if (value == 'some value') {
...
} else {
...
}
}
The name of the variable will include the br
Thanks Warren,
This works!
The side effect that is -somewhat- undesirable is that it becomes
incompatible accessing the field with Javascript. Perhaps there is a way
to get around that problem though.
-Mark
Warren Vail wrote:
Set the name of your field in html to be;
name="myselect[]"
th
this is what I am trying to do:
On a web form I might have a select input with multiple selections
enabled, however I want to have access to the list within PHP after
submission.
1
2
so when this is submitted, I can see in the $HTTP_RAW_POST_DATA that
myselect is submitted twice...
...
Set the name of your field in html to be;
name="myselect[]"
that way when the form is returned to you each selected value is returned
to you, for example if you code
$choices = $_POST["myselect"];
choices will be an array containing the actual values selected when the
form is submitted.
h
Jochem: Your method is long, probably takes more time to run, and is
therefore inefficient in this circumstance. There is a time and place
for a good solid reusable function, or even a class.
Of course things could go wrong when using mySQL connections, but
things can always go wrong.
Bringing pe
On 1/10/06, Sue <[EMAIL PROTECTED]> wrote:
> Hello,
>
> We have a form that contains a Select option for a listing of available
> dates for the user to choose from. Right now we have to manually change the
> dates within the form's Selection list as new dates become available to
> choose from. We
David Grant wrote:
Jochem,
Jochem Maas wrote:
David Grant wrote:
1. your looping a result set which involves a db connection - lots
of pontential things that could go wrong...
Absolutely, and lots of lessons to learn too.
by that argument your own children shouldn't be sent to
school; and
You mean like...
$Link = mysql_connect("Host", "User", "Pass");
mysql_select_db("MyDB");
$Datefield = "Dates";
$Select = mysql_query("SELECT * FROM `Table` WHERE `".$Dates."` LIKE *");
$MySelect = ""
While($Row = @mysql_fetch_assoc($Select)) {
//Adds each date to the select where the value is al
Adrian Bruce wrote:
the quickest solution and one that is easy to understand, I am no php
expert and have never claimed as such so why 'noob'?
Why is this such a poor method? if i type the HTML to be outputted
correctly then what validation is required? also I think Someone new
would run from
Jay Paulson (CE CEN) wrote:
[snip]Let's look at it another way, why 70-80 lines of code when 4 will do it
properly when done correctly?[/snip]
4 * 20 = 80
so after having created 20 dynamic select boxes the function wins it.
I really don't think that performance here is the issue - one should t
Jochem,
Jochem Maas wrote:
> David Grant wrote:
> 1. your looping a result set which involves a db connection - lots
> of pontential things that could go wrong...
Absolutely, and lots of lessons to learn too.
> 2. its not a centralized 'solution' - code reuse is a good thing.
However, what use
David Grant wrote:
Jochem,
Jochem Maas wrote:
teaching noobs to output html while (oun intended) looping thru a
result set is counter-productive. discuss.
I disagree, however, I do believe attention should be drawn to reasons
why doing so might be considered bad practice.
1. your looping
[snip]Let's look at it another way, why 70-80 lines of code when 4 will do it
properly when done correctly?[/snip]
I agree with this line of thinking especially for a new person to php.
When I first read the solution that was so long I thought to myself "great and
this person is new to php and n
the quickest solution and one that is easy to understand, I am no php
expert and have never claimed as such so why 'noob'?
Why is this such a poor method? if i type the HTML to be outputted
correctly then what validation is required? also I think Someone new
would run from your proposed soluti
[snip]
> [snip]
> teaching noobs to output html while (oun intended) looping thru a
> result set is counter-productive. discuss.
> [/snip]
>
> Why is this counter-productive?
it's a shit way of doing things - with the added bonus that it usually
comes with shit output (as non-validating, bare-min
Jay Blanchard wrote:
[snip]
teaching noobs to output html while (oun intended) looping thru a
result set is counter-productive. discuss.
[/snip]
Why is this counter-productive?
it's a shit way of doing things - with the added bonus that it usually
comes with shit output (as non-validating, bar
Jochem,
Jochem Maas wrote:
> teaching noobs to output html while (oun intended) looping thru a
> result set is counter-productive. discuss.
I disagree, however, I do believe attention should be drawn to reasons
why doing so might be considered bad practice.
Even the longest journeys start with s
[snip]
teaching noobs to output html while (oun intended) looping thru a
result set is counter-productive. discuss.
[/snip]
Why is this counter-productive?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
teaching noobs to output html while (oun intended) looping thru a
result set is counter-productive. discuss.
Adrian Bruce wrote:
Something along these lines will work fine
";
while ($row = mysql_fetch_array($query, MYSQL_NUM)){
echo"$row[1]";
}
echo"";
?>
Regards
Ade
Sue wrote:
Hello
Sue wrote:
Hello,
We have a form that contains a Select option for a listing of available
dates for the user to choose from. Right now we have to manually change the
dates within the form's Selection list as new dates become available to
choose from. We currently store these available dates
Sue,
Sue wrote:
> We have a form that contains a Select option for a listing of available
> dates for the user to choose from. Right now we have to manually change the
> dates within the form's Selection list as new dates become available to
> choose from. We currently store these available d
Something along these lines will work fine
";
while ($row = mysql_fetch_array($query, MYSQL_NUM)){
echo"$row[1]";
}
echo"";
?>
Regards
Ade
Sue wrote:
Hello,
We have a form that contains a Select option for a listing of available
dates for the user to choose from. Right now we have
Dirty Code
if((ereg("Nav", getenv("HTTP_USER_AGENT"))) || (ereg("Gold",
getenv("HTTP_USER_AGENT"))) || (ereg("X11",
getenv("HTTP_USER_AGENT"))) || (ereg("Mozilla", getenv(
"HTTP_USER_AGENT"))) || (ereg("Netscape", getenv("HTTP_USER_AGENT")))
AND (!ereg("MSIE", getenv("HTTP_USER_AGENT"
twistednetadmin wrote:
> Thanks guys. That helps alot!
>
> But this:
> print $_SERVER['HTTP_USER_AGENT'];
> ?>
>
> Returned this using Mozilla: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.7.12) Gecko/20050915 Firefox/1.0.7
> And this using IE: Mozilla/4.0 (compatible; MSIE 6.0; Window
$_SERVER['HTTP_USER_AGENT'] contains whatever the browser passes to the
server to identify itself, which may be faked by certain browsers at the
discretion of the user.
The two user agents you provide as an example are both extremely common.
Cheers,
David Grant
twistednetadmin wrote:
> Thanks g
Thanks guys. That helps alot!
But this:
Returned this using Mozilla: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.12) Gecko/20050915 Firefox/1.0.7
And this using IE: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Does that just mean that it's not completely accurate?
On Nov 23, 2005, at 12:43 AM, twistednetadmin wrote:
Is it possible to use PHP to find out wich type of browser is in use?
Or must is this done by javascript or something else?
I would like to have a little statistic on my page that tells me what
browser is currently moet used.
Try:
-Joe W
> He wants a function that, if you put in $x, you get out 'x'
>
> For *ANY* $variable.
>
> There is no such function.
> Usually the person asking it is doing something very
> newbie-ish, and very wrong.
Actually it's not either...
Since you can't easily debug when generating XML, as malforme
> What I was thinking with debug_backtrace() is that you could get the
> information for the function that called the function you want the
> variable name for, *reducing* the likelyhood of duplicate values, but
> admitedly not eliminating it.
>
> You could also pass the name of the variable to
Richard Lynch wrote:
[snip]
PS
It's true that your variable could/would/should appear in debug_backtrace,
but how would you pick it out from all the other variables that would
appear in your debug_backtrace?
For that matter, it's in $_GLOBALS, but how would you pick it out?
You could print
On Mon, July 18, 2005 8:24 pm, Ryan A said:
> I didnt totally understand you q in the beginning (and still dont fully),
> but
He wants a function that, if you put in $x, you get out 'x'
For *ANY* $variable.
There is no such function.
Usually the person asking it is doing something very ne
Rasmus Lerdorf wrote:
Daevid Vincent wrote:
Is there a way to get the name of a variable as a string? For example...
Nope, not possible.
Well
ob_start();
echo '$var';
$contents = ob_get_contents();
ob_end_clean();
echo 'Variable Name is : '.substr($contents,strpos($contents,'$')+1);
function named_print($var_name) {
return "echo 'the variable named $var_name is set to ' . \$var_name;"
}
eval(named_print($foo));
;-)
Tyler
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Edward Vermillion wrote:
Rasmus Lerdorf wrote:
Daevid Vincent wrote:
Is there a way to get the name of a variable as a string? For example...
Nope, not possible.
-Rasmus
Wouldn't the name of the variable show up in a var_dump()? It would be
messy, but if it's there...
Actually I me
Rasmus Lerdorf wrote:
Daevid Vincent wrote:
Is there a way to get the name of a variable as a string? For example...
Nope, not possible.
-Rasmus
Wouldn't the name of the variable show up in a var_dump()? It would be
messy, but if it's there...
--
PHP General Mailing List (http://www.php
I didnt totally understand you q in the beginning (and still dont fully),
but
> > Is there a way to get the name of a variable as a string? For example...
> Nope, not possible.
> -Rasmus
the man has spoken :-D
-Ryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Daevid Vincent wrote:
> Is there a way to get the name of a variable as a string? For example...
Nope, not possible.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi Daevid
FWIW, I was trying to do the exact same thing a while back, and came to
the conclusion that it wasn't possible.
Rob
> -Original Message-
> From: Daevid Vincent [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 19 July 2005 11:28 AM
> To: php-general@lists.php.net
> Subject: [PHP] Is
echo "variable named $foo has the contents $$foo";
}
Myname('bar');
Which is pretty lame.
> -Original Message-
> From: Ryan A [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 18, 2005 6:57 PM
> To: [EMAIL PROTECTED]
> Cc: php
> Subject: Re: [PHP] Is
Maybe something like:
Function myname ($foo)
{
$return_value="the variable name passed in is ".$foo;
return $return_value;
}
echo myname($bar);
Just a guess.
On 7/19/2005 3:27:57 AM, Daevid Vincent ([EMAIL PROTECTED]) wrote:
> Is there a way to get the name of a variable as a string? F
On Sat, 16 Oct 2004 22:04:33 -0400, Gh <[EMAIL PROTECTED]> wrote:
Your right, this is not what I was expecting, I was thinking there was
another way... Sounds good.. but any other suggestions?
On Sat, 16 Oct 2004 21:40:56 -0400, Minuk Choi <[EMAIL PROTECTED]>
wrote:
well, this is probably not w
secure it with apache .ht* files for directory and file settings or
the main config file.
On Sun, 17 Oct 2004 15:35:58 +0600, raditha dissanayake
<[EMAIL PROTECTED]> wrote:
> GH wrote:
>
> >Is there a way to make sure that a page is only loaded via a
> >
> >require or include statement? or other
GH wrote:
Is there a way to make sure that a page is only loaded via a
require or include statement? or other type of SSI?
I would like to make sure that a 'parent document' (namely
admin_template.php) only calls the php file?
Thanks
leave if outside htdocs
--
Raditha Dissanayake.
-
Your right, this is not what I was expecting, I was thinking there was
another way... Sounds good.. but any other suggestions?
On Sat, 16 Oct 2004 21:40:56 -0400, Minuk Choi <[EMAIL PROTECTED]> wrote:
> well, this is probably not what you were expecting... but you can try this
>
> admin_templ
Chris Hayes wrote:
It takes a lot more of users to tamper with POST data than with GET
Not a lot more. Simply save the slightly modified form
on a webserver you have access to (hidden field)
-- or better create php code that generate the form
OK, aunt Annie cant do that, but she wouldnt ever thougt
--- Scott Fletcher <[EMAIL PROTECTED]> wrote:
> I wanted to know is is there a way to configure PHP to make it not be
> affected when the web user tamper with the values in the post string
> after a webpage is submitted or something.
If by "after a page is submitted" you mean "after a page is requ
At 18:43 7-1-04, you wrote:
Hi!
I wanted to know is is there a way to configure PHP to make it not be
affected when the web user tamper with the values in the post string after a
webpage is submitted or something. (Further explanation below)
I noticed when I use the hidden html input tag wi
Hello Scott,
Wednesday, January 7, 2004, 5:43:31 PM, you wrote:
SF>I noticed when I use the hidden html input tag with hidden data in it
SF> then when I click the submit button to submit the webpage, the hidden data
SF> then show up in the URL address. Fine, no problem. But I noticed one
O
[snip]
I noticed when I use the hidden html input tag with hidden data in
it
then when I click the submit button to submit the webpage, the hidden
data
then show up in the URL address.
[/snip]
I think if you just change the request method to post, the data will
not show up in the url.
--
PHP
Yea, plan to file a bug to include an example. As soon as the strpos()
script work then I'll go ahead. Right now, mine doesn't work correctly with
the 3rd and 4th line of code, so I'm trying to figure out why. :-)
Scott
"Mike Ford" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
On 20 November 2003 20:39, Scott Fletcher wrote:
> Yea, the manual is clear but honestly, don't know what the offset
> really meant since there is no definition or explaination of how the
> offset work.
Well, I really don't know how much clearer the sentence that says "The optional offset
parame
On Thu, 20 Nov 2003, Scott Fletcher wrote:
> > Anyway, don't do that, use an existing XML parser..
>
> I'll try. I haven't got the PHP XML Parser to work, I think it is
> because the XML stuffs I receive is not a true XML, some of them don't
> have a closing tag either because one tag have actual
I'll try. I haven't got the PHP XML Parser to work, I think it is because
the XML stuffs I receive is not a true XML, some of them don't have a
closing tag either because one tag have actual data as an attribute inside
one tag. It is kind of frustrating to on not knowing what XML Parser will
work
Yea, the manual is clear but honestly, don't know what the offset really
meant since there is no definition or explaination of how the offset work.
All I know the definition of the offset is 'To balance each other out'.
Like a weighting scale where one weight is more than other and I would need
to
On 20 November 2003 17:39, Scott Fletcher wrote:
> How exactly does the 3rd parameter option work. I tried this
> but it doesn't
> work, so I don't know how exactly does it work... There isn't detail
> information on the php.net website...
>
> --snip--
>$XML_Start = (strpos($res_str,"",1);
On Thu, 20 Nov 2003, Scott Fletcher wrote:
> How exactly does the 3rd parameter option work. I tried this but it
> doesn't work, so I don't know how exactly does it work... There isn't
> detail information on the php.net website...
"The optional offset parameter allows you to specify which chara
How exactly does the 3rd parameter option work. I tried this but it doesn't
work, so I don't know how exactly does it work... There isn't detail
information on the php.net website...
--snip--
$XML_Start = (strpos($res_str,"",1);
$XML_End = strpos($res_str,"]]>",2);
--snip--
Scott
"Mike F
On 20 November 2003 14:53, Scott Fletcher wrote:
> Hi Everyone!
>
> Is there a way to get the strpos() to find the next needle in
> the haystack instead of just the 1st one only? (Where the 1st
> needle is the same string as the next needle)...
Look at the optional 3rd parameter to strpos()
On Sun, 22 Jun 2003, Jason Wong wrote:
> On Sunday 22 June 2003 06:00, Dan Anderson wrote:
> > I have a form which feeds into an e-mail. When I use the mail function
> > all 's turn into \'s and all "s turn into \"s.
>
> Are you sure it's the mail() function that's doing it? I doubt it.
>
> >
On Sunday 22 June 2003 06:00, Dan Anderson wrote:
> I have a form which feeds into an e-mail. When I use the mail function
> all 's turn into \'s and all "s turn into \"s.
Are you sure it's the mail() function that's doing it? I doubt it.
> I tried
> set_magic_quotes_runtime(0) and it didn't d
On Sat, 2003-06-21 at 16:00, Dan Anderson wrote:
> I have a form which feeds into an e-mail. When I use the mail function
> all 's turn into \'s and all "s turn into \"s. I tried
> set_magic_quotes_runtime(0) and it didn't do anything, neither did
> urldecode(). Is there a function to strip esca
$GLOBALS
Daevid Vincent wrote:
Is there some global array or something that contains all the variable names
(not even values per se) that are used in my script.
Here's the scenario. Like most of you, I do a lot of mySQL db work. So I
tend to use this:
if (mysql_num_rows($result) > 0) {
$row = m
this question was answered about 15 times already ;)
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.broadbandreports.com
- Original Message -
From: "Sunfire" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 24, 2003 12:52 AM
Subject: Re: [
yes
include("filename.php");
- Original Message -
From: "Rohin Gosling" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 23, 2003 2:59 PM
Subject: [PHP] Is there a way to "include" php source files in a php script
?
> Is there a way to include a *.php source file from i
At 20:59 23.02.2003, Rohin Gosling said:
[snip]
>Is there a way to include a *.php source file from inside another php source
>file, in a similar fashion to the way you use the "include" directive in C
>or C++ ?
[snip]
There is a php file that retrieve the source code from the url www.url.com
and this source is treated and you get content from this file and show it
on the response page.
Is this possible? Can anyone show me the right direction?
yes, codeword is 'ripping', i found some hits on google with
php
On 4 Feb 2003, Adam Voigt wrote:
> I believe he meant the HTML source of an HTML page.
An example in the manual does exactly this:
http://www.php.net/file
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I believe he meant the HTML source of an HTML page.
On Tue, 2003-02-04 at 11:02, 1LT John W. Holmes wrote:
No, you can only get the output of the PHP script, not it's source code.
---John Holmes...
- Original Message -
From: "Th
No, you can only get the output of the PHP script, not it's source code.
---John Holmes...
- Original Message -
From: "The New Source" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 11:57 AM
Subject: [PHP] Is there a way to retrieve an entire source code from
$f = fopen("http://www.download.com/index.html","r");
$data = ""
fclose($f);
echo $data;
On Tue, 2003-02-04 at 11:57, The New Source wrote:
What I want to know is if it is possible to retrieve a source code from a url, with a php file.
Something like this:
I had it figured out!! Don't need to decrypt it. Instead, I can encrypt
the account number by javascript. Grab the unencrypted account number. Put
it into two variable, encrypt the first one with PHP and match it by
Javascript. If accept then I use the 2nd variable to grab the data from the
d
> Hi! Is there a way to do the decryption of the encrypted data with the use
> of md5()??
Nope. md5 is a one way function.
http://www.faqs.org/faqs/cryptography-faq/part07/
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I'd like PHP to check to see if the image/picture.jpg exists before
> returning the picture. Is this possible?
Yup - It's in the manual.
http://www.php.net/manual/en/function.file-exists.php
Cheers
Andy
- Original Message -
From: "Doug Coning" <[EMAIL PROTECTED]>
To: <[EMAIL PROTEC
http://www.php.net/manual/en/ref.filesystem.php
you can see that there is a function called file_exists, is_file, is_readable
etc etc..
hope this helps.
thats the PHP Filesystem function specific manual,
On Tuesday 08 October 2002 09:59, Doug Coning wrote:
> Hi everyone,
>
> I'm a PHP newb
i have a opensource redirect script that can easily be adapted to track downloads -
just need to
replace a absolute url for a file name.
check it out at http://user:[EMAIL PROTECTED]/lab
cheers
Henry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Hello,
My fault, I didn't state that i was a complete Newbie to PHP.
I am looking at scripts and realize that I need to use a database for this,
etc... so I am just gonna forget the whole thing.
Thanks anyways
Kevin J
"Duncan Hill" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:
On Sun, 23 Jun 2002, Kevin J wrote:
> Hey all,
>
> I would like to place some files on my site and use PHP to track how many
> users have downloaded those files.
>
> Is this possible?
Approach the problem logically:
1) You have a series of files that you want people to download.
2) You want t
On Thu, May 30, 2002 at 03:55:47PM +0200, Anne Le Bot wrote:
> I need to keep the values of variables from one php page to another : is
> there a way to do this ?
Three options:
sessions
pass the values in hidden fields of a form
pass them in the query strings of hyperlinks
--Dan
--
J.F.Kishor wrote:
>1. Is there any other solution to solve it out ?
>2. Is there a way to put a scroll in a table ?
>
>I tried using layers and its working fine in Internet explorer, and in
>Netscape the scroll does'nt work.
>
Try using iframes - they are supported in IE, Netscape 6 / Mozilla and
1 - 100 of 104 matches
Mail list logo