Hi Petre
Why not use LIMIT in your query? Like this:
?php
//open database connection
//make query
If(!isSet($_GET['entry']) {
$_GET['entry']=0;
}
$sql_query=SELECT id,row1,row2,row3 FROM table WHERE
something='$whatever' ORDER BY id ASC LIMIT $_GET['entry'], 10;
$sql_id =
http://www.php.net/manual/en/features.file-upload.multiple.php
-Kevin
- Original Message -
From: Andres, Cyrille [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 12:19 PM
Subject: [PHP] upload several files
Hello everybody,
I created a form allowing user to
You might look at the htmlentities() function...
On Tue, 29 Oct 2002, a.h.s. boy wrote:
I'm working on a PHP-based CMS that allows users to post lengthy
article texts by submitting through a form. The short version of my
quandary is this: How can I create a conversion routine that reliably
I think you have posted before and probably didn't get an answer. I'm
not going to give you an answer (because I don't have one), but perhaps
I can point you in the right direction.
Look at http://www.w3.org/TR/REC-html40/charset.html and see if that
helps you. Below is a paragraph I pulled
tir, 2002-10-29 kl. 19:28 skrev MIke Pogue:
Do you have any ideas how could I remove/uninstall an old php3 version on linux?
Should I delete the files manually?
linux is a many splendored thing. On mine, I go about it exactly the
same way as I did on SCO OpenServer, UnixWare and Solaris when I
i do not use the full version php, only the libphp4.so for apache. i was
previously using v4.1.2 and recently upgraded a development system to
v4.2.3.
now, on the devlopement system the following things no longer work as they
do on the 4.1.2 systems
the PHP_SELF and SERVER_NAME variables are
Thanks, figured that out shortly after I posted.
Ed
On Tue, 29 Oct 2002, John Nichel wrote:
http://www.php.net/manual/en/function.preg-match.php
Wrong syntax, and more code than needed. Your code would always resolve
true (if ($matches[0] = http)). Doing that sets the value of
[snip]
i do not use the full version php, only the libphp4.so for apache. i was
previously using v4.1.2 and recently upgraded a development system to
v4.2.3.
now, on the devlopement system the following things no longer work as they
do on the 4.1.2 systems
the PHP_SELF and SERVER_NAME variables
eureka! i just actually read that. i have only joined this list today. this
is my first ever problem with php, and it turned out to be an easy one.
thanks,
shon
-Original Message-
From: Jay Blanchard [mailto:jay.blanchard;niicommunications.com]
Sent: Tuesday, October 29, 2002 3:20 PM
To:
I was going to post a similar response to this.. but I do recall that
Hotmail uses a form where you select the filename and pop it over to a
listbox.. then when you submit, it throws all the files into the email..
one page, one form, any number of files (up to 1 or 2 megs, however
hotmail's
I have one more than one occasion run into the problem of headers already
sent when I was using the header function in combination with cookies.
What is the right way of doing it?
?php
header ( your thinggies here);
setcookie(blabal);
or the other way round? can I do php routines between these
[snip]
I have one more than one occasion run into the problem of headers already
sent when I was using the header function in combination with cookies.
What is the right way of doing it?
?php
header ( your thinggies here);
setcookie(blabal);
or the other way round? can I do php routines between
thanks, I already thought so
I'll check it out!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I disagree that serialize/unserialize is the way to go, unless you're
absolutely completely sure that there will only be a relatively small number
of things in the array. As somebody mentioned briefly, the get request is
limited to a certain number of bytes, and the string representing your
I am making some pictures for my website in photoshop. Is there anyway I
can use php or html to get the screen resolution so that I can load
different images accordingly. I know I can just make them all less than 640
pixels wide but then they look to small on most computers.
Thanks,
Eddie
--
but are you really sure that you cannot use setcookie() and header() at the
same time??
I cannot find it anywhere, either in the manuals or in tutorials or in the
output control functions!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP runs on the server. It knows nothing about the client. Use Javascript
to get information about the client and pass it to your PHP script.
-Kevin
- Original Message -
From: Edward Peloke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 2:18 PM
Subject: [PHP]
http://www.php.net/manual/en/function.setcookie.php
And I quote, setcookie() defines a cookie to be sent along with the rest of
the header information. Cookies must be sent before any other headers are
sent (this is a restriction of cookies, not PHP).;
If you absolutely must set cookies after you
Hi,
I disagree that serialize/unserialize is the way to go, unless you're
absolutely completely sure that there will only be a relatively small
number of things in the array. As somebody mentioned briefly, the get
request is limited to a certain number of bytes, and the string
representing
You need to call start_session before accessing $_SESSION variables UNLESS
you have PHP configured to automatically start_session (which is off by
default).
You need to start_sesion so that scripts that don't need $_SESSION don't go
through the overhead of starting session.
Jason
-Original
This really has little to do with php. Use SSL for the connection
(search on your favorite search engine).
If you're asking about storage methods of the sensative information,
www.php.net/crypt will answer that question.
-js
Pushpinder Singh Garcha wrote:
Hi,
I am making a secure page
Jonathan Sharp wrote:
This really has little to do with php. Use SSL for the connection
(search on your favorite search engine).
If you're asking about storage methods of the sensative information,
www.php.net/crypt will answer that question.
Correction: try www.php.net/mcrypt
-js
-js
I'm having a problem where $_POST is being populated with the values of a
set of checkboxes after moving the script to a new server. The checkbox
values appear in the raw post data, the proper number of indexes are
created, but the data does't make it into the superglobal.
The form similar to
E... try COM maybe...
-js
Don Hicks wrote:
Hello,
I'm running php on a Win2000 server.
I also have an MS Access 97 database on the server.
I want to tell the database to execute a macro on an as needed basis by
running a php system() function, but I'm having difficulty making the
Try a JavaScript mailing list.
- Original Message -
From: Edward Peloke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 2:18 PM
Subject: [PHP] screen resolution
I am making some pictures for my website in photoshop. Is there anyway I
can use php or html to
Brent --
Thanks for the pointer, but it doesn't really address the problem. I am
specifying the character set for the page (ISO-8859-1), and I'm
inserting an ACCEPT-CHARSET parameter into the FORM element, but it
specifies acceptable charsets as UTF-8, ISO-8859-1, and Windows 1252.
The
I have developed a PHP application that accesses a Microsoft Access database
through ODBC. The application works well using PHP version 4.1. I have
recently installed the newest version of PHP (4.2.3) on another machine
running NT4, and IIS 4.
Again, I am using an ODBC connection, and have given
I Copy and Pasted your code directly from this email and tested it.
$GLOBALS['HTTP_RAW_POST_DATA'] never gets set, but the rest of it worked
fine. Curious.
-Kevin
- Original Message -
From: Mark Heintz PHP Mailing Lists [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29,
Like I said, it works fine on any other server. I was wondering if it
could be a configuration issue.
I believe $GLOBALS['HTTP_RAW_POST_DATA'] is not populated by default by a
setting in php.ini. I turned it on to verify that the browser was
actually transmitting the data which was missing
Hi All
I'll start by saying that I've checked the online manual (and comments)
as well as having done a Google search on this with no success.
My problem is that files uploaded through a form are increasing in size.
For example, I upload an image that is 7658 bytes and the uploaded
version is
How do you do a HTML post in php?
Thanks
--
Wei Weng
Network Software Engineer
KenCast Inc.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
I am trying to upload files into a MySQL database. The problem is that
I cannot upload anything over 1M. It comes up with an error message.
Do I need to manually set the values for post_max_size and
upload_max_filesize or are these set to the defaults of 8M and 2M,
respectively?
Thanks
Hi Group,
I have a problem where when I use array html input names like
value[client_name] PHP cuts off the first 4 characters?
example code:
input type=text name=value[client_name] value=12345678 /
input type=text name=value[student_name] value=12345678 /
On the next page there should be a
Figured this was important enough to share...
Yahoo Moving to PHP
http://developers.slashdot.org/article.pl?sid=02/10/29/2052239mode=threadtid=169
Erek Dyskant writes Yahoo has decided to switch from a proprietary system
written in C/C++ to PHP for their backend scripting. Here's the notes from
Open a socket connection, formulate your data, post it to the host. Or do a
searchfor the PostToHost() function. Good luck.
-Kevin
- Original Message -
From: Wei Weng [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 3:44 PM
Subject: [PHP] HTML Post
How do you
Hi everyone...
I've got a little problem :
I've got an html template, with javasript functions and stylesheets in many
places...
This html template is made via a big big template handler i've done...
All seems to work... But, now, I would like to clean this html page to
procude a 'readable' page
Paste into notepad, the copy the text from notepad.
Notepad should remove the high ASCII text.
--- Brent Baisley [EMAIL PROTECTED] wrote:
I think you have posted before and probably didn't
get an answer. I'm
not going to give you an answer (because I don't
have one), but perhaps
I can
for file maker pro (windows/mac) -- word (windows/mac)
function make_safe($text)
{
$text = preg_replace(/(\cM)/, , $text);
$text = preg_replace(/(\c])/, , $text);
$text = str_replace(\r\n, , $text);
$text = str_replace(\x0B, , $text);
$text =
?
// Sends GET or POST, with data, to URL
// $form_url:full URI, http://www.isp.com/directory/directory
// $form_method: GET or POST
// $form_data: associative array of data for GET or POST
// $ShowRequest: if set, return the request sent to server
// Request text enclosed by
Pretty sure this is a known bug; it's been discussed on here a few
times. Do a search for it.
---John Holmes...
-Original Message-
From: Jarrad Kabral [mailto:JarradK;cordell.com.au]
Sent: Tuesday, October 29, 2002 6:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Cutting off first 4
Could someone please fix the function pages on http://www.php.net, so
that when people submit code all nice and formatted, it retains that
formatting in the contributed notes section? There are some really
intricate examples, and it just makes it that much easier to read. Not
to mention, the left
Hi people,
Do you know where I can look at a free meeting management system?
Nothing too fancy, just something that does the job.
Thanks.
Regards,
Faisal
__
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello all,
I'm plan to use latest verison of Apache(httpd-2.0.43.tar.gz),
PHP(php-4.2.3.tar.gz) and MySql(mysql-3.23.53.tar.gz) combinations.
Just i want to conform is there any Vulnerability issues in any of these sources?
Advance thanks.
Regards,
-Shadha
Assuming that I have to for some unknown reason, are there any articles on
storing images in the database and retrieving them?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In order to speed-up queries, it is suggested that you DO NOT store images in the
database. Rather, store the images in files and store file names in the database.
- Original Message -
From: John Meyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 9:32 PM
Know that, believe that, been preaching that, but I just want to know just
in case.
Actually found the article.
-Original Message-
From: Rick Emery [mailto:remery;emeryloftus.com]
Sent: Tuesday, October 29, 2002 8:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] MySQL and images
In order
I'd suggest sticking with Apache 1.3.x for the time being.
-Rasmus
On Wed, 30 Oct 2002, Rahul wrote:
Hello all,
I'm plan to use latest verison of Apache(httpd-2.0.43.tar.gz),
PHP(php-4.2.3.tar.gz) and MySql(mysql-3.23.53.tar.gz) combinations.
Just i want to conform is there any
There are times, especially in highly dynamic situations, where backing up
and restoring of images and metadata from a database or for security
reasons, where storing the images within a database makes real sense.
Separating the physical storage areas for the two types of data (metadata
images)
Errr...I'm not sure how this is applicable to my situation. I'm
concerned, above all, with converting
curly double quotes
curly single quotes
em and en dashes
inverted exclamation points
inverted question marks
ellipses
non-breaking spaces
registered trademark symbols
bullets
left and right
This is not correct.
Both the setcookie() and header() functions manipulate the HTTP headers
in the response. You cannot have output prior to any function that
manipulates headers - that's the limitation. These two functions work
fine together in any order; it's prior output that will cause an
Hay guys,
I have two variables ( integers ) that are being minused one from the other
and i am printing the result to the screen but i am getting unwanted
decimals.
print ($eall - $sall) / 1000;
My question is what is the easiest way to strip decimals off the above
result. The only way i know
have a look at number_format()
-Original Message-
From: Andrew Wilson [mailto:will;netwaynetworks.com.au]
Sent: Wednesday, October 30, 2002 3:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Decimal Places
Hay guys,
I have two variables ( integers ) that are being minused one from the other
This topic may have been covered before, but I couldn't find any info on
it.
We have a Cobalt RaQ4 that serves up all our intranet sites, a couple of
which will have forms for uploading files that are related to records
stored in a DB. I'm not planning on storing the files in the DB, don't
There is no such restriction of cookies.
I think what the manual meant to say was that cookies must be sent prior
to any output, which is the same restriction any other header has that
you wish to set with the header() function, for example.
I have forwarded this along to the documentation
I am having a problem with a form system that I am developing. It is a multi page form
with over a hundred different possible variables. The problem that I'm having is that
when a user enters invalid data on one page and then submits to the next page I want
that page to go back to the previous
Follow your instincts and do some research into sessions.
I've put enormous amounts of data into sessions before on high-traffic
sites without much trouble. You need to have the memory for it, of
course, but it takes a lot of form data to equate to any significant
amount. Chances are you'll be
On 29 Oct 2002 at 9:41, Mukta Telang wrote:
I have written followong code in hello.html:
FORM ACTION=hello.php METHOD=POST
INPUT TYPE=TEXTAREA NAME=textbox
?php
printf(BRhello %s!,$textbox);
?
This script works fine with php in redhat 7.2 system
but does not work in solaris 7 !
I
Apologies if I'm being too simplistic here, but make sure that your
first page's form elements have something similar to:
input type=text name=username value=? echo $username; ?
And of course.. that your POST data is being grabbed accordingly by the
first page to be able to set those
Does it have direct access to this filesystem?
Or maybe FTP access? I've seen a lot of talk about automatic FTP
transfers on the list, maybe you can filter the topics and grab
something from there?
Just a few cents to throw in :)
-Jason
Greg Macek wrote:
This topic may have been covered
Hello,
Thanks for all reply. Shall i take as there is no vulnerability in php
and mysql?
I plan to use apache-1.3 series with same (as i speciifed in previous mail)
php and mysql?
can i use those(apache,php and mysql) in production use? agian thanks...
Regards,
-sahda
I'd suggest
I will give the search a try tomorrow morning. But I can give direct
access to the filesystem for one folder on the RaQ if needed as a
temporary holding place. In my head it seems to be the best option I
have. I'll see what my search results come up with tomorrow.
On Tue, 2002-10-29 at 23:38,
Of course there is no known vulnerabilities or we would have fixed them.
On Wed, 30 Oct 2002, Rahul wrote:
Hello,
Thanks for all reply. Shall i take as there is no vulnerability in php
and mysql?
I plan to use apache-1.3 series with same (as i speciifed in previous mail)
php and mysql?
If you download the most recent *stable* version of MySQL and PHP, and hook
them up to the latest, *stable* release of apache 1.3.x, then you the most
reliable production set-up available.
Justin
on 30/10/02 3:47 PM, Rahul ([EMAIL PROTECTED]) wrote:
Hello,
Thanks for all reply. Shall i
Univates, October, 22, 2002
I've just published the version 3 of Agata Report
=
http://agata.codigolivre.org.br
::: Agata Report is a Report Generator writen in PHP-GTK using Pear:DB.
::: further information at the end of message.
* Currently, Agata has support to English,
Try these
http://www.hotscripts.com/PHP/Scripts_and_Programs/Groupware_Tools/
http://www.hotscripts.com/search/?query=meetingcategory=php
olinux
--- Faisal Abdullah [EMAIL PROTECTED] wrote:
Hi people,
Do you know where I can look at a free meeting
management system?
Nothing too fancy,
Yes if you include the file
include (file);
then you can refer to any of the variables the file contains
Trasca Ion-Catalin wrote:
It's posible to call a variable from another file?
--
Trasca Ion-Catalin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
101 - 166 of 166 matches
Mail list logo