I am bringing up a site in March, but I am working on it now. I need some
PHP (not a lot). Please email me at [EMAIL PROTECTED] and let me know
if you are interested in helping. I'll make it worth your while. Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
You need to set an encoding and encode the body see:
http://www.php.net/manual/en/function.imap-8bit.php
**You will need to add the headers for this plus encode**
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Tom Rogers [mail
At 05:16 AM 1/9/03 +1000, Timothy Hitchens \(HiTCHO\) wrote:
use: apachectl graceful
It will reload the config's and allow operation to continue!!
Yes, in many cases this is the best option. The only time I've found it
will not work is when you are adding or changing SSL certificates. For a
Hi again guys i have run into another problem :(
i am trying to build a user poll (flash+php+mysql)
I have the interface all sorted but i have a problem with my add new poll
php file.
When i hit the update poll button in flash it seem that everthing has work
and it' send back a msg saying all went
The example doesn't have to make sense, but Im looking for the correct
syntax for $foo. I was trying ->
$foo = '\[this\](.*?)that';
$bar = 'the other';
$str = preg_replace($foo, $bar, $other_string);
But that doesn't work. I came across an example where the syntax of
$foo is in ->
$foo = '#\
It seem there is some probs with the latest release of php something about
global vars.
Jst checked and it works now. It was the php thing right enough. i hope
that my server admin have done the same thing with the php.ini
cheers guys.
"- -" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTE
is your question in regards to:
a) how to bring data from the 1st form across to the 2nd, so that it can all
be updated together OR
b) how to POST data from a form using a html link, probably with javascript
If b, best place to ask is a javascript list/newsgroup, or by looking for
something sim
$posted needs to have '' around it!! <-- this could be stopping it!!
(and always check to see if the vars exist first and if you are using
4.1 + with globals off you will need to change you code now or in the
future)
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
Yet another question: How would you make a variable's name the
value of another variable? For example... Variable 1's value is "joe." I want to
make the value of variabe one, or joe, the name of variable two which would
equal something else.
Thanks,Stephen Cratonhttp://www.melchior.us
"What
You are referring to Variables of Variables see:
http://www.php.net/manual/en/language.variables.variable.php
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 9 January 2003 10:52 A
on 09/01/03 11:52 AM, Stephen ([EMAIL PROTECTED]) wrote:
> Yet another question: How would you make a variable's name the value of
> another variable? For example... Variable 1's value is "joe." I want to make
> the value of variabe one, or joe, the name of variable two which would equal
> somethi
Hi Gerard,
all the preg_* functions require delimiters surrounding regular expressions.
$foo = '\[this\](.*?)that';
should be by default:
$foo = '/\[this\](.*?)that/';
the code you tried uses # as the delimiter instead of /, an option preg_*
allows
Take care,
Greg
--
phpDocumentor
http://www.
Sorry for so many questions but this should be the last
one for a while.
I have a form that I want to insert into a MySQL table. This
form is based on how many entries a user wants to enter. For example, a user
wants to type in 12 names, so 12 form fields appear. Or they want 50, 50 appear.
Do you require searching of this data eg... select via these numbers or
not??
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 9 January 2003 11:56 AM
To: PHP List
Subject: [PHP] St
I will later select them and display them to be edited, but other then that,
not really...
- Original Message -
From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]>
To: "'Stephen'" <[EMAIL PROTECTED]>; "'PHP List'"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 8:58 PM
Subject: RE
I am trying to run a PHP page from my browser (Mozilla) and each time I load
the page it is attempting to force a dowload of the page instead, based on
the mime-type. I had been developing a command line PHP application which
works fine and then had just started on a web interface and realised that
What you can do it simply get the data and create an array serialise the
array and sent it to
the database ... the issue that arises from this is that you can't
select if that record has
45 and 786 etc etc
The other option you have is to create a table then a second table that
has entries that sho
I need to be able to just extract the number that is right Under
blocks in this example it is the number 57070. This was generated by
the quota -g groupname command.
Disk quotas for group site53 (gid 165):
Filesystem blocks quota limit grace files quota limit grace
/dev/
Your settings should be something similar to this:
AddType application/x-httpd-php .php .html
AddType application/x-httpd-php-source .phps
Do you have the page remotely available to see what is happening for
you??
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EM
Try using the $_files['photo']['error'] variable to see if the file is acutaly being
uploaded correctly. I had the same problem on Windows XP, but i discovered the
file was only half-uploaded using this.
- Daniel "TheHeadSage" Spain
Founder of Voidsoft.
[EMAIL PROTECTED]
~ Manga Sketchbook, the
How would I serialise it? I can make the numbers into an array, but if I
echo the array itself, I'd get "Array" and I need the number in the db, not
the word...
- Original Message -
From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]>
To: "'Stephen'" <[EMAIL PROTECTED]>
Cc: "'PHP List'"
Give this a shot ... a bit of a hack but works for you:
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 12:17 PM
> To: php-general
> Subject: [PHP] H
Check out:
http://www.php.net/manual/en/function.serialize.php
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Stephen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 12:13 PM
> To: Timothy Hitchens (HiTCHO)
> Cc: PHP
Tamas Arpad wrote:
That's not right now. The manual is outdated. See this bug report
http://bugs.php.net/bug.php?id=15209.
This behavior was changed from 4.06 to 4.1. In newer versions of php the
registered functions will run before the connection is closed so ouptput can
be done from there as
Matt Vos wrote:
What is the ASCII value of an EOF? Find that and use
For the benefit of those reading this in the future the value is 4, so
use chr(4);
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Fisher wrote:
If you are willing to do a rewrite, then have your
main script start a fork, or child process.
According to Arpi (see below) I can use register_shutdown(), as the docs
are wrong and it *will* send output to the browser *before* the
connection is closed.
Jc
>Tamas Arpad
I wish to integrate a secure HTTP tunnel into an existing PHP application I
am working on. I am having a hard time understanding the PHP.net OpenSSL
documentation. Any pointers, or refrences would be really helpful. Source
is at http://harrisdracon.dyndns.org/phpcode/hw.src
--
Jonathan Lassoff
[EMAIL PROTECTED] wrote:
I need to be able to just extract the number that is right Under
blocks in this example it is the number 57070. This was generated by
the quota -g groupname command.
Disk quotas for group site53 (gid 165):
Filesystem blocks quota limit grace files quota
give a idea please.
This is correct?
location.href="page.php?=SID?>&cliente=$cli";
Ysrael Guzmán Meza
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hmm "language" !!! languaje
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Ysrael Guzmán [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 12:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] problem with location???
>
>
Is it possible to define a different php.ini for each user which use the
same server, either Unix and Windows. Let me give you example what I
mean:
User 1 (professional PHP-user)
Allow him big uploads, long execution time etc.
Virtual directory www.user1.com
User 2
You can set php_value and php_flags etc inside of the virtual host def
in httpd.conf etc
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: SED [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 1:10 PM
> To: [EMAIL PROTEC
Please keep it on list and (reply to all) as it assist everyone then!!
Check out:
http://www.php.net/manual/en/configuration.directives.php
As a starting point!!
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: SED [mailto:[EMAI
Maybe I'm little bit slow today but I already look into this document.
What paragraph should I focus better on? What I'm looking for is *how
to* refer to a different php.ini in each case.
Thanks,
SED
-Original Message-
From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]]
Sent: 9. j
Ysrael guzmán wrote:
This is correct?
location.href="page.php?=SID?>&cliente=$cli";
You have one small mistake here:
What you need to do is have a base php.ini and in each virtual you have
the specific eg:
# your vitual host
DocumentRoot /www/docroot/first/
ServerName dummy.yourdomain.com
php_admin_value disable_functions 'mysql_connect'
php_admin_value sendmail_path '/usr/sbin/
Ok, I decided another easier way to do it but I have a problem now. Since
the text field contains a $ sign, PHP wants to take it as a variable so it
prints out nothing... Here's my code for getting the value to import into
the table:
$variable = '';
for($i = 1; $i <= $vars; $i++) {
$tempv
Don't write code which requires register_globals to be on.
$variable = $_POST['$var'];
-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 9 January 2003 3:03 PM
To: Timothy Hitchens (HiTCHO)
Cc: PHP List
Subject: Re: [PHP] Stumped...
Ok, I decided another easie
On Thursday 09 January 2003 08:07, - \[ Paul Ferrie \] - wrote:
> Hi again guys i have run into another problem :(
>
> i am trying to build a user poll (flash+php+mysql)
> I have the interface all sorted but i have a problem with my add new poll
> php file.
> When i hit the update poll button in fl
Please note the single quotes.
Using double quotes:
$variable = $_POST["$var"];
will not work, because you don't have a variable named $var in your code.
Have a look at
http://www.php.net/manual/en/language.types.string.php
-Original Message-
From: Sean Malloy [mailto:[EMAIL PROTEC
Greetings,
I'm having a weird issue with float precision. I am decrementing the
value of a float by 0.1. The problem is when the float I am working
with reaches 0.1 and I decrement it again I get 1.e09 instead of the
expected 0.0. This was also confirmed by a user in #php. Anyone have
any ide
On Thursday 09 January 2003 12:33, Kevin Avila wrote:
> Greetings,
>
> I'm having a weird issue with float precision. I am decrementing the
> value of a float by 0.1. The problem is when the float I am working
> with reaches 0.1 and I decrement it again I get 1.e09 instead of the
> expected 0
I am going to be dealing with a ton of data shortly and my goal is to make
it accessible via the web. I am curious about the performance differences
between using a database or leaving the data in the individual files they
originated in. Can anyone offer any recommendations?
--
PHP General Mai
What you suggested is what I was trying before. My original example
was incorrect.
Here is an good example for the variable holding the pattern ->
$foo = '/\[url\]([a-z]+://.*?)\[/url\]/';
This pattern would not work, but if I change it to
$foo = '#\[url\]([a-z]+://.*?)\[/url\]#';
It does work.
hi Gerard,
I didn't think you were complaining :)
the problem is in [/url]
$foo = '/\[url\]([a-z]+://.*?)\[/url\]/';
should be
$foo = '/\[url\]([a-z]+://.*?)\[\/url\]/';
that "/" was ending the pattern, and so preg_* was trying to read "url\]/"
as closing information, and probably giving an o
Hi there,
I have written a class that manages sessions. I have never used sessions
before so all this is new to me. Everything works fine as far as starting
the session and logging in however when I call sessoin destroy it doesn't
seem to work the function returns 1 as it should if all goes well h
Erich Kolb wrote:
I am going to be dealing with a ton of data shortly and my goal is to make
it accessible via the web. I am curious about the performance differences
between using a database or leaving the data in the individual files they
originated in. Can anyone offer any recommendations?
Hello;
I'm getting a segmentation fault and I don't understand what it
means. Kind of new to php debugging.
Background: Web server is generally error free. I have some
complex php/MySQL applications installed. I'm running it under
YellowDogLinux with php v4.23.
I'm trying to install a CVS ver
Made sense. Thanks for your help.
Greg Beaver wrote:
hi Gerard,
I didn't think you were complaining :)
the problem is in [/url]
$foo = '/\[url\]([a-z]+://.*?)\[/url\]/';
should be
$foo = '/\[url\]([a-z]+://.*?)\[\/url\]/';
that "/" was ending the pattern, and so preg_* was trying to read
In my code, I usually dump session data before calling session_destroy()
like ->
$_SESSION = array(); // Now its empty
session_destroy(); // Then call session destroy.
Works for me.
Ken Nagorski wrote:
Hi there,
I have written a class that manages sessions. I have never used sessions
before
G'day all
I have a web page were users can upload and downloads files.
When they go to download a file A list of files they can download is
displayed and a check box next to each file name and a button, with which
the users can click to download the selected file.
What I would like to know what w
Is anyone out there using the new aggregation functions on objects?
Greg
--
phpDocumentor
http://www.phpdoc.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
My 2 cents would be use a database and templates then create cached
static versions of
the pages on the first request and then when you need to changes things
it is just a
simple change the template and you a whole new look without the issue of
performance.
Make that 5 cents worth!!
Timothy Hit
if ($isValid) {
$cgi = '/cgi-bin';
if (strpos($HTTP_HOST, 'dyndns') === false) $cgi .= '/cgiwrap/ppowell';
$fileID =
fopen("http://$SERVER_NAME$cgi/pollinsert.cgi?pollID=$pollID&answerID=$answerID&valIdentifier=";
. urlencode($valIdentifier) . "&lastPollResultsID=" .
($pollResultsArr
Hi,
I was wondering if there is a php extension available that allows me to
do the following -
1. Connect to a given IP address and port
2. Allow me to send and receive data from a particular ip and port
3. Pool the connections so that further requests to the given ip
and port will
PHP supports sockets check out:
http://www.php.net/manual/en/ref.sockets.php
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Vinod Panicker [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 5:31 PM
> To: [EMAIL PROTECT
Hi,
Thanks for the quick response - I am aware of PHP's support for sockets,
but since I cant store persistent connection information in a PHP script
I was looking out for a module
Tx,
Vinod.
---
Vinod Panicker <[EMAIL PROTECTED]>
Sr. Software Designer
Geodesic In
On Wednesday 08 January 2003 17:28, Jean-Christian Imbeault wrote:
> Marek Kilimajer wrote:
> > $result = `echo | /path/prog $arg`;
> >
> > should work
>
> That didn' work ... don't know why.
>
> Isn't there a way to say echo "EOF"?
>
> There must be a way to specify the ascii or hex value for EOF
Timothy Hitchens ) wrote:
Have you checked your php.ini for a safe mode setting to true/on ??
Of course yes. I tried to use the safe_mode_gid directive too. Without
any effect.
Thanx,
Emmanuel.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
I think the reason you didn't get a reply is because no one could understand
what you wanted to happen my guess is...
You need a regular expression to turn URLs in a string into links.
So that this:
---
This is a test. It is only a test.
What happens when I include a URL in my results text?
101 - 160 of 160 matches
Mail list logo