[PHP] PHP 4.2.1 vs. 4.2.3

2003-02-21 Thread Rob
lready read all the stuff in the php docs about installing PHP on Solaris and I followed the instructions faithfully) I would also appreciate that. Thanks --- Rob ****** Rob Cherry mailto:[EMAIL PROTECTED] +27 21 447 7440 Jam Warehouse RSA Smart Business Innovation http://www.j

[PHP] php crashes iplanet

2003-02-19 Thread Rob
d. Thanks --- Rob ****** Rob Cherry mailto:[EMAIL PROTECTED] +27 21 447 7440 Jam Warehouse RSA Smart Business Innovation http://www.jamwarehouse.com ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie query

2003-07-06 Thread rob
on 7/7/03 2:31 AM, Burhan Khalid at [EMAIL PROTECTED] wrote: dear list My server runs requires that if I want to write to file that I place my php script in the cgi-bin and it treats it as a cgi script. I am new to this and cannot get it to work. Would anyone know of a tutorial I could use to get t

[PHP] Max Array Size in Post?

2003-03-19 Thread Rob
I have a database driven music web site that allows the admin to create photo galleries. The photos and captions are entered using a form which allows the admin to upload a small and large photo. The number of photos is requested in a form that calls this entry form. The code looks like this: f

[PHP] PHP from behind a proxy-server ??

2002-10-16 Thread Rob
#x27;ve searched the net & groups and noticed that i'm not the first one to run into this problem ; but could not find any answers ... anybody here knows how to use 'file' thru a proxy ? Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP session won't die!

2003-11-08 Thread rob
completely kill this session is OR if you know where I should post this question, I would be forever in debt! Thanks for your time. Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] if php is so great, why is it so hard to make it work?

2001-01-16 Thread Rob
You can get problems when you install and run IIS AND Apache at the same time... I think the last message was clear enough??? -Oorspronkelijk bericht- Van: Serge Montmarquette [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 16 januari 2001 19:14 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] if ph

[PHP] Sending secure mail

2007-02-04 Thread Rob
r when tested with a mail client, but once accepted it is fine. Is there an easier way to do this? If not, how do I get the connection so I can get to and "rcpt to:" line and beyond? Thanks, Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SimpleXML & libxml options (XInclude)

2007-02-28 Thread Rob
impleXMLElement($xml_file, 0, true); $dom = dom_import_simplexml($xml); $dom->ownerDocument->xinclude(); print_r($xml); Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stream_read function for registered wrapper class.

2012-09-19 Thread Rob
ntents, shouldn't it return 16384 bytes the first time? Thanks for any help. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stream_read function for registered wrapper class.

2012-09-19 Thread Rob
Sorry, I just realized my replies were going to email instead of the news group. I'm going to try upgrading to php 5.4 so I have access to this: http://php.net/manual/en/function.stream-set-chunk-size.php And see if that fixes some of my problems. Thanks for the suggestions. -- PHP General

[PHP] Re: stream_read function for registered wrapper class.

2012-09-19 Thread Rob
issues with stream wrappers. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Beginner Question-Solution-packages

2004-04-09 Thread rob
On 10/4/04 1:37 AM, "jon roig" <[EMAIL PROTECTED]> wrote: Thank you for your help! Php and mysql ship on MAC OSX servers but not on on the normal machines. Apple provides support for these two at http://developer.apple.com/internet/opensource/osdb.html for help on MySQL on MAC OSX including step b

[PHP] Re: Working with XML: DomDocument or SimpleXML?

