RE: [PHP] PHP 4 to PHP 5 Migration shortcut

2005-04-14 Thread Rob Agar
> ...and trying to re-assign $this inside a class. which is perverse and shouldn't have been allowed in the first place =) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Date class

2005-04-19 Thread Rob Agar
Matthias wrote: > Have you looked at the PEAR Date class? > > http://pear.php.net/package/Date PEAR Date is good - I use it a lot - but watch out for this bug if you're running on Windows http://pear.php.net/bugs/bug.php?id=2344 basically, there's some getenv/putenv trickery in the Date_Timezone

RE: [PHP] script

2005-04-19 Thread Rob Agar
here's the clue to the other half of the puzzle: you can do this kind of thing in php if (whatever) { include 'something.php'; } else { include 'something else.php'; } hth, Rob > -Original Message- > From: Stephen Johnson [mailto:[EMAI

RE: [PHP] Abstract Legacy question

2005-04-20 Thread Rob Agar
ink about the code, which will look like $this->guid() ... and '$this' is a 'B' Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] problem connecting php and mysql

2005-04-25 Thread Rob Agar
nction mysql_connect() in > D:\PHP\teknohub\new.php on line 14 > > please help me to solve this problem out One thing to check is this: are you sure IIS is reading the php.ini file you think it's reading? You can find out by running . There will also be a mysql section somewhere in the output if the extensions loaded. hth Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] editor that typesets the php code

2005-04-27 Thread Rob Agar
hi Dasmeet > From: Dasmeet Singh > I have just completed coding for a script... i want to take a > printout > of the code.. but the code is very hotch potch.. > > Is there any software to automatically set the code with proper > spacing/tabs extra..and possibly give colors to it too...?? Che

[PHP] Notice: Undefined index

2005-04-28 Thread Rob Kapfer
Hello, This is a new install of PHP 5.0.4 on XP, I'm testing if it's installed correctly with the usual test.htm: Your name: Your age: Action.php: Results: C:\NCC>action.php Notice: Undefined index: name in C:\NCC\action.php on line 2 Notice: Undefined index: age in C:\NCC\action.ph

[PHP] php-snmp-4.3.11-2.5 for RH8?

2005-05-06 Thread Rob Kudyba
We are experiencing the 'usmAES192PrivProtocol in Unknown' error in the Apache error log due to a conflict between Net-SNMP 5.2.1 and the php-snmp package. Well of course, Fedora 3 has an update available at (and detailed) here: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=155975 Check

RE: [PHP] Unknown column 'peterspeters' in 'where clause'

2005-05-18 Thread Rob Agar
hi Mark > Unknown column 'peterspeters' in 'where clause' you're missing the quotes around (I guess) the password. you can kick yourself now :-p -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Responses in my email.

2005-05-18 Thread Rob Agar
reply goes to the poster, not the list. Thought I'd stick my oar in because remembering to hit reply-to-all gets on my nerves too.. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Programming Innovation Award

2004-04-15 Thread Rob Adams
nterested in programming this neat idea, I would offer you my code that you could reference or throw away if you like. I don't think I'm every going to finish it myself. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Formatting phone numbers?

2004-04-15 Thread Rob Ellis
to $number and insert a > "-" there. substr_replace($string, '-', 3, 0); - Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Formatting phone numbers?

2004-04-16 Thread Rob Ellis
On Thu, Apr 15, 2004 at 06:11:57PM -0400, John W. Holmes wrote: > Rob Ellis wrote: > >On Thu, Apr 15, 2004 at 04:31:09PM -0500, BOOT wrote: > >> > >>I'm looking for a way to take a 7 digit number and put it into xxx- > >>format. > >> > &

[PHP] Re: Why are Session Variables carried over into a brand new browser window?

2004-04-19 Thread Rob Adams
before, and it tends to be an issue with the client rather than the server. The client I use happens to avoid sending the session cookie from a new window, so this doesn't generally happen to me, while other clients default to sending the session cookie. BTW - cool site. -- Rob -- PH

Re: [PHP] A to Z incremental

