John W. Holmes wrote:
Heh... okay, let's start over.
From Server1:
If you create a link like this:
a href=server2/page.php??php echo SID; ?Server 2/a
The problem with SID is that it is defined as session_name=session_id if
the client did not send session cookie. Otherwise it will be an empty
Miroslav I. wrote:
Hi, people
#The problem:
There is an error message that stops proper loading of one iFRAME, I
couldn't understand what is the problem.
Complete error message issued:
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers
Most of the time, I edit files via the command line, (FBSD).
When the files are saved, it adds a \n (newline) character (at least I believe
that is what it is) after the closing ?
When viewing these files in a windows GUI editor, there is an extra line
after the ? closing tag.
Using the php
Whats your take on adding your own data in the $_SERVER array?
For example, if I wanted to add a value to the $_SERVER array like -
$_SERVER['foo'] = 'bar';
Yes its possible, but Im looking for legality issues with this frame of
thought.
Thanks
--
PHP General Mailing List
Hello all
I have been working on this website
http://thor.ancilenetworks.co.uk/~pferrie/vinrev/index2.htm
I did not design the site i have just been asked to tweak it
My php knowledge is limited always learning something new. Anyways I have
been trying to use a code that i got from
You can also check :
A PHP function To Make Alternative Colored table rows
http://www.weberdev.com/get_example.php3?count=3609
Alternating background color for HTML table rows
http://www.weberdev.com/get_example.php3?count=3482
Another way to alternate table rows
Thats pretty much what i have got off www.hotscripts.com. The problem is
adding it to my exsisting code.
~cheers
Paul
Boaz Yahav [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
You can also check :
A PHP function To Make Alternative Colored table rows
On Sat, Nov 15, 2003 at 06:09:18PM +0200, Boaz Yahav wrote:
function alternate_rows(
// color_1 and color_2 have default values, but can be over-ridden.
$data,
$color_1 = '#99',
$color_2 = 'black'
)
{
// Declare $color as static so it retains its value when program //
Hi,
Please, can someone shed a little light on this subject: who controls PHP?
How much Zend has the power to say what goes into PHP and what not?
How much does the community actually have power?
For example, there are practical reasons why one should be concerned about
this: PHP doesn't have
--- Gerard Samuel [EMAIL PROTECTED] wrote:
Most of the time, I edit files via the command line, (FBSD). When
the files are saved, it adds a \n (newline) character (at least I
believe that is what it is) after the closing ? When viewing these
files in a windows GUI editor, there is an extra
--- John Smith [EMAIL PROTECTED] wrote:
Please, can someone shed a little light on this subject: who controls
PHP?
PHP is open source. You should have received the license when you
downloaded it. It is not something to be controlled.
Please, tell me that Zend is not the dictator here.
No one
Hello,
Zend in no way dictates PHP, they are simply a major player in it's development and
are just as important as the PHP community. Zend develops much of the core extensions
for PHP but at the same time, they do not own or even run.
Nathan
- Original Message -
From: John Smith
Ok then, that's nice to hear.
How about then the idea of including a reasonably good compiler/encoder into
standard PHP distribution? For example Turck MMcache is one, gpl'd and comes
as a php/zend extension.
I don't think there are other free encoders as this, so there wouldn't even
be a
Well that's all good and grand but why increase the size of the distribution when it's
not necessary to? Nobody wants to download something they don't necessarily need
included.
Nathan
- Original Message -
From: John Smith
To: [EMAIL PROTECTED]
Sent: Saturday, November 15,
--- Gnik [EMAIL PROTECTED] wrote:
I isolated the problem to be in the 'strtotime' function. Here is a
test I ran - when it runs, after getting to 2003-10-26, it scrolls
incessently:
BEGIN CODE--
?php
$stop= 2003-12-27 ;
$start= 2003-01-01 ;
While ($start $stop) {
echo BR
--- John Smith [EMAIL PROTECTED] wrote:
How about then the idea of including a reasonably good
compiler/encoder into standard PHP distribution? For example Turck
MMcache is one, gpl'd and comes as a php/zend extension.
I don't think there are other free encoders as this, so there wouldn't
I think Zend even has their business model partly in the encoder software,
there must be some need for it. Don't you think so?
Granted, this would increase the size of the download by a hundred
kilobytes.
I have no connection to Turck MMcache in any way than just a user who needs
it. But
Hi, i was wondering which is the best way to store images. I'm using an
upload section for my site and i'm using a script to put those images
from the upload section on a diferent section of the site.
10x
Paul
GnuPG Key http://sgi.rdscv.ro/~paulm/paulm.PGP
--
PHP General Mailing List
I don't think there are other free encoders as this, so there wouldn't
even be a dispute over which to choose?
Which one should be chosen? Doesn't it seem a bit ridiculous for the PHP
development team to be picking a winner? Open source is all about choice,
in my opinion.
If I had to
On Sat, Nov 15, 2003 at 07:52:28PM +0200, John Smith wrote:
:
: I have no connection to Turck MMcache in any way than just a user who needs
: it. But distributing software encoded with it is difficult while it is not
: so easily available (have to be separately downloaded and installed).
I'm
Yes, it's still quite a new piece of software, at least so I have
understood. But anyway, as an idea for the future. Just about any encoder
would be great.
If it's really built-in, always-on, that would be even better.
Besides encoding, I think code profiling features should be (almost) built
in
Interesting that you should bring this up now :)
I have started a thread about this with my opinion at :
http://www.weberblog.com/article.php?story=20031115124356140
I hope people will share their experience.
Sincerely
berber
Visit http://www.weberdev.com/ http://www.weberblog.com/ Today!!!
On Sat, Nov 15, 2003 at 11:58:18AM -0600, Eugene Lee wrote:
On Sat, Nov 15, 2003 at 07:52:28PM +0200, John Smith wrote:
:
: I have no connection to Turck MMcache in any way than just a user who needs
: it. But distributing software encoded with it is difficult while it is not
: so easily
Hey,
Or CodeSecure from http://securecents.com
Cheers,
-Ryan
P.S - biased opinion as i work with them.
Ok then, that's nice to hear.
How about then the idea of including a reasonably good compiler/encoder
into
standard PHP distribution? For example Turck MMcache is one, gpl'd and
comes
Chris Shiflett wrote:
--- John Smith [EMAIL PROTECTED] wrote:
Please, tell me that Zend is not the dictator here.
No one is a dictator.
Chris
So there is an opening for a dictator then? How can I get my name on
the ballot? ;)
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
On Sat, 2003-11-15 at 12:12, Chris Shiflett wrote:
--- Gerard Samuel [EMAIL PROTECTED] wrote:
Most of the time, I edit files via the command line, (FBSD). When
the files are saved, it adds a \n (newline) character (at least I
believe that is what it is) after the closing ? When viewing
John Nichel wrote:
Chris Shiflett wrote:
--- John Smith [EMAIL PROTECTED] wrote:
Please, tell me that Zend is not the dictator here.
No one is a dictator.
Chris
So there is an opening for a dictator then? How can I get my name on
the ballot? ;)
I am the only dictator here.
--
PHP
Well as far as I can see you have 2 options.
a) Store them directly on disc
b) Store them in a database (eg. mySQL)
I would think that a) is the best way without doubt, since it doest
use any extra processing power to serve the images to your visitors
as its only the webserver doing the usuall
Any idea why?
I am sending HTTP post request from j2me mobile device.
Request is OK because it works well on ASP page.
Thanks for help!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- Kim Steinhaug [EMAIL PROTECTED] wrote:
Well as far as I can see you have 2 options.
a) Store them directly on disc
b) Store them in a database (eg. mySQL)
I would think that a) is the best way without doubt
I usually take this option myself, but when you are creating an
application to
Well, first of all Ill just scrap you script since this one is so easy
its better to do it from scratch.
OK, somewhere in your script you have the code that accually
aoutputs the tables you are working with. Im refferring to lines
here, and Im meaning the bottom of this document which is
the
--- Ivan Marenic [EMAIL PROTECTED] wrote:
Any idea why?
I am sending HTTP post request from j2me mobile device.
Request is OK because it works well on ASP page.
You have to provide some information if you want anyone to help you.
Chris
=
Chris Shiflett - http://shiflett.org/
PHP
Hello,
On 11/15/2003 06:54 PM, Ivan Marenic wrote:
Any idea why?
I am sending HTTP post request from j2me mobile device.
Request is OK because it works well on ASP page.
You may want to try this class to submit HTTP request. See the
test_http_post.php example script:
Here is j2me code snippet:
byte[] postData=This is my test line! It works!
Yipi-Yai-Yee!!!.getBytes();
try{
c = (HttpConnection)Connector.open(url_post);
c.setRequestMethod(HttpConnection.POST);
c.setRequestProperty( User-Agent, Profile/MIDP-1.0
Hello,
On 11/15/2003 03:24 PM, John Smith wrote:
Ok then, that's nice to hear.
How about then the idea of including a reasonably good compiler/encoder into
standard PHP distribution? For example Turck MMcache is one, gpl'd and comes
as a php/zend extension.
I don't think there are other free
Anyway, I don't think Zend people will allow a competing extension be
included in the core PHP distribution precisely because it compromises
their business.
This is exactly the reason I started this thread by asking Who controls
PHP? ... Thanks for clearing this out.
Either way, another
php-general Digest 15 Nov 2003 21:30:47 - Issue 2417
Topics (messages 169731 through 169765):
Re: CGI error when loading iFRAME
169731 by: Marek Kilimajer
What is white space
169732 by: Gerard Samuel
169739 by: Chris Shiflett
169755 by: Robert Cummings
On Sat, 15 Nov 2003 13:01:21 -0800 (PST), you wrote:
--- Kim Steinhaug [EMAIL PROTECTED] wrote:
Well as far as I can see you have 2 options.
a) Store them directly on disc
b) Store them in a database (eg. mySQL)
I would think that a) is the best way without doubt
I usually take this
Here is ASP code that works.
Dim binread
Dim bytecount
bytecount = Request.TotalBytes
binread = Request.BinaryRead(bytecount)
'Send response back to client
Response.BinaryWrite binread
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Guys,
Sorry to trouble you on a saturday night (at least in The Netherlands...)..
Get a parse error on line 42, but i can't see what is causing the trouble. (Parse
error: parse error in /home/.sites/95/site92/web/admin/editreis.php on line 42)
if(is_array($_POST['accomodatieid'])) {
Dim binread
Dim bytecount
bytecount = Request.TotalBytes
binread = Request.BinaryRead(bytecount)
Response.BinaryWrite binread
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- Ivan Marenic [EMAIL PROTECTED] wrote:
Here is j2me code snippet:
I try to avoid all of the crap that begins with the letter J, but your
example code looks like you are sending a POST request.
Here is PHP code snippet:
// Show any post vars, but nothing shows - never!
This looks you are expecting to receive a POST request with PHP. So, are
you wanting to send one or receive one?
Receive one.
Chris Shiflett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
--- Ivan Marenic [EMAIL PROTECTED] wrote:
Here is j2me code snippet:
I try to avoid all
--- Manuel Lemos [EMAIL PROTECTED] wrote:
Anyway, I don't think Zend people will allow a competing extension be
included in the core PHP distribution precisely because it compromises
their business.
[snip]
IMHO, if you really want to make software free without confusion, forget
GPL.
On Sat, 15 Nov 2003 22:38:07 +0100, you wrote:
Get a parse error on line 42, but i can't see what is causing the trouble. (Parse
error: parse error in /home/.sites/95/site92/web/admin/editreis.php on line 42)
if(is_array($_POST['accomodatieid'])) {
foreach($_POST['accomodatieid'] as $Key =
--- Ivan Marenic [EMAIL PROTECTED] wrote:
This looks you are expecting to receive a POST request with PHP. So,
are you wanting to send one or receive one?
Receive one.
Is it possible for you to show us the HTTP request that is failing? It is
possible that it is malformed in some way that
Frank Keessen wrote:
Hi Guys,
Sorry to trouble you on a saturday night (at least in The Netherlands...)..
Get a parse error on line 42, but i can't see what is causing the trouble. (Parse error: parse error in /home/.sites/95/site92/web/admin/editreis.php on line 42)
--- David Otton [EMAIL PROTECTED] wrote:
I can't be bothered to figure out a test case, but you apparently have
a SQL injection risk with your code. You're assuming that the data from
the client is correct.
This is a very good point. To highlight an example in the sample code you
provided
Is it possible for you to show us the HTTP request that is failing? It is
possible that it is malformed in some way that is fine with some Web
servers and not with others.
That may be possible but I am testing ASP i PHP(4.3.2) on same server IIS
5.0, localy.
Can't sniff that (Network adapter
--- Ivan Marenic [EMAIL PROTECTED] wrote:
Here is failed POST REQUEST to that server:
*
POST /http_post.php HTTP/1.1
User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
Host: www.milleniumtip.com:80
Content-Disposition: attachment; name=userfile;
Thanks for the help, and pointing out the security risk, Chris David!
Regards,
Frank
- Original Message -
From: Chris Shiflett [EMAIL PROTECTED]
To: David Otton [EMAIL PROTECTED]; Frank Keessen
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, November 15, 2003 11:05 PM
Subject:
I did not omit content.
Copied whole text box in sniffer using context menu comands (select all,
copy) - pasted to news agent.
There is no content.
However, when using local server, on my desktop, I assume there is content
because I am getting response from ASP page with exact data wich is sent
Hello,
On 11/15/2003 07:46 PM, Chris Shiflett wrote:
Anyway, I don't think Zend people will allow a competing extension be
included in the core PHP distribution precisely because it compromises
their business.
[snip]
IMHO, if you really want to make software free without confusion, forget
I'm running Oracle 9iAS on Linux,
does anyone know if it's possible to add PHP to it as a module?
Given that it's based on Apache?
are there any docs out there on how to do this?
thanks
Ahbaid
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello,
Is there an easy way to unzip a zipped file which contains files
(images), using a function from the zlib or any.
To something like that:
exec(unzip zipfile.zip -d /path/to/images) ;
But without using the exec function.
Thanks,
Vincent.
--
PHP General Mailing List (http://www.php.net/)
Robert Cummings wrote:
FYI, if you're woprried about the header cannot be sent due to
output... error, then if your file only has code and no HTML, then you
can omit the ? tag at the end of your script. This solves countless
issues with there being a space, a tab, a newline, or any whitespace
Below is the first php example found in Changes in PHP 5/Zend Engine
2.0
?php
class MyClass {
private $Hello = Hello, World!\n;
protected $Bar = Hello, Foo!\n;
protected $Foo = Hello, Bar!\n;
function printHello() {
print MyClass::printHello() . $this-Hello;
It's not a bug. Anything (including spaces, newlines etc) that is not
inside ? and ? is output directly to the browser.
At 03:49 PM 11/15/2003, you wrote:
Robert Cummings wrote:
FYI, if you're woprried about the header cannot be sent due to
output... error, then if your file only has code and
On Sat, 2003-11-15 at 18:49, Leif K-Brooks wrote:
Robert Cummings wrote:
FYI, if you're woprried about the header cannot be sent due to
output... error, then if your file only has code and no HTML, then you
can omit the ? tag at the end of your script. This solves countless
issues with
It's so much easier to use the mod (%) operator:
using the mod operator, you can check if a variable is divisible by some
other number without leaving a remainder.
For this example, we want to change every other row, so we would compare
our $count against 2 to see if it leaves a remainder:
$bg
Yep. It allows you to only use php where needed, and use HTML for the rest.
At 04:02 PM 11/15/2003, you wrote:
On Sat, 2003-11-15 at 18:49, Leif K-Brooks wrote:
Robert Cummings wrote:
FYI, if you're woprried about the header cannot be sent due to
output... error, then if your file only has
Keith Greene wrote:
It's not a bug. Anything (including spaces, newlines etc) that is not
inside ? and ? is output directly to the browser.
No, I'm talking about not using ?.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be
Keith Greene wrote:
That's not a bug either. Leaving out the ? is simply telling the php
parser that it has to parse the rest of the script.
Where's the manual page saying that's allowed?
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will
Hello.
I read throughout this thread and it looks like I have encountered
the same problem. Everything looks just fine but somehow the PHP
does not parse the request data sent to the script. I did some research on
that but gave up since I couldn't find how and where those data were
parsed. But
Ok, you're getting into semantics now.
http://www.php.net/manual/en/language.basic-syntax.php doesn't say whether
it is acceptable or not, but as Robert pointed out, if your script is
purely php, omitting it is a good way of eliminating the headache of
trailing white spaces that may interfere
Keith Greene wrote:
Ok, you're getting into semantics now.
http://www.php.net/manual/en/language.basic-syntax.php doesn't say
whether it is acceptable or not, but as Robert pointed out, if your
script is purely php, omitting it is a good way of eliminating the
headache of trailing white
--- Keith Greene [EMAIL PROTECTED] wrote:
It's not a bug. Anything (including spaces, newlines etc) that is not
inside ? and ? is output directly to the browser.
There are two different things being discussed, and I'm not positive which
is considered a bug.
1. When a closing PHP tag, such as
Hello,
On 11/15/2003 07:31 PM, John Smith wrote:
Anyway, I don't think Zend people will allow a competing extension be
included in the core PHP distribution precisely because it compromises
their business.
This is exactly the reason I started this thread by asking Who controls
PHP? ... Thanks
--- Arne Rusek [EMAIL PROTECTED] wrote:
I used this form:
form action=test.php method=POST
Your name: input type=text name=username/br/
Email: input type=text name=email//br
input type=submit name=submit value=Submit me!
/form
The test.php script contained this code:
hi,
when I enter url like that http://localhost/menu.php?status=0 php return an
error below :
Warning: Undefined variable: status in
D:\calismalar\cengiz_ozdelice\web\menu.php on line 41
my code on 41.line is :
if ($status==0) echo 'trying;
what is problem?
thank you.
--
PHP General
--- Burak Delice [EMAIL PROTECTED] wrote:
http://localhost/menu.php?status=0 php return
[snip]
if ($status==0) echo 'trying;
if (!$_GET['status'])
{
echo 'trying;
}
Hope that helps.
Chris
=
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP
On Saturday 15 November 2003 08:22 pm, Chris Shiflett wrote:
1. When a closing PHP tag, such as ?, is followed by a newline, the
newline is not output.
Im the original author to this thread, and this is an attempt to bring back
this thread to square one, as it was straying in other directions
Hi folks,
I'm very new to PHP and PEAR. But I'm having very strange troubles
with this simple thing.
I'm trying to run the following script into a php file:
?php
require_once 'DB.php';
$db =
DB::Connect('ibase(firebird)://SYSDBA:[EMAIL
ok, so i'm stupid. how do i replace all '? ' with '?? '
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- erythros [EMAIL PROTECTED] wrote:
ok, so i'm stupid. how do i replace all '? ' with '?? '
$foo = '? ';
$bar = str_replace('? ', '?? ', $foo);
Hope that helps.
Chris
=
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
On Sunday, November 16, 2003, at 02:31 PM, erythros wrote:
ok, so i'm stupid. how do i replace all '? ' with '?? '
No need for regular expressions here.
?
$str = 'well, how do I do this? should i experiment?';
$newStr = str_replace('? ','?? ',$str);
echo $newStr;
// should echo well, how
chris and justin, you guys rock. thanx for pointing towards str_replace().
my code works now. thanx!
Justin French [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Sunday, November 16, 2003, at 02:31 PM, erythros wrote:
ok, so i'm stupid. how do i replace all '? ' with '?? '
Hi,
Recently, a 'user' attempted to access a restricted area of my site
repetitively (spanning five hours) entering the same url repetitively
[probably by script]. A massive log file was generated. I would like to ban
such behavior by limiting the number of successive 'get's a user can do (say
Hi,
While your solution is feasible it would still consume processor and
memory because you are doing this at a very high level, you will
be better of solving this at a lower level by a proper use of a
firewall. What you have described sounds like a kiddie script attempt at
a denial of service
thanx Chris,
this code is running on Web, is not on Local. and I did your way, it did not
work
regards
Chris Shiflett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
--- Burak Delice [EMAIL PROTECTED] wrote:
http://localhost/menu.php?status=0 php return
[snip]
if ($status==0)
Vincent M. wrote:
Hello,
Is there an easy way to unzip a zipped file which contains files
(images), using a function from the zlib or any.
To something like that:
exec(unzip zipfile.zip -d /path/to/images) ;
But without using the exec function.
Thanks,
Vincent.
You may want to check here
81 matches
Mail list logo