php-general Digest 9 Jan 2008 14:23:25 - Issue 5225
Topics (messages 266947 through 266965):
Re: ereg help!
266947 by: Casey
266948 by: Chris
266949 by: steve
266954 by: Anup Shukla
266955 by: Richard Heyes
Re: MSSQL
266950 by: Andrew Ballard
Jim wrote:
I'm sure this is a FAQ but I can't seem to come up with the right search
keys to dig it out.
I'm trying to help a friend migrate his application to php 5 from
another system. The problem seems to be that he references files
(require, include, etc) that have a .php3 extension,
$out = basename($file, .html) . .com;
fairly limited i think, but simple.
Nothing wrong with being simple, and therefore both fast and easy to
understand by a wider audience. The only downer I can immediately think
of though is that whitespace isn't accommodated, but who really ends a
file
Chris wrote:
I think you misunderstood. I have lots of file with things like
require admin.php3
But there is no admin.php3 anywhere. There is however a file
admin.php. Since this works on the old server then something on
that system is translating a request for a .php3 file to
Does anyone have a URL for it? Naturally Google returns a lot of pages
which are about the actual function.
Thanks.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES
steve wrote:
On Tuesday 08 January 2008 20:30:29 Chris wrote:
I usually use preg_* functions so here's my go:
echo preg_replace('/\.php$/', '.com', $file);
The '$' at the end makes sure it's a .php file and won't cause problems
with files like xyz.php.txt .
(otherwise I'd just use a
Richard Heyes wrote:
Does anyone have a URL for it? Naturally Google returns a lot of pages
which are about the actual function.
http://www.php.net/
just put phpinfo into the 'search for' and you will get the REAL data for it.
Google is never the best starting point when you know what you are
Richard Heyes wrote:
Lester Caine wrote:
Richard Heyes wrote:
Does anyone have a URL for it? Naturally Google returns a lot of
pages which are about the actual function.
http://www.php.net/
just put phpinfo into the 'search for' and you will get the REAL data
for it.
Google is never the
Do you mean phpsysinfo? http://phpsysinfo.sf.net/
Bingo, thanks.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing List
Lester Caine wrote:
Richard Heyes wrote:
Does anyone have a URL for it? Naturally Google returns a lot of pages
which are about the actual function.
http://www.php.net/
just put phpinfo into the 'search for' and you will get the REAL data
for it.
Google is never the best starting point
Ford, Mike wrote:
Chris wrote:
I think you misunderstood. I have lots of file with things like
require admin.php3
But there is no admin.php3 anywhere. There is however a file
admin.php. Since this works on the old server then something on
that system is translating a request for a .php3
Jim wrote:
Hi, Mike,
The include is more like
require ../admin/admin.php3 I don't know exactly how Apache performs
its magic so I wasn't sure that the request for an include file would
even pass through Apache's hands. In my limited world, an include
wouldn't have to involve Apache, just
On Mon, 7 Jan 2008 10:29:45 -0500, tedd wrote:
At 12:03 PM +0100 1/7/08, Nisse Engström wrote:
How does the following pages compare? The display
should be identical:
http://luden.se/test/t-1252.html
http://luden.se/test/t-utf8.html
Nisse:
No, there is quite a difference depending upon
Hi Daniel,
Am 2008-01-04 18:31:00, schrieb Daniel Brown:
Ignore that. It's a new script that is going to start running as
of 4:00p EST on 11 January, 2008. It will summarize the number of
messages to the list, then tell who posted how many, what size, et
cetera.
There may be one
On 09 January 2008 12:18, Anup Shukla wrote:
Jim wrote:
Hi, Mike,
The include is more like
require ../admin/admin.php3 I don't know exactly how Apache
performs its magic so I wasn't sure that the request for an include
file would even pass through Apache's hands. In my limited
No, go back over the archives or digests and you'll see that it
was supposed to be a once-per-week email for post tracking on the list
that went haywire. It wound up sending over a hundred messages to the
list, which - in my opinion - also indicates a flaw in the mailing
list software.
On
Ford, Mike wrote:
On 09 January 2008 12:18, Anup Shukla wrote:
Jim wrote:
Hi, Mike,
The include is more like
require ../admin/admin.php3 I don't know exactly how Apache
performs its magic so I wasn't sure that the request for an include
file would even pass through Apache's hands.
On Jan 9, 2008 2:01 AM, Wolf [EMAIL PROTECTED] wrote:
Looks like your cron job is set for every minute Don! Please disable it
until you get the kinks worked out of it!
That was all fixed last week, and no more messages have been sent
since that night.
My apologies once again to
At 1:19 PM +0100 1/9/08, Nisse Engström wrote:
On Mon, 7 Jan 2008 10:29:45 -0500, tedd wrote:
At 12:03 PM +0100 1/7/08, Nisse Engström wrote:
How does the following pages compare? The display
should be identical:
http://luden.se/test/t-1252.html
http://luden.se/test/t-utf8.html
Nisse:
Richard Heyes wrote:
Do you mean phpsysinfo? http://phpsysinfo.sf.net/
Bingo, thanks.
I bet google works as well now :)
THAT looks a very useful package and it's been sitting in the package list on
all my Linux machines un-found.
I've already got it set up on the local network!
--
Lester
Thank you all for your replies.
We just solved it down using HTTP_REQUEST.
1.What we did was using HTTP_REQUEST a request was send to login page with
post
data credentials like username, password and some other field if required.
2. Then using HTTP_RESPONSE the cookies that were being sent from
Daniel Brown schreef:
No, go back over the archives or digests and you'll see that it
was supposed to be a once-per-week email for post tracking on the list
that went haywire. It wound up sending over a hundred messages to the
list, which - in my opinion - also indicates a flaw in the
On Jan 9, 2008 11:25 AM, Lukáš Moravec [EMAIL PROTECTED] wrote:
Hi,
I have one question about forms and php (which I use for Mysql too).
Do I need for variables from any form in html and method POST (then in php
script) to set these variables with:
$variable=$_POST['variable'];
[snip!]
On Jan 9, 2008 1:45 PM, Jochem Maas [EMAIL PROTECTED] wrote:
Daniel Brown schreef:
No, go back over the archives or digests and you'll see that it
was supposed to be a once-per-week email for post tracking on the list
that went haywire. It wound up sending over a hundred messages to
On Wed, 9 Jan 2008 10:30:59 -0500, tedd wrote:
Yes, I said that there is no windows-1252
setting for Safari. It does not offer that
named setting in it's list of text encodings
available. There is no 1252 mentioned either --
however, that does not mean that it's not there
under a
Hi all,
ok, I am a little bit new to the SOAP game, but I understand it, and am
using it to talk to an outside API.
The problem that I have is that the server that I am talking to (that is
not in my control), will accept the following SOAP call
?xml version=1.0 encoding=utf-8?
Hi Everyone,
I'm trying to compare a value to the first field in a csv fILE (example
of the data below). Using while takes too long and I can't figure out
how to compare just one row at a time. I've tried some variations of the
following.
//Common for all trials
$demoID = fopen(newDemoID.csv,
Hello,
I'm currently trying to create a system where a custom 404 ErrorDocument in
PHP is able to 301 Redirect the browser in certain cases. This works fine on
some servers, however, on some other servers the PHP script seems to be
unable to replace the 404 header.
Correctly overrides with
Danny Brow wrote:
Hi Everyone,
I'm trying to compare a value to the first field in a csv fILE (example
of the data below). Using while takes too long and I can't figure out
how to compare just one row at a time. I've tried some variations of the
following.
//Common for all trials
$demoID =
On Jan 9, 2008 5:35 PM, Danny Brow [EMAIL PROTECTED] wrote:
Hi Everyone,
I'm trying to compare a value to the first field in a csv fILE (example
of the data below). Using while takes too long and I can't figure out
how to compare just one row at a time. I've tried some variations of the
Danny Brow wrote:
Hi Everyone,
I'm trying to compare a value to the first field in a csv fILE (example
of the data below). Using while takes too long and I can't figure out
how to compare just one row at a time. I've tried some variations of the
following.
So are you trying to compare the
I need to compare the first field of each row. But this idea is shot to
hell, i've been running one of the examples on the file and it's been
about an hour+ already... 6500 records have to be checked... I think
MySQL is calling my name right now.
Thanks,
Dan
On Thu, 2008-01-10 at 09:59 +1100,
Greetings folks,
I'm having a few issues with PHP this evening. I'm uploading various jpg
images, doing a resize via GD, and then storing the image in a database.
Usually this works fine, but for some unknown reason I'm getting
corrupted uploads. The corruption happens before any processing
Danny Brow wrote:
I need to compare the first field of each row. But this idea is shot to
hell, i've been running one of the examples on the file and it's been
about an hour+ already... 6500 records have to be checked... I think
MySQL is calling my name right now.
Thanks,
Dan
On Thu,
Scott Wilcox wrote:
Greetings folks,
I'm having a few issues with PHP this evening. I'm uploading various jpg
images, doing a resize via GD, and then storing the image in a database.
Usually this works fine, but for some unknown reason I'm getting
corrupted uploads. The corruption happens
Jim Lucas wrote:
Scott Wilcox wrote:
Greetings folks,
I'm having a few issues with PHP this evening. I'm uploading various
jpg images, doing a resize via GD, and then storing the image in a
database.
Usually this works fine, but for some unknown reason I'm getting
corrupted uploads. The
http://ca.php.net/manual/en/function.fgetcsv.php
_
Discover new ways to stay in touch with Windows Live! Visit the City @ Live
today!
http://getyourliveid.ca/?icid=LIVEIDENCA006
--
PHP General Mailing List (http://www.php.net/)
To
Ah, ignore. Problem seems to be solved. Some piping seems to have caused
corrupting. All working now. Thanks anyway folks! :)
Scott Wilcox wrote:
Jim Lucas wrote:
Scott Wilcox wrote:
Greetings folks,
I'm having a few issues with PHP this evening. I'm uploading various
jpg images, doing a
XML is case sensitive. I notice the case of the xml is different. Try making
the PHP created xml the same case.
Bastien Date: Wed, 9 Jan 2008 13:54:36 -0800 From: [EMAIL PROTECTED] To:
php-general@lists.php.net Subject: [PHP] PHP SOAP Client formats Hi all,
ok, I am a little bit new to the
How do I use a get parameter in a include?
e.g.
?php include('x.cgi?want=ssilinks') ?
I can't modify the cgi file though, and HTML includes don't work on my
server.
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, January 9, 2008 4:35 pm, RavenWorks wrote:
I'm currently trying to create a system where a custom 404
ErrorDocument in
PHP is able to 301 Redirect the browser in certain cases. This works
fine on
some servers, however, on some other servers the PHP script seems to
be
unable to
that is a horrible method.
it works in zeus and apache, but not lighttpd, from my experience.
it's just not a good idea. technically that should only be file paths,
and i would expect it to load a file named x.cgi?want=ssilinks
although fopen wrappers can confuse that further...
in my opinion i
Hi!
I have a cgi script that returns a particular value when I call it as
x.cgi?want=ssilinks. I need to call it like that, but whenever I put
the GET parameter into the include path, I get a warning saying that the
file could not be found. Any help?
Thanks,
Liam
--
PHP General Mailing
On Wed, January 9, 2008 4:35 pm, Danny Brow wrote:
I'm trying to compare a value to the first field in a csv fILE
(example
of the data below). Using while takes too long and I can't figure out
how to compare just one row at a time. I've tried some variations of
the
following.
//Common for
6500 rows is chump-change.
You probably don't have the fgetcsv inside the while loop to get past
the first row... :-)
On Wed, January 9, 2008 6:09 pm, Danny Brow wrote:
I need to compare the first field of each row. But this idea is shot
to
hell, i've been running one of the examples on the
mike wrote:
that is a horrible method.
Thanks for the nice positive, refreshing and most helpful response.
in my opinion i would say redesign it properly.
Well what the hell do you suggest I do??? The script is MEANT to be
used this way, as it has an admin panel inside etc.
Oh, by the way,
Liam wrote:
Hi!
I have a cgi script that returns a particular value when I call it as
x.cgi?want=ssilinks. I need to call it like that, but whenever I put
the GET parameter into the include path, I get a warning saying that the
file could not be found. Any help?
Thanks,
Liam
I would
The script is MEANT to be used this way
I doubt it.
If you want the contents from that url, then use curl
(http://www.php.net/curl).
--
Postgresql php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Jim Lucas wrote:
Liam wrote:
Hi!
I have a cgi script that returns a particular value when I call it as
x.cgi?want=ssilinks. I need to call it like that, but whenever I put
the GET parameter into the include path, I get a warning saying that
the file could not be found. Any help?
Thanks,
On 1/9/08, Liam [EMAIL PROTECTED] wrote:
mike wrote:
that is a horrible method.
Thanks for the nice positive, refreshing and most helpful response.
read the sentence below it.
in my opinion i would say redesign it properly.
Well what the hell do you suggest I do??? The script is MEANT to
On Wed, January 9, 2008 8:38 pm, Liam wrote:
How do I use a get parameter in a include?
e.g.
?php include('x.cgi?want=ssilinks') ?
I can't modify the cgi file though, and HTML includes don't work on my
server.
Thanks in advance.
In order to fire the CGI and have it processed, you would
On 1/9/08, Liam [EMAIL PROTECTED] wrote:
mike wrote:
that is a horrible method.
Thanks for the nice positive, refreshing and most helpful response.
read the sentence below it.
in my opinion i would say redesign it properly.
Well what the hell do you suggest I do??? The script is MEANT to
Bastien,
Thank you for answering, but the issue is that the PHP SOAPClient
classes actually create that xml to send, so I have no control over the
xml that is sent with a call command to the SOAP object...
I just wondered if there was any flags that I am missing that might
bring the php
Um, I've read the manual.
On Wed, 2008-01-09 at 20:11 -0500, Bastien Koert wrote:
http://ca.php.net/manual/en/function.fgetcsv.php
_
Discover new ways to stay in touch with Windows Live! Visit the City @ Live
today!
On 1/9/08, Liam [EMAIL PROTECTED] wrote:
The cgi script IS perl. Oh, RE: the sentence below it: I'm running
apache, and it DOESN'T work. The reason I am trying to call it in php
is to include it on a webpage. So, tell me, how am I supposed to
pre-generate the contents in a flatfile
How can I display the returned HTML contents of a cgi (Perl) script,
without get parameters?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You are so right, takes all of 0.122 s to process the whole file with
the fgetcsv inside the while loop Guess I need to look up why this
was the problem.
Thanks everyone!
On Wed, 2008-01-09 at 20:59 -0600, Richard Lynch wrote:
6500 rows is chump-change.
You probably don't have the
Liam wrote:
How can I display the returned HTML contents of a cgi (Perl) script,
without get parameters?
Oh, this means that
1: It mustn't count as a http hit,
and 2: I need to only get what is between the body tags.
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To
On Jan 9, 2008 10:45 PM, Tim Traver [EMAIL PROTECTED] wrote:
Bastien,
I want to use PHP's built in classes for this so I don't have to
manually send xml to the api...
writing the xml by hand would be madness...
i didnt want to spend all night screwing around w/ it, since i dont have
any
On 1/9/08, Liam [EMAIL PROTECTED] wrote:
Liam wrote:
1: It mustn't count as a http hit,
it's going to
and 2: I need to only get what is between the body tags.
now you're just asking the list to code something for you...
my suggestions again:
look into rewriting it to be more reusable
OK, what I meant was
1) Not count as though the user manually navigated to that page (for my
sanity when checking the site statistics!)
and
2) I also need to know how to run a expression-ish thing so that when I
'parse' the text, it returns all text between x and y, but parse it
BEFORE it
OK, what I meant was
1) Not dump the contents to a file, as the cgi will dynamically show
different links every time, (it's a reciprocal linking script)
2) Not count as though the user manually navigated to that page (for my
sanity when checking the site statistics!)
and
3) I also need to know
On 1/9/08, Liam [EMAIL PROTECTED] wrote:
OK, what I meant was
1) Not dump the contents to a file, as the cgi will dynamically show
different links every time, (it's a reciprocal linking script)
2) Not count as though the user manually navigated to that page (for my
sanity when checking the
Nathan Nobbe wrote:
On Jan 9, 2008 10:45 PM, Tim Traver [EMAIL PROTECTED] wrote:
Bastien,
I want to use PHP's built in classes for this so I don't have to
manually send xml to the api...
writing the xml by hand would be madness...
i didnt want to spend all night screwing around
My non-profit setup makes that 'Pay Someone' alternative. What I am
planning on doing:
When the script is called, it is equivilent of using the want=ssilinks
GET parameter.
So therefore, all I need to do is get the HTML returned from the script,
not the contents of the script itself. Can
65 matches
Mail list logo