2004-04-23 Thread Rob Ellis
On Fri, Apr 23, 2004 at 09:41:39PM +1000, electroteque wrote: > use the chr($i) system or range()... print implode(' | ', range('A', 'Z')); - rob > > > -Original Message- > > From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] > &

Re: [PHP] What is the GD library and what can I do with it ?

2004-05-11 Thread Rob Adams
ave to do is change your php.ini. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: strip comments from HTML?

2004-05-07 Thread Rob Ellis
> /me applies mallet to head > > % php -r '$text="one two\n"; print > ereg_replace("", "",$text);' > one two > > whee, it works! :) > you're still missing things like ... don't know how you can get around that wi

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Rob Ellis
d as a > range, since it's multiple characters. > > Not to say it can't be done. I just can't think of how at the moment. > you can make the .* less greedy... $text = preg_replace('//', '', $text); - rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class Help Extended

2004-05-06 Thread Rob Adams
"Php Email List" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $smiley = ":)"; > include_once(evil_laugh.php); > echo $laugh $smiley; > //Echo'd: Muuuhahahahahah :) You're syntax is a little off here. You need to use: echo $laug

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Rob Ellis
On Thu, May 06, 2004 at 12:47:10PM -0400, Paul Chvostek wrote: > On Thu, May 06, 2004 at 11:26:34AM -0400, Rob Ellis wrote: > > > > > > $text = ereg_replace("","",$text); > > > > you can make the .* less greedy... > > > >

Re: [PHP] Simplistic PHP tutorial

2004-05-25 Thread Rob Adams
Inside > Javascript from New Riders. I have a JS book I'll sell cheap ($5). It's called Beginning Javascript. Way too simplistic for what I wanted to use it for. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular expression question

2004-05-27 Thread Rob Ellis
On Thu, May 27, 2004 at 09:59:05AM -0700, Dan Phiffer wrote: > So I'm trying to implement a simple wiki-like syntax for hyperlinking. > Basically I want to match stuff like [this], where the word 'this' gets > turned into a hyperlink. I have that working, but I want to be able to > escape the op

Re: [PHP] Best way to sort?

2004-06-03 Thread Rob Adams
"Angelo Zanetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > select thename, count(thename) from order by thename asc group > by thename or... to sort by number of records select name, count(name) as ncnt from table group by name order by ncnt desc -

[PHP] Re: weird error

2004-06-03 Thread Rob Adams
se strings ('REMOTE_ADDR', etc.) and these warnings should disappear. You can alternatively adjust your error reporting settings in php.ini to not display notices, but it's better to just fix the code. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $_FILES passed by value

2004-06-03 Thread Rob Adams
if it, you aren't copying the actual file that was uploaded, just an array of information. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Association Problem?

2004-06-21 Thread Rob Ellis
ncy array? > > I've been looking through the PHP documentation and can't quite get past > this question. Anyone have any ideas? Thanks! > try array_multisort(): $search_str = 'abc'; $sort_array = array(); foreach ($recordset as $k => $v) { $

[PHP] Outputting a PDF.

2007-08-22 Thread Rob Adams
I have a pdfs saved in a database (created with pdflib). When I output them in firefox, it works just great everytime. But when I try in IE, it doesn't always work. I know, I know, it sounds like a browser issue, but here's the problem. I figured out that when I run session_start(), the pdf

[PHP] Bind function parameters with create_function ('currying')

2007-09-04 Thread Rob Desbois
ion? I guess I could also create a class with the one function, but that seems a wee bit messy to me. Any ideas? -- Rob Desbois Eml: [EMAIL PROTECTED]

Re: [PHP] opcode question

2007-09-05 Thread Rob Desbois
Hi, I believe this would be a bug - report it at http://bugs.php.net/ with the exact error output and a minimal example script. --rob On 9/5/07, Frank Höger <[EMAIL PROTECTED]> wrote: > > Hello, > > I recently came across an "invalid opcode 137/8/8" error. I couldn&

Re: [PHP] php 5 soap question

2007-09-28 Thread Rob Richards
__getTypes() and __getFunctions() are your friends. They tell you alot about the functions and structure of parameters and return types. Rob Hurst, Michael S. wrote: I would have to get approval before I can do that. I can probably post a portion of the wsdl but not sure that it would be

[PHP] Re: Compile - libxml2

2007-11-12 Thread Rob Richards
RSION} That's what's defined. --with-libxml-dir=${XML2_DIR} \ That's what your using. Where is XML2_DIR coming from? Your path only shows XML_DIR being defined. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to handle rows of checkboxes upon form submit?

