Any php way of knowing if a site has blocked hot linking to its images?
--
http://ngBot.com | http://wap.ngBot.com
Nigeria's #1 website directory.
Is it possible (and advisable) to make multiple Get/head request through one
fsockopen handle.
eg:
$fp = fsockopen($host, 80);
$request = "GET /one.htm HTTP/1.0\r\n";
...
fputs($fp, $request);
.
//and then, another request through same handle:
$request2 = "GET /two.htm HTTP/1.0\r\n";
Using the select calc_found rows code (i.e select sql_calc_found_rows *
from table where ... limit 0, 10) to get the found fesult irrespective of
the limit clause...then using $count = mysql_query("select found_rows()");
with the hope of getting the returened result but got this instead: Resource
i
Any way i can use fsockopen to detect url redirections? for example if ds:
www.ex1.com redirects to www.ex2.com and i'm using:
$fp = fsockopen(www.ex1.com, 80)
to connect to the site, anyway i can know if there is a redirection to
another url?
just care to know how php does the line counting when it echoes error messages
like:
parse error: unexpected '}' on line 129
1. does the "line counting" includes empty lines
2. are externally included files (using include(), require() etc) also "line
counted"(sic)?
3. are d parts of the file
As against 'global', is there anyway to get a variable from wthin a function
(besides 'returning it using 'return').
for example, how do i get the value of the variable $c in the function below:
function Dis() {
$a = arry('foo', 'bar');
foreach ($a as $v) {
echo $v;
}
$c = count($a);
}
-
sorry about the volume of this apiece.just thinking it will help you understand
my frenzy script better.
to start with, it is a simple 'intra' search script that opens include files
contained in the dir the visitor wants to searchand match its content with the
query.
contents of the include file
Does anyone please know where i can get a comprehensive SQL tutorial as in one
that contains stuffs on engines, data structures, table types, etc& NOT
JUST the basic query commands &
their syntax(es).
-
A passion till tomorrow,
Opeyemi Obembe | ng.clawz.c
hi guys,
sorry about making this stupid comparisons but i hope someone help me with
them. Simply, I'd like to know php functions that are equivalent to this
javascript functions:
1.document.lastModified // displays date document was modified as reported by
server
2.var php = 'php forever!'
do
hi folks,
who knows any function that can do this javascript trick
window.location='http://somewhere.com/'
tried header(location:http://somewhere.com/) but it gave me an
errorinclude() on the other hand only includes the url & doest redirect to
it...
thn
Hi guiz,
I was just wondering if anyone has an idea the maximum size of characters(in
bytes) a mysql database can contain
thanx
-
A passion till tomorrow,
Opeyemi Obembe | ng.clawz.com
-
Do you Yahoo!?
Y
Hi All,
I'd just like to know if it is possible to use fread to read the html content
of a serverside coded pageas in something like this:
-
A passion till tomorrow,
Opeyemi Obembe | ng.clawz.com
-
D
hee is just an illustration:
i have 2 folders in my site..say A and B.
A contains just one file (dis.php) while B contains 2 files - foo.php
(with the content:
/ / form components
) and dat.php (which is a form processing code). the question is will
the linking in foo.inc i.e action=dat.php
I dont seem to understand the description for flush() in thew php
websitehope someboody can tell me what it is really about.
-
A passion till tomorrow,
Opeyemi Obembe | ng.clawz.com
-
Do you Yahoo!?
Yah
the objective of the script below is to first search if a subscriber is already
in a list before subscribing his email (so as to prevent double subscription).
the select part works finebut the insert doesnt. know why?
if ($v = strtolower($_POST['email'])) {
$db = mysql_connect(mysql, "usser
Hi folks.
wat can be done to dis:
$z = array('foo' => array('bar')), 'dis' => array('dat'));
foreach(//???) {
echo "//??? //?? ";
}
to output dis:
foo
bar
dis
dat
-
A passion till tomorrow,
Opeyemi Obembe | ng.clawz.com
-
Hi list,
How can I get the file name of the home page of a url I opened with fopen()
this way:
$handle = fopen("http://www.example.com/";, "r");
?
-
A passion till tomorrow,
Opeyemi Obembe | ng.clawz.com
___
just want to know if mysql automatically update an index table if new datas are
inserted into the original table. for example, if i insert a row of data to a
table I'have already created an index table for, would mysql add the row to the
table?
-
A passion til
The following script:
Share the fun!
Your email: $v already in the list";
}
else {
$sql_in = "INSERT INT
Just want to know the difference between preg_match and preg_match_all. And by
the way (though this is off the subject), how can I alter the
$_SERVER['HTTP_USER_AGENT'] so that instead of outputting d browser it gives
outputs a variable i av already defined.
-
Hi wizs,
Anybody knows any fuction that can count occurence of a character in a string
(not in a array).
-
A passion till tomorrow,
www.opeyemi.tk
-
Do you Yahoo!?
Discover all thats new in My Yahoo!
Hi folks,
I'd luv to know:
1. if it is possible to write a robot in PHP;
2. how a query can be ran faster in mysql. i heard of hasing but i seem not to
understand the whole concept. 'd be glad if someone can help though.
Tahnks for the usual cooperation.
-
Hi folks,
Just want to know if a full url (as in something like http://www.example.com)
can be opened as a directory using the function readdir(). if it cant, does
anybody know any function that can?
-
A passion till tomorrow,
www.opeyemi.tk
i'd luv to know wat happens if a value is to be taken from within a certain tag
in a page when there are more than one of the tags in the page.
for example, if i'd luv to tkae all data from within EVERY bold tags in a
page, will this work:
$file = http://example.com/;
$open = fopen($file,"r");
Does anyone have an idea what may probably be the cause of this error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
in /var/www/ng/mailsender2.php on line 17
-
A passion till tomorrow,
www.opeyemi.tk
i'd just luv to ask if it is possibble to call a function in PHP by using event
handlers (like onmouseover, onload) as done in javascript? if its possible, i'd
appreciate someone to tutor me on it.
-
A passion till tomorrow,
www.opeyemi.tk
26 matches
Mail list logo