I've been reading for the last three days about character encodings and
such, but, have still been unable to figure out what I think should be a
simple solution.
All I want to do is take curly or "smart" quotes that have been pasted or
entered into a form field and convert those into straight quot
Hi all,
Please tell me how can I fetch an html document from a web page, let's say
starting from the character 1000, and get the text until the caracter 5000.
In fact, I want to use the GET or POST method, and to also send to the
server the HTTP header:
Range: bytes=1000-5000
Thanks.
Teddy
--
beware of dates before 1969.
Justin French <[EMAIL PROTECTED]> wrote:
>
> Jason,
>
> This seems to work fine for me:
>
> $daysToAdd= 5;
> $secondsToAdd = $daysToAdd * 86400;
> $dateIn = "2004-07-24";
> $dateInStamp = strtotime($dateIn);
> echo date('m/d/Y h:i:s',$da
How is the date stored, MySQL db??? if so, you can select dates out as
unix timestamps. Otherwise i would use mktime or strtotime...
Jason
Jason FB <[EMAIL PROTECTED]> wrote:
>
> Can anyone tell me how to convert a date stored in the format
> "-MM-DD" to an integer of seconds since unix
Jason,
This seems to work fine for me:
... as does the more condensed version:
If strtotime() is returning -1, that means that it's having trouble
converting your -MM-DD date to a timestamp. The common pitfall is
that you've got the month and day mixed up (-DD-MM), or that you're
not
Jason FB wrote:
Can anyone tell me how to convert a date stored in the format
"-MM-DD" to an integer of seconds since unix epoc,
then add $daysToAdd days to this value (I suppose if the integer was a
number of seconds it would have to be $daysToAdd*60*60*24 to get the
number of seconds to a
Hi,
Try
$date="-MM_DD";
$da=explode("-",$date);
Now
$Y=$da['0'];
$M=$da['1'];
$D=$da['2'];
then use mktime();
Hope you will get the results.
zareef ahmed
--- Jason FB <[EMAIL PROTECTED]> wrote:
> Can anyone tell me how to convert a date stored in
> the format
> "-MM-DD" to an in
Can anyone tell me how to convert a date stored in the format
"-MM-DD" to an integer of seconds since unix epoc,
then add $daysToAdd days to this value (I suppose if the integer was
a number of seconds it would have to be $daysToAdd*60*60*24 to get
the number of seconds to add)
then conver
The fraudulent orders that I receive on my site come with email
addresses of eight random alphanumerics @yahoo.com.
Is anyone handy enough with regex or can show me a quick way to test
for that, so I can at least refuse all orders with that pattern? (it
will work for a little while, until they
Hi,
Make sure you have installed the pear and double check
your included path in your php.ini .
As per your message it seems that your pear should be
in c:\php4\pear .
Check for it and revert back.
Zareef Ahmed
--- Auditour <[EMAIL PROTECTED]> wrote:
> Dear sirs,
> I have recen
Hi,
look at it
http://www.freebsd.org/projects/cvsweb.html
may be usefull.
zareef ahmed
--- raditha dissanayake <[EMAIL PROTECTED]> wrote:
> Daniel Schierbeck wrote:
>
> > Michal Migurski wrote:
> >
> >>> What i want is basically a way for many users to
> update, add or delete
> >>> par
Hi
How can I parse HTML page which I fetched by PHP so some part of text would
be replaced by other text.
Also, I managed to delete all HTML code from page (with this code
$data[0] = preg_replace("/([<])+([^>])+([.])*([>])+/i","", $data[0]);
but also would like to delete all chars except numbers
Hi Kelly,
> Assuming the app always attempts communication with registered listeners,
> and then must timeout and unregister a dead listener...at that point
> aren't we just at my preferred solution: socket communication?
I don't know much about sockets, so I couldn't say. If the console
will con
Dear sirs,
I have recently installed the FoxServ package 3.0 on my windows xp
platform.
But when I use the following instruction::
require_once "HTML/Template/ITX.php";
I get this message;
Fatal error: Failed opening required 'HTML/Template/ITX.php'
(include_path='.;c:\php4\pear')
On Mon, 6 Sep 2004, Chandu Nannapaneni wrote:
> I want to capture the output of a certain remote command ( issued
> thru a SSH session to a remote server) in PHP.
>
> The following code is working well when ran from the console
> Ex: php -q test.php
>
> passthru("/usr/bin/ssh -v -i /var/wwwhtml/ss
Did you check at http://www.hotscripts.com ?
"Phpu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,
I wanna create an instant private messenger for users who are online on my
site.
Foe example: I have a list with online users. I select the user which i
wanna send an message. A p
Phpu wrote:
Hi,
I wanna create an instant private messenger for users who are online on my site.
Foe example: I have a list with online users. I select the user which i wanna send an
message. A popup window will apear, i write the message and click send. To that user
it will appear a popup window
Daniel Schierbeck wrote:
Michal Migurski wrote:
What i want is basically a way for many users to update, add or delete
parts of a text (the lyric). It will probably only be 'trusted' users
that'll be able to do it (users that has added more than x
artists/albums/songs). How can i make a CVS-like sy
Hi everyone !!
I want to capture the output of a certain remote command ( issued
thru a SSH session to a remote server) in PHP.
The following code is working well when ran from the console
Ex: php -q test.php
But when called from apache .. It's not giving any ouput.
[EMAIL PROTECTED] is well
> > You've just described a wiki - one example of a wiki that is written in
> > PHP and MySQL is http://tavi.sourceforge.net. The code is a little
> > spaghetti-like, but you should be able to look through the database schema
> > to understand how they implement the multi-user text editing, and how
On Tue, 7 Sep 2004 00:31:33 +0300, Phpu <[EMAIL PROTECTED]> wrote:
> Hi,
> I wanna create an instant private messenger for users who are online on my site.
> Foe example: I have a list with online users. I select the user which i wanna send
> an message. A popup window will apear, i write the mess
Hi,
I wanna create an instant private messenger for users who are online on my site.
Foe example: I have a list with online users. I select the user which i wanna send an
message. A popup window will apear, i write the message and click send. To that user
it will appear a popup window with my mes
Michal Migurski wrote:
What i want is basically a way for many users to update, add or delete
parts of a text (the lyric). It will probably only be 'trusted' users
that'll be able to do it (users that has added more than x
artists/albums/songs). How can i make a CVS-like system, where you can
see t
Michal Migurski wrote:
What i want is basically a way for many users to update, add or delete
parts of a text (the lyric). It will probably only be 'trusted' users
that'll be able to do it (users that has added more than x
artists/albums/songs). How can i make a CVS-like system, where you can
see t
> How can I force the download of .pdf, .doc and image files? I have some
> links to downloadable docs in my website, but when we click the links, IE
> opens the file directly in the window. I wish when the user click a
download
> start, even if it is a .jpg, .gif, .pdf or .doc file.
>
> There is a
> Hi,
>
> I am evaluating the http://www.ros.co.nz/pdf/, www.fpdf.org and php
> classes that generate pdf and as another option use docbook to
> convert.
>
> I am not sure which way is better.
>
> >From my point of view:
> a) Both classes seem to be fine but in order to generate (static)
> tables a
> What i want is basically a way for many users to update, add or delete
> parts of a text (the lyric). It will probably only be 'trusted' users
> that'll be able to do it (users that has added more than x
> artists/albums/songs). How can i make a CVS-like system, where you can
> see the changes pe
Daniel Schierbeck wrote:
I'm developing a site with information about songs, albums and artists.
I would like to have the song lyrics as well, but i don't know how i
should approach it.
What i want is basically a way for many users to update, add or delete
parts of a text (the lyric). It will p
How can I force the download of .pdf, .doc and image files? I have some
links to downloadable docs in my website, but when we click the links, IE
opens the file directly in the window. I wish when the user click a download
start, even if it is a .jpg, .gif, .pdf or .doc file.
There is a way to mak
I'm developing a site with information about songs, albums and artists.
I would like to have the song lyrics as well, but i don't know how i
should approach it.
What i want is basically a way for many users to update, add or delete
parts of a text (the lyric). It will probably only be 'trusted'
Hello Robert,
I would suggest that if your data is such that it can use DocBook,
definitely go the DocBook route. You can also use Apache's Cocoon publish
your DocBook content to PDF/HTML/RTF/SVG/TXT etc.
Here are some samples that use Apache Cocoon to perform dynamic conversion
to PDF/HTML:
On Sun, 2004-09-05 at 19:39, Gerben wrote:
> my install-paths are still the same. the real problem (I think) is that I'm
> missing the php4apache dll for some peculiar reason ||:-|
> Thanks anyway. I'll try downloading the zip file and doing it manually.
I think the binary installer doesn't inclu
On Sun, 2004-09-05 at 19:29, Octavian Rasnita wrote:
> Does this list have a moderator?
>
> Teddy
Please learn to TRIM!! No need to post the entire message (spam no
less), again -- especially if all you are contributing is one line (to
which, I might add, the answer can be found by searching the
I know this is an old thread but I've been away for the weekend and I
really want to say this...
On Thu, 2 Sep 2004 20:40:45 +0200, Nick Wilson <[EMAIL PROTECTED]> wrote:
> You know guys? I think you all take this a bit too seriously,
> perdanticness (is there such a word?) is all well and good fo
Read the previous message in this thread. the first sentence applies to you.
--
Raditha Dissanayake.
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload -
John Nichel wrote:
Daniel Schierbeck wrote:
Hey Daniel, do me a favor if you would, and add a year to the date on
your computer. Thanks.
Oooops... Sorry, i have a crappy, ehh, "legal" *cough* version of Adobe
Photoshop, it won't work unless i put the time on my PC back a year, and
sometimes i
Daniel Schierbeck wrote:
[EMAIL PROTECTED] wrote:
Thanks Anders and Daniel. Daniel, I like your approach. I want to make
it as
secure as possible. I'm going to place the files outside the web
directory
and use authentication to approve that the user can download some
particular
song. I didn't kn
[EMAIL PROTECTED] wrote:
A while back I decided I wanted a simple interactive interpreter for PHP.
So I wrote a little PHP script that essentially did a read from stdin,
and ran eval on that. Worked for most situations I was in.
I'm trying to add some more features now, namely recalling a list of c
Daniel Schierbeck wrote:
Hey Daniel, do me a favor if you would, and add a year to the date on
your computer. Thanks.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] wrote:
Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as
secure as possible. I'm going to place the files outside the web directory
and use authentication to approve that the user can download some particular
song. I didn't know you could do a forced dow
thanks..and can you give a hand in the code?
> To avoid that issue, you could best store the info in some temporary
> file (or database) and then each time loop trough it, and issue it to
> the user. Make sure to include a 5-min.-delay redirect to the same page
> (refresh).
>
>
> Devil_online wr
[EMAIL PROTECTED] wrote:
Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as
secure as possible. I'm going to place the files outside the web directory
and use authentication to approve that the user can download some particular
song. I didn't know you could do a forced dow
You want to put information on a page. That's nice.
You want to refresh every 5 minutes? that's also fine.
You want it to refresh but to not refresh at the same time... somehow,
magically, your browser should know that it only needs to add information...
To avoid that issue, you could best store
Hi want to put information on a page without erasing the previous on(like
for every 5 minutes), and I think I must do an arrays and a foreach
loop...how can I do that?
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dear all,
I have to generate MS WORD Reports, PDF Reports, Graphs
using PHP5 + MYSQL.
can any body give good links .
Thanks in advance.
Bharadwaj.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I plan to dynamic generate some of the documents I need on a regular
basis. Sometimes they only differ by the name of the company so my
first attempt would be to generate "templates" in word and ask/replace
for the values needed.
I am evaluating the http://www.ros.co.nz/pdf/, www.fpdf.org an
Take a look at:
http://netjuke.sourceforge.net/
I'm using in my local network, and works fine!!!
On Mon, 06 Sep 2004 12:10:13 +0300, Burhan Khalid <[EMAIL PROTECTED]> wrote:
>
>
> On Sun, 2004-09-05 at 05:41, [EMAIL PROTECTED] wrote:
>
> > I want to build a music site, all copyrights intact,
On Sun, 2004-09-05 at 05:41, [EMAIL PROTECTED] wrote:
> I want to build a music site, all copyrights intact, and I want users to be
> able to download mp3 or realplayer files using a one-click link. When they
> click on a link they will simply be given a typical download window to save
> that musi
On Mon, 2004-09-06 at 11:03, Jorge wrote:
> I have a problem when I do login for go to the page of administration on my web, Go
> back and can't entry this is the code that control this. Where is the problem?
Please read the Newbie Guide first before posting. WHat does your
subject tell us about
On Sun, 2004-09-05 at 17:32, Dre wrote:
> I really did
> and it behaves the same
>
> I tried isset() also but there is no good it still does not work !!!
"Does not work" <-- explain this part.
add error_reporting(E_ALL); as the first line of code, in addition to
all the other suggestions. Check
You could store those texts as binary in MySQL...
- Original Message -
From: "Monty" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 06, 2004 11:07 AM
Subject: [PHP] Re: htmlentities and foreign characters from MS Word
> That did it! It seems that my version of MySQL
On Monday 06 September 2004 14:08, Peter Brodersen wrote:
> On Mon, 6 Sep 2004 13:33:02 +0800, in php.general
>
> [EMAIL PROTECTED] (Jason Wong) wrote:
> >> $username = trim(addslashes($_POST['user_name']));
> >> $pass = trim(addslashes($_POST['password']));
> >
> >addslashes() is not needed as
Dre wrote:
no I did this a long time ago
(I did have this problem before :o) )
Try echo $_REQUEST[session_name()]; in members/main.php. It should print
the session id. Then there should be a session file sess_[session id].
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECT
no I did this a long time ago
(I did have this problem before :o) )
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dre wrote:
> > and by the way ..
> > I'm using MS Windows XP Pro. which I do believe that it has some hand in
the
> > problem :)
>
> Like you did not
That did it! It seems that my version of MySQL doesn't support Unicode
encoding, only the various ISO encodings. So, I guess this translation is
necessary before storing all text in the DB so foreign characters aren't
broken when I retrieve them from the DB.
Thanks!
I2eptilex wrote:
>
> Well i
I have a problem when I do login for go to the page of administration on my web, Go
back and can't entry this is the code that control this. Where is the problem?
Thank you in advance
top.location.href='../portada.php';");
}
?>
Hi
I'm running PHP in safe mode, and have symlinked executables to the
execution_dir, that works great. With one exception, it is not
possible to check the existence of the files, before executing them.
It seems to me that stat / lstat resolves the ownership of the orig
executables and safe_mode
--- Jason Wong <[EMAIL PROTECTED]> wrote:
> > $username = trim(addslashes($_POST['user_name']));
> > $pass = trim(addslashes($_POST['password']));
>
> addslashes() is not needed as you're performing SELECT query
> and not an INSERT query.
That's not true, since he's using user data in the SQL sta
58 matches
Mail list logo