2007-12-06 Thread Rob Gould
Let's say I have a PHP script which lists a series of objects for sale at a yard sale, each with a checkbox to the left of the name of the item. If I wanted to have a submit button, and run through the list of items that were checked and act on them, how would I do that? To gain some knowledge,

[PHP] How to take video embed codes and change all their widths/heights?

2008-01-15 Thread Rob Gould
Can anytime give me some insights on how to write a PHP script that could accept any of the below strings below and edit the strings to change their width and height settings dynamically? For instance, if I want all embedded videos to have a width of 320, and a height of 240, using PHP's st

[PHP] PHP/mySQL question about groups

2008-02-06 Thread Rob Gould
Let's say I have a PHP-based wine application, and it's taking a set of mySQL data that looks like this: wineidname size 123 Silver Oak 750ML 123

[PHP] Multiple MySQL INSERT into loop

2008-02-06 Thread Rob G
I'm working on this, and am not sure how the variable syntax needs to be here. This is what I have done manually. //BEGIN EXAMPLE mysql_query ("INSERT INTO testimonials (id, quote, name) VALUES ('$id_1', '$entry_1', '$name_1')"); mysql_query ("INSERT INTO testimonials (i

[PHP] question about database field-types and special characters

2008-02-14 Thread Rob Gould
I've got a PHP application that pulls in data from a mySQL database. The data is a series of wine producers, and many of them have special foreign characters over the a's and o's. When I go and view the data from my database using myPHPAdmin, the characters look fine, but when I pull the dat

[PHP] PHP/mySQL dropping zeros after inserting number into record

2008-02-16 Thread Rob Gould
I've got a PHP script that inserts "00012345678" into a record in a mySQL database (it's a barcode). Things work ok unless the number has preceding zeros, and then the zeros get cut off and all I get is "12345678". I have the mySQL database fieldtype set to bigint(14). If the maximum length a

[PHP] Copying specific fields from table to table

2008-02-24 Thread Rob Gould
I've got 2 tables. One table which contains a series of barcodes assigned to product id #'s, and another table with JUST product id #'s. I need to somehow transfer all the barcodes from the first table into the second table, but only where the id #'s match. Can anyone tell me if this is someth

[PHP] Re: DOM - Question about \0

2008-03-16 Thread Rob Richards
some other encoding). The data can then be transmitted in a regular element. Note that it is possible that your blob data can contain the following sequence of characters "]]>" which would effectively terminate the CDATA block even though there really is more data. Rob

[PHP] Character set problems

2008-04-03 Thread Rob Gould
I'm having a hard time figuring out why my character sets and data look when when viewed in phpAdmin when browsing the table-columns, but then I go to show the data on my web-page with PHP, I get garbage-characters where I should be seeing apostrophs and special foreign-characters. I copied all

Re: [PHP] Character set problems

2008-04-04 Thread Rob Gould
in my code everywhere I make a SQL call? On Thursday, April 03, 2008, at 11:14PM, "Robert Cummings" <[EMAIL PROTECTED]> wrote: > >On Thu, 2008-04-03 at 21:56 -0700, Rob Gould wrote: >> I'm having a hard time figuring out why my character sets and data look whe

[PHP] How to determine which column "matched"

2008-04-11 Thread Rob Gould
I'm trying to figure out a way that SQL can pass a flag to PHP to say which column "matched" during a query. Let's say for instance that I want to search for the word "apple" in both column "producer", and column "designation". I was hoping I could do something like this: Select producer,

[PHP] Can Safari 3 be forced to cache a large jpeg with PHP headers?

