[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] 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] 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 id

[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

[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 CREATE, SELECT, UPDATE, DELETE, INSERT... their syntax(es). - A passion

[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!'

[PHP-DB] redirecting function

2005-03-14 Thread Yemi Obembe
hi folks, who knows any function that can do this javascript trick script window.location='http://somewhere.com/' /script tried header(location:http://somewhere.com/) but it gave me an errorinclude() on the other hand only includes the url doest redirect to it... thnx

[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!?

[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: ?php $filename = /usr/local/something.php; $handle = fopen($filename, r); $contents = fread($handle, filesize($filename)); fclose($handle); ?

[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,

[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!?

[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 //??? br //?? /p; } 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

[PHP-DB] mysql_array_array

2004-12-03 Thread Yemi Obembe
The following script: html headtitleShare the fun!/title/head style type=text/css !-- body { font: normal 10px verdana; background: #ff url(arc.gif) 120px 70px no-repeat; } input { border: 1px solid #ff9966; text-align:right; } u { color: #ff; } -- /style body pnbsp;/p pnbsp;/p center

[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