"Martin Hudec" <[EMAIL PROTECTED]> wrote in message
news:18910327021.20021029184135@;corwin.sk...
> Hello Tine,
>
> it looks okay to me butlooks like you have met two conditions at
> time ($sted == "") and ($telefon == "0")why dont u make something
> like this?
>
> if (empty($sted) || empt
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 action
happen.
I suspect it's my coding.
I'm currently
Checkout serialize(); and unserialize();
http://www.php.net/manual/en/function.serialize.php
http://www.php.net/manual/en/function.unserialize.php
//On your first page..
$myarray = serialize($myarray);
echo "Link";
//Then on your other page..
$myarray = unserialize($_GET['myarray']);
print_r($mya
Seems to work but I'm getting a Warning Message:
Delimiter must not be alphanumeric or backslash
Here's the code:
$path = "http://somehost.somedomain.com";;
preg_match ("http", $path, $matches);
if ($matches[0] = "http") {
$action = "this action";
}
else {
$action = "that action
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
I think you should be able to serialize and urlencode the array and then
pass that via get/post.post would be a lot better as get is limited to so many
chars.
Something like:
$sql = "select stuff from my_table";
$result = mysql_query($sql);
w
Do a little debugging. The error is easy to spot..
Ok, wrote the following code, but get a parse error line 74 (last part of
the code):
if (empty($navn) || empty($addresse) || empty($postnummer) || empty($sted)
|| empty($epost))
{
include("head.inc");
} <--- GET RID OF THIS!
if
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
substitutes HTML-acceptable output for high-ASCII characters pasted
into the form (from
Hello everybody,
I created a form allowing user to upload some files on my server. It works
very fine.
But now I would like him -the user- to be able to choose several files and
upload them at the same time by submitting the form.
Actually I don't really know how to do that, if somebody would ha
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
$matches[0] to "http". Equality is ==. RTFM.
If all you want to know is if the URL contains a "http", t
> Hey,
> I think you should be able to serialize and urlencode the array and then
> pass that via get/post.post would be a lot better as get is limited to
> so many chars. Something like:
> $sql = "select stuff from my_table";
> $result = mysql_query($sql);
> while ($myrow = mysql_fetch_assoc($
Hi,
I am making a secure page where users will be able to send credit card
information.
What kind of support does php offer?
Thanks
Pushpinder Singh Garcha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Petre
Why not use LIMIT in your query? Like this:
".$sql['id']."";
}
//navigation
Echo"
".($prev>=0?"Previous
page":"")." ".($total_count>=$next+1?"Next page":"")."";
?>
I hope this helps you.
Best regards,
Davy Obdam
The Netherlands
mailto:info@;davyobdam.com
> -Oorspronkelijk
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 u
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 from
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 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 emp
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 a
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 lim
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?
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[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?
http://www.php.net/manual/en/function.ob-start.php
HTH!
Jay
--
PHP General Mailing List (http://www.php.
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
s
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: [PH
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 yo
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
> represent
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 M
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 wh
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
>
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 th
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 m
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
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 problem
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 th
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
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 from
First test that you can connect to the db server outside of php through
an odbc connection...then come back if that doesn't work.
-js
Bill Hudspeth wrote:
> I have developed a PHP application that accesses a Microsoft Access database
> through ODBC. The application works well using PHP version
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 768
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?
Thank
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:
On the next page there should be a variable called $value with those values
inside it.
This is how it comes out when I do a print_r straight after on
Figured this was important enough to share...
Yahoo Moving to PHP
http://developers.slashdot.org/article.pl?sid=02/10/29/2052239&mode=thread&tid=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 fro
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
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 ca
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);
$t
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
// Returns: string with data received from server
function GetPost( $form_url
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
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 a
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: http://www.php.net/unsub.ph
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
Su
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 t
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 Vul
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) a
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 guill
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 a
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
worry.
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 te
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 p
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:
>
>
> printf("hello %s!",$textbox);
> ?>
> This script works fine with php in redhat 7.2 system
> but does not work in solaris 7 !
>
> I have done the php installation...
> What are the chances th
Apologies if I'm being too simplistic here, but make sure that your
first page's form elements have something similar to:
And of course.. that your POST data is being grabbed accordingly by the
first page to be able to set those variables.
Maybe this helped?
-Jason
John W wrote:
I am havin
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 before
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 stick
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, Jas
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 m
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 t
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, Po
Try these
http://www.hotscripts.com/PHP/Scripts_and_Programs/Groupware_Tools/
http://www.hotscripts.com/search/?query=meeting&category=php
olinux
--- Faisal Abdullah <[EMAIL PROTECTED]> wrote:
> Hi people,
>
> Do you know where I can look at a free meeting
> management system?
> Nothing too f
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: http://w
101 - 178 of 178 matches
Mail list logo