--- Monty [EMAIL PROTECTED] wrote:
Right now the pages on my site use this form of URL:
domain.com/articles.php?id=999
Now that I have upgraded my server to Apache 2, I'm going to use
the ForceType and FollowSymLinks options to change the entire site
to use this search-engine-friendly
A database server by nature must assume that all data is equally mutable.
An application developer, however, knows by design how fresh any one
piece of data needs to be and can cache accordingly. E.g., don't hit the
database for your site's navigational structure or news articles every
single
Robert Cummings [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
A common misconception is that templates provide complete separation
from logic, this is untrue. Template frameworks (the best ones) provide
separation of business logic from presentation logic. So using an if
statement
Are you sure you have both mod_rewrite and .htaccess installed on the new
apache then? Things like this is often very silly you know, you look past
the problem (I've done that several times)...
RewriteRule /articles\.php\?id=([0-9]+)$ /articles/$1
Although, I've never even used mod_rewrite so
On Friday 23 January 2004 22:33, John W. Holmes wrote:
From: Chris Boget [EMAIL PROTECTED]
[snip]
[/snip]
Learn and use C++
Or sessions.
Along with serialize() and deserialize(), all are your friends in this
case.
He's talking about the same set of data being available
all internal strings in my scripts and database are utf-8 encoded
i want to convert case of cyrillic characters in the utf-8 string
i'm setting setlocale (LC_ALL, 'ru_RU.utf8')
using for example ucfirst () and got no any conversion,
case of characters remains the same.
latin characters are
I'm in the process of moving to a new server and no sessions are working.
Does something need to be set in the php.ini file? Why would sessions not be
working?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 25 Jan 2004 17:09:27 - Issue 2551
Topics (messages 175670 through 175681):
Re: Form variables + sessions, is this how it is supposed to work? - Grammar corrected
175670 by: Paul
Re: RewriteRule REGEX ?
175671 by: Monty
175675 by: Chris Shiflett
Figured it out.
Had to turn on RegisterGolbals (which I had, but didn't restart Apache).
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm just barely beginning... but I have tried to research this...
As per instructions in the class I'm taking I set up several php library
folders outside of public_html, one of which is
../phplib/utilities/
and inside that folder I've put a file scandir.php containing the
function called
Barefoot wines got sued by the French maker of Chateu la fite for their
Chateu la feet and Barefoot lost. Amazing but that's the precedent that
comes to mind.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I recieved this advice off-list:
---
You need to include() the file containing the scandir() function.
include '/path/to/file';
or if the file is in one of the dirs you've defined above you could use
the constant instead.
You can also define your include dir in php.ini or if running as
Hello,
In page_1.php I have this form:
?
$num_rows = count ($s_goal);
for ($i = 0; $i $num_rows; $i++) {
echo
table width='98%'
tr
td
form action=page_2.php method=POST
input type=checkbox name=meth[] value=TMT
input type=checkbox name=meth[] value=TO
input type=checkbox name=meth[]
Paul Furman wrote:
You can also define your include dir in php.ini or if running as an
apache mod in an .htaccess file.
I had luck with the include approach:
include 'c:/_Paul/web/phplib/utilities/dirfile.php';
echo scandir();
I guess it'd be more wise to put in my php.ini to
John W. Holmes wrote:
snipped a bit
As for your php.ini, you put a path for include files that PHP will look
in by default. So if you put 'c:/_Paul/web/phplib/utilities' as an
include path, you'll be able to just use include 'dirfile.php'; instead
of giving the complete path.
I added this line
Interesting idea. I feel rather unintelligent for not thinking of that,
but it would solve my second application for threading - big tasks I
don't want the user to wait around to finish like image compression and
storage. Excellent suggestion.
Unfortunately, my first application for threading
Paul Furman wrote:
I added this line to my php.ini without luck:
include_path = 'c:/_Paul/web/phplib/utilities'
PS I also tried it with backslashes instead of forward-slashes.
Inside php code that doesn't matter (or at least it works) on my windows
machine but the php.ini does ask that you follow
Solved again, double quotes needed!
include_path = c:\_Paul\web\phplib\utilities
include_path = 'c:/_Paul/web/phplib/utilities'
PS I also tried it with backslashes instead of forward-slashes.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Looks great, except it's not setup on my remote host. I have SSH, FTP,
etc access but I do not administrate the system nor can I request
something like recompiling PHP just for me.
You can see for yourself:
http://zinkconsulting.com/phpinfo.php
Any other ideas?
-Galen
On Jan 24, 2004, at
I am trying to use a back button to allow a user to change submitted form
values.
The problem I am having is that when they submit the form a second time,
regardless of what is entered, the variable $test does not change and keeps
only the first value assigned to it! I am able to solve this by
Good Day Coders -
I have built a newsletter program with php. It sends out an e-mail to a couple
thousand subcribers every day. All works well. My problem is that I have know
way of finding out which e-mails are not being delivered successfully.
My code is as follows:
$to =
I would like to give the users of my web site the ability to upload video
type files, up to 12 megs in size.
I notice in my PHI.INI there is a
memory_limit =8M ; Maximum amount of memory a script may consume
(8MB)
does this include temporary such as a file being transferred?
Also I
I am working on an integration between my PHP site and an ASP site with XML.
The basic flow is this: I generate a request by placing XML into the value
portion of an input tag called ³REQUEST² the action is the url of the remote
ASP server which receives the request. It then returns a form with
Chris --
You have started a new thread by taking an existing message and replying
to it while merely changing the Subject: line.
That is bad, because it breaks threading. Whenever you reply to a
message, your mail client generates a References: header that tells all
recipients to which
Chris --
...and then Chris Edwards said...
%
% I would like to give the users of my web site the ability to upload video
% type files, up to 12 megs in size.
OK.
%
% I notice in my PHI.INI there is a
%
% memory_limit =8M ; Maximum amount of memory a script may consume
% (8MB)
%
%
[Mon Jan 26 07:42:56 2004] [error] PHP Warning: Failed to write session
data (files). Please verify that the current setting of session.save_path is
correct (/tmp) in Unknown on line 0
[Mon Jan 26 07:43:25 2004] [error] PHP Warning:
open(/tmp/sess_ce957a6f5c094441fbf7197aa683dec1, O_RDWR) failed:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Since the action of your form is the ASP script, it will always take
your user to the ASP script and not return results to the PHP
application, which I think it what you want to do, if I am not mistaken.
I found a link in the manual
Ahh fantastic. Thanks very much for that.
Tobias Bradtke [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Aidan Lister wrote:
I am attempting to put this in my XSL, a href=xsl:value-of
select=link
/, However I get a ton of errors. How do I do this properly?
try something like
I'm not sure if anyone else understood what you're trying to do better than
I did, but it sounds like you're not to sure about php/html.
To get the results of a form, you need to search the POST array.
var_dump($_POST);
As to the rest of the questions, I really don't understand what you're
May i ask, what is a good purpose for xsl apart from syndication, is it
worth it for building an entire site in or a content management system ?
Like i found generating the xml, then having to do loops and stuff in xsl,
having no control in php a real pain.
Ahh fantastic. Thanks very much for
open(/tmp/sess_ce957a6f5c094441fbf7197aa683dec1, O_RDWR) failed: No space
left on device (28) in Unknown on line 0
can anyone explain what can i do with this? this always happen, btw, on
some of my php pages i always have sessions.
Sounds like you're out of room on whatever drive /tmp is mapped
Hi -
I'm running across a strange situation in which a script I'm running on a hosting
company's server
as a web page (no shell access available) is dying inside imap_fetchstructure when the
message has
an attachment.
Of course, when I run it on my machine at home, it works fine :( .
The
I'll tell you the reasons I am doing it, then some other useful information.
You can make your own mind up.
The company I work for receives publications from all over the world, these
publications are usually word documents or HTML docs.
Most of the papers come through with an excessive amount of
actually /tmp is under /root and it contains 10G of space free still.
What could be wrong here? Is it im loosing hardware resources, etc?
-- -
Louie Miranda
http://www.axishift.com
- Original Message -
From: Mike Migurski [EMAIL PROTECTED]
To: Louie Miranda [EMAIL PROTECTED]
Cc: [EMAIL
i mean under /
-- -
Louie Miranda
http://www.axishift.com
- Original Message -
From: Louie Miranda [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 26, 2004 9:54 AM
Subject: Re: [PHP] Problem: Failed to write session data (lack of
resources?)
actually /tmp is under
Louie Miranda wrote:
i mean under /
Please use the unix command 'df' to see the disk drive usages for a list
of your available disks and specially for the disk where /tmp is located.
Best
Bao
-- -
Louie Miranda
http://www.axishift.com
- Original Message -
From: Louie Miranda
I'm running into some weird trouble here. I'm a very experienced PHP
programmer, but I rarely ever deal with framed sites. A client wants a
framed PHP site that needs session data passed between the frames.
I have index.php which is simply the parent with frameset HTML code that
tells the URL for
This is exactly what I needed. Thanks a million!!!
/T
on 1/25/04 18:24, Ben Ramsey at [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Since the action of your form is the ASP script, it will always take
your user to the ASP script and not return results to the PHP
Hi,
Monday, January 26, 2004, 10:21:59 AM, you wrote:
LM [Mon Jan 26 07:42:56 2004] [error] PHP Warning: Failed to write session
LM data (files). Please verify that the current setting of session.save_path is
LM correct (/tmp) in Unknown on line 0
LM [Mon Jan 26 07:43:25 2004] [error] PHP
On Sun, Jan 25, 2004 at 06:26:26PM -0800, Jonathan Hilgeman wrote:
I'm running into some weird trouble here. I'm a very experienced PHP
programmer, but I rarely ever deal with framed sites. A client wants a
framed PHP site that needs session data passed between the frames.
Mu.
A session is
Hi!
Your have sent me a message from an address marked as being primarily
a source of SPAM (also known as unsolicited commercial e-mail),
and the message has been discarded.
If in fact this was a genuine non-SPAM message and you still wish
to contact me, then you need to re-send the message from
I want to include (/home/myaccount/calendars/+nameofmonth+.htm)
How can I get the name of the current month? I'm sure this is an easy one, I'm too
tired to see it.
include (/home/myaccount/calendars/+date(f)+.htm)
But date(F) is Capitalised. There is no date (f) for a lower case?
--
John
I want to include (/home/myaccount/calendars/+nameofmonth+.htm)
How can I get the name of the current month? I'm sure this is an easy one, I'm too
tired to see it.
include (/home/myaccount/calendars/+date(f)+.htm)
But date(F) is Capitalised. There is no date (f) for a lower case?
--
John
--- Jonathan Hilgeman [EMAIL PROTECTED] wrote:
I'm running into some weird trouble here. I'm a very experienced PHP
programmer, but I rarely ever deal with framed sites. A client wants
a framed PHP site that needs session data passed between the frames.
I think all of your questions would be
John Taylor-Johnston wrote:
I want to include (/home/myaccount/calendars/+nameofmonth+.htm)
How can I get the name of the current month? I'm sure this is an easy one, I'm too tired to see it.
include (/home/myaccount/calendars/+date(f)+.htm)
But date(F) is Capitalised. There is no date (f) for
Chris Shiflett wrote:
snip
Regardless of what you mean by that, it should be clear that nothing
except client-side scripting is going to happen until your browser makes
another request. PHP is sitting on the server, twiddling its thumbs.
Thumbs? Holy cow, is that a new feature in PHP5? ;)
--
Sorry, no-can-do. No root access - it's a lightly loaded shared
machine. No Apache 2. Other ideas?
Full info at:
http://zinkconsulting.com/phpinfo.php
-Galen
On Jan 24, 2004, at 6:16 PM, Chris Shiflett wrote:
--- Galen [EMAIL PROTECTED] wrote:
This may be completely crazy, but let me tell you
I'm not 100% sure what you're talking about, to be honest. I think I'm
in the second half of the people... :)
As far as I can tell, Apache runs as many processes (httpd) as needed
on my local machine. As far as my server, I haven't seen this behavior,
but I admit I don't sit there watching top
I understand your point, but I'm not sure that you understood mine. (see
below)
Chris Shiflett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
--- Jonathan Hilgeman [EMAIL PROTECTED] wrote:
Regardless of what you mean by that, it should be clear that nothing
except client-side
49 matches
Mail list logo