2007-09-21 Thread Rob
Colin Guthrie wrote: I know I definitely want to do XSLT stuff and for that I need to use DomDocument (I'm sure there are other ways but this works fine for me so far!). Fairly unknown tidbit: you can pass SimpleXML objects to the XSL extension. XSL will use the document from it. I'll

[PHP] Re: Working with XML: DomDocument or SimpleXML?

2007-09-21 Thread Rob
Colin Guthrie wrote: Rob wrote: if ($xml instanceof SimpleXMLElement) { /* No copying, just use the existing XML tree directly */ $node = dom_import_simplexml($xml); return $node->ownerDocument; } Yeah I had that initially too but that did not produce a DOMDocument Object bu

[PHP] Re: Proposal of DOM boolean property: DOMDocument::omitXMLDeclaration

2007-10-22 Thread Rob
Freyjkell wrote: (bool) DOMDocument::omitXMLDeclaration; Does not need a comment. Implemented in XSLT. // I sent this post to php.xml.dev, but I didn't get reply for long time. parser option LIBXML_NOXMLDECL or if no DTD just save the root element. Rob -- PHP General Mailing List

[PHP] Re: Proposal of DOM non-standard method: DOMDocument::loadCharacterEntitiesFromDtd($path)

2007-10-22 Thread Rob
ocument as it is parsed. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Rob
ttp://www.w3.org/2000/xmlns/', 'xi'); var_dump($attr); Rob Nathan Per Jessen wrote: Nathan Rixham wrote: but assuming the above file is: http://www.w3.org/2001/XInclude";> how would one retrieve xmlns:xi="http://www.w3.org/2001/XInclude"; When you say

Re: [PHP] DOM API Namespaces - help?

2008-01-24 Thread Rob
Hi Nathan, Nathan Rixham wrote: Cheers Rob, But this is the problem, I don't know what the namespace/prefix is! ie "xi" and the following doesn't work: $root->getAttributeNS('http://www.w3.org/2000/xmlns/', '*'); further xmlns is ?not?

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

2006-09-14 Thread Rob
[EMAIL PROTECTED] wrote: Satyam, I don't see any "innerHTML" or "outerHTML" in relation to PHP DOM. I'm familiar with them from a Javascript standpoint, but no references when it comes to PHP DOM. Regards, Mike Now that you have the element, why not just ca

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-15 Thread Rob
How are you getting that output? Remember most of the functionality - other than the saveXML(), saveHTML() functions - output using UTF-8 (which you would need to convert to what ever encoding you need). Rob Leonidas Safran wrote: Hello all, Again a question on the new DOM functions

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-15 Thread Rob
dom node, you do not change the encoding since the functions all work on UTF-8. The document to which the content is being added however, must be set to use the desired encoding. I am assuming you are doing what I previously explained though. Rob Leonidas Safran wrote: Hello Rob,

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-17 Thread Rob
.? Do you have your code somewhere? Another thing I realized that I failed to mention before is that using saveXML($element) will serialize the full element, but outputs it in UTF-8 encoding. Have you tried converting the output of that to the encoding of the original HTML page? Rob -- PHP G

[PHP] Re: loadHTML/loadHTMLFile - DOM functions

2006-09-17 Thread Rob
Leonidas Safran wrote: Hello Rob, Do you have your code somewhere? Yes, I paste it below. There are two files, one for HTML output (which I make invisible with style declaration "display:none;" and the second file is a javascript function which is supposed to output the conten

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Rob
expected as you are dropping any possibility of providing an indication of the encoding) It would be really nice if you could also specify a string value -- the name of the root node. Why? documentElement property works just fine and is much more flexible. Rob -- PHP General Mail

[PHP] Re: Prevent XSS using DOM Extension and/or SimpleXML

2006-11-14 Thread Rob
pe == XML_ELEMENT_NODE) { checkElement($child); } } } } $root = $dom->documentElement; checkElement($root); Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: DOMElement::setAttribute() manual example question

2006-03-03 Thread Rob
ently. i.e. $newnode = $doc->appendChild($doc->createElement("root")); or $newnode = $doc->appendChild(new DOMElement("root")); Also, in the event $node is created using the new DOMElement syntax: $node = new DOMElement("root"); the node is read on

Re: [PHP] Re: DOMElement::setAttribute() manual example question

2006-03-03 Thread Rob
derstand WHY your next example is working... Every example so far has called appendChild(). The only difference has been when at which point it is called to append the element and how the element to append has been created. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] Re: DOMElement::setAttribute() manual example question

2006-03-05 Thread Rob
sed to have a node not associated with any document, but this syntax allows the DOM classes to be extended in PHP. Once the node is associated with a document, you then have full editing capabilities. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: create xml root-element with xmlns and xsd link (using DOM)

2006-03-06 Thread Rob
etAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation', 'http://example.com/test test.xsd'); echo $doc->savexml(); ?> Does DOM provide nothing else? Does anybody see any problems with this approach? That's how namespaced attributes, which is nothing m

[PHP] Re: PHP4, domxml and xpath with Namespaces

2006-03-06 Thread Rob
thin the same namespace so the namespace and prefix are registered once and the prefix is used to identify both in the xpath expression. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] include_once() isnt!

