[PHP-DB] htacces/ php

2006-02-20 Thread Yemi Obembe
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.

[PHP-DB] Fsockopen issues

2006-02-20 Thread Yemi Obembe
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";

[PHP-DB] Select found_rows problem...

2006-01-20 Thread Yemi Obembe
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

[PHP-DB] using fsockopen to handle redirections

2005-12-23 Thread Yemi Obembe
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?

[PHP-DB] php line error

2005-05-16 Thread 'Yemi Obembe
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

[PHP-DB] getting a variable from a function

2005-05-10 Thread 'Yemi Obembe
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); } -

[PHP-DB] my dir search

2005-04-14 Thread 'Yemi Obembe
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

[PHP-DB] comprehensive sql tutorial

2005-03-28 Thread Yemi Obembe
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

[PHP-DB] php/js

2005-03-26 Thread Yemi Obembe
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

[PHP-DB] redirecting function

2005-03-14 Thread Yemi Obembe
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

[PHP-DB] max character size mysql can contain

2005-02-25 Thread Yemi Obembe
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

[PHP-DB] fread()

2005-02-21 Thread Yemi Obembe
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

[PHP-DB] links vs php

2005-02-11 Thread Yemi Obembe
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

[PHP-DB] flush()

2005-02-02 Thread Yemi Obembe
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

[PHP-DB] insert (database)

2005-02-02 Thread Yemi Obembe
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

[PHP-DB] foreach()

2005-01-31 Thread Yemi Obembe
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 -

[PHP-DB] fopen

2004-12-23 Thread Yemi Obembe
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 ___

[PHP-DB] mysql Index table

2004-12-16 Thread Yemi Obembe
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

[PHP-DB] mysql_array_array

2004-12-03 Thread Yemi Obembe
The following script: Share the fun!     Your email: $v already in the list"; } else { $sql_in = "INSERT INT

[PHP-DB] preg_math vs preg_match_all

2004-11-23 Thread Yemi Obembe
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. -

[PHP-DB] Functions

2004-11-23 Thread Yemi Obembe
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 that’s new in My Yahoo!

[PHP-DB] talking Robots

2004-11-16 Thread Yemi Obembe
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. -

[PHP-DB] readdir

2004-11-12 Thread Yemi Obembe
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

[PHP-DB] RegEx

2004-11-10 Thread Yemi Obembe
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");

[PHP-DB] Mysql_fetch_array

2004-09-30 Thread Yemi Obembe
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

[PHP-DB] functions via event handlers

2004-09-06 Thread Yemi Obembe
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