First of all you should go to:
http://www.google-is-my-best-friend.com
Then
http://www.google.com.au/search?hl=en&q=%22call+same+page%22+%2B+php
Found in the comments:
http://www.zend.com/zend/spotlight/code-gallery-wade7.php?article=code-gallery-wade7&kind=sl&id=3324&open=1&anc=0&view=1
--
I'm currently trying to develop a simple CMS system for folks to use on
their web sites.
Thanks to all the great people on this list I've learned a lot about
securing php, especially
along the lines of never trust anything you get from the user.
So far I've been able to verify, allow, deny data
Hello again,
Before I say anything else, Jaap and Casey, thanks for your feedback on
our site design. I was laughing while I read it because I tend to agree
with pretty much everything you mentioned. I don't know if I will "sack
the design staff," but I'll see what I can do.
Meanwhile, site
Richard Lynch wrote:
>On Thu, July 7, 2005 12:53 pm, Bjarke Freund-Hansen said:
>
>
>>>You can't serialize resource objects. Try:
>>>
>>>serialize($res->fetch_assoc());
>>>
>>>
>>I know I can serialize the array fetch_assoc returns, but I really need to
>>serialize a mysqli_result, so I ca
On Thu, 2005-07-07 at 23:46, Graham Anderson wrote:
> thank Robert :)
>
> I ran the script and got:
> Warning: ereg(): REG_BADRPT on line 6 which is in the ereg function
>
>
> do you know what it could be ?
>
> will woodshed a bit on ereg
> g
> On Jul 7, 2005, at 6:51 PM, Robert Cummings wrote:
On Jul 7, 2005, at 10:17 PM, Bruno B B Magalhães wrote:
Hi Edward,
thanks for replying!
[snip]
Why 1976, because it's a leap year and is between valid range for
windows systems.
Let me try to explain the rest.
First I get the input year... which by the way is working fine here...
preg_
Just a quick fix, as now I've tested in a real environment, with a
real application, and now it's working 100%, well, I think so.
/
*
* Stritotime workaround for dates before 1970 and after 2038
***
thank Robert :)
I ran the script and got:
Warning: ereg(): REG_BADRPT on line 6 which is in the ereg function
do you know what it could be ?
will woodshed a bit on ereg
g
On Jul 7, 2005, at 6:51 PM, Robert Cummings wrote:
$html = file(
'http://www.gamespot.com/pc/rpg/guildwars/screens.html?p
Hi Edward,
thanks for replying!
On Jul 7, 2005, at 10:44 PM, Edward Vermillion wrote:
One problem is that there's no accounting for leap years, but I
don't know if that's gonna cause you any problems or not.
Course it have, when we multiply the year offset by 31557376.189582
we are using t
On Jul 7, 2005, at 7:54 PM, Bruno B B Magalhães wrote:
Hi Folks,
Well I think I got it, at least it's working more or less to me now...
I really would appreciate any comments or suggestions.
function str2time($input = '12/31/1969')
{
if(($output = strtotime($input)) !== -1)
I am trying to use php to pull an url out of an html page
If I have an html page that is being 'fread' and the html source
contains the below
and, I want to get the image:
http://image.com.com/gamespot/images/2005/132/
914653_20050513_screen006.jpg
class="spacer6"> src="http://image
This should be pretty simple but I cant find any info on it at the
site. I am writing a function that will create a anchor, but I want it
to call the same page it is on. Is there a way to get the current php
page I am on so that when I output my anchor for that correct page.
so if I call it from i
Hi Folks,
Well I think I got it, at least it's working more or less to me now...
I really would appreciate any comments or suggestions.
function str2time($input = '12/31/1969')
{
if(($output = strtotime($input)) !== -1)
{
return $output;
}
else
affid upline sponsor
1 0 0
2 1 1
3 1 1
4 2 1
5 2 2
6 3 1
7 3 1
8 4 1
9 4 1
10 5 1
i have table with field and data like
Hi Richard,
Well, I took a look at, and I think it is TOO complex to handler a
simple thing..
Well, that's my little contribution:
function str2time($input = '12/31/1969')
{
$year= substr($input, -4);
$input= substr_replace($input, 1976 , -4);
return
On 07/07/2005 at 14:23 Richard Lynch wrote:
>
>Aha!
>
>Since your output has an extra '$' after the $apr and before the
>1$n0/. I'm gonna go out on a limb and suggest you probably shouldn't
>add the '$' to the front of your salt.
>
>You're adding it, and crypt() is adding it, and you've got to
Hi all
I am trying to set the last modified date/time of individual files in a zip
file.
According to the specification (http://www.pkware.com/appnote.txt), date/time
are two bytes each, and use standard msdos date/time encoding.
Does anybody have a clue to this?
With kind regards
Andy
-
On Thu, July 7, 2005 2:50 am, Javier said:
> On 05/07/2005 at 14:04 sylikc wrote:
>>
>>For MD5 passwords though, it's a little different and not documented
>>as thoroughly...
>>3) Extract crypt salt from the $crypthash
>>$cryptsalt = '$'.substr($crypthash,4,11);
>
> Thanks for your help.
>
>
On Thu, July 7, 2005 4:14 am, Thorsten Friedrich said:
> because of the fact that i´ll never see if the write-session-function is
>
> called i´ve placed a write-a-log-to-disk function in all session-function
> to
>
> see if they are called.
What are these write-a-log-to-disk functions outputting?
On Thu, July 7, 2005 7:13 am, Murilo Opsfelder Araújo said:
> Hi all,
>
> I'm trying compile the PHP for work with Oracle Server.
> When I try the comand:
>
> # rpm -ba php.spec
>
> I get the following error message:
>
> checking if the location of ZLIB install directory is defined... no
> configur
On Thu, July 7, 2005 10:34 am, Lenka, Bibhu Kalyan said:
> Hi, I am new to forum ,It may look as a simple problem, but I am not
> able to solve this.
> In following code , I have hard coded the path while setting cookie, now
> how I read it through PHP ?
>
> echo("cookie value name is : $name"); //
On Thu, July 7, 2005 12:32 pm, Bagus Nugroho said:
> How about, if we need several pictures from several record?
You can create a page of HTML that has IMG tags, and each IMG tag can call
ANOTHER php script that sends out one, and only one, image.
You'll never ever get two images crammed into a s
On Thu, July 7, 2005 12:53 pm, Bjarke Freund-Hansen said:
>>You can't serialize resource objects. Try:
>>
>>serialize($res->fetch_assoc());
>>
>>
> I know I can serialize the array fetch_assoc returns, but I really need to
> serialize a mysqli_result, so I can feed it to any function expecting a
>
Hi.
I'm having a problem serializing a mysqli_result object, the serialized
string contains only an empty object.
The code is as following:
$sql = new Mysqli("localhost", "user", "pass", "database");
$res = $sql->query("SELECT * FROM xxx WHERE `id` = 1");
print_r($res->fetch_assoc());
echo "\n"
Hi
Evert|Collab wrote:
>You can't serialize resource objects. Try:
>
>serialize($res->fetch_assoc());
>
>
I know I can serialize the array fetch_assoc returns, but I really need to
serialize a mysqli_result, so I can feed it to any function expecting a
mysqli_result.
Are there any alternativ
Hi everyone, currently I have a site hosted with Powweb and suffice it
to say, it's not good, so I wanted to get everyone's opinion here on
iPowerWeb? Or can you recommend another ISP that you swear by which has
similar features http://www.ipowerweb.com/products/webhosting/index.html
Thanks people
How about, if we need several pictures from several record?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 8:19 PM
To: Bagus Nugroho
Subject: Re: [PHP] RE: Display picture from MySQL
you're trying to set your content-type header every
Hello Bruno,
Thursday, July 7, 2005, 7:04:44 PM, you wrote:
BBBM> I've read the manual, and the ADOdb Date package functions, and
BBBM> I am not using this because I want to keep my framework simple,
BBBM> flexible, and fast.
BBBM> Well, I just want a simple way to translate dates (I know what
B
Well,
I've read the manual, and the ADOdb Date package functions, and I am
not using this because I want to keep my framework simple, flexible,
and fast.
Well, I just want a simple way to translate dates (I know what is the
input format) to unix timestamp, with ability to do this with dat
Do a search on the php website or the php offline manual for "Pattern Syntax"
-Original Message-
From: janbro [mailto:[EMAIL PROTECTED]
Sent: 07 July 2005 15:30
To: php-general@lists.php.net
Subject: [PHP] Question to eregi Syntax
*
This e-mail has b
Just for information preg_match is 4-5 times more faster.
regards
david
Le Thu, 07 Jul 2005 19:26:32 +0200, M. Sokolewicz <[EMAIL PROTECTED]> a
écrit:
Philip Hallstrom wrote:
janbro wrote:
Hi List,
my research hasn't turned anything useful up.
Probably 'cause I don't have enough info
Hi, I am new to forum ,It may look as a simple problem, but I am not
able to solve this.
In following code , I have hard coded the path while setting cookie, now
how I read it through PHP ?
echo("cookie value name is : $name"); // this do not return anything.
Thanks,
Bibhu
IWIN
We stopped using OUTPUT parameters with PEAR because of this limitation.
I could never figure out how to get it to work. We use SQL Server, and
the OUTPUT parameters do infact work with the generic mssql functions in
PHP. Best of luck.
Nate Tobik
(412)661-5700 x206
VigilantMinds
-Original M
Hi,
On 7/6/05, Ross <[EMAIL PROTECTED]> wrote:
> I have been using empty in forms for some time now. but have just discovered
> that
>
> PHP 4 As of PHP 4, The string value "0" is considered empty.
>
>
>
>
> Is there an alternative that will just check for empty strings. I suppose I
> c
Philip Hallstrom wrote:
janbro wrote:
Hi List,
my research hasn't turned anything useful up.
Probably 'cause I don't have enough info.
I've been playing around with the ereg function.
What I was wondering is what is the ^ for like
in the below example?
ereg('[^[:space:]a-zA-Z0-9_.-]{1,}',
janbro wrote:
Hi List,
my research hasn't turned anything useful up.
Probably 'cause I don't have enough info.
I've been playing around with the ereg function.
What I was wondering is what is the ^ for like
in the below example?
ereg('[^[:space:]a-zA-Z0-9_.-]{1,}', $name)
thx
janbro
it deno
Hi Richard,
On Jul 5, 2005, at 6:20 PM, Richard Lynch wrote:
On Mon, July 4, 2005 6:48 pm, Bruno B B Magalhães said:
For example I have a brazilian zipcode witch is stored in database as
Is she a Good Witch, or a Bad Witch? :-)
Ups, hehehehe!
22252970 and must be formatted as N-NNN, w
I've tried google and also the PEAR documentation but I can't
figure out how to run a stored procedure that uses an OUTPUT
parameter. I keep getting an error saying that the variable used
as the OUTPUT parameter must be declared. But how can I
declare it using PEAR?
Has anyone run across this? I
Hey Richard,
Thanks, you've pulled my butt outa the fire again :-)
Cheers,
Ryan
On 7/6/2005 10:59:36 PM, Richard Lynch ([EMAIL PROTECTED]) wrote:
> On Wed, July 6, 2005 12:07 pm, Ryan A said:
> >
> I'm confused, this should give me the age as 17 instead of 16...but it
> > does
> > not...any idea
Philip Hallstrom wrote:
of leap years between the two dates. Leap years occur every 4 years,
and 17 / 4 = 4.25, so there were 4 leap years between 7/6/88 and
7/6/05 and
Just to nitpick... :-)
http://en.wikipedia.org/wiki/Leap_year
The Gregorian calendar adds an extra day to February, maki
thx, that's what I've figured. but looking for ^ with any
search engine won't give you anything useful.
thx
JaNbro
M. Sokolewicz schrieb:
janbro wrote:
Hi List,
my research hasn't turned anything useful up.
Probably 'cause I don't have enough info.
I've been playing around with the ereg funct
janbro wrote:
Hi List,
my research hasn't turned anything useful up.
Probably 'cause I don't have enough info.
I've been playing around with the ereg function.
What I was wondering is what is the ^ for like
in the below example?
ereg('[^[:space:]a-zA-Z0-9_.-]{1,}', $name)
thx
janbro
it deno
See the >>> below.
You can't send ANYTHING before header()
Miles
At 10:09 AM 7/7/2005, Bagus Nugroho wrote:
Hi,
Firstly, thanks for your advise.
But, it doesn't work if combine with text or if we need display more than
one record.
Here's my code :
mysql_connect("localhost","root","pa
Hi List,
my research hasn't turned anything useful up.
Probably 'cause I don't have enough info.
I've been playing around with the ereg function.
What I was wondering is what is the ^ for like
in the below example?
ereg('[^[:space:]a-zA-Z0-9_.-]{1,}', $name)
thx
janbro
--
PHP General Mai
Hi all,
I'm trying compile the PHP for work with Oracle Server.
When I try the comand:
# rpm -ba php.spec
I get the following error message:
checking if the location of ZLIB install directory is defined... no
configure: error: Cannot find libz
Have anyone any suggestions?
--
-
Hi,
Firstly, thanks for your advise.
But, it doesn't work if combine with text or if we need display more than one
record.
Here's my code :
It was displayed several record from $line[lotID], the followed information
like this :
Cannot modify header information - headers already sent by
and
Before I get too deep in building something, has anyone done any
devel;opment on a soap client for the USA Copyright Clearance Center's
Gateway webservice?
MTIA
George in Oxford
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, i´ve a strange Problem with the session_set_save_handler-Function.
Firt of all my config:
in my intranet i´m using 2 servers
the first server is the db-server running mysql v. 12.22 dist 4.0.24
the second server is the webserver
running apache2 Linux apache 2.6.5-7.147-smp running
and is
On 6 Jul 2005, at 23:02, Richard Lynch wrote:
I suppose I should go read some documentation about what sapi_apache2
actually means/does... Nah. I won't have time to play with it
anyway.
Why torture myself?
I'll send you a beer? :)
My current theory, with no supporting evidence whatsoev
On 05/07/2005 at 14:04 sylikc wrote:
>
>
>For MD5 passwords though, it's a little different and not documented
>as thoroughly...
>
>1) First check your constant CRYPT_MD5... if you don't have it in your
>PHP, this won't work...
>if (CRYPT_MD5 == 1) { echo 'PHP supports MD5-crypt'; }
>
>2) Assuming
;Y
èuH8§±xoS$ìû~¡å3ÊGªu´(B m?õ¦%aÏõi!
.êZl\ñþWïôÕKßaY¾ÏÅñOS1MÊ ÌÞJ3
ýöç§lØ|}Y¢û|cçð,åóLüqrD5ð
c
Q¼dK*JOóèô«ÛÈß!Ìy 5bGPò,[ßÏ
AûêÍkØÃ«»Ùyqhjæxìd¦ÚE¿÷Ä^ðÞUt{
°>
{
¸Úhbp6qvÀ»|#Qb?
÷>r:ºÚxä
^ ûY\Ø×m¡^ 8}núÒÇWßé}}T#I(br|â%¡j
ë^äàùoZMsϲ«Ç)¾oR©eÖKY¬*O«1e$ó0ñyoH
May be you can try (string)$string or (int)$string (seemed a little
strange).
Any way Ross, we need to see ur code to determine your problem.
Best regards,
Shiqi Yang
-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 07, 2005 12:15 AM
To: Dan R
ALERT!
This e-mail, in its original form, contained one or more attached files that
were infected with a virus, worm, or other type of security threat. This e-mail
was sent from a Road Runner IP address. As part of our continuing initiative to
stop the spread of malicious viruses, Road Runner s
53 matches
Mail list logo