>> Better to do this in an .htaccess file, so you don't incur PHP
>> processing overhead on the entire server (if there are others using
>> it).
>
>Apache suggests not using .htaccess files at all because they require a
>recursive traversing of directories looking for .htaccess files, because
>some
Ok thank you very much
-Ursprungliche Nachricht-
Von: Chris Kay [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 25. August 2003 01:37
An: 'Dennis Dujan - Partycult.de'
Betreff: RE: [PHP] php NEWBIE Question
Try http://au.php.net/manual/en/function.fsockopen.php
If your looking for a tutoria
Iam currently writing some Scripts in PHP for a Webappliance.
And now I have the problem that I have to connect with
a PHP Script to a Shell that is located on another Server.
But I don't know how to do this... :-/
Perhaps you can help me with an example or a Page with a Tutorial.
Greetz
Dennis
-
Access is a pc database. It doesn't run on unix. Why people insist on
beating their heads against the wall in this manner I will never know.
Ignorance I suppose. The alternative is to have your friend use a
relational database and have a few simple forms that will allow him to
insert/update/dele
* Thus wrote Matthias Wulkow ([EMAIL PROTECTED]):
>
> Hi php-general,
>
> I have followig error reported:
>
> Fatal error: Call to undefined function: mail() in /usr/local/www/login.php on line
> 235
>
> What is the trouble here? If I would have trouble because of
> delivery, normally mail wo
* Thus wrote Dennis Dujan - Partycult.de ([EMAIL PROTECTED]):
> Hi,
> can you tell me how is it possible to connect to a linux shell via PHP?
Ok, i suppose I should reply to this before you ask the same
question with less details, again.
Please be a little more specific in your question, like wha
* Thus wrote Dennis Jacobfeuerborn ([EMAIL PROTECTED]):
> Hi!
> The connection_* function don't seem to work for me and I can no longer
> determine when the user has aborted the script. When I close the browser
> window the script just keeps running. (see bug #23163)
>
> The body of the script ess
Hi php-general,
I have followig error reported:
Fatal error: Call to undefined function: mail() in /usr/local/www/login.php on line 235
What is the trouble here? If I would have trouble because of
delivery, normally mail would return false. But here...
I have php4.3.1 running on linux. I just
Hi,
can you tell me how is it possible to connect to a linux shell via PHP?
Greetz
Dennis
On Sun, 24 Aug 2003 14:54:41 -0400 (EDT), you wrote:
>I'm building a small web application for a friend using PHP. He'd like to
>use MS Access to keep the data in, and update the data on the site by FTP'ing
>Access files he edits on his machine up to the web host.
>
>The web host is unix-based (F
Hi!
The connection_* function don't seem to work for me and I can no longer
determine when the user has aborted the script. When I close the browser
window the script just keeps running. (see bug #23163)
The body of the script essentially looks like this:
while( !$done ) {
$con->sendMessa
Though no parse error, it can result in an notice about 'undefined index' ..
I'd prefer
Taking care of three things:
- No undifined index notice
- the cookie can also have a value that evaluates to false
- the 'die;' makes sure the script really ends .. sometimes, somehow
This is a widespread problem. One which we faced, and eventually solved by
deciding to just write the application in .NET instead.
Some links that may be helpful...
This link deals with problems trying to use PHP's built-in function
"odbc_connect" on a Linux box:
http://forums.devshed.com/t37357/s
I'm sure this has been asked but I need clearification. I would like to
create a script that can run remote programs and edit remote files on Linux
(both hosts are linux). The reason is I would like to make a web hosting
control panel using PHP that I can have my mail & dns server on one machine
php-general Digest 24 Aug 2003 18:54:05 - Issue 2256
Topics (messages 160568 through 160598):
Re: Easy XML & PHP tutorials ?
160568 by: murugesan
CRC and Polynomials
160569 by: Methusula
160571 by: Andrew Brampton
regex replace href-content
160570 by: Ch
I'm building a small web application for a friend using PHP. He'd like to
use MS Access to keep the data in, and update the data on the site by FTP'ing
Access files he edits on his machine up to the web host.
The web host is unix-based (FreeBSD, slightly hacked by Verio, I believe), so
this means
* Thus wrote Stevie D Peele ([EMAIL PROTECTED]):
> Heres what I wrote --
>
> if ($_COOKIE['pagename'])
> {
> header('Location: http://www.net-riches.com/800x600.html');
> }
> ?>
>
> and I got a parse error on line 4, but I do not see what is wrong on line
> 4!
There is no parse error in that c
Heres what I wrote --
http://www.net-riches.com/800x600.html');
}
?>
and I got a parse error on line 4, but I do not see what is wrong on line
4!
Can anyone else see?
Thanks
On Sun, 24 Aug 2003 10:04:50 -0400 "Matt" <[EMAIL PROTECTED]> writes:
> On Sunday, August 24, 2003 at 9:49 AM Stevie
Hi,
The prototype for mysql_connect is:
resource mysql_connect ( [string server [, string username [, string
password [, bool new_link [, int client_flags ] )
As you can see you get parse error because the fourth argument
should be boolean, not string.
Cheers,
Catalin
35: /
Using:
- Apache 1.3.27
- PHP 4.2.3
I just changed my httpd.conf to have two virtual
hosts. One of them uses php, so I added the
include_path, but when I try to test the config I get
a core dump.
Here's the vhost section for the domain using php:
[...]
ServerAdmin [EMAIL PROTECTED]
> Better to do this in an .htaccess file, so you don't incur PHP processing
> overhead on the entire server (if there are others using it).
Apache suggests not using .htaccess files at all because they require a
recursive traversing of directories looking for .htaccess files, because
some supersed
I'm not sure what you're asking but...
Using htmlentities() and undohtmlentities() (look up the real functions)
to data going into and out of your database will allow you to store it
without getting lots of errors...
mySQL storage (even TEXT and BLOB types) can't be larger then so many
bytes (sys
Hi php-general,
I'm thinking of how I could store the content of a String-variable a) in a
Variable to be passed to other functions b) in a Database (MySQL) too . The content is
html-code (with
tags and style code (css)).
The point is that I'm making myself a kind
of CMS, and I want to edit a pa
Hmm .. thanks .. but shortly after posting I came to this idea that I might
want to use array_shift(); for this one .. works with numerical indices
Out of interest, is it really impossible to get such a thing for string
indices?
-> -Oorspronkelijk bericht-
-> Van: John W. Holmes [m
Wouter van Vliet wrote:
I'm trying to get the first element of a value returned by a function ..
== example ==
function return_Array() {
return ('one', 'zwei', 'kolm', 'vier');
}
print return_Array()[0];
==/ example ==
Now i'd like this script to print 'one' for me .. can it be done witho
Hi,
I'm trying to get the first element of a value returned by a function ..
== example ==
function return_Array() {
return ('one', 'zwei', 'kolm', 'vier');
}
print return_Array()[0];
==/ example ==
Now i'd like this script to print 'one' for me .. can it be done without
creating a temp
murugesan wrote:
Can any one say what it the purpose of start_session()
fuction
Umm... to start a session. Read this:
http://us2.php.net/manual/en/ref.session.php
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professionals – www.
On Sun, 24 Aug 2003 15:38:13 +0100, you wrote:
>Second tip is that sprintf() should be faster than str_replace(). Compare:
>
>$text = "Hello %s";
>$name = "John";
>
>echo (str_replace ("%s", $name, $text));
>echo (sprintf ($text, $name));
Thinking about it, straight concatenation should be faster
How to handle file upload is well explained right at the start of the
manual. Once the file has been transfered to your server you can make
use of the numerous methods described in the 'filesystem functions' of
the manual to handle it.
Yasir Malik wrote:
I am doing my development for our proje
On Sun, 24 Aug 2003 14:42:01 +0200, you wrote:
>I have a mailing script that sends individualised mails to users(some
>users even get more than one mail).
>I have a template html mail file. I individualise this by using
>str_replace function.
>It is really slow.
>Can anyone point me to some perf
I am doing my development for our project on a Linux server, but our
client uses Windows. One of the features that we have is the ability to
send emails. The email feature will have a feature where the client can
upload a file from their computers with a list of emails. My script would
then parse o
Can any one say what it the purpose of start_session()
fuction
-murugesan.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it's in the manual.
Stevie D Peele wrote:
Can someone show me an example of some code that works something like
this :
if cookie is present
redirect to a certain page
?>
Thanks
The best thing to hit the internet in years - Juno
On Sunday, August 24, 2003 at 9:49 AM Stevie D Peele wrote:
> Can someone show me an example of some code that works something like
> this :
>
>
> if cookie is present
> redirect to a certain page
>
> ?>
http://www.php.net/header for explanation
if ($_COOKIE['cookie_I_want_to_know_about']) {
h
Please see this simple exemple:
http://www.educar.pro.br/faqgeral/fla0003.php
zerof
-
"Phillip Pang" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> I'm trying to create a hyperlink that will open a random Flash page so that users
> will
see a different flash module eac
Can someone show me an example of some code that works something like
this :
Thanks
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sig
Hi all,
I have a mailing script that sends individualised
mails to users(some users even get more than one mail).
I have a template html mail file. I individualise
this by using str_replace function.
It is really slow.
Can anyone point me to some performance tips?
I was thinking o
Hi all,
We've recently released a significantly sized new web site coded entirely in
PHP. One of the things done on the site is to link to various sections of it
as follows:
http://www.domain.com/?m=orders
http://www.domain.com/?f=index
As you can see we're neglecting to include the index.php in
You can goto like whatsmyip.com (or something similar) to get your ip and
connect to it unless there's a proxy or something...
http://www.liero-masters.host.sk/ip.php is another place, that I use as it
only displays the IP, and nothing else... :p
However, connecting to the domainname should work..
easyhost and invisionpower filemanager... Although, it seems better to write
the script yourself, would make it so much more fitting your exact wantings
and needs...
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Dasmeet" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECT
Hi,
I am trying to send the results of a form to my email account and am having
difficulty carrying the form variable through if I use an html mime type.
Basically, if I send the form using a plain text format, the form results
are sucessfully copied to the email, however, if I change to mime typ
This is not an apache proble it is a problem with your php.ini file. In
this file there is a line that specifies how large of POST data can be
received, the default is 500k. If you are running apache 2.0 there is
an additional place where this might be being defined. You can find
this file in th
I found this mentioned in a old user comment (it might not be relevant now):
"Some quick reverse engineering shows they're using the standard CRC32
parameters:
Polynomial 0x04C11DB7l
Initial register value 0x
Register is inverted at end of calculation
Bytes are reflected as they come in, a
Dear List,
I´m writing a little framework with special features for my application. The
content of my Website is in HTML-Pages from other users working with
HTML-Editors.
I parse the content in their in my framework.
now I have to replace the content of their links from test to test. It
works f
Hi,
Can anyone tell me which 32-bit polynomial is used by PHP in the crc
function? I am trying to write a crc function from scratch, however, php
does not appear to use any of the most commonly used polynomial divisors.
Methusula.
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
www.w3schools.com
-murugesan
- Original Message -
From: "Boaz Yahav" <[EMAIL PROTECTED]>
To: "Joe Harman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, August 24, 2003 1:09 AM
Subject: RE: [PHP] Easy XML & PHP tutorials ?
Try this too : http://www.sitepoint.com/article/1165
php-general Digest 24 Aug 2003 06:42:26 - Issue 2255
Topics (messages 160518 through 160567):
Expiration time of a cookie
160518 by: Stevie D Peele
160527 by: Matthias Nothhaft
Re: user-defined superglobals?
160519 by: Matthias Nothhaft
160522 by: Tom Rogers
Hi!,
I am developing a web site for an ISP.. They want to add homepage
functionality.. that is their subscribers can have thier homepage (say
with 2MB space each).
Is there any script (free or paid) for such system.. to manage, create
accounts etc...
Any information would be of great help!
Thank
On Sun, 24 Aug 2003 14:44:19 +1000
Kevin Waterson <[EMAIL PROTECTED]> wrote:
> This one time, at band camp, andu <[EMAIL PROTECTED]> wrote:
>
> > $command="sqlite db_name '.dump'";
> > exec($command,$result);
> > print_r( $result);// shows the dump array
>
> As sqlite is bundled with php5, I gu
Make sure that the user that you are connecting with has permissions to
connect to mysql from that computer. You can check the user table in the
mysql database to see the user and their associated permissions.
I would suggest checking out mysql.com for additional information.
--
BigDog
On Sat,
Heres the problem. I have one of my client's site hosted on a crappy
server, and i have it running with php+mysql ok, the thing is i need to
connect to that site's mysql's database from a different site to get data.
The problem is that on the origin site (the crappy server), to connect to
the
This one time, at band camp, andu <[EMAIL PROTECTED]> wrote:
> $command="sqlite db_name '.dump'";
> exec($command,$result);
> print_r( $result);// shows the dump array
As sqlite is bundled with php5, I guess command line type commands
are not available because it is compiled in.
Kevin
--
__
Try this :
$link = $row[company];
echo ("");
--
www.cpm-fr.com
Thanks for the link,
$link = $row['company'];\00\00
However this does not seem to work / what am I missing ?
Thanks
-Pushpinder
On Friday, August 22, 2003, at 03:23 PM, CPT John W. Holmes wrote:
From: "Pushpinder Singh Ga
On Sun, 24 Aug 2003 13:09:55 +1000
Kevin Waterson <[EMAIL PROTECTED]> wrote:
> I am writing an admin for sqlite but have struck a
> problem with exporting data. I wish to simply
> get a dump of the current sql database. from
> the commandline this would be done with .dump
> however this causes a
>> For example, on a file called info.html, i want to have some PHP
>> code that actually gets executed.
>
>In your httpd.conf add the line
>
>AddType application/x-httpd-php html
Better to do this in an .htaccess file, so you don't incur PHP processing
overhead on the entire server (if there
Kevin Waterson wrote:
This one time, at band camp, Pag <[EMAIL PROTECTED]> wrote:
I looked everywhere for the answer to this dilemma, and i know there is a
way around it, maybe something about the headers, cant really remember how
it was, but can someone please tell me how i can use PHP code o
Hi,
I keep getting Parse Error on line 36, but I can't figure out why...
relevant code:
35: // Initialize MySQL database
36: $h =
mysql_connect('localhost','localhost',constant("mysql_user"),constant("mysql
_password"));
37: mysql_select_db('mjec_mjecnet', $h);
using PHP v. 4.3.2
This one time, at band camp, Pag <[EMAIL PROTECTED]> wrote:
>
> I looked everywhere for the answer to this dilemma, and i know there is a
> way around it, maybe something about the headers, cant really remember how
> it was, but can someone please tell me how i can use PHP code on a file
I looked everywhere for the answer to this dilemma, and i know there is a
way around it, maybe something about the headers, cant really remember how
it was, but can someone please tell me how i can use PHP code on a file
with an extension of .html?
For example, on a file called info.html, i w
I am writing an admin for sqlite but have struck a
problem with exporting data. I wish to simply
get a dump of the current sql database. from
the commandline this would be done with .dump
however this causes an error when used with
sqlite_query()
Is there any other method to get a sqlite dump?
>It would be nice to have a php-function like
>
>declare_superglobal($_MYFRAMEWORK);
>
>And then use $_MYFRAMEWORK like $_GET.
You have a few options: if you are looking to set variables that are
static and atomic, you can use environmental variables in an .htaccess
file (getenv() to access them)
61 matches
Mail list logo