2008-05-13 Thread Rob Gould
I am creating a touch-screen kiosk application, using a full-screen version of Safari 3.1, and was wondering if there's a way I can force Safari to cache a large background image JPEG. What I'm finding is that Safari 3 will sometimes cache my large 1.1 MB background image (1680x1050), and dis

[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-11 Thread Rob Richards
org/XML/1998/namespace namespace. $lang = $page->documentElement->getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang'); Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: XML DOM problem with getAttribute(string)

2008-06-11 Thread Rob Richards
You might want to put a link to a complete example because $page->documentElement->getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang'); is how you access it. Rob [EMAIL PROTECTED] wrote: Thank you, Rob, Unfortunately, that didn't work, either (tho

[PHP] Using timezones

2007-05-04 Thread Rob Desbois
me if UTC is a deprecated timezone? Thanks! Rob __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://

[PHP] Timezones

2007-05-15 Thread Rob Desbois
e that ships with PHP." - does this imply that we might actually be fine to continue using the default installed DB for the foreseeable future? I'd appreciate any guidance on this - TIA. --rob

Re: [PHP] Re: using preg_match

2007-05-16 Thread Rob Desbois
[re-sending, forgot to include list :-|] If you're matching a string and not a pattern then it is far more efficient to use strpos: if (strpos($path, '/realtors') !== FALSE) { echo 'Success'; } rob On 5/16/07, Al <[EMAIL PROTECTED]> wrote: The "containe

[PHP] Timezone DB update frequency

2007-05-21 Thread Rob Desbois
PHP will become unsuitable and when / how often. Thanks, --rob

Re: [PHP] Pokeing functionality

2007-05-22 Thread Rob Desbois
Many ideas, all of them completely dependent on exactly what your requirements are - should a poke be delivered to the target in real-time or when they next load a page? This is an extremely general question, like "I want users to be able to view each other's profiles, how?"... --

[PHP] Found the problem...

2007-07-26 Thread Rob Adams
Found the problem. The piece of code was outside of a block where $db had been created, so it was a non-object the whole time... Easily fixed, but a hard error to find when I'm assuming it's my brand new class that's the problem. -- Rob ""Rob Adams"" &

[PHP] Createing a Test DB Object.

2007-07-26 Thread Rob Adams
I need to test a bunch of code that extensively uses a mysql database (both selects and inserts), and I want to do it without actually writing to the database.. Instead of commenting out all of the $db->query($insert_query) statements and echoing $insert_query, I thought I'd make the following

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Rob Richards
[EMAIL PROTECTED] wrote: Rob, I wasn't aware that that would work. I mean I suppose it should, but basically this is what I'm doing: 1) Create a new DOMDocument 2) DOMDocument->loadHTML() 3) find the elements I want with getElementsByTag() then finding the one with the corre

[PHP] Mapped Drive issue

2006-10-18 Thread Rob Kritzer
I have a script the use to work: $date = date("mdy"); mkdir("Y:/Daily_DisplayAds/todays_ads-$date"); But now I get this error: Warning: mkdir() [function.mkdir]: No such file or directory in C:\wamp\www\scripts\ad_finder\display_class.php on line 10 If I change "Y" to "C" it works, can anyone

[PHP] FTP - folders

2006-10-23 Thread Rob Kritzer
Is it possible to FTP a folder and all it's content? I can do a file at a time, but not a folder. Also there is times when I will not know the folder name, so I would like it to just upload everything it finds in the folder I set. Is this possilbe? Thanks

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Rob Kritzer
October 18, 2006 2:14 pm, Rob Kritzer wrote: > I have a script the use to work: > > $date = date("mdy"); > > mkdir("Y:/Daily_DisplayAds/todays_ads-$date"); > > But now I get this error: > > Warning: mkdir() [function.mkdir]: No such file or directory in

Re: [PHP] FTP - folders

2006-10-23 Thread Rob Kritzer
Yes Tedd, This is what I am having trouble with, I can see where you can upload each file, but all I really need it to do is take the contents of a folder and upload everything it finds in the directory. Rob On 10/23/06, tedd <[EMAIL PROTECTED]> wrote: At 8:42 PM +0100 10/23/06, Stut

Re: [PHP] Mapped Drive issue