2004-02-03 Thread Rob
Ive programmed with C/C++ for years and have recently started to dabble in PHP. Ive written a multi-part script for a friend and Ive run into a problem. Ive got 14 include files 3 of which are basic components that may or may not be used by other components. One is an authorisation class, another

[PHP] Beginner Question

2004-04-08 Thread rob
I am a newcomer to PHP and I am looking for an intsallation package similar to to FoxPro for MAC OSX 10.2.(Ie intsall appache, MY SQL and Latest version of PHP) Does anyone know where I may find one? Thanks RB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] Re: PHP DOM XHTML - let me set my own javascript from code

2005-10-19 Thread Rob
Petr Smith wrote: but it encloses it to CDATA section automatically like this: language="Javascript"> but I need it like this (because otherwise the javascript don't work): // First, script was using some bogus method names. Second

[PHP] Re: DOM namespace prefix troubles

m->createElementNS('urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0', 'cac:Note'); $root->appendChild($child); Hope that helps. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to build a XML DTD on "the fly"?

bxml2 version to work). Can always use xml:id attributes for that purpose for now though. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to build a XML DTD on "the fly"?

Jared Williams wrote: setAttributeNS('http://www.w3.org/XML/1998/namespace', 'id', 'abc') doesn’t work either, getElementById() still fails. It does work as long as you are using libxml2-2.6.22 Rob -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Re: DomDocument::GetElementById - a workaround with external DTD

Erik Franzén wrote: I did a typo in the threads post. The dtd is: but it gives the warning when DomDocument::validate() is called: Warning: Syntax of value for attribute S_iSectionId of CMAES_Model_DbSection is not valid in

[PHP] Re: Php5 SOAP WSDL parsing

} attribute definitions have to come after a sequence. See the symbol element definition in cml.xsd The symset attribute must be defined after the sequence. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP5, Soap, WSDL, and unbounded xsd:choice types.

stion is to parse the portion of the response you need manually. You also need to be sure that the server is always going to send those elements in the exact order you are expecting. Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Test links?

First, I'd like to say that I'm not asking for anyone to write a script... how would I go about checking a MySQL database of links to see if any are down? I've had some varying results with all the methods I've tried, so would like to see if anyone has a proven method for doing this. Thanks,

Re: [PHP] Test links?

ROTECTED]... > On Saturday 30 November 2002 06:53, Rob Packer wrote: > > First, I'd like to say that I'm not asking for anyone to write a script... > > how would I go about checking a MySQL database of links to see if any are > > down? > > > > I've h

Re: [PHP] Test links?

Okay, I'm confused... file, fopen, and fsockopen seem to say not found on alot valid URLs... does this look to be correct usage? $url = $row[0]; // just get the url from the db $fp = implode ('', file ($url)); if (!$fp) {echo "Unable to access file"; } else { fclose($fp); echo "The link is worki

Re: [PHP] Test links?

] passes. Robert Packer "Chris Hewitt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Rob Packer wrote: > > >Okay, I'm confused... file, fopen, and fsockopen seem to say not found on > >alot valid URLs... does

[PHP] Sessions, Cookies, and Subdomains

Hello, I've a bit of a problem and was wondering if anyone out there can help straighten it out. I have never worked with cookies or php sessions before as the need for such has never presented itself before. Up until this point I have been using a very customized version of PostNuke but thing

[PHP] Does using msql_select_db excessively burn resources?

I plan to have my sites using several databases, but there is a common database they must all use. Obviously I'll have to use "mysql_select_db" each time I change the database I wish to use. Does this simply select the database and hold it as a variable until a query is made, or does it load i

[PHP] Segmentation fault and var_dump()

