Although I have never seen a full app, I have seen PHP code which handles
checkin/checkout of files as a class. I don't know if that will help you, but
if it will then please let me know and I will dig it up.
-Jeremy
On Saturday 29 May 2004 09:50 pm, Brian V Bonini wrote:
> On Sat, 2004-05-29 a
Just as an FYI, the following line will get your email a lot of spam points in
SpamAssassin:
$headers .= "X-MSMail-Priority: High\r\n";
Also, I don't know if this has already been suggested, but there is an awesome
class named htmlMimeMail which will handle your needs perfectly. Google it
and
Thanks to everyone who answered my request for help with this.
Yes, as some of you have pointed out, the pattern was correct but my logic
was wrong.
So once again thank you to all that helped.
Dave C :-)
-Original Message-
From: Liu Jihua [mailto:[EMAIL PROTECTED]
Sent: 31 May 2004 01
Also checkout Textpattern (in gamma right now, with g1.19 due in the
next few days, which should be pretty much perfect for everything I've
ever wanted).
http://www.textpattern.com/
FWIW, it *is* standards compliant, has clean/smart PHP code, has a
beautiful interface, an amazing support commun
i used this script to run that abc.pl in command
prompt. It is perfectly running.
//$ExhibitA =
shell_exec('/root/whole/abc.pl');
// Perfect.$ExhibitB = shell_exec('env -i
/root/whole/abc.pl');
?>
* Actually i need to stop that as well ,
i got this result by ps -e
1182
pts/0
I have to say I like everything about the PEAR coding standards except for the
K&R bracing style. I much prefer:
if( foo )
{
blah;
}
to
if( foo ) {
blah;
}
The latter form (K&R) conserves vertical space, but I find it a lot harder to
follow. Harder to move blocks of code ar
Chris Wagner wrote:
i am wondering if there is a good way to trigger a php script from a web
page *without* sending the user to a new page or opening a new browser
windows.
for instance, suppose you wanted to make a button/link on a web page
that, when clicked, would cause a database entry to be de
hello,
i am wondering if there is a good way to trigger a php script from a web
page *without* sending the user to a new page or opening a new browser
windows.
for instance, suppose you wanted to make a button/link on a web page
that, when clicked, would cause a database entry to be decremented.
Hey,
been looking at a lot of calenders most of them are either too big for my
use (whole page), not free, in javascript or too complicated.
I require a calender that is simple, loads fast,small and not javascript,
the closest I found is at:
http://scripts.franciscocharrua.com/calendar.php
just
This is line 29:
imagejpeg($base_image, 'temp.jpg'); //convert and save it to temp.jpg
Hi,
you should give it a path, i.e. ./temp.jpg or a full absolute path.
thomas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Dustin Krysak" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there
>
> What I am hoping to do is have a drop down menu that would be populated
> from the contents of a directory via php. Now The link names would be
> generated by the file name minus the file extension. Has a
Hi there
What I am hoping to do is have a drop down menu that would be populated
from the contents of a directory via php. Now The link names would be
generated by the file name minus the file extension. Has anyone seen a
tutorial on accomplishing something like this? All of the links would
Hello,
I successfully tested the GD library and several scripts with PHP locally on
my windows machine. I went to test the same php-files on my internet server
(Linux).
But on the server I get the following error:
Warning: imagejpeg: unable to open 'temp.jpg' for writing in
/home/httpd/vh
> From: Khan [mailto:[EMAIL PROTECTED]
> you have 'company_name' in SET and then again in WHERE. This looks fishy.
Very common, often required, and perfectly legal.
Mark C.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can you post some of the code?
--Original Message Text---
From: CurlyBraces Technologies ( Pvt ) Ltd
Date: Mon, 31 May 2004 01:49:17 +0600
hi ,
i have retrived some perticular data from mysql , and them show in the web browser.(
It is very few data )
When clicking on one of that that perti
* Thus wrote The Digital E ([EMAIL PROTECTED]):
>
> $query="UPDATE $table_name SET company_name='$company',
> first_name='$first_name', last_name='$last_name', address='$address',
> city='$city', state_province='$state', postal_code='$postal',
> office_phone='$office', fax_phone='$fax', email='
hi ,
i have retrived some perticular data
from mysql , and them show in the web browser.( It is very few data
)
When clicking on one of that that perticular data
, i want to show the whole information with related to the above
mentioned part.
So , can some body help me to add like this
The Digital E wrote:
$query="UPDATE $table_name SET company_name='$company',
first_name='$first_name', last_name='$last_name', address='$address',
city='$city', state_province='$state', postal_code='$postal',
office_phone='$office', fax_phone='$fax', email='$email' WHERE
company_name='$mod_data
Can you send more of the code? I looks good so far.
>>This may be better suited to the MySQL lists, but I'd appreciate it if
>>someone could help. I'm probably just missing something stupid here but
>>have been coding non-stop for a week and need another set of eyes.
>>
>>Here's the line of co
This may sound stupid, but are you actually EXECUTING the query?
$doit = mysql_query($query);
At 12:32 PM 5/30/2004, The Digital E wrote:
This may be better suited to the MySQL lists, but I'd appreciate it if
someone could help. I'm probably just missing something stupid here but
have been coding
The Digital E wrote:
This may be better suited to the MySQL lists, but I'd appreciate it if
someone could help. I'm probably just missing something stupid here but
have been coding non-stop for a week and need another set of eyes.
Here's the line of code giving me an issue. I can print all the
This may be better suited to the MySQL lists, but I'd appreciate it if
someone could help. I'm probably just missing something stupid here but
have been coding non-stop for a week and need another set of eyes.
Here's the line of code giving me an issue. I can print all the
variables in the scri
Christopher J. Mackie wrote:
I'm following the PEAR docs to use Mail/SMTP. Below is the code I use,
swiped directly from the docs--I've changed the authorization data to
protect privacy, but otherwise it's identical (and email sent from a client
on this same machine using the same settings works fi
Thomas, thanks, that worked perfectly!
-Original Message-
From: Thomas Seifert [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 30, 2004 2:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Windows to Linux -- Issues with mkdir()function and
picture uploading
Ryan Schefke wrote:
> The above behav
Hello,
I'm looking for CMS that have great administration part. I'm not
interested in site displaying, speed, HTML standards or anything like
that. I just need stable administration part with modules:
- News with archives;
- Blogs;
- Some users Can be administrators of blogs;
- Link directory;
-
I'm following the PEAR docs to use Mail/SMTP. Below is the code I use,
swiped directly from the docs--I've changed the authorization data to
protect privacy, but otherwise it's identical (and email sent from a client
on this same machine using the same settings works fine). I'm running PHP
4.3.6 I
Ryan Schefke wrote:
The above behavior is on the Linux machine. Now, I run the same script on
my windows box and it works perfectly.
windows has (afaik in its default settings) no good file-permissions.
the php-scripts usually run as the user the webserver runs as ...
so the webserver-user has to
Hi All,
I recently migrated code from my home server (windows) to a dedicated
hosting server (Linux). I seem to have some issues with permissions and I'm
not sure how to fix it.
Take the simple script I wrote below.
=
It produces the f
Hey,
A prospective client has asked me to try to convert his Swedish site so that
visitors have a choice between Swedish and English, which is not a problem
as I am fluent in both languages. After going through the site to convert I
was just checking out the current pages and I saw that all the lin
[EMAIL PROTECTED] wrote:
Hello,
If I have an associative array like:
$myFriendsAges['Tom']=25;
$myFriendsAges['Bill']=35;
$myFriendsAges['Al']=45;
$myFriendsAges['Mark']=55;
Is there a way to index name into a string. I would like to be able to
echo something like:
My friend Bill is 35 years of
Hello,
If I have an associative array like:
$myFriendsAges['Tom']=25;
$myFriendsAges['Bill']=35;
$myFriendsAges['Al']=45;
$myFriendsAges['Mark']=55;
Is there a way to index name into a string. I would like to be able to
echo something like:
My friend Bill is 35 years of age.
Is there a way to do
Hi All,
Please consider this topic/subject closed. There was conflict with my
firewall.
Ryan
-Original Message-
From: Hodicska Gergely [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 30, 2004 10:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] cookies malfunctioning moving from windows to li
Stephen Lake wrote:
I got a question for you all.
What would be more effiecient for datastoring that is going to be constantly
extracted like in a chat application?
a MySQL database? or a Flat text file?
Well, the most effiecient would be the memory :) With some socket
programming it should be pos
Hey All,
I got a question for you all.
What would be more effiecient for datastoring that is going to be constantly
extracted like in a chat application?
a MySQL database? or a Flat text file?
Right now I am working on a flat text file base but would also like to do it
as a database version too i
GodFoca wrote:
Heyp! I wanted to know if there is some way to do the submitting of a form
from a normal href link, instead of the big-dumb-gray button.
If it can't be done with PHP, how can it be done?
Thanks in advance,
Nicolas Sanguinetti
Thought it is possible to use javascript as suggested by J
Hi!
On the server register_globals = off.
Use $_COOKIE['ID'] instead of $ID.
Felho
u.i. always develop with register_globals = off
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Godfoca wrote:
echo returns 1 on success, so the interpreter first evaluates the expression
inside the echo() call, and thus includes the html file, and then, as the
evaluation returned 1, it echoes 1 to the final file.
Just to clear it out... include does not always return 1.
An example
File: incl
Thomas/All,
To summarize, my code containing cookies running on windows with a working
php installation (and Apache) executed all scripts containing cookies
perfectly. However, I transitioned my code to a Linux box with a fresh
install of PHP and now my cookies aren't working. Below is an example
Thank you very much!
N.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
echo returns 1 on success, so the interpreter first evaluates the expression
inside the echo() call, and thus includes the html file, and then, as the
evaluation returned 1, it echoes 1 to the final file.
You should only do "include(...)", without the echo.
Good luck,
Nicolas
--
PHP General Mai
Little Boy wrote:
when i include a html file i alwas do it with:
echo(include('htmlfile.html')); everythings works fine except the fact, that
after the included file the is a '1' printed out, anybody, an idea why???
Because you dont need echo - include output the html :)
just
Check the documentati
GodFoca wrote:
Heyp! I wanted to know if there is some way to do the submitting of a form
from a normal href link, instead of the big-dumb-gray button.
If it can't be done with PHP, how can it be done?
Why would you think PHP can do anything client side?
submit
or something like that...
--
---John
when i include a html file i alwas do it with:
echo(include('htmlfile.html')); everythings works fine except the fact, that
after the included file the is a '1' printed out, anybody, an idea why???
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Heyp! I wanted to know if there is some way to do the submitting of a form
from a normal href link, instead of the big-dumb-gray button.
If it can't be done with PHP, how can it be done?
Thanks in advance,
Nicolas Sanguinetti
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
That works for me...
$testVal = "this is the ./command";
if(preg_match("/\.\//i", $testVal))
{
echo "hello";
}
This printed hello, then I removed the slash and it did not match and did
not print hello. Sounds like it is a logic problem, or the variable is not
arriving as you expected.
Hi List,
How do I match an accordance of "./" in a string (without the quotes) ?
I have tried preg_match("/\.\//i", $str);
Which I thought would work , as per the manual, but no joy.
Any help or guidance is appreciated
Thank you in advance
Dave C
---
Outgoing mail is certified Virus Free.
Ch
===
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. You
can download a copy and use it offline also.
Please also try
http
Ryan Schefke wrote:
I don't think that is it. I believe session.save_path is only for sessions,
not cookies. I'm only using cookies in the application.
Can someone please help?
Thanks,
Ryan
Yeah, tell HOW you set the cookies.
There is really no difference in linux/windows-php in this cases.
th
Yeah, I'd say it's completely hopeless in a week. PHP is a totally
different language than ColdFusion. SQL and MySQL may be different. The
databases alone, as others have mentioned, could easily be a week even
if you're experienced. Moving BOTH databases and scripting languages
will probably me
Curt Zirzow wrote:
* Thus wrote Chris Jernigan ([EMAIL PROTECTED]):
Hi everyone,
What's the problem? I have one week to do this. Oh, and did I mention that I
know VERY little about PHP / mySQL. I know NOTHING about ColdFusion or
MSSQL. And to top it off, the site in question contains over 300 .c
50 matches
Mail list logo