Mike R wrote:
I am getting this error:
Fatal error: Failed opening required
'/home/sites/site111/web/news/settings/newsletter.settings.inc.php'
(include_path='') in
/home/sites/site111/web/news/forms/sign_in_out_form.inc.php on line 7
From this piece of code:
require
I use AWStats for my web stats stuff. Pretty easy once the minimal
configuration is done.
http://awstats.sourceforge.net/
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: Elliot J. Balanza [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 7:00 PM
Subject:
Thanks for the insight Ben,
Straight forward when I looked at your code examples and this answers a
couple of other things to.
Thanks once again for your clear help
Dave C
-Original Message-
From: Ben Ramsey [mailto:[EMAIL PROTECTED]
Sent: 30 March 2004 17:08
To: Dave Carrera
Subject:
You'll want to do something like this:
$timeStamp = strtotime(2004-04-29);
$timeStamp += 24 * 60 * 60 * 7; // (add 7 days)
$newDate = date(Y-m-d, $timeStamp);
The 'strtotime' function converts all sorts of standard dates to the Unix
Epoch seconds (seconds since 1/1/1970). You then just
On Wednesday 31 March 2004 17:08, Hawkes, Richard wrote:
You'll want to do something like this:
$timeStamp = strtotime(2004-04-29);
$timeStamp += 24 * 60 * 60 * 7; // (add 7 days)
$newDate = date(Y-m-d, $timeStamp);
The 'strtotime' function converts all sorts of standard dates to the
What else can it do other than convert dates to time strings Jason?
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: 31 March 2004 10:13
To: [EMAIL PROTECTED]
Subject: Re: [PHP] adding days to a given date
On Wednesday 31 March 2004 17:08, Hawkes, Richard wrote:
Wabyan wrote:
I do not know why I received this newsgroup infos, even if I like PHP :-)
I will follow procedure unsbcribe
But if you have subscribed for email delivery - unsubscribe
does not work. I know I now get both eMail and have to use
the newsgroup to post. There are MAJOR problems
thanx Richard, that works excellent.
Merlin
Richard Hawkes wrote:
You'll want to do something like this:
$timeStamp = strtotime(2004-04-29);
$timeStamp += 24 * 60 * 60 * 7; // (add 7 days)
$newDate = date(Y-m-d, $timeStamp);
The 'strtotime' function converts all sorts of standard dates
Be carefull guys, maybe email attacment contain a virus, NAV 2003 catch a
virus [EMAIL PROTECTED] I don't know from which list, php-general,
php-windows, pear-general, pear-dev or pear-cvs.
Firman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi there,
I am trying to add days to a given day, but somehow I am lost in all the time
functions.
This should be a standard function. Maybe someone has a good hint for me?
This is the given day:
2004-04-29
I would like to add 2 days to it.
So php should anyhow now how many days April has to
The time function available in PHP can be used for your requirement/
$two_days_later = date(Y-m-d,mktime(0,0,0,$month,$day+2,$year));
where $month, $day and $year are the respective parts of the given day
$year=2004
$month=04
$day=29
You can specify the number of days to be +/- in the mktime
THis does the same
http://0x00.org/php/phpApplication/
pete
Patrik Fomin wrote:
Hi,,
is there anyway to get the number of people connected to the site?
in asp you just use Application and session_terminate to accomplish this
is there anyway to do this in PHP ?
regards
patrick
--
PHP General
The OO paradigm maps very closely to problem domains, and is very easy to
model. OO let us build more complex software with less effort.
In general, OO code has more branches and hence use the stack more than
procedural code does. That is why OO code is thought not to be as fast as
procedural
Please ask a specific question, not a jumble of poor English ramblings.
plz help is a stupid, stupid subject. Post again with a more appropriate
title.
Curlybraces Technologies Ltd [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
- Original Message -
From:
Robby Russell wrote:
I am trying to debug some xml issues with a SOAP/Client-based script.
$sc = new SOAP_Client(...);
is there a way to display the XML it attempts to send the server when I
perform a
$sc-call(...)
*back to his google searches*
Just as a note, you might try posting
Hi...
Is there any way to find say the third monday of the month (all months of the year)
for any year (up to 2038) and show them in a combo box as exact dates? Have been
trying to get something of the sort to work and havent quite figured out how thats
supposed to work yet. I tried strtotime
Hello Richard,
Wednesday, March 31, 2004, 10:14:39 AM, you wrote:
JW strtotime() can do more than that, time to RTFM.
RH What else can it do other than convert dates to time strings Jason?
I have to agree with Jason on this one - the following code is just
reinventing the wheel:
$timeStamp =
Hi
try mktime you can get it there
-Harish
-Original Message-
From: Andy B [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 4:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] finding certain dates in the future (again)
Hi...
Is there any way to find say the third monday of the
On Wednesday 31 March 2004 19:28, Andy B wrote:
Is there any way to find say the third monday of the month (all months of
the year) for any year (up to 2038) and show them in a combo box as exact
dates?
strtotime(third monday, mktime(0, 0, 0, $month, 1, $year));
I'm sure you can work out the
Hi there,
I am trying to find values inside an array. This array always starts with 0.
unfortunatelly array_search start searching with the array element 1.
So the first element is always overlooked.
How could I shift this array to start with 1, or make array-search start with 0?
The array comes
Hi,
Wednesday, March 31, 2004, 10:20:06 PM, you wrote:
M Hi there,
M I am trying to find values inside an array. This array always starts with 0.
M unfortunatelly array_search start searching with the array element 1.
M So the first element is always overlooked.
M How could I shift this array
Merlin wrote:
I am trying to find values inside an array. This array always starts
with 0.
unfortunatelly array_search start searching with the array element 1.
So the first element is always overlooked.
Please read the text inside the big Warning box on the following page:
Merlin wrote:
Hi there,
I am trying to find values inside an array. This array always starts
with 0.
Do you mean the keys? Or the values? Unnamed keys _should_ start with 0.
unfortunatelly array_search start searching with the array element 1.
So the first element is always overlooked.
How
Hello all,
I'm working with somebody using IIS (honest - it's not me) to try and develop some web
services whereby a site hosted on IIS is able to access data using a nusoap client
with a nusoap server set up on a linux/apache server. I can do this satisfactorily
from another linux/apache
Hello all,
I am hoping someone can help me.
When someone brings up a page in the browser, is there a way to hide the URL
in the browser bar to a set URL??
Example: I want them to see this URL in the browser:
http://domain.com/test.htm But, I want them to see the url of
http://domain.com in the
Will,
This isn't really a PHP thing... you can do it a number of ways... probably
the best is to use frames. If you only have one then just create a single
frameset with one frame in it
Have a look at a HTML help site...
Nunners
-Original Message-
From: Will [mailto:[EMAIL
You could use HTML Frames, ensuring 'index.html' was your main frame. Not much
PHP required though!
-Original Message-
From: Will [mailto:[EMAIL PROTECTED]
Sent: 31 March 2004 14:38
To: [EMAIL PROTECTED]
Subject: [PHP] Hinding URL
Hello all,
I am hoping someone can help me.
When
On Wednesday 31 March 2004 14:38, Will wrote:
Hello all,
I am hoping someone can help me.
When someone brings up a page in the browser, is there a way to hide the
URL in the browser bar to a set URL??
Why should a remote server have control over what a local client can display?
The closest
Will,
I had a look at this a while ago though never pursued it. If you do a search on google
for url cloaking this should give you some pointers.
I think the only way of doing it is to set up an empty frame and load all pages within
that frame. This will hide more complex urls but with all the
[snip]
When someone brings up a page in the browser, is there a way to hide the
URL
in the browser bar to a set URL??
Example: I want them to see this URL in the browser:
http://domain.com/test.htm But, I want them to see the url of
http://domain.com in the browser bar. Is this possible?? I hope
So we're all agreed on Frames then?!
-Original Message-
From: Michael Egan [mailto:[EMAIL PROTECTED]
Sent: 31 March 2004 14:43
To: Will; [EMAIL PROTECTED]
Subject: RE: [PHP] Hinding URL[Scanned]
Will,
I had a look at this a while ago though never pursued it. If you do a search
on
Thanks everyone! :) I was not sure what it was called.
Thanks again,
~WILL~
PS: Sorry I thought you could do something in PHP.
-Original Message-
From: Michael Egan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 8:43 AM
To: Will; [EMAIL PROTECTED]
Subject: RE: [PHP] Hinding
From: Will [EMAIL PROTECTED]
Thanks everyone! :) I was not sure what it was called.
Thanks again,
~WILL~
PS: Sorry I thought you could do something in PHP.
Don't think for a second that you're actually hiding anything here. The only
people you'll fool are newbies browsing the web. While
John,
I agree with you but when I first looked at this I too thought there was some way of
doing this in php which might look more elegant. Seeing urls such as
www.mydomain.com/index.php?article_id=2id=e5t28er647ryh362hy67eh4563yh4635 looks
fairly cumbersome and I'm sure I've seen something
Problem solved. It seems there was a proxy server involved which was screwing things
up.
Regards,
Michael Egan
-Original Message-
From: Michael Egan
Sent: 31 March 2004 14:20
To: PHP General (E-mail)
Subject: [PHP] fsockopen connection error on IIS[Scanned]
Hello all,
I'm
snip
I agree with you but when I first looked at this I too thought there
was some way of doing this in php which might look more elegant. Seeing
urls such as
www.mydomain.com/index.php?article_id=2id=e5t28er647ryh362hy67eh4563yh4635
looks fairly cumbersome and I'm sure I've seen something about
On seeing that the only way of doing this was to use frames I decided
that
the costs of doing this probably outweighed what is in effect a purely
cosmetic issue.
Never ever underestimate the cosmetic factor when you are talking
about Usability and search engines.
For example, if you are
From: Michael Egan [EMAIL PROTECTED]
I agree with you but when I first looked at this I too
thought there was some way of doing this in php
which might look more elegant. Seeing urls such
as
www.mydomain.com/index.php?article_id=2id=e5t28er647ryh362hy67eh4563yh4635
looks fairly cumbersome
Matt,
Many thanks for these excellent links - I think I might have reached a different
conclusion if I'd come across these at the outset.
Cheers,
Michael Egan
-Original Message-
From: Matt Matijevich [mailto:[EMAIL PROTECTED]
Sent: 31 March 2004 15:11
To: [EMAIL PROTECTED]
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Do a search for search engine friendly URLs or somethig along those
lines to see how to fix this. Using frames is not a very elegant
solution. I'm not sure how/if search engines will index your pages if
you have
Hi Gang,
I'm now writing the dreaded support document for the code, and I need to
enhance my PHP to show error numbers so we can diagnose where it failed. All
fine so far, but I've found a couple of functions that can be called from
various other functions, so it's difficult to track where it
Hi all,
Is recode broken in php4.3.3 on OpenBSD? When I try recode it returns an
empty string! The same string used in mb* and iconv performs as expected.
--
Hilsen/Regards
Michael Rasmussen
--
You would if you could but you can't so
Maybe you would like to check out debug_bracktrace();
Hawkes, Richard wrote:
Hi Gang,
I'm now writing the dreaded support document for the code, and I need to
enhance my PHP to show error numbers so we can diagnose where it failed. All
fine so far, but I've found a couple of functions that can
Hello Andy,
Tuesday, March 30, 2004, 6:48:47 AM, you wrote:
AB $rows=mysql_query(select count(*) as count from users);
AB $count=mysql_fetch_array($rows);
There's no need to extract the result into an array in this instance,
why bother giving PHP that extra overhead? Unless the query failed,
Thank you very much. Perhaps I should RTFM eh? Much better to get good advice
though wouldn't you say?!
Cheers
Richard
-Original Message-
From: Red Wingate [mailto:[EMAIL PROTECTED]
Sent: 31 March 2004 16:16
To: Hawkes, Richard
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Is There a Stack
Hi all
does anyone know of a regex expression to get only the number number from after the
Code 39
Kind Regards
Brent Clark
1 barcodes found Code 39-10005215
This is the search1 barcodes found 2 barcodes found Code 39-10005216 Datalogic 2 of
5-4
This is the search2 barcodes found 1 barcodes
preg_match( #39-([0-9]{8})# , $source , $result );
Brent Clark wrote:
Hi all
does anyone know of a regex expression to get only the number number from after the Code 39
Kind Regards
Brent Clark
1 barcodes found Code 39-10005215
This is the search1 barcodes found 2 barcodes found Code
Brent Clark wrote:
Hi all
does anyone know of a regex expression to get only the number number from after the Code 39
Kind Regards
Brent Clark
1 barcodes found Code 39-10005215
$barcodes = Code 39-10005216;
$parts = explode(,$barcodes);
echo Number is .$parts[1];
Might be faster.
--
PHP
Faster, but wrong. Take a look at his question and examples.
Burhan Khalid wrote:
Brent Clark wrote:
Hi all
does anyone know of a regex expression to get only the number number
from after the Code 39
Kind Regards
Brent Clark
1 barcodes found Code 39-10005215
$barcodes = Code 39-10005216;
Curt,
Thanks for the suggestions. Unfortunately, no luck
yet. Here's the current version of the affected lines
of code:
$file_type = vnd.ms-excel;
$file_ending = xls;
header ( Content-Type: application/$file_type );
header ( 'Content-Disposition: attachment;
filename=product.'.$file_ending.'' );
From: Burhan Khalid [EMAIL PROTECTED]
Brent Clark wrote:
Hi all
does anyone know of a regex expression to get only the number number
from after the Code 39
Kind Regards
Brent Clark
1 barcodes found Code 39-10005215
$barcodes = Code 39-10005216;
$parts = explode(,$barcodes);
From: Richard Davey [EMAIL PROTECTED]
AB $rows=mysql_query(select count(*) as count from users);
AB $count=mysql_fetch_array($rows);
There's no need to extract the result into an array in this instance,
why bother giving PHP that extra overhead? Unless the query failed,
the value count
Check the comments on this page:
http://us2.php.net/manual/en/function.session-cache-limiter.php
---John Holmes...
- Original Message -
From: Andrew Hauger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 11:18 AM
Subject: Re: [PHP] File Download link not working
by using php technology, is there any possibility
to stop/start perl script ina remote machine ?
thanx in advance
curlys
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Lester Caine wrote:
Wabyan wrote:
I do not know why I received this newsgroup infos, even if I like PHP :-)
I will follow procedure unsbcribe
But if you have subscribed for email delivery - unsubscribe does not
work. I know I now get both eMail and have to use the newsgroup to post.
I have been writing OOP programs for the past couple years. Over these
years I have run into the same problem, I have solved the problem in
many different ways. I was wondering if there is a recommended way to
solve the problem I have listed below.
To keep it simple, lets say I have 3
$count = mysql_result($rows, 0, 'count');
i guess that would work too if all you need is the # of rows in a table...
if you need it in an array then...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 2004-03-31 at 12:55, Jonathan Pitcher wrote:
I have been writing OOP programs for the past couple years. Over these
years I have run into the same problem, I have solved the problem in
many different ways. I was wondering if there is a recommended way to
solve the problem I have
is it too bad to have the globals = on in /etc/php.ini ?
Best wishes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2004-03-30 at 20:31, Daniel Bahena wrote:
is it too bad to have the globals = on in /etc/php.ini ?
It is strongly advised to have this set to off for security and
maintainability reasons.
Cheers,
Rob.
--
..
| InterJinn
Hello Andy,
Wednesday, March 31, 2004, 7:02:59 PM, you wrote:
AB i guess that would work too if all you need is the # of rows in a table...
AB if you need it in an array then...
... then you read the part of my post that said There's no need to
extract the result into an array **in this
I **highlighted** the relevant part for you :)
i know what you mean... if you highlighted the part you were talking about
with color then would explain why i didnt get what part you were talking
about... my screen reader doesnt pay much attention to color highlights so
probably missed it...
Hi Manuel,
El mar, 30-03-2004 a las 18:11, Manuel Lemos escribió:
This might work... I gues that any web server to make advantage of the
new kernel 2.6 has to make explicit use of the sendfile() system call.
I know for sure that boa does it. I don't know about thttpd or apache2.
Hi,
Has anyone the code for me to load dynamic pictures in a website? I mean: so
that any user on my website can add dynamic a picture to that website which
is immedeatly visible?
Thanks for helping.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi everyone,
I just wanted to send a one-time announcement regarding a new extension that
we're (the FANN project) releasing today.
URL: http://prdownloads.sourceforge.net/fann/fannphp-0.1.0.tar.bz2?download
fann (Fast Artificial Neural Network Library) implements multilayer
feedforward ANNs.
Greetings.
I've been RTFM all morning and for the live of me can't figure out how
to relate the element name to its data, e.g. if the element name is
fullname and the data is John Doe' how do I achieve $fullname =
John Doe I must not be understanding how xml_parse works, and
my searches have
Curlybraces Technologies Ltd wrote:
by using php technology, is there any possibility to stop/start perl
script in a remote machine ?
thanx in advance
curlys
You probably want to check out XML-RPC. You'd create server/client
scripts that pass xml messages back and forth. As long as your
Kenn Murrah wrote:
Greetings.
I've been RTFM all morning and for the live of me can't figure out how
to relate the element name to its data, e.g. if the element name is
fullname and the data is John Doe' how do I achieve $fullname =
John Doe I must not be understanding how xml_parse works,
Jason:
Yes, I am aware of the problem. However, for the very simple XML files
that I'm being asked to process, it's not an issue -- each file has, for
example, one and only one occurrence of fullname So, while I
realize that any solution I achieve for this project will have virtually
no
My question involves sending html to the printer to be printed properly.
Here is my code:
$handle = printer_open('Lexmark Z25-Z35');
printer_start_doc($handle, test);
printer_start_page($handle);
printer_set_option($handle, PRINTER_MODE, 'raw');
printer_set_option($handle, PRINTER_PAPER_FORMAT,
Kenn Murrah wrote:
Jason:
Yes, I am aware of the problem. However, for the very simple XML files
that I'm being asked to process, it's not an issue -- each file has, for
example, one and only one occurrence of fullname So, while I
realize that any solution I achieve for this project
I'm trying to get php running on a Mac OS X box, but even though the
configure of php runs fine, I get this when I try to build php
make: *** No rule to make target
`files/php-4.3.5/sapi/apache/sapi_apache.c', needed by
`sapi/apache/sapi_apache.lo'. Stop.
This is the only thing it
Jason Barnett wrote:
Kenn Murrah wrote:
Jason:
Yes, I am aware of the problem. However, for the very simple XML
files that I'm being asked to process, it's not an issue -- each file
has, for example, one and only one occurrence of fullname So,
while I realize that any solution I
John Nichel wrote:
I'm trying to get php running on a Mac OS X box, but even though the
configure of php runs fine, I get this when I try to build php
make: *** No rule to make target
`files/php-4.3.5/sapi/apache/sapi_apache.c', needed by
`sapi/apache/sapi_apache.lo'. Stop.
This is the
Hmmm, that looks interesting.
On another note, I've made a simple parse based on PEAR's XML_Parser
that parses an entire XML tree into associative arrays. Feel free to use
it.
http://www.reversefold.com/~papercrane/XML_Parser_Assoc/Assoc.phps
I haven't used that class before, or else I
Hello Andy,
Wednesday, March 31, 2004, 7:21:44 PM, you wrote:
AB i know what you mean... if you highlighted the part you were talking about
AB with color then would explain why i didnt get what part you were talking
AB about... my screen reader doesnt pay much attention to color highlights so
AB
While running the below code, a form passes the image name to this code, the
values when executed are as follows:
Step1: upload_file_type:
Step1: upload_file: C:\\Documents and Settings\\jack.IISG\\Desktop\\BVP.jpg
Step1: extention:
Step2: upload_file_type:
Step2: upload_file: C:\\Documents
Joey mailto:[EMAIL PROTECTED]
on Wednesday, March 31, 2004 2:54 PM said:
Step1: upload_file_type:
Step1: upload_file: C:\\Documents and
Settings\\jack.IISG\\Desktop\\BVP.jpg Step1: extention:
Step2: upload_file_type:
Step2: upload_file: C:\\Documents and
I don't use colour in emails to this (or any) list, sorry. I would
have hoped the screen reader said asterisk asterisk highlighted
all i heard it say was *** on the line that said something like
***highlighted... but thats whas only when you referrenced to you
highlighted the stuff... anyways
hello all
i've a problem, serious one.
how can i pass the name of a file upload to a function ?
i need to do the upload of 1 file, but want to use a function, so that
the main file stays small
the problem is, when passing the file name, throw the $_FILES super
global , is not recognized in
On Tuesday 30 March 2004 19:31, Rob Ellis
wrote:
On Tue, Mar 30, 2004 at 11:23:03AM +0300,
nabil wrote:
When submitting a data from an HTML page
and inserting them in MySQL: what
encoding they will be ?
is it the page encoding?
the field size like VARCHAR 15 won't fit
the same in
===
This message is for the benefit of new
subscribers and those new to PHP. Please
feel free to add more points and send to the
list.
===
1. If you have any queries/problems about PHP
try http://www.php.net/manual/en
Ok, so it took some tracking, but I believe I have found the problem. The
problem was with the putenvs conflicting with mod_perl. The full rundown
is from an old php-install post. See it at
http://www.phpbuilder.com/lists/php-install/2003092/0018.php
The summary is mod_perl and PHP on my
===
This message is for the benefit of new
subscribers and those new to PHP. Please
feel free to add more points and send to the
list.
===
1. If you have any queries/problems about PHP
try
http://www.php.net/manual/en
first.
I was using an offline copy of the PHP manual without the discussion
included on the online page pointed to by the link in John's response. The
discussion on the online page provided the information I needed to
understand the full extent of the caching issue. The application is now
working
Has anyone had any problems with the $_POST super global not working in a
HTTPS environment?
My code works perfectly fine through a unsecured HTTP POST but when I do an
HTTPS POST it only handles a few variable (I think 15 or 16). Any more than
that and it looses all the $_POSTed variables.
Has
* Thus wrote Joey ([EMAIL PROTECTED]):
...
if($upload_file !=)
{
//image size esle will ignore ...
$img_max_width=750;
$img_max_height=750;
$extention=
$file_type1 = image/pjpeg;
Here is your bug as you described. $extention is assigned the
value of $file_type1 after it is assigned
Just thought I'd throw this amazing tool out there as I just discovered it
too:
http://www.weitz.de/regex-coach/
Windows and linux versions for free!
-Original Message-
From: Brent Clark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 7:29 AM
To: [EMAIL PROTECTED]
I can't seem to use the shell_exec() command.
Here is the program:
?php
$data = shell_exec(free -b);
$data = str_replace(' ',' ',$data);
$data = str_replace(' ',' ',$data);
$data = str_replace(' ',' ',$data);
$data = str_replace(' ',' ',$data);
$dataArray = explode(' ',$data);
Hi List,
Is using checkdnsrr a good way to tell if a domain name is available ?
If I ask checkdnsrr to look for 'NS' records and the result comes back as
false then dose that mean a domain name is available to use ?
Also what dose checkdnsrr use to lookup records. Is it the internal DNS
server
You might also want to look at opensource frameworks like
Ampoliros
or
Ez publish
-Original Message-
From: Ignatius Reilly [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 9:21 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Bill
Subject: [PHP] Re: [PHP-WIN] ASP.NET web control in
91 matches
Mail list logo