he var_dump() is present; comment it out and there is no segmentation fault (but the script still doesn't work right). With it present, the seg faults every time. TIA Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php with mime magic?

I'm trying to get php compiled with mime magic, and it doesn't appear to be working. Here's my phpinfo page, showing the parameters I've used to compile; it does show that I used '--enable-mime-magic' as instructed in the docs at php.net: http://horde.csd-bes.net/horde/test.php?mode=phpinfo (I ne

[PHP] Date Difference Errors

1970-01-01. On the RH 8 box, they both return -1. Is there any work around to calculating date differences for dates prior to 1970? Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Escaping Chars

I need to get a password value from a form, store it in a database and then later be able to compare a login password to the one stored in the db. This works great unless the password contains the '\' char. magic_quotes_gpc is ON and magic_quotes_runtime is OFF. As a klude, I tried just removing sl

[PHP] .htpasswd and PayPal generated passwords

I use PayPal to generate a username and password and then write them to the .htpasswd file. If I were to switch to using a database (because .htaccess seems to always prompt twice!) how would I perform the comparison for the passwords? It would seem that everytime you generate an encrypted pass

[PHP] check expiration date

anyone know of a script for getting the current date and then calculating when a provided expiration date would be? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: .htpasswd and PayPal generated passwords

n message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > btw - What do you mean by paypal generated passwords? I am interested in > using PayPal as an alternative to my current credit card handler. > > Just a link is appreciated. > > - David > > > "R

[PHP] What is the fastest method for changing php settings (save php.ini)?

I'm sorry if this question has been answered before, but I couldn't find anything in the archives. I don't have access to php.ini and I was wondering which method for changing settings is the fastest. Take, for example, "session.cache_expire". This can be set via ini_set(), session_cache_exp

Re: [PHP] nested for loops

->file_id"; $cnt++; if ($cnt % 2) echo ""; } HTH. -- Rob "Micah Montoy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well, the for loop is now working but its not displaying what I want. I am > pulling data from a DB and for

[PHP] Re: php mysql array question

Total of 5 lines. -- Rob "Larry Brown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there any php function to pull a query into an array? I know there is a > way to get the first row of the results in an array, but I'm having to loop > through e

Re: [PHP] Writing to files

You could try using the file() function. Then loop backward through the array or use array_reverse. -- Rob "Jason Giangrande" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Any ideas on how I can print the lines of my file in reverse order, > then

[PHP] omitting the #!

pache or PHP so that I don't need to do this anymore? The server is Red Hat Linux 9.0 with Apache 2.0.40 and PHP 4.2.2. Thanks. -Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include(remote HTML file) doesn't work since upgrade

on my machine after getting the same error. I tried including a page off a different server and it worked just fine. So I started messing around and got the following to work for the page you're trying to include: include('http://wiu.edu/SGA/'); Of course, the graphics don

[PHP] Re: Freeze Pane

://msdn.microsoft.com/workshop/samples/author/dhtml/refs/scrollTop.htm Using this you can set how much data you want to display and then let it create scroll bars right inside your page. I think it's a little bit cleaner than frames. -- Rob "Jason Martyn" <[EMAIL PROTECTED]

Re: [PHP] Store array as Session Variable

t in case. I used to think that you had to serialize arrays before saving to session, but apparently that's not the case. Good to know. -- Rob > Thanks > --Pushpinder > > > On Monday, July 28, 2003, at 03:31 PM, CPT John W. Holmes wrote: > > > $details is an arra

[PHP] Re: include and imagejpg() weird behavior - maybe header?

function resize($filepath,$nw = 50,$string = '') > { > header("Content-type: image/jpeg"); The above line is causing your error. According to the error, it's something in your image.php file. Is there a space or carriage return before your opening php tag in image.php? -- R

[PHP] Re: include and imagejpg() weird behavior - maybe header?

my server. -- Rob "Oli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Nobe, the image.php script starts with Also if I comment out the header function I don't get the header error but I > get the gobbledygook (the picture data I guess). Combine the code in

Re: [PHP] cookies on localhost WinXP

gt; > Please don't tell us that you're storing login IDs in a cookie and actually > depending upon them for anything?? Um, why not? I do it all the time, and if there is some security issue or other reason to not do it I'd like to know so I can change my style in the future. I generally create a random hex string 40 chars long and store it as a cookie called loginid. -- Rob > > ---John Holmes... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: global scope issue

"Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm having problems using global vars. I have read the docs and all of the > notes but it's not helping. Simplified example: Simplified? So maybe what you're giving us doesn't include the problem? The scripts below

Re: [PHP] strtotime()

4.2.3 > Content-type: text/html > > 2003-01-01 00:00:00 > 2003-01-31 16:00:00 > 2003-02-01 00:00:00 > It is adjusting for your 8 hour differences. Your server is -8 from GMT. So when you set it to '+ 1 month GMT' it will set the date to one month from the given date, but in GMT time. So to convert back from GMT time to your time, it needs to minus the 8 hours, and you get 4 PM the day before. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: global scope issue

Don't you just hate it when the thread your replying to has gone on to some other thread that you didn't notice? -- Rob "Rob Adams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in

Re: [PHP] Re: google style paginating

The Pear Pager class works like a champeen, too. It'll paginate results however you'd like it to. ~Rob Chris W. Parker wrote: Robert Cummings <mailto:[EMAIL PROTECTED]> on Thursday, August 21, 2003 4:46 PM said: Don't retrieve ALL the queries then only display a sub

[PHP] float precision format not being kept

stumped. Any light anyone can shed on this would be appreciated. ;) Thanks, ~Rob Yelvington -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WYSIWYG editor for PHP

Active State's Komodo and Zend Studio are both awesome! I used to use Dreamweaver, but it's syntax highlighting stinks...IMHO. ~Rob Bix wrote: I use dreamweaver in live data mode quite often, really works a treat! Set up a a site and in the testing server, just set it as /beta o

[PHP] how to keep decimals from rounding

format() and each of them rounds the value up. I had a problem with precision earlier which I solved...my 'precision' setting in php.ini was set too low. Is there something in php.ini that controls rounding? Any heads up are appreciated! Thanks, ~Rob -- PHP General Mailing List (

Re: [PHP] Array Question

d1 - $record->field2 - etc..."; ?> -- Rob "Mark McCulligh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I can't link the two tables at all. > > I need to loop through one displaying its information, then loop through the > other table d

[PHP] Re: 4 or 5 Fridays this month

3) // 5 Fridays impossible. return 4; $lday = date("t", $fdom); // get number of days in the month $buffer = $lday - 28; if ($wday >= (5 - $buffer) and ($wday <= 5)) return 5; else return 4; } This worked for me on a couple test months. --

[PHP] PHP Class for IP CIDR notation

does anyone know of a class that is able to extrapolate a list of IPs given an address in cidr notation. I have used the Net::Netmask module in perl, so I was just wondering if there was a PHP equivalent. Thanks Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: ereg_replace question

d -- You could just use: $path = dirname($fullpath); -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: ignored php.ini?

Any hints? Many thanks in advance, bye > _ Do you have a php.ini in the same directory that php.exe (or whatever dll) is in? It may be checking the local directory first before going to the system directory. -- Rob -- PHP General Mailing List (

[PHP] Weird comparison error.

till was true everytime. So why does it always try convert my literal to an int instead of use the variable as a string? Just curious. Thanks. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Weird comparison error.

7;===' or strcmp from now on. > > More information: > > http://www.php.net/manual/en/language.types.type-juggling.php > http://www.php.net/manual/en/language.types.string.php#language.types.string.conversion > > ...in fact, the whole 'Language' section of the manual has a bunch of > stuff on this. > > > Hope this helps, Thanks. > > Torben -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] not so

[0] would match the whole ip, I was hoping [1] and[2] would echo the next 2 found, but it doesn't Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] not so

oops, no coffee yet "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Saturday 08 June 2002 22:36, Rob Packer wrote: > > [0] would match the whole ip, I was hoping [1] and[2] would echo the next 2 > > fou

[PHP] Session wierdness

Is it possible to use PHP sessions reliably? I get very inconsistent results. I register session vars after a password check. I use session_start at the top of every file. I watch the /tmp directory for session files. Within a few random page transitions the session data inside the registered vari

[PHP] Insert an array into MySQL

Hi, I've seen a few post for this same thing but I can't seem to get it working. What I'm doing is taking a form with check boxes and putting them into an array. Then I'm attempting to INSERT them into the db, one checkbox value per row. Okay, well I've tries 2 ways that I think should work and

Re: [PHP] Insert an array into MySQL

; your trying to insert this data into? > > ---John Holmes... > > > -Original Message- > > From: Rob Packer [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, June 23, 2002 7:50 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Insert an array into MySQL > > > > Hi,

Re: [PHP] Insert an array into MySQL

ser input. $query_links="CREATE TABLE $username_links (id INT(4) not null, links VARCHAR(20) not null, UNIQUE (id))"; if(mysql_query($query_links,$connection)){ echo "Links table created!"; }else{ echo "no links table made"; } thanks, Rob "Jo

Re: [PHP] Insert an array into MySQL

Nevermind, I got it. I had Unique for a field which made it mad. "Rob Packer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > oops, sorry about the other post (I've got a baby that likes the > keyboard)... > > Hi,

Re: [PHP] how to keep decimals from rounding

Curt, thanks for the reply and the suggestion. Truncating is exactly what I will do. Thanks! ~Rob Curt Zirzow wrote: * Thus wrote Rob Yelvington ([EMAIL PROTECTED]): Is there a way to surpress round() or number_format() from rounding decimal places? I have a value of ".253338&q

Re: [PHP] Mail problem

your script is really only trying to send out 2000 emails. Are you using some kind of database query to get the email addresses? If so, check how many rows are being returned. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array of Classes

was used and would the constructor run at that point? 3) Any way to dispose/destroy of an object once it's done being used to free up the resources? Thanks, Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array of Classes

Cheers! Just what I was looking for. :) Rob "David Otton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 6 Oct 2003 13:41:22 -0400, you wrote: > > >1) How can I create an array of classes so they could be referenced, for > >instance: $

[PHP] Re: Smarty problem

e here. Whenenver I've had problems with sections, changing them to foreachs usually fixes it. > > {$entry_events[i].d_datum} > {$entry_events[i].d_zeit} > > > {$entry_events[i].d_ueberschrift} > > > {$place}: {$entry_events[i].d_ort} > > {/section} > > > > The problem is that the output in only garbage? > Is there a logical problem ? > > Thank you very much Welcome. -- Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: what is the best PHP editor?

I like EditPlus too, but recently I've been using UltraEdit. http://www.ultraedit.com/ $35 registration. Has great column mode support. I use the macros and templates all the time. Has a word file for PHP. -- Rob "Dougd" <[EMAIL PROTECTED]> wrote in message news:

Re: [PHP] Re: what is the best PHP editor?

I actually tried this a while ago, and must've had a really early version. It showed a lot of promise, but there were too many problems, and the error text was mostly German, so I couldn't tell what was wrong or how to fix it. I'll have to give it another shot now. -- Rob &

[PHP] Re: Foreach Array Help

efined by a variable (e.g. > $code['assign'][$i] for the assign ID and $code['assign'][$i][$j] for the if $code['assign'][$i] has some integer value, then it is not an array. if $code['assign'][$i][$j] has some integer value, then $code['assign'][$i] is an array. You have two mutually exclusive possibilities there. Probably, what you want to do is something like: $code['assign'][$i]['aid'] = (assign ID); $code['assign'][$i][$j] = (whatever you want here); (which, for simplicity, translates into something like:) $code['assign'][1]['aid'] = 1; $code['assign'][1]['1'] = 11; $code['assign'][1]['2'] = 12; $code['assign'][1]['3'] = 13; $code['assign'][1]['4'] = 14; $code['assign'][1]['5'] = 15; etc. -- Rob > codeapply ID on the assign ID). > > Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Foreach Array Help

ly are arrays because they hold > sub-info, I have made the keys of these items the values. > > So - am I approaching this whole array thing wrong? I still don't understand exactly what you want to do, but see below... > > Thanks. > > "Rob Adams" <[EMAIL PRO

[PHP] Re: Simple array question

ternal pointer already on the element you want. If you're not using next(), prev(), etc, then what you probably want to use it array_search(). -- Rob > > Thanks. > > ...Rene -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: including files from different sub directories

obably need to do to go 'up' a directory is something like this: $dir = dir($_SERVER['SCRIPT_FILENAME']); Then take off the last directory. Then either stay there or append another directory name to it. Try using strrchr(). Or there is probably a class somewhere to break a

Re: [PHP] php sessions

e not using cookies, the session ID must be passed on the URL. I don't know much about using trans_sid, so i can't help you further. -- Rob > > Maybe that explains something? > > Chris > > = > My Blog > http://shiflett.org/ > HTTP Developer'

Re: [PHP] php sessions

"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Rob Adams <[EMAIL PROTECTED]> wrote: > > > I'm not sure if this fits your definition of "new browser > > > instance", but there is no way for a remote We

Re: [PHP] php sessions

one client (IE) is sending two different requests from two different windows on the same computer. -- Rob "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- Rob Adams <[EMAIL PROTECTED]> wrote: > > Test it yourself. >

Re: [PHP] php sessions

So you're saying if the session ID is passed in on the URL it will work. But I'm using cookies. The only thing that gets passed on the URL is a pagename. Perhaps there is something funky about my setup, but it has always worked this way for me. -- Rob "Cpt John W. Holmes&quo

  1   2   3   4   >