Re: [PHP] php sessions and Google

2006-06-07 Thread Anthony Ettinger
On 6/7/06, tedd <[EMAIL PROTECTED]> wrote: Can someone shed some light on this for me? How can one do sessions and make Google bots happy? I think what they're getting at is don't use session id's unless they're logged in. -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html --

Re: [PHP] Pear Pager

2006-06-07 Thread Chris
weetat wrote: Hi all , Thanks all in this newsgroup for your help. I have question regarding PEAR Pager . http://pear.php.net/support/lists.php -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] Pear Pager

2006-06-07 Thread weetat
Hi all , Thanks all in this newsgroup for your help. I have question regarding PEAR Pager . The PEAR pager is working ok , however , the PEAR Pager always display "totalItems:" display and value "1" on my web page. How to make the "totalItems:" and the value "1" not to display on web

Re: [PHP] php sessions and Google

2006-06-07 Thread Chris
tedd wrote: At 10:56 AM +1000 6/8/06, Chris wrote: tedd wrote: Hi gang: I've read that php sessions can create problems for Google bots. For example, the following was taken from a Google "Web Master Help" Center: -- Quote -- Allow search bots to crawl your sites without session IDs or argum

Re: [PHP] php sessions and Google

2006-06-07 Thread tedd
At 10:56 AM +1000 6/8/06, Chris wrote: >tedd wrote: >>Hi gang: >> >>I've read that php sessions can create problems for Google bots. For example, >>the following was taken from a Google "Web Master Help" Center: >> >>-- Quote -- >>Allow search bots to crawl your sites without session IDs or argume

[PHP] Re: file( ) function

2006-06-07 Thread David Robley
Mayank Maheshwary wrote: > Hi, > > I am facing some trouble with the file( ) function. I understand that it > returns the contents of the file in an array. Also, I am able to print the > lines using the echo function. However, whenever I try to compare the > contents of an array using strcmp, or

Re: [PHP] file from database work local, but not on server

