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
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
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 11:59 AM
Hi all,
yeah, i know, i did do quite a bit of searching but I just cant find it...
Does anyone have the regex to make sure an http address is full and without
error? like
I need help about this PHP Class,
i only have a small problem. But i could not get it to work.
$pdf-addTextWrap(10,30,100,8,WALA NGA DIBA OK NA ATA E? Sana naman
no Ok na!!!,left,0);
i have this text, at line 100 it was truncated. thats ok, but the
remainder of the string is not being listed.
Hi,
Anybody know of a good class, tutorial or something
easy to let me unzip a file on my server?
E.g:
I have 3 uploaded zip files named a,b,c
I want to unzip them into 3 diff folders while
preserving their file structure.
Thanks in advance.
Mag
=
--
- The faulty interface lies between
Hi Rasnita,
What you excatly want to do?
if you just want to get a remote file.
You can use normal file functions like fopen, fget,
fgets, file_get_contents etc. with a url.
http://in.php.net/manual/en/ref.filesystem.php
and if you want to send headers to a server using
curl can be a
HI Mag !
look at it
http://www.phpclasses.org/browse/package/945.html
zareef ahmed
--- Mag [EMAIL PROTECTED] wrote:
Hi,
Anybody know of a good class, tutorial or something
easy to let me unzip a file on my server?
E.g:
I have 3 uploaded zip files named a,b,c
I want to unzip them into
zareef ahmed wrote:
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.
Also check if HTML_Template_IT package is installed, not all packages
are
--- Pushpendra Tiwari
[EMAIL PROTECTED] wrote:
Date: 7 Sep 2004 08:25:04 -
From: Pushpendra Tiwari
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [ilugd] PHP Help nedded urgently..!
Dear Friends,
Hi..!
I am PHP Programmer. I want to know that has any
body implemented
On Tuesday 07 September 2004 08:16, Chandu Nannapaneni wrote:
I want to capture the output of a certain remote command ( issued
But when called from apache .. It's not giving any ouput.
Does the logs on the ssh server indicate a successful login?
[EMAIL PROTECTED] is well configured for ssh
beware of dates before 1969.
That problem mostly occurs on windows systems, and in fact it's dates
before 1 jan 1970 0:00 - php on windows will issue a warning if you
try to use dates like that
Can anyone tell me how to convert a date stored in the format
-MM-DD to an integer of
On Tue, 7 Sep 2004 10:58:48 +0300, Burhan Khalid [EMAIL PROTECTED] wrote:
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 02, 2004 11:59 AM
Hi all,
yeah, i know, i did do quite a bit of searching but I just cant find it...
Does anyone have
Hi,
I have a file on my server that I want to compress in a php page i.e take file.txt and
add it to the archive file.zip.
How the hell do I do it using gzip cant understand the manual, or is there another way
to create a zip file or other compressed file.
cheers
matt
I'm trying to setup a function from user code inside a defined object or a
class definition but it doesnt seem to work. Am i doing it right? Is there
something i need to know... is it even possible?
I know create_function can be used to create a function and it returns the
ident to run the
Another thing to keep in mind is that Office products can run
invisible. Sometimes you'll get COM failures and can't understand why
and it turns out that Word or Excel or whatever is still running, just
not visible. Pull up your Task Manager and look for the process and
kill it.
The property in
* Sean Smith [EMAIL PROTECTED]:
Scenario
Server 1 is a LAMP webserver.
Server 2 is an email server.
I have a php script on Server 2 that creates user accounts and echos the
UID, GID, and HOME. It works great when your logged into Server 2 and
run it from the CLI.
What I'm trying to do
On Tue, 7 Sep 2004 09:37:44 -0400, Mathieu Dumoulin
[EMAIL PROTECTED] wrote:
I'm trying to setup a function from user code inside a defined object or a
class definition but it doesnt seem to work. Am i doing it right? Is there
something i need to know... is it even possible?
I know
Mag wrote:
Hi,
Anybody know of a good class, tutorial or something
easy to let me unzip a file on my server?
well you could just use `unzip filename` but make sure you update your
zip installation because some older versions had some vulnerabilities.
--
Raditha Dissanayake.
Fatal error: Call to undefined function: b() in
/home/tech/web/testboard/implements.php on line 21
$a-b();
You don't have a function b() defined in class cls_a.
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
session_start();
//echo session_id();
if (!isset($_SESSION['Id'])){
echo(scripttop.location.href='../portada.php';/script);
}
?
Can somebody helps me ? the error is that login don' t access and I don't found the
error.
Okay, i got the general idea, now it all comes down to the actual
writing. I'm making a function that compares two strings (the one in the
source i read used an exec() call, but i'd like to do it all in PHP)
per-line. This poses some difficulties. Here's the scenario:
I want to determine
?
session_start();
//echo session_id();
if (!isset($_SESSION['Id'])){
echo(scripttop.location.href='../portada.php';/script);
}
?
Can somebody helps me ? the error is that login don' t access and I don't found the
error.
Jorge,
can
?php
$str1 = NEWTXT
Once there was a Bar
It was red
It had some Foo
Underneath its Foobar
NEWTXT;
$str2 = OLDTXT
Once there was a Bar
It had some Foo
Underneath its Foobar
OLDTXT;
Just a quick question. What is the purpose of the underscore character
within the following echo statement? I had a quick look in the manual
and archives but couldn't find any reference to it.
?php echo _(Username) ?
Thanks,
Neil
This communication is confidential to the intended recipient(s).
From: Neil Freeman [EMAIL PROTECTED]
Just a quick question. What is the purpose of the underscore character
within the following echo statement? I had a quick look in the manual
and archives but couldn't find any reference to it.
?php echo _(Username) ?
I am not nearly as stupid as you are. You're the one who can't get it to
work, not me.
-Dan Joseph
-Original Message-
From: Mathieu Dumoulin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 07, 2004 10:56 AM
To: 'Dan Joseph'
Subject: RE: [PHP] Dynamic Class Methods
... are u stupid?
Neil Freeman wrote:
Just a quick question. What is the purpose of the underscore character
within the following echo statement? I had a quick look in the manual
and archives but couldn't find any reference to it.
?php echo _(Username) ?
see gettext extension
Thanks,
Neil
Could you turn this
I have a file on my server that I want to compress in a php page i.e take file.txt
and add it to the archive file.zip.
How the hell do I do it using gzip cant understand the manual, or is there another
way to create a zip file or other compressed file.
have you looked at
* Thus wrote Mathieu Dumoulin:
I'm trying to setup a function from user code inside a defined object or a
class definition but it doesnt seem to work. Am i doing it right? Is there
something i need to know... is it even possible?
I know create_function can be used to create a function and it
[snip]
...stupid...
[/snip]
Mathieu, calling one of the better contributors on this list stupid is a
quick way to earn your way into the 'ignored' group. He tried to help
you and you flame him?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Marek Kilimajer wrote:
***
This Email Has Been Virus Swept
***
Neil Freeman wrote:
Just a quick question. What is the purpose of the underscore character
within the following echo statement? I had a quick look
Mathieu Dumoulin wrote:
... are u stupid?
Next time read the whole mail before posting a reply and you'll know why i'm
sending you back a flame.
Mathieu Dumoulin
Groupimage Communications (http://www.groupimage.com/)
T: (514) 353-9595 // F: (514) 353-9550 // C: (514) 880-1442
Mathieu, did you
Jay Blanchard wrote:
[snip]
...stupid...
[/snip]
Mathieu, calling one of the better contributors on this list stupid is a
quick way to earn your way into the 'ignored' group. He tried to help
you and you flame him?
We have an 'ignored' group? Where do I sign up? ;)
--
John C. Nichel
ÜberGeek
Okay, i got the general idea, now it all comes down to the actual
writing. I'm making a function that compares two strings (the one in the
source i read used an exec() call, but i'd like to do it all in PHP)
per-line. This poses some difficulties. Here's the scenario:
Tavi Wiki just calls out
I don't get it, this is a real problem for me. This is a backward
incompatibility that brakes a lot of things.
You are allways whining about not being able to change the strange
parameters from functions due to backwards incompatibility. There a
simple alias function would do the trick, and make
Keep in mind the above is still in beta, but will allow you to
add/remove/redefine methods of objects at runtime.
You'll have to excuse me form my ignorance, but why would you want to
add, remove or redefine methods of objects at runtime?
I understand object overloading, but are you talking
I am looking for PHP imlementation of the Statistics
calculation for a line. It should have the same
functionality like Excel LINEST.
[From Excel Help: LINEST:Calculates the statistics
for a line by using the least squares method to
calculate a straight line that best fits your data,
and returns
Can you at least explain me why it has been changed, before I go and
change 150 lines of code, please?
Yours Sincerely
Sebastian
Sebastian,
Version 5 is what you would call a Major Version change. This is like
comparing MySQL 4.x to MySQL 3.x. An insert statement that would result in
I'm using PHP to write some backup scripts. One of the scripts uses
PHP to connect via FTP to a server, download some scripts and tar them
up. I'm getting intermittent segmentation faults with this script,
and I'm not sure what to report to troubleshoot this. Can someone
tell me what would be
The fraudulent orders that I receive on my site come with email
addresses of eight random alphanumerics @yahoo.com.
preg_match('/[EMAIL PROTECTED]/', $email) should do the trick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
On 09/06/2004 06:31 PM, Phpu wrote:
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
* Alex Hogan [EMAIL PROTECTED]:
Keep in mind the above is still in beta, but will allow you to
add/remove/redefine methods of objects at runtime.
You'll have to excuse me form my ignorance, but why would you want to
add, remove or redefine methods of objects at runtime?
I understand object
Hi,
This is a bug fix and minor feature release.
Have fun,
-Monte
Homepage:
http://*smarty*.php.net/ http://smarty.php.net/
ChangeLog:
http://*smarty*.php.net/misc/NEWS http://smarty.php.net/misc/NEWS
Download:
http://*smarty*.php.net/download.php http://smarty.php.net/download.php
--
PHP
[snip]
I can think of some good reasons -- the one that readily leaps to mind
is a plugin architecture.
[/snip]
OK.., Duh.., that hit me like a brick. It may take some time but
eventually the light will come on. ;-)
I don't know why but, plugins never crossed my mind in php
development. Until
Warren,
I use ssh on all of my servers for logging in remotely. My next
question would be, how do I connect to the remote server to run commands
through PHP? Do I need to setup a socket or something? Could you provide
me a pseudo sample or maybe point me to some docs. I've never had to do
I'm using PHP to write some backup scripts. One of the scripts uses
PHP to connect via FTP to a server, download some scripts and tar them
up. I'm getting intermittent segmentation faults with this script,
and I'm not sure what to report to troubleshoot this. Can someone
tell me what would
1) Environment
a) OS
b) PHP Version
c) CLI or web-based
d) Are you running php as an apache module?
I'm runnning PHP 4.3.8 in CLI on Redhat 9 in this particular case.
PHP compiled with --enable-ftp (among other things). PHP is installed
as an Apache2 module, but (obviously
Ignoring PHP for a moment; to execute a string of commands on a remote
machine using ssh you would execute the following;
Promptssh -l user ps -ef|grep edit;cd /usr/local/bin;ls -la
Which would result in showing any edit processes, followed by a listing of
the contents of the /usr/local/bin
On Tue, 2004-09-07 at 15:21, Steve Brown wrote:
The random nature leads me to believe that this is some sort of
harmful interaction between this server and the FTP server. The FTP
server is a Windows-based host. An almost identical script runs just
fine while connecting to other servers.
I
* Thus wrote I2eptileX:
I don't get it, this is a real problem for me. This is a backward
incompatibility that brakes a lot of things.
You are allways whining about not being able to change the strange
parameters from functions due to backwards incompatibility. There a
simple alias function
* Thus wrote Brian Dunning:
The fraudulent orders that I receive on my site come with email
addresses of eight random alphanumerics @yahoo.com.
consider blocking any free address: hotmail, gmx.net, etc.. Of
course gmail is an exception, who would want to get that one
revoked ;)
- Brian
PS
Hi there,
Still sitting on this problem of not being able to dynamically zip a bunch
of files together, to output them as a Save Dialog box for downloading. I am
using the rather old pclzip classes for the zipping part (still wrestle with
the server admin to get Archive_xxx stuff from PEAR
Thomas Hochstetter [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi there,
Still sitting on this problem of not being able to dynamically zip a bunch
of files together, to output them as a Save Dialog box for downloading. I
am
using the rather old pclzip classes for the zipping
Quick question here. Has anyone run into trouble with a variable reference
to a class object?
Here is the code:
$_SESSION['database'] = new Database;
$this-db = $_SESSION['database'];
Everything goes screwy after a call like this.
Thanks in advance!
--
PHP General Mailing List
When I'm using mail() to send an email, the user is always
From: Apache [EMAIL PROTECTED]
How would I get this to change? I didn't see anything in php.ini or
httpd.conf. I've found it's not possible to do a header rewrite with
postfix either.
-Josh
--
PHP General Mailing List
On Tue, 2004-09-07 at 16:52, Josh Close wrote:
When I'm using mail() to send an email, the user is always
From: Apache [EMAIL PROTECTED]
How would I get this to change? I didn't see anything in php.ini or
httpd.conf. I've found it's not possible to do a header rewrite with
postfix either.
How would I get this to change? I didn't see anything in php.ini or
httpd.conf. I've found it's not possible to do a header rewrite with
postfix either.
There is examples in the manual
http://us2.php.net/mail
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Thanks.
-Josh
On Tue, 07 Sep 2004 16:55:24 -0500, Greg Donald [EMAIL PROTECTED] wrote:
On Tue, 2004-09-07 at 16:52, Josh Close wrote:
When I'm using mail() to send an email, the user is always
From: Apache [EMAIL PROTECTED]
How would I get this to change? I didn't see anything in
Hi,
I have been trying to find a way of creating a zip file. I have a file on my server
that I want to compress I have had a look at gzip but cant work out what to do.
Can someone point me to a function or an example of how to do this.
thanks
matt
I'm runnning PHP 4.3.8 in CLI on Redhat 9 in this particular case.
PHP compiled with --enable-ftp (among other things). PHP is installed
as an Apache2 module, but (obviously since this is CLI), Apache isn't
involved here. All other scripts work fine (CLI and web-based).
Server is a dual MP
Hi,
I am attempting to compile PHP with the following command:
./configure --with-mysql=/usr/local/mysql
--with-apxs=/etc/httpd/bin/apxs --with-gd --with-png
--with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf
--with-jpeg-dir=/usr/local/lib/jpeg-6b/
What's the most accurate way to get the byte count of
some text? Is strlen() accurate with Unicode, ASCII,
etc.?
John
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
PHP General Mailing
* Thus wrote Paul Reinheimer:
Hi,
I am attempting to compile PHP with the following command:
./configure --with-mysql=/usr/local/mysql
--with-apxs=/etc/httpd/bin/apxs --with-gd --with-png
--with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf
Taking the /lib/ portion of the configure command changes the error to
configure: error: Problem with libXpm.(a|so) or libX11.(a|so). Please
check config.log for more information.
Which (assuming it means that it needs libXpm.so AND libX11.so) means
I might have a lead to follow.
thanks
paul
Hi,
I am attempting to compile PHP with the following command:
./configure --with-mysql=/usr/local/mysql
--with-apxs=/etc/httpd/bin/apxs --with-gd --with-png
--with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf
--with-jpeg-dir=/usr/local/lib/jpeg-6b/
* Thus wrote Paul Reinheimer:
Hi,
I am attempting to compile PHP with the following command:
./configure --with-mysql=/usr/local/mysql
--with-apxs=/etc/httpd/bin/apxs --with-gd --with-png
--with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf
Taking the /lib/ portion of the configure command changes the error to
configure: error: Problem with libXpm.(a|so) or libX11.(a|so). Please
check config.log for more information.
Which (assuming it means that it needs libXpm.so AND libX11.so) means
I might have a lead to follow.
Anyone! I'm out of online resources and answers. I guess this isn't possible
to do...
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
This isnt an NFS mount, should be a pretty plain rhel install.
Config.log says:
...
configure:30359: checking for jpeg_read_header in -ljpeg
configure:30642: checking for png_write_image in -lpng
configure:31022: checking for XpmFreeXpmImage in -lXpm
configure:31041: gcc -o conftest -g -O2
Okay
My /usr/X11R6/lib/ has the same files, however, it doesnt have any
symbolic links or files ending in .so,
ie
lrwxrwxrwx1 root root 14 Sep 7 13:03 libXpm.so.4 -
libXpm.so.4.11
-rwxr-xr-x1 root root56220 Aug 22 09:22 libXpm.so.4.11
So when I compile with
Is it bad practice for a class to have a variable and method of the same name?
For example:
class product {
var $Name;
function Name() {
return stripslashes($this-Name);
}
}
Thanks,
-Ed
This message was
(I wish this was a forum, so I could edit/update posts)
Trying the symbolic link trick in /usr/X11R6/LIB (from .so.4 - .so)
doesnt cut it. PHP needs some of the header files (.h), which are not
present anywhere but that /usr/local/lib/xpm-linux directory (which
someone correctly surmised I had
-- Original message from Monty : --
Anyone! I'm out of online resources and answers. I guess this isn't possible
to do...
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
Dears,My code is :
?
function Login()
{
echo xxx;
echo form method=\post\
action=\.$_SERVER['PHP_SELF']. \\;
echo input type=\text\ name=\u\ br /;
echo input type=\password\ name=\p\ br /;
echo input type=\submit\;
echo /form;
}
$username=$_POST['u'];
$password=$_POST['p'];
echo
(I wish this was a forum, so I could edit/update posts)
Trying the symbolic link trick in /usr/X11R6/LIB (from .so.4 - .so)
doesnt cut it. PHP needs some of the header files (.h), which are not
present anywhere but that /usr/local/lib/xpm-linux directory (which
someone correctly surmised I
(i apologize for the direct reply copy of this message, I'm still
getting used to gmail)
I've seen the readme before, and it specifies:
On Linux, if you do not use ELF yet you'd better get the binary
distribution available from sunsite. Because it's really a pain to
build a shared lib and the
Matthew Oatham wrote:
Hi,
I have been trying to find a way of creating a zip file. I have a file on my server that I want to compress I have had a look at gzip but cant work out what to do.
Can someone point me to a function or an example of how to do this.
Check the messages within the last
John Smith wrote:
What's the most accurate way to get the byte count of
some text? Is strlen() accurate with Unicode, ASCII,
etc.?
if you are working with non ASCII characters you might want to install
the mulitbyte string extension.
--
Raditha Dissanayake.
On Thu, Aug 26, 2004 at 04:19:51PM +0100, Geoff Caplan wrote:
Doug,
snip
I'm fairly new to this field, so I'm still feeling my way, but I guess
my requirements are similar to anyone else building a fairly complex
ecommerce application: fill and submit forms using the full range of
HTML
WHOHOO!
up2date -i XFree86-devel
./configure --with-mysql=/usr/local/mysql
--with-apxs=/etc/httpd/bin/apxs --with-gd --with-png
--with-zlib-dir=/root/zlib-1.2.1 --enable-gd-native-ttf --with-ttf
--with-jpeg-dir=/usr/local/lib/jpeg-6b/
--with-freetype-dir=/usr/local/lib/freetype-2.1.9/
Thanks. I'll check it out.
My main concern is that what seems great about using those php classes
to generate the pdf directly is the possibilite to pull data from
mysql (or other db) and generate an up-to-date report.
But since this is not the case seems a lot of work just to generate a
simple
I tried this form to upload a file.
html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /
/head
body
form action=./upload.php method=post
input type=file name=userfile
input type=submit value=upload
/form
/body
/html
with the following code:
I'm reading data. Can I open a connection within a connection and write data to
another $db.$table or do I have to write my data to an array. In an array, how do I do
this?
I've looked at array_push, but don't think this is what I want?
$authors = array();
On Tue, 7 Sep 2004, Jim Grill wrote:
If any of the output from gdb give you a hint what the problem could be (ftp
functions or something) research each of the functions you are using on the
PHP site reading the user added comments. Look for any mention of a possible
segfault. Search the PHP
Are you certain these curly quotes are actually coming in and not being
munged by the client sending them? If they are coming in, and they are
actually in Unicode, which unicode sequence are they represented by. If
you could save the raw data you are getting to a file and make that file
Deependra b. Tandukar wrote:
I tried this form to upload a file.
form action=./upload.php method=post
...
This very code works in my home computer. I tried this with my local
server at my office and my web server, both give the same message what
is the wrong with it.
Suprised that it worked at
--- Deependra b. Tandukar [EMAIL PROTECTED]
wrote:
I tried this form to upload a file.
html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html;
charset=iso-8859-1 /
/head
body
form action=./upload.php method=post
you should define enctype
input
87 matches
Mail list logo