2006-10-23 Thread Rob Kritzer
For now I am on a PC XP Pro, wish they would give me back my Mac. On 10/23/06, Ed Lazor <[EMAIL PROTECTED]> wrote: Depends on your operating system. On Oct 23, 2006, at 6:31 PM, Rob Kritzer wrote: > Yes, the directory on mapped drive Y does exist. > > I do think tha

[PHP] DomDocument->schemaValidate() in PHP4

2006-11-02 Thread Rob Smith
chemas, using PHP? Thanks for any advice Rob Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: simplify DOM api

2006-03-06 Thread Rob Richards
e going to have to work with UTF-8, which is compatible with htmlspecialchars(), when editing a tree. You can also look at using xmlwriter, when creating serialized trees, that automatically does escaping for you. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: simplify DOM api

2006-03-07 Thread Rob Richards
Andreas Korthaus wrote: Rob Richards wrote: You can also look at using xmlwriter, when creating serialized trees, that automatically does escaping for you. Hm, AFAIK latest xmlwriter versions provide an OO API. Do you know about any documentation for it? I will try to add some time

Re: [PHP] I am not able to download domxml for PHP5

2006-04-11 Thread Rob Richards
Oz wrote: For some reason my PHP5 does not have DOM. ( I have the version that comes with fedora core 5). Is there a way to activate it. -thanks Oz You need to install the php-xml rpm to get the xml extensions (dom, xsl, xmlwriter and xmlreader). Rob -- PHP General Mailing List (http

[PHP] Re: DOMElement->setAttribute() loops forever (node_list_unlink bug?)

2006-05-15 Thread Rob Richards
lease bug this (no need for the backtrace), so I don't forget it. I see the problem but will take me a day or two to get around to fix. As a work around for now you can do: $root->setAttributeNode(new DOMAttr('b', '>')); $root->setAttribute('b', ''); Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Bug in XMLWriter?

2006-05-19 Thread Rob Richards
tioned within element content so cannot write an attribute. Attributes must be written while still positioned within the element's start tag. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Bug in XMLWriter?

2006-05-19 Thread Rob Richards
D. Dante Lorenso wrote: Rob Richards wrote: Expected behavior. See comments within code snippet. D. Dante Lorenso wrote: I am using XMLWriter with PHP 5.1.4 and find that it doesn't behave as I expect. I am under the impressing that until I call 'endElement', I should be f

[PHP] Displaying data a certian way.

2006-06-04 Thread Rob W.
Ok, here's my issue that I have. Inside my database I have something that look's like this idserveridcabinetidect... - 1 server11 2 server21 3 server31 I am trying to g

Re: [PHP] Displaying data a certian way.

2006-06-04 Thread Rob W.
Just to clarify a little more, I want the output to do something like this... -- | Cabinet 1 | -- Server 1 Server 2 Server 3 and so forth... - Original Message - From: "Rob W." <[EMAIL PROTECTED

Re: [PHP] Displaying data a certian way.

2006-06-04 Thread Rob W.
That worked. Thanks. - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Sunday, June 04, 2006 10:59 PM Subject: Re: [PHP] Displaying data a certian way. Rob W. wrote: Ok, here's my issue th

[PHP] Removing an aspect of a variable...

2006-06-06 Thread Rob W.
Say I have a variable setting an ip address of 192.168.100.0 I want to be able to remove the last to chr's of that variable ie: .0 What would be my best solution to do that?

Re: [PHP] Removing an aspect of a variable...

2006-06-06 Thread Rob W.
Tnx. - Original Message - From: "rich gray" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Sent: Tuesday, June 06, 2006 2:44 AM Subject: Re: [PHP] Removing an aspect of a variable... substr($variable,0,-2); Rob W. wrote: Say I have a v

[PHP] Getting totals

2006-06-06 Thread Rob W.
Ok, Here is my next problem. Inside my database, I have a list of ip's of about 10 blocks 192.168.100.0 all the way though 255 along with 192.168.101.0 though 255 and 192.168.102.0 though 255 and soforth My problem is, is i'm trying to figure out a pattern to match so I can count how many ip's

Re: [PHP] Getting totals

2006-06-06 Thread Rob W.
t;[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Sent: Tuesday, June 06, 2006 1:16 PM Subject: Re: [PHP] Getting totals i may be missing something in your description, but does turning the first and last ipnumber in a block into its integer representation, and then doing th

Re: [PHP] Getting totals

2006-06-06 Thread Rob W.
if (strstr(192.168.100,192.168.100.10)) { $inc++; } echo "$inc"; That returns nothing. What am i still doing wrong? - Original Message - From: "Rabin Vincent" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Tuesday, June 0

Re: [PHP] Getting totals

2006-06-06 Thread Rob W.
Sorry for the miss understanding, That's the way the viarable will look, i'm putting it in as a viariable. if (strstr($block,$address)) { $inc++; } - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED

Re: [PHP] Getting totals

2006-06-06 Thread Rob W.
OTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Tuesday, June 06, 2006 11:38 PM Subject: Re: [PHP] Getting totals On 6/7/06, Rob W. <[EMAIL PROTECTED]> wrote: Sorry for the miss understanding, That's the way the viarable will look, i'm putting i

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

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

2006-06-07 Thread Rob Richards
m any DOM implementation since its a standard (not too difficult to go from one language to another when using DOM). For PHP specific ones, there are a number of tests in the CVS repository that demonstrate much of the functionality: http://cvs.php.net/viewcvs.cgi/php-src/ext/dom/tests/ One partic

[PHP] Re: XPath avg(), min(), max() functions not found

2006-06-08 Thread Rob Richards
x_nodes = $xpath->query("//card/[EMAIL PROTECTED]'visits']/text()"); $max = NULL; foreach ($cards_max_nodes AS $node) { $val = (int)$node->nodeValue; if (is_null($min) || $max < $val) { $max = $val; } } print 'Maximum Visits: '.$max."\n"; Rob -- [EMAIL PROTECTED] author of Pro PHP XML and Web Services from Apress -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] transform RDF to HTML via XSL and PHP

2006-06-12 Thread Rob Richards
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:rdf9="http://my.netscape.com/rdf/simple/0.9/";> Rob -- [EMAIL PROTECTED] author of Pro PHP XML and Web Services from Apress -- PHP General

[PHP] Javascript & PHP

2006-06-16 Thread Rob W.
pcid=' + apcid + '&apcport=' + apcport + '&available=' + available + '&owner=' + owner); }*/ Do I, Before that exec's, add in my mysql get to set the variables to the java variables or how do I enter that in? Any help is appricated. -Rob

Re: [PHP] Javascript & PHP

2006-06-16 Thread Rob W.
Well i'm trying to figure out how to bind the php variables to the javascript variables after I pull them out of the mysql database. - Rob - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent:

Re: [PHP] Javascript & PHP

2006-06-16 Thread Rob W.
Well for example when I pull my mysql db variable $serverid=mysql_result($result,$i,"serverid"); How do I bind it so this ^^ to the java var below? var serverid = serveradd.serverid.value; - Rob - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]

Re: [PHP] Javascript & PHP

2006-06-16 Thread Rob W.
Yeah, I think something like that might work. ( I also know it's javascript and not java - Little tired being up @ 5am and havnt slept for over 24 hrs already. ) - Rob - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]> To: "Rob W." <[E

Re: [PHP] Automatic email sending

2006-06-16 Thread Rob W.
If you have a unix box, Use cron to run a script to exec a php file to do it. If you have a windows box, you can setup a scheduled time to run a php file as well. - Rob - Original Message - From: "Murtaza Chang" <[EMAIL PROTECTED]> To: ; Sent: Friday, June

[PHP] mysql ORDER BY problem

2006-06-18 Thread Rob W.
12 . 2 22 23 25 3 4 5 6 7 Is there a way with my mysql query so that I can list the numbers in correct order? Any help is appricated. - Rob

Re: [PHP] Re: mysql ORDER BY problem

2006-06-18 Thread Rob W.
It's not in general to mysql, it's how php and mysql is displaying it. - Original Message - From: "Michael Rasmussen" <[EMAIL PROTECTED]> To: Sent: Sunday, June 18, 2006 4:51 PM Subject: [PHP] Re: mysql ORDER BY problem On Sun, 18 Jun 2006 15:55:14 -0500,

Re: [PHP] mysql ORDER BY problem

2006-06-18 Thread Rob W.
Yeah, I got this problem fixed. The datbase was listed under [chr] instead of [integer]. Thanks for the help though. - Original Message - From: Xavier Casto To: Rob W. Cc: php-general@lists.php.net Sent: Sunday, June 18, 2006 7:30 PM Subject: Re: [PHP] mysql ORDER BY

[PHP] Ok next php problem

2006-06-18 Thread Rob W.
that are not in there. I have also tried putting the numbers in to an array and matching from there but it still come's up as the same as above. - Rob

Re: [PHP] Re: Ok next php problem

2006-06-18 Thread Rob W.
in because servers are always moved around and changed and added. I hope this information was helpful for those of you trying to help solve my problem. - Rob - Original Message - From: "João Cândido de Souza Neto" <[EMAIL PROTECTED]> To: Sent: Sunday, June 18, 2006 8:3

Re: [PHP] Ok next php problem

2006-06-18 Thread Rob W.
they are not scripted statically. - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Sunday, June 18, 2006 8:38 PM Subject: Re: [PHP] Ok next php problem Rob W. wrote: I got the previous question answ

[PHP] Array

2006-06-19 Thread Rob W.
$query="SELECT switchport FROM network"; $result=mysql_query($query); $sql_range=array($result['switchport']); Anybody tell me what i'm doing wrong and why this isnt going in to an array?

[PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
Ok, I am still trying to get this figured out from what I tried doing last night. If anybody wants to try it, please be my guest. This is the deal. Create an INTEGER table. Put the numbers 1 - 24 in it. Leave out like number 8, 9, 22, 23 ect.. Now create a php statement that will take and pull t

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
This also didnt work, Still giving me no output just like the last try. - Original Message - From: Xavier Casto To: Rob W. Cc: php-general@lists.php.net Sent: Monday, June 19, 2006 4:33 PM Subject: Re: [PHP] Still trying to figure this out... Have you ever thought of

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
Yep, and still nothing output's. - Original Message - From: "Xavier Casto" <[EMAIL PROTECTED]> To: "'Rob W.'" <[EMAIL PROTECTED]> Cc: Sent: Monday, June 19, 2006 6:20 PM Subject: RE: [PHP] Still trying to figure this out... You did ma

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
Nope, I still dont get anything back from that. So i'm still stuck in the mud. - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Monday, June 19, 2006 4:05 PM Subject: Re: [PHP] Still trying

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
Yeah, that's what i'm trying to print is the missing numbers in the db. That's what I've been trying to figure out this whole time. - Original Message - From: "Xavier Casto" <[EMAIL PROTECTED]> To: "'Rob W.'" <[EMAIL PROTE

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
Nope, still does nothing. - Original Message - From: "Xavier Casto" <[EMAIL PROTECTED]> To: "'Rob W.'" <[EMAIL PROTECTED]> Cc: Sent: Monday, June 19, 2006 6:49 PM Subject: RE: [PHP] Still trying to figure this out... I think the

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
$range as $switchport => $foo ) { echo 'value="'.$switchport.'">'.$switchport.''."\n"; $result = 0; } With that, I dont get anything, Not sure what you mean by empty to is_null ect.. - Rob - Original Message -

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
ney via paypal for helping out solving this problem as I have been on it for 2 days now and this is the last bit of code for this program that is holding me up. Please read below for more information on what I am doing. - Original Message - From: "Rob W." <[EMAIL PROTECTED]

Re: [PHP] Still trying to figure this out...

2006-06-19 Thread Rob W.
to help with what I wanted. - Rob - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Rob W." <[EMAIL PROTECTED]> Cc: Sent: Tuesday, June 20, 2006 1:39 AM Subject: Re: [PHP] Still trying to figure this out... Rob W. wrote: I still have not y

<    1   2   3   4   >