plorer).
I don't know why this problem exist, can you solve this problem for us?
Contact me by: [EMAIL PROTECTED]; (86)755-27232311->samuel
Best regards
Thanks.
Samuel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
plorer).
I don't know why this problem exist, can you solve this problem for us?
Contact me by: [EMAIL PROTECTED]; (86)755-27232311->samuel
Best regards
Thanks.
Samuel
begin 666 1.php
M/#\*"65C:&\@(G-T87)T:6YG(CL@"@EE8VAO("+?7" B.R *"65C:&\@(M
ffected by preg_replace(). But if I break
$foo into multiple lines like ->
$foo = '
';
It works...
Any tips would be appreciated...
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s
the same (verified by the file name in /tmp and cookie manager in mozilla).
My question is, even though the session contains no data after its
destroyed, should the session id remain the same, after logging out,
or should another be assigned when session_start() is called after the
redirect?
session it will get used again, or at least I think that is what is
happening :)
This should not be a problem as the data associated with the old session is
gone.
If that is the case, then the setcookie() call to destroy the clien't
cookie probably isn't neccessary.
If you close the brow
ter = nocache
; Document expires after n minutes.
session.cache_expire = 180
; use transient sid support if enabled by compiling with --enable-trans-sid.
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
--
Gerard Samuel
http://www.trin
ookie is still good,
the next page load logs me back in.
How do the people who use sessions handle this type of scenario??
Thanks for any insight you may provide...
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubs
scenario??
GS> Thanks for any insight you may provide...
GS> --
GS> Gerard Samuel
GS> http://www.trini0.org:81/
GS> http://dev.trini0.org:81/
Do your own session timing by storing a last access time in sessions and check
the duration yourself, if it is over the timeout you want dele
expired. Maybe I'm just missing something here. If it's expired because
you think it's too old, then you track your own timestamps and do your
own cleanup. Is that what you're saying?
---John Holmes...
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.or
TED] or [EMAIL PROTECTED]
Thanks for any insight you may provide...
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I was wondering, if for example, an AOL user browses your site that uses
php sessions,
do the session ids change when they hop ip addresses?
Im looking for a better way to counteract AOL's ip jumping.
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP Ge
ly represents my personal
experience,
with the ip address jumping phenomena.
Mark Charette wrote:
From: Gerard Samuel [mailto:[EMAIL PROTECTED]
I was wondering, if for example, an AOL user browses your site that uses
php sessions,
do the session ids change when they hop ip addresses?
No. Sessio
ot;', '', $var) and that worked.
Any idea as to why stripslashes would not remove the slashes in the string?
Thanks for any input.
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I figured out the problem. magic_quotes_sybase was turned on, on the
IIS box.
All is well with stripslashes() again.
Chris Wesley wrote:
On Wed, 8 Jan 2003, Gerard Samuel wrote:
http://www.apache.org/\"; target=\"_blank\">
When trying to apply stripslashes, the slash
the syntax of
$foo is in ->
$foo = '#\[this\](.*?)that#';
The second syntax of $foo works. I was wondering on the meaning of # in
the string??
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
should be by default:
$foo = '/\[this\](.*?)that/';
the code you tried uses # as the delimiter instead of /, an option preg_*
allows
Take care,
Greg
--
phpDocumentor
http://www.phpdoc.org
"Gerard Samuel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news
n, and so preg_* was trying to read "url\]/"
as closing information, and probably giving an odd error about "u" not being
appropriate
that's why # worked, because there were no other # in the string.
Hope that answers the question (properly this time!)
Take care,
Greg
wser
the session still hangs around. Is there something I don't know about
sessions? I have read the documentation on the session_destroy function, I
don't think that I am missing anything...
Anyone have any suggestions? I am totally confused.
Thanks
Ken
--
Gerard Samuel
http:/
#x27;', $foo);
$bar = preg_replace('/()([\'])(<\/title>)/', '$1' . ''' .
'$3', $foo);
echo $bar;
?>
Im trying the 2nd way, because I want to only do this clean up between
certain tags..
Thanks for any help you may provide.
--
Ger
I'm using the following code to parse the structure of the mail messages,
function parse($structure)
{
global $type;
global $encoding;
// create an array to hold message sections
$ret = array();
// split structure into parts
$parts = $structure->parts;
/*
iterate through parts
and create an arra
e tried it under php 4.2.3 and 4.3.0 on FreeBSD/Apache and WinXP/Apache.
Any suggestions would be appreciated.
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
behaviour?
Are there any alternatives to using session_cache_limiter() that is
friendly with all browsers?
Any pointers would be appreciated.
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
Has anyone noticed that different port numbers creates additional
session ids?
So if someone is browsing the site, and the remote port number changes,
additional sessions are created...
Is this the expected behaviour???
www.xxx.yyy.zz,3941
www.xxx.yyy.zz,3940
--
Gerard Samuel
http://www.trini0
utput_handler =
---
Example script ->
ob_start("ob_gzhandler");
?>
This should be a compressed page.
-
Error reported ->
This should be a compressed page.
Warning: (null)() [ref.outcontrol]: output handler &
already started.
You may want additional logic that checks to see if the output buffer
hander is ob_gzhandler.
Jsaon
--
Gerard Samuel
http://www.trini0.org:81/
http://test1.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ks by
resending real-life's request, but couldn't find one. Is there such a tool?
Thanks,
Arpi
--
Gerard Samuel
http://www.trini0.org:81/
http://test1.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e know what could be causing this type of behaviour??
Any help would be appreciated.
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://test1.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed to session_unregister it.
Gerard Samuel wrote:
Got a problem thats baffling me.
I have a form that includes a file that starts a session.
Creating sessions are no problem, but deleting the session variable
is not working as its supposed to.
Sudo code ->
include('some_file.php'); // Th
The upload process, already collects info on file types when you upload.
From the manual ->
$_FILES['userfile']['type']
The mime type of the file, if the browser provided this
information. An example would be "image/gif".
So, check $_FILES['userfile']['type'] against a set of allowed file
David Otton wrote:
$_FILES['userfile']['type']
The mime type of the file, if the browser provided this
information. An example would be "image/gif".
So, check $_FILES['userfile']['type'] against a set of allowed file
types, and you're set...
A client-supplied value isn't going
Gerard Samuel wrote:
A client-supplied value isn't going to be too useful - it can be
spoofed, or
may not be present. (I believe a Windows browser would set the mime-type
based purely on the file extension, though I haven't tested this
myself).
Then my apologies. I thought php dete
A bit off topic
Im trying to figure out how to convert BigEndian byte words to integers.
For example ->
0 0 0 18 = 18
The only way I know how to convert this is by writing down on paper, and
writing 8 4 2 1 above the numbers and adding up the values.
Trying to figure out a way via plain old mat
Thank you for your reply.
A little background on what Im doing with file uploading.
1. Im allowing registered users to upload avatars for their own usage.
2. Im allowing image uploading for submitted articles by certain
registered users.
3. And Im currently constructing a media gallery, where i
Marek Kilimajer wrote:
http://www.php.net/pack
A little background on what Im doing. Im attempting to read realaudio
files for their metadata, so Im reading from a binary string,
and Im currently using unpack() (Im new to using this function, so I may
be wrong with its usage) to unpack the da
Joel Rees wrote:
Just in case you're still groggy when you wake up this morning, the page
for pack() lists an 'N' format for unsigned long big endian byte order
for pack() and unpack(). I think what you probably want to do most is
use the 'N' format when you unpack.
(The other responses were amusi
Tom Rogers wrote:
Trying to use unpack by itself on large binary streams with variable packet
sizes and content buried in them can become a nightmare. Try to
unscramble an excel file using unpack() :)
Yeah, not exactly the most exciting thing to do. As long as I have some
specs on the format, it
Has anyone had any success with using variables in a regex shown below??
$foo = 3;
$bar = 4;
preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{$foo, $bar}$/', $some_string)
or even
preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/',
$some_string)
but this would work
preg_match('/^[a-z0-9
Curt Zirzow wrote:
Gerard Samuel <[EMAIL PROTECTED]> wrote:
or even
preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/',
$some_string)
that should work.
Unfortunately it doesn't for some reason. Don't know why.
but you c
Is it possible to *gracefully* recover from php timing out?
For example, uploading a large file, and php times out, so display "Oops
Timed out"
This also assumes that we have no means of changing php's time out value??
Thanks for your comments..
--
PHP General Mailing List (http://www.php.net/)
Sorry for bring this back to life, but Im looking for some more opinions.
A friend and I are somewhat dead locked, as to whether with available
tools via php, that its possible to *reliably* secure file uploads.
File uploads currently encompass, images, mp3, real audio files,
with plans for ogg vo
Jason Wong wrote:
In a response to your previous posts on this matter, I suggested that you
search freshmeat/sourceforge for a PHP-based media file metadata extractor
(yes one does exist). I'm putting forward the same suggestion again.
Ok, Ill look, but not sure what good it will do me, as Im
Im looking for links to tutorials, or if someone can post code here,
where php
can be used to query a form, so that I can retrieve its results.
Thanks for any pointers...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ul 30, 2003, "Gerard Samuel" claimed that:
|Im looking for links to tutorials, or if someone can post code here,
|where php
|can be used to query a form, so that I can retrieve its results.
|Thanks for any pointers...
How about some of these?
http://www.google.com/search?hl=en&ie=UTF-8&
David Nicholson wrote:
You can either use the cUrl functions:
http://uk2.php.net/curl
or if this is not an option to you, you can use the socket
functions:
http://uk2.php.net/manual/en/ref.network.php
but you will have to deal with sending the HTTP request yourself
(which is not very complicated
How would you best describe a session id as a regex?
[a-z0-9]{32}
Just checking to see if any other characters can be in a session id.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What would be the quickest, most reliable means to convert an
associative array to a numeric array.
Running an implode()/explode() combination comes to mind, but
reliablity can be questioned when it comes to deciding a delimiter, since,
the data can possibly contain any character.
Any suggestions
Are there any issues, or has anyone have any problems installing PHP5
with IIS 5?
Following the install directions from the manual, always results with
a 404 error when trying to view a php file.
I have no problems with installing PHP 4.3.3R2 with IIS 5, so Im not
sure if there
are any issues wit
Excellent. Thanks.
Greg Beaver wrote:
$num = array_values($assoc);
Regards,
Greg
--
phpDocumentor
http://www.phpdoc.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Sheets wrote:
On cavaeat is with CGI PHP can execute as the owner of the script,
with mod_php it executes as the web server.
IMHO, the biggest difference between the two as far as security is
concerned in favour for CGI.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Im trying to pull the Mozilla version and *possibly* the MSIE x.xx
string out $_SERVER['HTTP_USER_AGENT']
If I did this correctly, (MSIE\s\d\.\d{1,2})? should mean that if its
there pull it out, else move on, since its not there.
When viewing this script via a windows browser, it doesn't match th
True, but since the code is being run by 3rd parties, I don't have a
guarantee that
the browsecap.ini file is available on the server.
Monty wrote:
Maybe it might be easier to just use the get_browser() function:
http://www.php.net/manual/en/function.get-browser.php
Monty
--
PHP General Mai
Searching through the archives, most people are running away from
caching php scripts.
Im trying to do the opposite.
I have a script that fetches css files. Im trying to add header() calls
to it so
that browsers can cache it like a normal css file.
This is what I have at the top of the file ->
-
Gerard Samuel wrote:
Searching through the archives, most people are running away from
caching php scripts.
Im trying to do the opposite.
I have a script that fetches css files. Im trying to add header()
calls to it so
that browsers can cache it like a normal css file.
This is what I have at
This is actually more an sql questions. ;-) Take a look at Joins in
sql. Should be something like the following:
SELECT mesg.id, mesg.mid, memb.nick
FROM bt_message mesg, bt_member memb
WHERE mesg.ch='$ch' AND memb.id=mesg.mid
Erick wrote:
$resultb = mysql_query("SELECT id,mid FROM bt_message
Im assuming you are running mozilla 1.3.x
Its not a php issue but a mozilla bug, that I've experienced first hand
http://bugzilla.mozilla.org/show_bug.cgi?id=202210
deno vichas wrote:
i'm runnig into a random problem of having all the headers being
displayed instead on the actual web page in mozi
Because some of us, work directly on the server, instead of modifying
files, then uploading to the server to test :)
electroteque wrote:
boy how painfully dweebish is vi why make it harder for yourself :O
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
I have a class method that does one thing and one thing only.
Escape characters before going to the DB.
Part of it is ->
if (!get_magic_quotes_gpc())
{
$string = pg_escape_string( $string );
}
return "'" . $string . "'";
In everyday get/post operation it seems to work flawlessly.
I've come acro
Im trying to pass an object into functions and class methods, and for some
reason, Im unable to access the object's methods.
When I var_dump() the object, its a valid object with the function or
class method.
When I check via get_class_methods, all the methods are there, from
within the function
First of all, I have nearly no idea as to how to interpret binary data.
But Im attempting to parse binary data for file metadata information
(like mp3 files).
Concerning unpack(), I can across this link from the notes in the manual ->
http://fooassociates.com/phpfer/html/rn45re877.html
This has s
I have a string something like ->
<[TIT2]> ABC <[TPE1]> GHI <[TALB]> XYZ
Im applying a regex as such ->
// Title/Songname/Content
preg_match('/<\[TIT2\]>(.*?)(<\[)?/', $foo, $match);
$title = trim( $match[1] );
The above regex doesn't work. At the end of the pattern Im using (<\[)?
The pattern may
PHP 4 >= 4.3.2
D. R. Hansen wrote:
I am getting a "Call to undefined function" when invoking
session_regenerate_id().
No typos -- I've checked.
Fatal error: Call to undefined function: session_regenerate_id() in
/path_to_my_script/resetsession.php3 on line 5
Running PHP 4.3.1 on RH 8.0 and A
sven wrote:
looks like id3v2 ;-)
how about this:
$string = "<[TIT2]> ABC <[TPE1]> GHI <[TALB]> XYZ";
$pattern = "/<\[TIT2\]>([^<]*)/"; // matches anything exept '<'; till '<' or
end of string
preg_match($pattern, $string, $match);
var_export($match);
Yeah, Im trying to figure out a way to parse t
may provide...
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A philosophical question
Are there any standards to naming variables??
I was told that one should include a letter or combination of letters to
describe a variable
i.e.
$sfoo = 'string'; // string
$bfoo = true; // bool
$nfoo = 10; // interger
etc
Thanks
--
Gerard S
playing, I get an empty page,
instead of the expected error page or the page hangs, depending on the
browser.
Has anyone gotten both forms of output control to work together without
ill side effects??
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP Gener
o $msg;
>exit();
>}
>
>can you tell us a bit more concerning the way you handle the exit of your
>program ?
>
>regards
>
>Eric
>
>
>
>"Gerard Samuel" <[EMAIL PROTECTED]> a écrit dans le message de news:
>[EMAIL PROTECTED]
>
>
>&g
; echo "$foo";
> }
> ?>
>
>Rendering only "6". That's it. Just "6". What am I missing here?
>
>
>
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
py_length = 0
> session.entropy_length = 32
>
> ; Specified here to create the session id.
> ;session.entropy_file =
> session.entropy_file = /dev/urandom
>
> ; Set to {nocache,private,public} to determine HTTP caching aspects.
> session.cache_limiter = nocache
>
> ; Document
And I feel foolish asking...
What is meant by 'procedural code' ???
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ot; answer :)
>
> Try Google. Type:
>
> "procedural code"
>
> You might want to check,
>
> "object-oriented"
>
> as well...
>
> I'm sure, you'll find helpful explanations...
>
> - E
>
>>
>> And I feel foolish
gt;
>
>and
>
><http://www.wdvl.com/Authoring/DB/SQL/BeginSQL/beginSQL2_2.html>
>
>There may be other contexts that the term "procedural" could be used
>in, and if so it may have other meanings that I am not aware of
>
>
>
>
--
Gerard Samue
tr);
?>
Any help would be appreciated.
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
}
..
}
// class constructor here
...
$class->outside_data($php);
?>
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ut it.
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oes anyone know when paths contain double slashes on a w2k box, so that
I can anticipate for them??
Thanks for any insight you may provide.
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
e manual will give it to you.
>
> Oh, also, you cannot disable this per script, because the slashes are
> added perior to the data being given to PHP, hence prior to your
> script's execution.
>
> Happy hacking.
>
> Chris
>
> Gerard Samuel wrote:
>
>> A fe
;Reset'] ))
{
if (!unlink($log))
{
trigger_error('UNABLETORESETLOGFILE' , E_USER_WARNING );
}
}
Can anyone shed any light for me.
Thanks for any insight you may provide.
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.or
;Notice: Undefined variable: varone in c:\apache\htdocs\testphp1.php on
>line 8
>the first variable is
>Notice: Undefined variable: vartwo in c:\apache\htdocs\testphp1.php on
>line 9
>the second variable is
>***
&g
> http://www.fourthrealm.com
> Tel: 519-739-1652
> - - - - - - - - - - - - - - - - - - - - -
>
>
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;Guantánamo"
Could my regex be expanded to handle non-english type characters, or any
workarounds to get a string into an array of words,
where the string contains non english characters??
Thanks
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mail
es to on a linux box?
Brandon Orther
WebIntellects Design/Development Manager
<mailto:brandon@;webintellects.com> [EMAIL PROTECTED]
800-994-6364
<http://www.webintellects.com/> www.webintellects.com
----
--
Ger
tributes)
{
echo 'Opening tag: ' . $tag . "\n";
}
function ending_tag($xmlparser, $tag)
{
echo 'Ending tag: ' . $tag . "\n";
}
function character_handler($xmlparser, $data)
{
echo 'Data --> ' . $data . &
This is not meant to put down the php/xml combo. Just putting down my 2
cents from my experience
thus far, into the archive for anyone else looking for info.
I just started getting deep into parsing xml yesterday, and the dust has
just begun to settle.
Im parsing rss files versions 0.91 - 2.0 j
$bar_object->do_something();
}
Thanks for your thoughts...
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
vices look pretty decent.
http://www.geobytes.com
http://www.serviceobjects.com/products/dots_ipgeo.asp
Thanks for any input,
olinux
__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
--
Gerard Samuel
http://www.t
ale
W: www.depannekoekendekale.nl
"Gerard Samuel" <[EMAIL PROTECTED]> schreef in bericht
news:3DC54436.2090803@;trini0.org...
Something I just thought of about using global in a function.
Mostly I global objects in a function like ->
function foo()
{
global $bar_object;
$bar_object->do_s
t)
My dummy script is able to to recieve a +OK from the pop3 server but the
other file is getting an empty string.
Is there a difference between 1 and 38??
Thanks...
---
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsub
rying to do, (I have no experience
with this), is it correct to assume, that with each attempt to talk to
the server,
a new connection must be made to read data from it??
If you want more info, feel free to ask...
Thanks
Gerard Samuel wrote:
Im debugging a script that opens a connection to a
different PHP platforms.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
og($msg, 3, './error/error.log');
if ($exit === TRUE) exit;
}
When I trigger and error with E_USER_ERROR, it executes error_display()
but it continues to display the rest of the content for the page.
I thought E_USER_ERROR stops execution of the script.
Thanks for any input.
--
G
Im trying to modify a script that fetches rss newfeeds.
I was using fopen, but I decided to use fsockopen() for the timeout value.
--
---
Does anyone see anything wrong with this code??
Thanks
--
Gerard Samuel
http://www.trini0.org:81
Oh I forgot to mention that its not writing any content to the cache file...
Gerard Samuel wrote:
> Im trying to modify a script that fetches rss newfeeds.
> I was using fopen, but I decided to use fsockopen() for the timeout
> value.
> --
> $data =
_once("Benchmark/Timer.php");|
Warning: Failed opening 'Benchmark/Timer.php' for inclusion
(include_path='.:/usr/local/lib/php')
Also on a side note, I dont know much about benchmarking utilities, but
what else is out there for windows/bsd??
Thanks
--
Gerard Samuel
http://w
ston wrote:
>I added a comment to the FAQ:
>http://www.php.net/manual/en/function.date.php
>
>
>
>
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
f
>inaccurate reporting - the degree of error will be dependant on the
>method chosen.
>
>CYA, Dave
>
>
>
>
>
>
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
constructor
>function One
>{
>$this->two = new Two;
>$this->test = $this->two->test();
>}
>}
>
>Can you do that? If so is that how you do it?
>
>Thanks.
>
>
>
>
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
orks ok, its the first one I cannot figure out.
It is supposed to contain alpha numeric characters and '_' and '-'.
Thanks for any input.
--
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Well Ive gotten
(.*)
and
([a-z]*[0-9]*_*-*)
to work thus far as the first group.
I would like to avoid option 1, and option 2 doesn't seem right
Gerard Samuel wrote:
> Im expecting a string like foo.png.
> Im trying to replace 'foo' with another value that I h
re than one.
$str = 'should';
this('This %s work', $str); // work
$str = 'is, a';
this('This %s just %s test', $str); // doesn't work
So I guess, arguments passed to it has to be physical arguments, and not
represented in a string.
Am I bangi
Well I figured out a solution. Using a combination of explode() to
create an array from $bar,
check to see if $bar is an array and
feed the array to vprintf()
Gerard Samuel wrote:
> Im trying to make a dynamic printf().
> By that I mean ->
>
> function this($foo, $bar)
>
1 - 100 of 526 matches
Mail list logo