?
Thanks for any help.
-- Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
issues with stream wrappers.
-- Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello everyone,
I know php time() gives the current unix time which you can format out to
a normal date and time. Is there a way to format a specific date and time
back to unix time?
Thanks for any help.
That worked just perfectly. Thank you.
-Original Message-
From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel
Brown
Sent: Monday, July 02, 2012 3:02 PM
To: Rob Weissenburger
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP Time
On Mon, Jul 2, 2012 at 4:00 PM, Rob
Can anyone tell me what I'm doing wrong here? I'm trying to get the
VASTAdTagURI field from the XML data at this url:
http://afe.specificclick.net/?l=32259t=xrnd=123456
Here's my code. (below). It works maybe 30% of the time, but most of the time
it just returns nothing from that field.
Can anyone tell me if there are folks on this list in the Northern VA area? I
need to find a freelancer who knows PHP, Javascript, and mySQL. My client
likes face-to-face meetings on occasion, so I really need someone local.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
.
Thanks again Bostjan for the help. I don't think I could have narrowed
down the problem without using the strace.
-- Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 3/26/2011 11:07 AM, Bostjan Skufca wrote:
Can you strace it's execution and see where your delay is comming from? If
you are using apache, make it create just one child and strace that one when
you generate a request.
Thanks for the advice. I installed strace on the new server, and it has
on it now though.
-- Rob
On 3/28/2011 12:08 PM, Rob Adams wrote:
On 3/26/2011 11:07 AM, Bostjan Skufca wrote:
Can you strace it's execution and see where your delay is comming
from? If
you are using apache, make it create just one child and strace that
one when
you generate a request.
Thanks
From: Bostjan Skufca bost...@a2o.si
When you say you installed php 5.3.x and then reverted to 5.2, did you
reinstall/upgrade OS and/or kernel too?
Yes. The old servers were running some version of FreeBSD. The new server is
running CentOS 5.5.
-- Rob
--
PHP General Mailing List (http
defeat. I'd really
like to figure out why this is happening. Any suggestions?
Thanks.
-- Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
-- Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a free solution out there that will enable me to take a PHP-generated
postscript output file, and dynamically, on-the-fly convert it to a PDF
document and send to the user as a download when the user clients on a link?
More description of what I'm trying to do:
1) I've got a web-page
that works. Where PHP would be handy is at the very
bottom of the script
http://www.winecarepro.com/kiosk/fast/shell/barcodemerge.ps.zip
On Mar 23, 2010, at 7:48 AM, Richard Quadling wrote:
On 23 March 2010 05:48, Jochem Maas joc...@iamjochem.com wrote:
Op 3/23/10 3:27 AM, Rob Gould schreef:
I
the browser to download the file. You can also try setting
the content-type
header('Content-type: application/postscript');
Either of the above might do the trick for you.
Regards
Peter
On 23 March 2010 22:10, Rob Gould gould...@me.com wrote:
I love the idea of using PHP to insert data
I'm not sure if I need to write a PHP for-loop to do this, or if it can all be
done in one SQL statement?
Basically, I want to copy all the barcodes from one table and put them into
another table, but only if the barcode in the first table 0, and only if the
wineid's match from table to
It appears that IE renders it's display: none in all caps while Firefox and
other browsers pass it back in lowercase. This throws off my php line of code
the is supposed to nuke blank bullets from a string of text:
$bl =
LI style=DISPLAY: none id=bullet_ug2_col5_8/LI
LI style=DISPLAY: none
You are indeed correct! Absolute URLs for everything, images, css,
javascript, and links fixed the issue. Took me forever to change
every link in the whole site, but it's happy now. Seems like there
ought to be an easier way.
On Oct 29, 2009, at 10:52 AM, Shawn McKenzie wrote:
Rob
I feel like I'm really close to a solution for the clean-url method in
htaccess. I've successfully got it now so that:
http://benchwarmersports.com/packages/basketball/2010/nba-all-star-game
maps to:
I'm trying to follow the RewriteRule docs to make it so that:
http://benchwarmersports.com/packages/super-bowl-xliv/1
can be entered into the web-browser, and it transforms into:
http://benchwarmersports.com/packages.php?title=super-bowl-xliveventid=1
The good news is that it does transform
Isn't there a way to tell the Rewrite rule to skip anything found in a
js or images subfolder?
On Oct 25, 2009, at 12:26 PM, Ashley Sheridan wrote:
On Sun, 2009-10-25 at 11:04 -0400, Rob Gould wrote:
I'm trying to follow the RewriteRule docs to make it so that:
http
I have an invoice table that is drawn on a number of pages, so I have
all the logic in an include-file like this:
include invoicetable_bottom.php;
However, now I'm needing to take the output from that include file and
pass it as an email. To do that, I need to somehow take the output
I wish I could say this works, but I'm not having success with this
pattern. All the lines with display: none are still in the $bl string.
On Aug 9, 2009, at 1:50 AM, LinuxManMikeC wrote:
li id=bullet_ug1_col2_9 style=display: list-item;Reserved
Frontstretch
Tower Ticket to the
Yay! That worked. Thanks!
On Aug 9, 2009, at 1:53 AM, Michael A. Peters wrote:
Rob Gould wrote:
I have a bunch of bullets in a list coming from a previous post,
and I need to eliminate any line from this string that contains
display: none
li id=bullet_ug1_col2_9 style=display: list-item
I have a bunch of bullets in a list coming from a previous post, and I
need to eliminate any line from this string that contains display:
none
li id=bullet_ug1_col2_9 style=display: list-item;Reserved
Frontstretch Tower Ticket to the Camping World 300 on Saturday /li
li id=bullet_2_9
Can anyone tell me if there's a PHP library out there that will help
me determine pattern sequences from a string?
Example input:
032258064516129032258064516129032258064516129032258064516129
Sequence = 032258064516129
037037037037037037037037037037037037037037037037037037037037
I have a webpage which allows people to log in and make selections
with radio buttons and hit SUBMIT and saves the data from those radio
buttons to a mySQL database.
However, I'm finding that I also need the ability to allow a user to
log back in at a later date (or even on a different
Can anyone here recommend an ISP that will let me have a dedicated
server (not shared), and also allow me to adjust the ft_min_word_len
mySQL parameter? I was originally thinking Dreamhost PS, but I
recently found out that they do not allow changes to mySQL
environmental variables. I really
the url attribute value:
foreach ($r AS $elem) {
echo $elem-getAttribute(url) . \n;
}
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to it, the underlying XML
document structure is only destroyed once all DOMNode objects that are
members of the document are destroyed as well.
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. \n\n;
}
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If I have a php script on my own server, can it be used to snatch a JPEG image
off of another server on a different domain and upload it to my server? For
example, could I provide an URL to an image on another server and a path on my
own server in which to place it? I know in the world of
to pass an URL into it to get and save to a special directory on my
server. I like your example better.
On Tuesday, December 16, 2008, at 09:41PM, Robert Cummings
rob...@interjinn.com wrote:
On Tue, 2008-12-16 at 21:29 -0500, Rob Gould wrote:
If I have a php script on my own server, can it be used
I have a mySQL database with 700,000 records in it, which are presently keyed
with an auto-increment field.
What I'd like to do is create another field with a field where each and every
record number has a unique keyvalue. Example: su5e23vlskd for records 1, and
34fdfdsglkdj4 for record 2.
update mytable set hash_field = md5(AutoIdField + unix_timestamp())
I _think_ I understand that - - - - but what does the AutoldField variable
mean?
On Monday, December 15, 2008, at 09:37PM, Bastien Koert phps...@gmail.com
wrote:
On Mon, Dec 15, 2008 at 9:29 PM, Rob Gould gould
This is somewhat complicated, so I'll try to give examples with real-
world data.
Basically, I'd like to know how I could take data like this, from mySQL:
2006
Liberty School
Central Coast, California, Central Coast, USA
Chardonnay
2006
Liberty School
Paso Robles, California, Central Coast,
Question about mySQL and PHP, when using the mySQL ORDER BY method...
Basically I've got data coming from the database where a wine
producer-name is a word like:
Château Bahans Haut-Brion
or
La Chapelle de La Mission Haut-Brion
or
Le Clarence de
/XML/1998/namespace',
'lang');
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 (though I'll keep it in mind
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
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, flag=1
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 when
when viewed in phpAdmin when browsing the table
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
(or
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 General Mailing
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
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
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
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
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 (id,
/2000/xmlns/', 'xi');
var_dump($attr);
Rob
Nathan
Per Jessen wrote:
Nathan Rixham wrote:
but assuming the above file is:
?xml version=1.0 ?
chapter xmlns:xi=http://www.w3.org/2001/XInclude;
a /
/chapter
how would one retrieve xmlns:xi=http://www.w3.org/2001/XInclude;
When you say
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? a prefix so this won't work either..
$root-lookupPrefix
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
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
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
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 (http
as it is parsed.
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__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
Colin Guthrie wrote:
snip /
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.
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
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't
find anything on the net regarding
create a
class with the one function, but that seems a wee bit messy to me.
Any ideas?
--
Rob Desbois
Eml: [EMAIL PROTECTED]
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
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 [EMAIL PROTECTED] wrote in message
news
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
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?...
--rob
On 5/22/07
with PHP will become unsuitable and when /
how often.
Thanks,
--rob
[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 container, as you called it, are delimiters
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
timezone?
Thanks!
Rob
__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
short). This has been brought up before and wont be
changing as it would break API/AB compatibility. There really is little
you can do here.
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry if this is a duplicate post, I'm new to the listserve and I'm
not sure my first message made it through
I've been trying to retro-fit sample code found at : http://
www.sitepoint.com/article/php-xml-parsing-rss-1-0 to parse XML coming
from a server.
I'm sooo close to getting
off-list.
- Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ok, well at least I'm honing in on the problems now. I appears that
my ISP is only running php 4.4.4.
So back in the PHP 4-days, what was the preferred method of doing
such things?
- Rob
On Mar 8, 2007, at 3:13 PM, Ben Ramsey wrote:
On 3/8/07 2:59 PM, Rob Gould wrote:
1) Read XML
in the
outside world.
- Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
($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
Ben Roberts wrote:
Thanks Rob. That works. And it appears to work flawlessly if you
subsequently convert it back to a SimpleXML object too:
$xml = new SimpleXMLElement($xml_file, 0, true);
$dom = dom_import_simplexml($xml);
$dom-ownerDocument-xinclude();
$xml = simplexml_import_dom($dom
, it is the smallest piece of
code I could write to demonstrate the possibility.
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
elem key=peterThis is Peter/elem
elem key=samThis is Sam/elem
elem key=mikeThis is Mike/elem
/doc
EOXML;
$dom = new DOMDocument();
$dom-loadXML($xml);
if ($elem = $dom-getElementByID(sam)) {
print $elem-textContent;
} else {
print Element not found;
}
Rob
('DOMText','MyDOMNode');
...
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Eli wrote:
Rob Richards wrote:
Due to the internals of the DOM extension, you need to register the
class types that are actually instantiated and not the underlying base
DOMNode class. Unfortunately in your case this means you need to
register all of those classes separately.
$dom
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
is
excluded from this statement) so not sure exactly what you are trying to
do here or running into. Are you just trying to serialize a DOMDocument?
root / is a perfectly well-formed document (though inclusion of xml
declaration is *highly* recommended).
Rob
--
PHP General Mailing List (http
would need to use the XML serialization routines,
which would most likely change the structure of your document (it would
be XHTML compliant now).
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
);
}
}
}
}
$root = $dom-documentElement;
checkElement($root);
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP?
Thanks for any advice
Rob Smith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
C:\wamp\www\scripts\ad_finder\display_class.php on line 10
If I change Y to C
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 wrote
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 that it might have something
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 please
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 Mailing List (http://www.php.net/)
To unsubscribe, visit: http
)...?
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
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 content...
Try
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
; charset=UTF-8/
If you add the content to a 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
[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 call:
$doc-saveXML($node);
Rob
[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 correct attributes
(208.107.101.135):SA:0(-1.9/4.5):. Processed in 3.519899 secs
Process 86212)
Received: from host-135-101-107-208.midco.net (HELO rob)
([EMAIL PROTECTED]@208.107.101.135) by mail.fiberuplink.com with SMTP;
20 Jun 2006 23:46:52 -
Message-ID: [EMAIL PROTECTED]
From: Rob W. [EMAIL PROTECTED]
To: [EMAIL PROTECTED
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]
To: php-general@lists.php.net
Sent: Monday
1 - 100 of 386 matches
Mail list logo