2006-06-07 Thread Chris
Peter Lauri wrote: Best group member, This code works fine on my local machine: $Query = sprintf("SELECT * FROM filestorage WHERE id=%s LIMIT 1", $_GET['fileid']); $Result = mysql_query($Query); if (mysql_num_rows ($Result)>0) { $Row = @mysql_fetch_array ($Result); $file_type = $Row["filety

Re: [PHP] php sessions and Google

2006-06-07 Thread Chris
tedd wrote: Hi gang: I've read that php sessions can create problems for Google bots. For example, the following was taken from a Google "Web Master Help" Center: -- Quote -- Allow search bots to crawl your sites without session IDs or arguments that track their path through the site. These t

Re: [PHP] Getting totals

2006-06-07 Thread Rafael
I really doubt you need to use strstr() here, since it will return a string (_if_ the 'needle' is found in the 'haystack')[1], I guess you're looking for strpos() or something similar. Now, you said that you have this IPs on your database, so why don't you count the IPs directly on your data

Re: [PHP] Introductory message

2006-06-07 Thread Ligaya Turmelle
Jay Blanchard wrote: [snip] I am attempting to send my first post to the list. Been reading and using PHP with passion for the past year on our website and want to learn more and more, and contribute if I can. [/snip] Your attempt was successful, some suggested reading; http://zirzow.dyndns

[PHP] file from database work local, but not on server

2006-06-07 Thread Peter Lauri
Best group member, This code works fine on my local machine: $Query = sprintf("SELECT * FROM filestorage WHERE id=%s LIMIT 1", $_GET['fileid']); $Result = mysql_query($Query); if (mysql_num_rows ($Result)>0) { $Row = @mysql_fetch_array ($Result); $file_type = $Row["filetype"]; $file = $Row[

RE: [PHP] Re: odbc remote

2006-06-07 Thread Warren Vail
I use odbc to connect to mainframe databases, and they are definitely remote from my web server, and to access the mainframe database, the mainframe needed to support tcp/ip on the database end and I needed a special driver on the ODBC end. Perhaps the odbc driver routine is the key (check your od

[PHP] Re: SSL support for pgsql module in Windows binary distribution

2006-06-07 Thread M. Sokolewicz
Peter Kuma wrote: Hi Is there any reason why SSL support for pgsql module is disabled by default in binary distribution for Windows (PHP 5.1.4 zip package)? I thing it'd be very useful if this feauture were compiled in. I sent this question to php-windows a few days ago with no response. Regard

[PHP] Re: odbc remote

2006-06-07 Thread Peter Kuma
Benjamin Adams wrote: > how do I do a remote connection for odbc? > Everything that I see is on the local machine. > Can you do an odbc to a remote database? As far as I know ODBC can be used only locally. Although some kind of forwarding utilities might exist. Maybe it could be accomplished by win

Re: [PHP] generating/transforming HTML so that it 'works' in a flash file

2006-06-07 Thread Jochem Maas
Martin Alterisio wrote: > 2006/6/7, Jochem Maas <[EMAIL PROTECTED] >: > ... > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Have you read the following? > http://livedocs.macromedia.com/flas

[PHP] odbc remote

2006-06-07 Thread Benjamin Adams
how do I do a remote connection for odbc? Everything that I see is on the local machine. Can you do an odbc to a remote database? Benjamin Adams / Lord of the Root / Ambrosia Software, Inc. -- http:// www.AmbrosiaSW.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] SSL support for pgsql module in Windows binary distribution

2006-06-07 Thread Peter Kuma
Hi Is there any reason why SSL support for pgsql module is disabled by default in binary distribution for Windows (PHP 5.1.4 zip package)? I thing it'd be very useful if this feauture were compiled in. I sent this question to php-windows a few days ago with no response. Regards Peter Kuma -- PH

[PHP] php sessions and Google

2006-06-07 Thread tedd
Hi gang: I've read that php sessions can create problems for Google bots. For example, the following was taken from a Google "Web Master Help" Center: -- Quote -- Allow search bots to crawl your sites without session IDs or arguments that track their path through the site. These techniques are

Re: [PHP] file( ) function

2006-06-07 Thread Mayank Maheshwary
Yes, that is actually $temp, not $temp1. However, my problem still remains the same. Several lines in the file contain the exact same string as the one I am comparing. I need their positions in the array so that I can operate on other lines in the file. That is why I am using file( ) instead of o

Re: [PHP] file( ) function

2006-06-07 Thread Jo�o C�ndido de Souza Neto
""Rabin Vincent"" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > On 6/8/06, Mayank Maheshwary <[EMAIL PROTECTED]> wrote: >> $name = $_POST["filename"]; >> $lines = file($name); >> $i = 0; >> $len = sizeof($lines); >> //echo $i; >> while($i < $len) { >> //echo $lines[$i]; >>

Re: [PHP] file( ) function

2006-06-07 Thread Rabin Vincent
On 6/8/06, Mayank Maheshwary <[EMAIL PROTECTED]> wrote: $name = $_POST["filename"]; $lines = file($name); $i = 0; $len = sizeof($lines); //echo $i; while($i < $len) { //echo $lines[$i]; $temp = $lines[$i]; $temp = trim($temp); //echo $temp; if($temp1 == '

[PHP] file( ) function

2006-06-07 Thread Mayank Maheshwary
Hi, I am facing some trouble with the file( ) function. I understand that it returns the contents of the file in an array. Also, I am able to print the lines using the echo function. However, whenever I try to compare the contents of an array using strcmp, or ==, the page simply keeps 'loading',

[PHP] question on getting PDO to output final assembled query from the prepared statements

2006-06-07 Thread Rick Harding
I am working on some code that I am moving to use PDO in order to play with it a bit. I used to use ADODB, but want to try out the performance of using PDO and just skipping some of the portability of the db code. The one thing I find myself missing is the ADODB debug and sql values where you

RE: [PHP] Introductory message

2006-06-07 Thread Jay Blanchard
[snip] I am attempting to send my first post to the list. Been reading and using PHP with passion for the past year on our website and want to learn more and more, and contribute if I can. [/snip] Your attempt was successful, some suggested reading; http://zirzow.dyndns.org/php-general/NEWBIE

[PHP] question on getting PDO to output final assembled query from prepared statements?

2006-06-07 Thread Rick Harding
I am working on some code that I am moving to use PDO in order to play with it a bit. I used to use ADODB, but want to try out the performance of using PDO and just skipping some of the portability of the db code. The one thing I find myself missing is the ADODB debug and sql values where you

Re: [PHP] generating/transforming HTML so that it 'works' in a flash file

2006-06-07 Thread Martin Alterisio
2006/6/7, Jochem Maas <[EMAIL PROTECTED]>: hi people, I've been STFW till I'm blue in the face (so lack of oxygen might be problem atm) but can't find any [decent] info on generating/transforming existing HTML so thats it's compatible with the subset of tags that are supported by Flash (apparen

[PHP] Introductory message

2006-06-07 Thread JF Simard
Hi all, I am attempting to send my first post to the list. Been reading and using PHP with passion for the past year on our website and want to learn more and more, and contribute if I can. -- JF Simard creative + code + logistics // Feed your eyes - http://netdiver.net/ -- PHP General

[PHP] generating/transforming HTML so that it 'works' in a flash file

2006-06-07 Thread Jochem Maas
hi people, I've been STFW till I'm blue in the face (so lack of oxygen might be problem atm) but can't find any [decent] info on generating/transforming existing HTML so thats it's compatible with the subset of tags that are supported by Flash (apparently Flash has the ability to show something t

[PHP] Cant work HTML echo loop

2006-06-07 Thread Rodrigo de Oliveira Costa
i guys Im here again, now I got this problem with a loop. The script is at the end of the message so you guys can review it. Now to the problem: I have a script that go to a site and try to access an url like www.domain.com/story/variable/ it should do the following: Try to open the page if it do

[PHP] Cant work HTML echo loop

2006-06-07 Thread Rodrigo de Oliveira Costa
Hi guys Im here again, now I got this problem with a loop. The script is at the end of the message so you guys can review it. Now to the problem: I have a script that go to a site and try to access an url like www.domain.com/story/variable/ it should do the following: Try to open the page if it d

Re: [PHP] Re: Pear DB and memcached

2006-06-07 Thread Ruben Rubio Rey
Ben Ramsey wrote: On 6/6/06 9:55 AM, Ruben Rubio Rey wrote: Im having a trouble using memcached with pear db. When im using memcache to store and retrieve an string, all works fine. When Im using memcache to store a pear db resulset, it does not work!! This retrieves data but pear::db does n

Re: [PHP] better way to create custom text file from query results?

2006-06-07 Thread Ben Liu
Nevermind, got it to work with this: while ([EMAIL PROTECTED]($result)) { foreach ($_POST as $key => $data) { if ($data) $output.="$row[$key]\t"; } // foreach $_POST }// while $row Had a poorly positioned statement throwing

Re: [PHP] File downloads

2006-06-07 Thread tedd
At 8:42 AM + 6/7/06, kartikay malhotra wrote: >Dear All, > >I have a HTTP server + MySQL database. Everytime a file is requested for >download, my PHP script loads the content from the database into a temporary >file (on the server). I then pass a URL to the client, with a link to this >file. T

Re: [PHP] better way to create custom text file from query results?

2006-06-07 Thread Ben Liu
I guess I was just "talking the problem out." :-) Writing that post helped me think of iterating through $_POST. Now I've come to this problem: Before I did this and it works: while ([EMAIL PROTECTED]($result)) { if ($fieldname1) $output.="$row[fieldname1]\t"; if ($fieldname2)

Re: [PHP] better way to create custom text file from query results?

2006-06-07 Thread tedd
At 8:21 AM -0400 6/7/06, Ben Liu wrote: >Hello All, > >I've written a clunky script that presents a form to a user with 30 checkboxes >on it to match 30 fields in a table. The user checks off each field they want >to appear in a text file produced by the script. The script I wrote captures >each

Re: [PHP] Replacing text of a DOM text node

2006-06-07 Thread tedd
>BTW, is there an easy way to get the total amount of items in a curent node? >count ( $nodeElement -> parentNode -> childNodes ) always returns 1. For now >the only solution I know of is looping through the nodeElements (e.g. foreach >( $nodeElement as $value ) and have a counter inside the loo

Re: [PHP] better way to create custom text file from query results?

2006-06-07 Thread chris smith
On 6/7/06, Ben Liu <[EMAIL PROTECTED]> wrote: Hello All, It seems that there has to be a better way of doing this. Can the $_POST superglobal be manipulated in this way: foreach ($_POST as $fieldname) ? Yes, that will work. If in doubt give something a try. :) -- Postgresql & php tutori

[PHP] better way to create custom text file from query results?

2006-06-07 Thread Ben Liu
Hello All, I've written a clunky script that presents a form to a user with 30 checkboxes on it to match 30 fields in a table. The user checks off each field they want to appear in a text file produced by the script. The script I wrote captures each checkbox response to a separate variabl

Re: [PHP] ADODB store session to database

2006-06-07 Thread chris smith
On 6/7/06, weetat <[EMAIL PROTECTED]> wrote: Hi all , I am having problem in store session in the database . Below is the example code from code. Ask the adodb guys. http://adodb.sourceforge.net/#mail -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List

Re: [PHP] How do I make a HTML tree for a set of nodes?

2006-06-07 Thread Niels
Hi, On Tuesday 06 June 2006 21:05, Jochem Maas wrote: [snip] > I might be late to the party but have you thought of trying the YAHOO UI > lib (treeview widget) it even allows you to dynamically load subbranches > as they are expanded (AJAX lovelyness): > > http://developer.yahoo.com/yui/treeview

Re: [PHP] If value is odd or not

2006-06-07 Thread Dimiter Ivanov
On 6/5/06, Adam Zey <[EMAIL PROTECTED]> wrote: Let's make it even more compact and confusing :) echo "$variable is ".($variable % 2 ?'even':'odd')."\n"; I'm not sure if you can nuke the whitespace in the modulus area or not. Yes you can,in php whitespaces inside expressions does not have sp

Re: [PHP] When is "z" != "z" ?

2006-06-07 Thread tedd
At 11:45 PM -0400 6/6/06, Robert Cummings wrote: >On Tue, 2006-06-06 at 22:53, Rasmus Lerdorf wrote: >> Richard Lynch wrote: >> >> Or we try to do something a bit more creative which always runs the risk >> of surprising people. In this case "a2"++ becomes "a3" and "c9"++ >> becomes "d0". If we h

Re: [PHP] Replacing text of a DOM text node

2006-06-07 Thread Frank Arensmeier
Hello Rob. Thank you very much indeed! Since this DOM thing is very new to me (well, maybe not the DOM concept but working with DOM function in PHP), I appreciate especially the links you provided. Right now I am able to loop through all text nodes, replace certain characters and mark a c

[PHP] Control GET data ( not php related )

2006-06-07 Thread Thomas Munz
Thats not PHP related. Its normal HTML/JS 2 Ways: 1) Make form to use 1 field:; Hello, > > I want to provide two input text fields lastname and firstname and if the > user pushes the submit button the generated url should be > ...?name=firstname_lastname. > > Is this possible and how? > > Tha

Re: [PHP] Replacing text of a DOM text node

2006-06-07 Thread Rob Richards
Hi Frank, Frank Arensmeier wrote: > Jochem, thank you for your input! > > So, right now I am able to access all text nodes by e.g. > > $nodeElement -> parentNode -> childNodes -> item(0); -> returns Lenght, > Width and so on > $nodeElement -> parentNode -> childNodes -> item(1); -> is empty > $no

[PHP] ADODB store session to database

2006-06-07 Thread weetat
Hi all , I am having problem in store session in the database . Below is the example code from code. The issue is that the code run ok , however the expireref fields is not updated in the sessions table, below is the sessions schema : CREATE TABLE `sessions` ( `sesskey` varchar(32) NOT

[PHP] HTML mailing list

2006-06-07 Thread Barry
Anyone know any good HTML mailing list? Sorry for OT but google don't give me any good lists, and probably somone here has a list which is good :) My Problem: I want to use "mailto:"; in one of my pages but i have to use umlauts (ü). Thunderbird just works fine and is displaying me the bodyte

[PHP] Re: File downloads

2006-06-07 Thread Barry
kartikay malhotra schrieb: Dear All, I have a HTTP server + MySQL database. Everytime a file is requested for download, my PHP script loads the content from the database into a temporary file (on the server). I then pass a URL to the client, with a link to this file. The client can thus downlo

[PHP] File downloads

2006-06-07 Thread kartikay malhotra
Dear All, I have a HTTP server + MySQL database. Everytime a file is requested for download, my PHP script loads the content from the database into a temporary file (on the server). I then pass a URL to the client, with a link to this file. The client can thus download the file at any time. Howe

[PHP] Re: HTTP ERRORS Boolean

2006-06-07 Thread Barry
Rodrigo de Oliveira Costa schrieb: Guys is there a way that I can call the func file("www.url.com") and get a result true if there is a page and false if the page doesnt exists (error 404)? the thing is I'm trying to retrieve a page but I cant be sure that it exists so I need my script to try to

Re: [PHP] Replacing text of a DOM text node

2006-06-07 Thread Frank Arensmeier
Jochem, thank you for your input! So, right now I am able to access all text nodes by e.g. $nodeElement -> parentNode -> childNodes -> item(0); -> returns Lenght, Width and so on $nodeElement -> parentNode -> childNodes -> item(1); -> is empty $nodeElement -> parentNode -> childNodes -> item(

RE: [PHP] how to compare value between 2 arrays

2006-06-07 Thread Peter Lauri
Weetat, Can you be clearer, and then I might be able to help. Do you just want to perform updates towards the database? What is the status field? /Peter -Original Message- From: weetat [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 2:36 PM To: php-general@lists.php.net Subject

Re: [PHP] how to compare value between 2 arrays

2006-06-07 Thread Chris
weetat wrote: Hi all, I am using php 4.3.2 in Red hat enterprise. Have some issue which need some advice from php experts here. I need to compare value between 2 arrays . The arrays data are populated by data from the database resultset. The database resultset fields are the same type and

[PHP] how to compare value between 2 arrays

2006-06-07 Thread weetat
Hi all, I am using php 4.3.2 in Red hat enterprise. Have some issue which need some advice from php experts here. I need to compare value between 2 arrays . The arrays data are populated by data from the database resultset. The database resultset fields are the same type and name. for exa

Re: [PHP] HTTP ERRORS Boolean

2006-06-07 Thread Rabin Vincent
On 6/7/06, Rodrigo de Oliveira Costa <[EMAIL PROTECTED]> wrote: Guys is there a way that I can call the func file("www.url.com") and get a result true if there is a page and false if the page doesnt exists (error 404)? This would work, but will not specifically check for a 404: $page = file('.

Re: [PHP] Getting totals

2006-06-07 Thread Rabin Vincent
On 6/7/06, Rob W. <[EMAIL PROTECTED]> wrote: Yeah, it counts how many times block is in $address, so if there's 254 ip's listed in the database, it will incriment it 254 times and display that. Well, the code snippet you've shown does NOT do any kind of checking to see if $block is in $address.

Re: [PHP] Getting totals

2006-06-07 Thread Rob W.
Yeah, it counts how many times block is in $address, so if there's 254 ip's listed in the database, it will incriment it 254 times and display that. - Original Message - From: "Rabin Vincent" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Wednesday, June 07, 2006 2:03

Re: [PHP] Getting totals

2006-06-07 Thread Rabin Vincent
On 6/7/06, Rob W. <[EMAIL PROTECTED]> wrote: I got the fix, strstr didnt work right because it was relaying more than just what I was thinking. Here is the fix. $value=array(strstr($block, $address)); foreach ($value as $var) { $block_total_ip++; } How can this work? $value