Hi All,
I'm sure I saw a posting on this subject a month ago so please excuse me for
not paying attention the first time ;-|
I have a php script that I wish to execute but I want to put it in
index.html (not index.php)
I know there is a solution involving configuration files in either the
If the different applications are on the same domain/ip you should use this:
(myCookie,$cookie_value,$timeToExpire);
note the missing parameter at the end
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Gaylen Fraley [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
I'm wondering what is a good general approach to enabling site-wide
searches on any topic on a 100% PHP-powered portal-type site for a
tertiary institution (yet to be built). Most if not all content will be
contained in a database, spread across potentially many different
tables.
How can all
on 28/07/02 1:48 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
Justin,
I did what you said, just uploaded the file and downloaded it again, and
the weirdest thing is happening. When I Form-Upload/FTP-Download it, I can
see it on my local computer, it opens everywhere. Now, when I try to
Greetings,
I am new to PHP and trying to implement some PHP and MySQL on my website. My
website has a lot of tables and inside some of those tables, I want to
display information that is drawn out of the MySQL database using PHP. I was
wondering what goes faster:
(A). Building the whole page
I *think* you've got a typo -- you've said ln2br instead of nl2br i think.
Aaaannny way, you can't modify WHAT php does in nl2br, but you can do
something to the resulting code, like replacing /libr / with /li:
?
$original = ulliBlar/li/ul;
$new = nl2br($original);
$new = str_replace('/libr /',
on 28/07/02 12:53 PM, Jason Stechschulte ([EMAIL PROTECTED]) wrote:
There might be an easier way, but you might just have to write your own
code for this. Something along the lines of: (completely untested)
?php
$line = ereg_replace((^li|^ul|^ol)\n, br /\n, $line);
?
Definately an
I haven't noticed ANY performance hit by skipping in and out of PHP and HTML
when it suits me.
I imagine there *might* be a slight performance hit if you were building a
LOT of table information with print or echo or printf, but the general
answer to your question is usually whatever suits you
I didn't expect it to make too much of a difference. Thank you for your
answer.
Yves Vrancken
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I haven't noticed ANY performance hit by skipping in and out of PHP and
HTML
when it suits me.
I
Hi Gurus,
I am using PHP-4.1.1 on Linux,
I wanted to know the difference between "nobody" user and normal user of
operating system.
This question just came to mind when, neither nobody's directory nor any
entry was not found in /home or elsewhere.
Thanking you all in anticipation.
Regards
I'm using php 4.21 on WIN xp.
I 'm trying to work with file upload, I already read several sites who
refer that php will set the variable file_name automaticly,.
I made 2 tries one on line 6 and other on line 7 of the atached code, but
both does not work.
Why I receive the folowing errors,
Hello,
You can also find something about your questions on:
http://www.php9.com/index.php/section/articles/name/PHP%20Guidelines
I had tested out by printing (repeated times):
1) echo 'br'.$k.': hallo '.$string.', dit is hetbr'.\n;
2) echo br$k: hallo $string, dit is hetbr.\n;
3) ?br?=$k?:
Hi newsgroup friends,
my name is mike and im qite new to php.
i have one problem: i cant send date via a form action=example.php
method=post.
so in the the php file called example, i write echo $nameofthefield, but the
data isnt send, so nothing is written in the browser!
what can i do?
--
The help other's with the same problem I made that self answer.
The tip here is to use $_FILES instead of $_POST
HTML
BODY
?php
if (isset($_FILES['file'])){
echo Successfully uploaded , BR\n;
echo File Name ,$_FILES['file']['name'], BR\n;
echo File Type ,$_FILES['file']['type'], BR\n;
echo File
Try
echo $_POST['nameofthefield'];
If this works, it's to do with register_globals directive in your php.ini
file.
You can set it to on, which will solve your problem, or you can choose to be
more secure, and write better scripts, by choosing to keep it off, as with
the above line of code.
research the php function htmlspecialchars().
I replaces with lt; and with gt; etc.
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
I often get confused with lt; and gt; so they may be in the wrong order
but I am sure you get the idea.
ØYstein HåLand [EMAIL PROTECTED] wrote in message
Hello.
I use this code-snip similar to this to check if the inserted tuppel in my
database was successfull:
--- snip ---
$OID = pg_last_oid($resultat);
if($OID0) {
echo $errormessage;
exit;
}
$query = SELECT * FROM medlemmer WHERE oid = '$OID';;
$resultat =
Bård Magnus Fauske wrote:
But when I print the result from pg_fetch_result() to the browser (last
lines above), I only get the first letter in the string $fornavn[$i] and
similar strings not listed above, not the whole string. What is the
reason for this? Has it something to do with the
Hi Gurus,
I am using PHP-4.1.1, postgresql on Linux.
I want the following functionality, I dont know how to implement it.
Each time a new user registeres, I want to create mail account by the name
he specifies and allocate him some space of the server, say 2mb.
How this is incorporated ?
On Sun, 28 Jul 2002 08:18:40 +0100, you wrote:
Hi All,
[...]
I have a php script that I wish to execute but I want to put it in
index.html (not index.php)
I know there is a solution involving configuration files in either the
directory wher the file is held or specifically for the server.
On Sun, 2002-07-28 at 04:04, Justin French wrote:
I *think* you've got a typo -- you've said ln2br instead of nl2br i think.
Doh! You got that right.
Aaaannny way, you can't modify WHAT php does in nl2br, but you can do
something to the resulting code, like replacing /libr / with /li:
?
on 29/07/02 12:02 AM, Kevin Breit ([EMAIL PROTECTED]) wrote:
Aaaannny way, you can't modify WHAT php does in nl2br, but you can do
something to the resulting code, like replacing /libr / with /li:
?
$original = ulliBlar/li/ul;
$new = nl2br($original);
$new = str_replace('/libr /', '/li',
php-general Digest 28 Jul 2002 14:15:01 - Issue 1491
Topics (messages 110019 through 110051):
PHP/MySQL Search Engine Query Question
110019 by: Paul Maine
110026 by: Naintara Jain
How do I show the sourse code?
110020 by: Øystein Håland
110022 by: Bob
On Sun, 2002-07-28 at 10:14, Justin French wrote:
on 29/07/02 12:02 AM, Kevin Breit ([EMAIL PROTECTED]) wrote:
Aaaannny way, you can't modify WHAT php does in nl2br, but you can do
something to the resulting code, like replacing /libr / with /li:
?
$original = ulliBlar/li/ul;
$new
Are you asking us how to write an entire online community program???
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "umesh" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 28, 2002 6:40 AM
Subject: [PHP] Help reg. create user and allocate
I am new to PHP and trying to implement some PHP and MySQL on my
website.
My
website has a lot of tables and inside some of those tables, I want to
display information that is drawn out of the MySQL database using PHP.
I
was
wondering what goes faster:
(A). Building the whole page
There is no substitute for good data verification such as strip_tags() or
some regular expressions to limit valid input. I also would recomend
checking the referrer to be sure someone doesn't hijack you form and try to
modify it and submit it from a remote location. Here is an example:
if
HTTP_REFERRER can be spoofed quite easily with some browsers.
The best way to handle this is to provide as much of your own data as
possible, and validate anything you do end up using from the user.
For instance, use your own subject, make sure the To: address comes from
you (a file or
That did the trick.
Thanks.
Henry
Michael Sims [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Sun, 28 Jul 2002 08:18:40 +0100, you wrote:
Hi All,
[...]
I have a php script that I wish to execute but I want to put it in
index.html (not index.php)
I know
Here is an idea
?
// make array out of words in search string
$search_array = explode(' ', $search);
// make regexp pattern '.*(this|or|that).*'
$string = .*( . implode('|', $search_array) . ).*;
$query = SELECT * FROM my_table WHERE body REGEXP '$string';
$result = mysql_query($query,
Hi,
This really isn't a PHP issue..sorry.
I'm having a nightmare with Oracle 8i (pos!). I'm writing common SQL
which works for MSSQL 2K and seems correct for Oracle... but keeps
giving me a Error.. ORA-00933 SQL command not properly ended on the
following query...
SELECT grp.grpdescrip,
On Sunday 28 July 2002 19:40, umesh wrote:
Hi Gurus,
I am using PHP-4.1.1, postgresql on Linux.
I want the following functionality, I dont know how to implement it.
Each time a new user registeres, I want to create mail account by the name
he specifies and allocate him some space of the
Hi Gurus,
I am using PHP-4.1.1 on Linux,
I wanted to know the difference between nobody user and normal user of
operating system.
This question just came to mind when, neither nobody's directory nor any
entry was not found in /home or elsewhere.
The web server can be run by any user.
The
There is no substitute for good data verification such as strip_tags() or
some regular expressions to limit valid input. I also would recomend
checking the referrer to be sure someone doesn't hijack you form and try to
modify it and submit it from a remote location. Here is an example:
if
Why can't you just have
?PHP
at the top of the page and
?
at the bottom?
Henry [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi All,
I'm sure I saw a posting on this subject a month ago so please excuse me
for
not paying attention the first time ;-|
I
Thanks for the help, guys . I appreciate it. And Bas, thanks for that link.
Interesting material for a novice PHP-user as myself.
Yves Vrancken
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does anyone have a regular expression that works to validate credit card
numbers?
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think you are looking for something different.
do this:
print pre;
print_r($_SERVER);
print /pre;
You will see a whole bunch of useful globals. As a matter of fact, try this
one out too:
print pre;
print_r($GLOBALS);
print /pre;
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
You need to append or create a .htaccess file in the same folder as
index.html, and add this line:
Files index.html
ForceType application/x-httpd-php
/Files
Then, just treat the index.html file as a php file.
HTH,
Peter Janett
New Media One Web Services
New
I'm using a regular expression (below) to check phone numbers. I'm getting
an error that I can't make sense of.
$regex = ^((\(\d{3}(\) -))?*\d{3}(- )\d{4},?*)+$;
Output I'm getting =
Warning: REG_BADRPT in /home/basemen/public_html/verify_order.php on line 28
Anyone know what this means? I
I'm trying to get an uploader to work, where you check to make sure it's a
jpeg file that's being uploaded, and no other files allowed. the server is
unix linux using php4.1
Any help would be appreciated.
thanks in advance
deasdam
--
PHP General Mailing List (http://www.php.net/)
To
I'm making a website for a friend, and trying to do everything the right
way. I want to add slashes to EGPCS values. I know how to use this,
but one of the comments on the get_magic_quotes_gpc entry in the manual
points out that it wouldn't work with arrays in these values - and they
have a
deadsman,
if (($filename_type != image/jpeg) ($filename_type != image/jpg)
($filename_type != image/pjpeg)) {
header(Location:submitError.php); exit; //goes to an error page if the
file wasnt a jpg
} else {
$upload_path = /path/of/the/$filename_name;
if (is_uploaded_file($filename)) {
No, but thanks, the other input is more towards what I was looking for.
I want to take in an email address, and various other fields. Then, send
an email using 'mail()' with the other fields as the 'body', and the
email address as the 'reply_to' address, to someone in my company. That
way, they
Thanks oscar I'll give this a go, I tried just using filetype != image/jpeg
so mabey adding the rest will help , I read there was a problem with some
browser with uploading hopfully this will solve the problem.
much apprecatied
Deadsam
Oscar F [EMAIL PROTECTED] wrote in message
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says...
I have seen on some of the script-sites around some nice ways of presenting
the source code. Often in nice colors. So, the natural question is: how is
that done (cause I don't think anyone has the patience to put lt; and gt;
around all
I will be out of the office starting 27/07/2002 and will not return until
04/08/2002.
Sorry but I am out of the Office till the 4th of August. Please contact
Roger Smith for any emergency.
The information contained in this e-mail message may be privileged
and confidential information and is
Do sessions not work when using an https connection? It seems I'm losing my
data between pages.
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mike,
I have used them with https, and they work fine. Make sure you are calling
session_start(); on every page you need your session vars.
Oscar.-
- Original Message -
From: Mike Mannakee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, July 28, 2002 9:21 PM
Subject: [PHP]
Hi,
Monday, July 29, 2002, 11:21:34 AM, you wrote:
MM Do sessions not work when using an https connection? It seems I'm losing my
MM data between pages.
MM Mike
If you are changing domain names when going to https you will lose the
session info if relying on cookies. You will have to hard
Thank you. This has been driving me up the wall like you wouldn't believe.
Mike
Tom Rogers [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
Monday, July 29, 2002, 11:21:34 AM, you wrote:
MM Do sessions not work when using an https connection? It seems
I am working on a web site that is using php controled www-
authenticate authentication. User ids are specific to users and
different pages and different levels of information for a given page
will be displayed based on the user id used. The problem is how do
you log out without having to
php-general Digest 29 Jul 2002 03:02:09 - Issue 1492
Topics (messages 110052 through 110080):
Re: Extra spacing with br in HTML
110052 by: Kevin Breit
Re: Help reg. create user and allocate space
110053 by: Tech Support
110060 by: Jason Wong
Re: Speed issues.
Howdy,
I've successfully complied PHP and the straight cigfiguration of apache
1.3.26 but when i go to configure php as a module in apache using
#./configure --enable-module=max --enable-shared=max --activate-module=src/m
odules/php4/libmodphp4.a
i get the following error
mod_php4.c:28:18:
I like this method a lot. Now, considering I do like FOR looping as a
fact, how can I make a loop inside another loop. I mean, if I tell the
first loop that $i=0 and then do the comparison and then add 1 to $i, in
the inner or second loop should I state that $i=$i or what? Also make it
$i=0???
I've been trying a few things that should actually work and for some strange
reason they aren't. It's a strange one indeed. jpg is not a MIME type though
(just thought I'd let you know that) but nevertheless it should work, but
for some weird reason it isn't.
I'll keep plugging away at it till I
Visit http://phpacronym.coolfreepage.com
http://phpacronym.coolfreepage.com/ and submit what the PHP acronym
means to you!
I could be wrong on this but I believe that Oracle 8i uses a proprietary
join syntax. This support has been added in the latest version of Oracle,
but with 8i I believe you're out of luck using the left join keywords.
Check out
On Monday 29 July 2002 11:27, César Aracena wrote:
I like this method a lot. Now, considering I do like FOR looping as a
fact, how can I make a loop inside another loop. I mean, if I tell the
first loop that $i=0 and then do the comparison and then add 1 to $i, in
the inner or second loop
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
Howdy,
I've successfully complied PHP and the straight cigfiguration of apache
1.3.26 but when i go to configure php as a module in apache using
#./configure --enable-module=max --enable-shared=max --activate-module=src/m
In article 01c236b2$e5af1350$f5563944@cc1966780a,
[EMAIL PROTECTED] says...
Visit http://phpacronym.coolfreepage.com
http://phpacronym.coolfreepage.com/ and submit what the PHP acronym
means to you!
Hmm, at least it is 404-compliant :-)
--
David Robley
Temporary Kiwi!
Quod subigo
I know no one in this list like to think we newbie's want the job done
for us, so I'm trying to figure out the below question myself, but trust
me when I say it's making me nuts... this is my best shot so far:
$query = SELECT * FROM saav_arts ORDER BY artid;
$result = mysql_query($query) or
problem solved!!! thanks for your help Dave :D
Cheers
Peter
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: Monday, 29 July 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: mod_php4.c errors on Apache Complie
In article [EMAIL PROTECTED],
[EMAIL
Ray Todd Stevens wrote:
I am working on a web site that is using php controled www-
authenticate authentication. User ids are specific to users and
different pages and different levels of information for a given page
will be displayed based on the user id used. The problem is how do
you log
You'll prob. need to use the (+) to join
like this
SELECT grp.grpdescrip, grp.grp, grp.createcust, grp.auth1, grp.auth2,
usergrp.userid, users.userdescrip
FROM grp, usergrp, users
WHERE grp.grp = usergrp.grp (+)
AND usergrp.userid=users.userid (+)
ORDER BY grp.grp
-Original Message-
I do understand how this works. Yea the browser caches the
information and returns it each time. I was tryiung to find a way to
clear this cache. (seems to be a failure in current browsers that
there is no command for this) Or have a system so that a cookie
can be created that forces a
Hello Folks,
I have applied patch to PHP4.0.6.Any one of you please suggest on how
to test the patched version and confirm that the vulnerability is fixed.
[Note :Patch is applied for the following Vulnerability.
Vulnerabilities in the php_mime_split function may allow
Hi all,
I have been working on an online shopping thingy for quite a while and I have
encounter a strange problem which could not be solved. Deeply needed your help.
Problem:
Its very hard to explain this. So, if you do not quite understand it, please tell me,
I will send some screenshots
try changing these two lines
$num_rows = mysql_num_rows($result);
$num_cols = 2;
to this
$num_cols = 2;
$num_rows = mysql_num_rows($result) / $num_cols;
this isn't the full solution, but will help you on your way...
HTH
Martin
-Original Message-
From: César Aracena [mailto:[EMAIL
Hi,
Monday, July 29, 2002, 7:53:30 AM, you wrote:
D I'm trying to get an uploader to work, where you check to make sure it's a
D jpeg file that's being uploaded, and no other files allowed. the server is
D unix linux using php4.1
D Any help would be appreciated.
D thanks in advance
D deasdam
On Sun, Jul 28, 2002 at 04:02:32PM -0400, Mike Mannakee wrote:
Does anyone have a regular expression that works to validate credit card
numbers?
http://www.analysisandsolutions.com/code/ccvs-ph.htm
I just updated it to Version 4.3 LATE Friday night. So, anyone using
anything earlier than
71 matches
Mail list logo