John Wards wrote:
On Mon, 2004-09-20 at 16:56, Marek Kilimajer wrote:
play around with popen() and stream_select()
Oooh that looks handy.
More night time reading I think!
Any further ideas to save a man with a cold from using his brain would
be great!
Cheers
John
Wanted to do something
Jason FB wrote:
PHP GENERAL LIST:
I am trying to get the session cookie to stay active for 10 years
I have at the top of EVERY page on my website an include statement which
includes a file which contains only this code:
?
# THIS FILE JUST SETS THE SESSION AND INITIALIZES IT TO 10 YEARS
Jordi Canals wrote:
I have a method in a class wich composes an URL from the database,
this method sets some extra params in the url. In this case, the
function returns:
/myaccount/?opt=sysamp;id=3
Note the amp; in the URL
Well, with this code, the url works perfect and the amp; is going as
Martin Justra wrote:
Hi,
Did you want to
a) redirect the user to https://www.domain.com/...
or
b) display the contents of https://www.domain.com/...?
I want to redirect the user. But as soon as I try with fopen (https://)
I get the following error:
Warning:
your children function can return only one child, and one parent can
have more children. You should create an array of all children and loop
that.
Gerard Samuel wrote:
Im trying to dynamically construct a multidimensional array
to be used with PEAR's HTML_Menu.
Brian Dunning wrote:
I'm hosting on PowWeb where you have a different domain for SSL pages.
I'm trying to pass the user from the www.mydomain.com pages to the
mydomain.secure.powweb.com pages to complete a credit card transaction,
so I pass sid=xx as a GET param on the link that jumps them
In PHP4 $this-one = $one; assigns a *copy* of $one to $this-one. You
need to use $this-one = $one;
The code will work as expected in PHP5 (and zend.ze1_compatibility_mode
set to off).
Ryan Briones wrote:
This is a scaled down example of something I'm doing in some code. The
results are very
Gryffyn, Trevor wrote:
On 09/16/2004 09:01 PM, Rubem Pechansky wrote:
I have designed and successfully prototyped a native Windows binding
for PHP. This binding is very lightweight and it is already
capable of
doing dialogs, controls, and a lot more with a few dozen lines of
code. PHP can thus be
John Holmes wrote:
From: PHP Junkie [EMAIL PROTECTED]
As my link to the download file, I changed it to
a href=\imsafm_user_dl.php?F=imsafm/$user/$myrow[filename]\img
src=b_newtbl.png border=0/a
And changed the code in the download file to
?php
header(Content-Description: File Transfer);
PHP Junkie wrote:
Ave,
I've been having a very nagging and frustrating problem for a while and I
hope someone can help me out with this.
I created a simple File Manager application, a lot of you already know about
it as you helped me with coding at different stages.
The problem is this: The
Jeff Oien wrote:
Is there an easy way to strip out everything but letters and numbers
from a string? I tried searching the archives and didn't come up with
much. Thanks.
Jeff
$string = preg_replace('/[^a-z0-9]/i', '', $string);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Juan Pablo Herrera wrote:
HI!
I need catch many files in my server and make a zip file. In pear i not
see nothing. I think use exec for contruction a zip file. Any idea?
Regards,
JP
There are some classes (not in pear) that can create zip files w/out any
special extension. google for php zip
Diana Castillo wrote:
Anyone know of any function to replace letters with accents with just the
regular letter, for instance replace á with a,
ç with c, ñ with n ?
$string = str_replace(array('á', 'ç', 'ñ'), array('a', 'c', 'n'), $string);
--
PHP General Mailing List (http://www.php.net/)
To
Dennis Gearon wrote:
I'd like a value to be passed back from every page, if that page was
originally passed that value.
The two ways that I can think of it, are:
1/ Javascript with some sort of 'onSubmit()' function which causes a
minimal form to be submitted via POST or GET
2/ A hidden form
[EMAIL PROTECTED] wrote:
I noticed some numbers mixed with the response generated by my PHP code,
and I can't figure out what's causing it. I've dumbed my PHP script
down to just this (what could be simpler?):
?php
echo testing;
?
And I monitor the HTTP response coming from the server (apache),
Louie Miranda wrote:
Warning: main(): open_basedir restriction in effect.
File(/home/mainwww/www/sysfolder/pear/Pager/Pager.php) is not within
the allowed path(s):
(/home/axishift/:/usr/lib/php:/usr/local/lib/php:/tmp) in
/home/axishift/public_html/pageApps/viewMessage.php on line 11
Hi, what is
Wouter van Vliet wrote:
Howdy,
I've written some, kinda coolish, class that reads directories
recursively with some simple calls. Yihaaa, .. (but I'm not the only
one who has done that, I guess :P). Anyway, during the process of
traversing a directory it checks to see if the something that was
John Holmes wrote:
From: Aaron Voisine [EMAIL PROTECTED]
I read in the docs several comments that $_SESSION is slower that other
arrays. One
comment even had benchmarking info indicating it was about half as
fast. I don't understand
why this should be. Isn't $_SESSION just a normal super global
Chris Dowell wrote:
Entirely off the top of my head, I would imagine it has to do with the
scope of the variables in question.
When assigning a value to a variable, there must be some time spent
resolving the scope in which that variable is valid, to see if the new
value overwrites any
Lizet Peña de Sola wrote:
Hi all,
I need to use tidy for cleaning up html in my project, our hosting company
has php 4.3.8, so we need to install tidy and make the installation again.
After several times, the configure and make commands replied no error,
however, the phpinfo() doesn't show the
sure that the extension is in extension_dir (check php.ini).
Then restart the webserver.
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 09, 2004 12:42 PM
To: Lizet Peña de Sola
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Tidy installation
Martin Holm wrote:
I'm currently working on some stuff with php-cli and got a few problem.
I want to be able to read one single character from stdin via keyboard,
ie. pressing a button.
It works fine if I use enter as newline afterwards, but I would like to
do it without pressing enter.
Thus, I
John Smith wrote:
What's the most accurate way to get the byte count of
some text? Is strlen() accurate with Unicode, ASCII,
etc.?
John
strlen() is fine even for multibyte encodings, it does not know about
encoding and returns the raw size. If you wanted the number of
characters, you would need
Rasmus Lerdorf wrote:
On Wed, 8 Sep 2004, Marek Kilimajer wrote:
John Smith wrote:
What's the most accurate way to get the byte count of
some text? Is strlen() accurate with Unicode, ASCII,
etc.?
John
strlen() is fine even for multibyte encodings, it does not know about
encoding and returns
Alex Hogan wrote:
Hi all,
I want to set up a delivery date and time for emails to be sent. (I'm
using phpmailer)
I'm coming up blank on how to do this. I thought that I could put a
timing condition on a page that I know will be accessed daily that
would look for the date then call the function
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
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 do know this
and what happen is that the $_SESSION array become empty once I redirect
from the login page (after login) to another members' area page .. !!
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Dre wrote:
I don't know why but session variables does not get
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 PROTECTED
[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
Manoj Kumar wrote:
hi dear developers,
We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will
Dre wrote:
I don't know why but session variables does not get posted .. is there any
thing in the php.ini that I should configure as
I can't find any thing wrong in the code I'm using !!
Session variables are not posted, they are kept on the server. Only the
session id is sent as a cookie, get
Dre wrote:
I do know this
and what happen is that the $_SESSION array become empty once I redirect
from the login page (after login) to another members' area page .. !!
That means you are loosing your session. Is the session id sent? Is the
session file (usualy in /tmp) created?
Marek Kilimajer
Jack Gates wrote:
How is osCommerce doing this?
Go here to see exactly what I am talking about:
http://wiki.oscommerce.com/docs
I am using the REMOTE_ADDR but it does not provide all the information that
osCommerce is showing.
When I use the variable it shows the numbers like 192.168.10.25 (I
raditha dissanayake wrote:
Syed Ghouse wrote:
Hi All
i have to transfer files from one server to another server thru php program.will
anybody tell me how to do it?
PHP is not the way to do it! use SCP you don't have to write a single
line of code. Don't look at FTP. even though the FTP rcf
Shaun wrote:
Hi,
I have noticed that some of the functions in a tutorial I am studying have
an in the variable parameters i.e.
function add($id) {
/* function body */
}
I would be most grateful if some can shed some light on this as i cant fnd
any reference to this in the PHP manual...
Thanks
Frédéric Hardy wrote:
Hello -
I think there is a bug or a paradox in the php 5 object model
implementation.
This is an example :
?php
class foo implements arrayAccess
{
private $array = array();
function __construct() {}
function __get($key)
{
return $this-offsetGet($key);
}
Frédéric Hardy wrote:
Marek Kilimajer wrote:
See recent discusion on this list about this behavior. You can find
it in the archives if you look for __isset.
I know, I am the author of this recent discussion.
Current discussion is an extension.
isset($foo['bar']) tests for existance of $foo
Cory D. Wiles wrote:
I am writing some backup scripts that will ftp my *.gz files to my ftp
server. Unfortunately I didn't originally install php with ftp support
(oversight on my part). I reconfigured/installed PHP with --enable-ftp
and restarted everything, but the functions still don't work.
Merritt, David wrote:
All,
Wanting to build a login page which uses the same user information as the user's Windows
account. Is there a way to validate a user's login information against the primary
Windows domain controller using PHP and Apache? Searching the archives all I'm finding is
how
Catalin Trifu wrote:
Hi,
Is this really a bug. I think not.
There is no variable $o-a or $a-b in the class OO
there is only the variable $elem and $a and $b is a member
of that array
So ...
The fact that PHP5 provides __set and __get magic
functions does not mean that the
blackwater dev wrote:
I need some help...I am helping a local business with a site which
needs to connect to a mssql db, my webhost uses linux and compiled php
with the freetds library and when I go to the info page..it does show
Microsoft SQL Server under dbx yet I still get the errors called to
$_POST, not $POST
Afan Pasalic wrote:
I think I am a little bit confused about $HTTP_POST_VARS and $_POST.
php.net manual: Note that $HTTP_POST_VARS and $_POST are different
variables and that PHP handles them as such
http://us4.php.net/reserved.variables
?
And the example I wrote still
Gerard Samuel wrote:
The situation.
Im currently using a home brewed groups permission code in my site,
but for limited users/groups its ok. Beyond that, the code will take
the fast road to hell.
I started to look in depth at bitwise operations today,
and after much googling, and looking at
Thomas Hochstetter wrote:
Hi again,
After a clever question follows a dumb one: :-(
I am trying to pack a few resources from off the server, zip them together
(at this stage still storing in a tmp folder and afterwards deleting it
again) and make the freshly created zip file available to the
Nick Wilson wrote:
Hi everyone
I've been asked to make a php script to automatically fill out and
submit a form on a remote site. I know this is possible, but have no
idea where to begin
So, my question is: What functions/theories/etc should I start looking
at in order to get started on this?
Nick Wilson wrote:
* and then Marek Kilimajer declared
So, my question is: What functions/theories/etc should I start looking
at in order to get started on this?
Check out the various HTTP classes, they have features for submiting forms.
Great, where do I find them?
thanks!
google ... pear
Nick Wilson wrote:
Hi,
I have a string like this, read from an html file: ' VALUE=16'
The value could be any number. I am trying to get that number.
I have this so far, i was hoping someone might tell me how to get that
number:
?php
$handle = fopen(page.php, r);
while (!feof($handle)) {
Gerard Samuel wrote:
Marek Kilimajer wrote:
Gerard Samuel wrote:
The situation.
Im currently using a home brewed groups permission code in my site,
but for limited users/groups its ok. Beyond that, the code will take
the fast road to hell.
I started to look in depth at bitwise operations today
Brent Clements wrote:
I have a pdf class that has a function that allows you to add an image to the pdf your
creating. The problem is that the function requires that the height and width of the
image be specified in page units. Well I know what the pixel height and width are of
my image, how do
Brent Clements wrote:
The problem with that request is that some employers require you to have a
vacation message set.
-Brent
The problem is that the employers use vacation programs that do not
respect Precedence: bulk header.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Dre wrote:
line 8 is ?php
just that .. and the code before it is the following
//==
html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body
Xongoo!com: Central unit wrote:
Hi,
I have to pass variable on include
include(includes/include.php);
include(includes/include.php?name=$name);
wouldn't work.
How do I do that? Cokies are not an option, btw.
Code in includes/include.php is executed in the scope of the including
file, so all
Andrew wrote:
Now look - I want to make a test/debug engine, that will optimize the
performance of each machine I make tests on - my idea is to run as many
similar processes as possible in the tasklist of the OS. That would be the
same as creating multiple child processes of a single script. The
John Holmes wrote:
Okay, I need a reminder on this.
A given variable can consist of two constants ORd together, say TEST1
and TEST2. If I'm looking to see if one of the constants was set in the
variable, I use , right?
if(($value TEST1) == TEST1)
{ echo 'TEST1 flag was set.'; }
if(($value
JanBro wrote:
Hi List,
I'm using PHP5 with global variables off. I've got around 20 dynamically
generated forms with a total of 300 different variables sent thru these
forms. I'd like to use variable variables, but according to the manual this
is not possible.
Now comes my Questoin, how do I
Paul Danko wrote:
Is it possible to run a command on the system using the system() or
exec() commands run as a specific user if I have the username and
password?
i.e.
[EMAIL PROTECTED]su userNo1
[EMAIL PROTECTED]/home/server/executeScript
all in a php system() or exec() call..
Justin Patrin wrote:
number_format($number, 2);
Does not work. Desired results:
1000 should return 1,000
1000.5 should return 1,000.5
1000.25 should return 1,000.25
so on.
Actual results:
1000= 1,000.00
1000.5 = 1,000.50
1000.25 = 1,000.25
--
PHP General Mailing List (http://www.php.net/)
To
Alex Hogan wrote:
Hi All,
I have a form with several values to insert.
I thought that I remember a thread that discussed using a loop to insert
$_POSTed values.
I am trying;
foreach($_POST as $key = $value){
if($key == 'Submit'){
exit;
i think you want break; or continue; here, exit; ends
Robert Winter wrote:
I have the following rewriterule:
RewriteRule ^(([0-9]|[A-Z]|[a-z]|_)+)$ redirect.php?$1 [L]
that transforms http://mysite.com/XXX to http://mysite.com/redirect.php?XXX
and I need to also include to space char, for example
that transforms http://mysite.com/AB XX to
Robb Kerr wrote:
On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote:
On Sat, 2004-07-24 at 12:05, Robb Kerr wrote:
What's wrong with this syntax. I just can't see my mistake.
if ($vBkgrndImage == AnswerPage) {
if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {
Harlequin wrote:
I've been working on a query to retrieve a user's data based on their UserID
that is stored in a variable $_SESSION['logname'] which underneath I
convert using: $UserID = $_SESSION['logname'];
But when I execute a SELECT query:
$CaptureDetails = SELECT * FROM RegisteredMembers
Ron King wrote:
At 06:28 AM 7/23/2004, you wrote:
You need php-cli rpm, it's not an extension, it's command line binary.
And it won't hurt anything to have both cli and extension installed?
-- Ron
No
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Harlequin wrote:
Hello.
I have a friend who knows less than me about PHP and MySQL (which I know is
hard to believe) but she needs a login facility for her site.
I've passed over some script I use but she doesn't know how to create the
database. I can write some commands that create the tables OK
Jordi Canals wrote:
Porcupine PC wrote:
How can i use PHP-Nuke in this safe mode?
You must try to ask this in a PHP-Nuke especific list ... But the answer
is NO, cannot be used in safe mode.
Weird, I've seen php-nukes running in safe mode.
--
PHP General Mailing List (http://www.php.net/)
To
You need php-cli rpm, it's not an extension, it's command line binary.
Ron King wrote:
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL
installed correctly. I could serve web pages, MySQL worked, and when I
tried the phpinfo() function, I got a page that looked OK. I could
Roman Duriancik wrote:
How can I create word document with table in php. I need insert some
data from php script to the word document but i need inserted this data
to the table.
Thank you
roman
Create a html file, give it .doc extension and serve it as a word file.
I hope you know how to
Please, keep the discusion on the list.
[EMAIL PROTECTED] wrote:
Thank you for your answer but thsi file isn't orignal word document. I need
insert table to existing word document.
Then you need to use COM functions.
Roman Duriancik wrote:
How can I create word document with table in php. I need
Arnout Boks wrote:
Hi,
I'm building a login page that redirects the user to the login form when an
incorrect password is entered. An error message is passed as an URL
parameter. Something like:
if(!$pwd == $correctPwd){
header('Location: ' . urlencode('loginForm.php?error=Incorrect
Alex Hogan wrote:
Hi All,
How do I write a function with optional arguments? Is it possible in
php?
function myfunc($First, $Second,[$Third, $Fourth]){
some stuff here
}
Yes, it's in the manual, I recomend you read it first.
function myfunc($First, $Second, $Third = 'third arguments
Karl-Heinz Schulz wrote:
The following codes open the links perfect.
print($press[1]. a target=_blank href=..\PDF/$press[3]
class=\press_links\.strip_tags(html_decode($press[2]))./abr);
the correct character to separate directories is /
and quote the attribute:
print($press[1]. a target=_blank
Vern wrote:
OK, but here's the rub:
I need to print a web page. Any ideas?
you should be able to use
exec('lpr page.html');
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bruce wrote:
$foo = 'tabletrtd class='red'blah/td/tr/table';
textarea value='$foo'/textarea
Everything but one thing has been said: You should always use
htmlspecialchars() to output value of textarea
$foo = 'tabletrtd class='red'blah/td/tr/table';
echo 'textarea ...' . htmlspecialchars($foo) .
Victor Spång Arthursson wrote:
Seems like the problem I'm experiencing with transparent png-files are
that they are in TrueColor - is it not possible to create a
trueColor-file and make it transparent?
Sincerely
Victor
Did you try imagesavealpha()?
--
PHP General Mailing List
Skippy wrote:
On Mon, 19 Jul 2004 14:15:09 -0400 Jason Barnett [EMAIL PROTECTED]
wrote:
Markus Stobbs wrote:
$message =
Name: $Name
Division: $Division
Phone: $Phone
Email: $Email;
...but when I change $Name and the other variables to $_POST['Name'], I
get this error:
Parse error: parse error,
Jacob Friis Larsen wrote:
Curt Zirzow wrote:
* Thus wrote Jacob Friis Larsen:
How do I install Php5 with both --with-mysql and --with-mysqli?
1. Follow instructions at http://php.net/mysqli.
Is this correct: --with-mysqli=/usr/bin/mysql_config?
(This works: ./configure
Jason Barnett wrote:
Although you can turn on zend engine 1 compatibility, if you intend to
distribute your code you cannot expect this on most servers. Another
way to pass by value is to use the __clone method.
function test($orig, $clone) {
$orig-x = 'I am the original.';
$clone-x = 'I
Arik Raffael Funke wrote:
Hello together,
I am havin trouble with php regular expressions. I would like to
implement following pattern Last Name:\s*(.*)\n.
- From following text,
Name: James
Last Name: Jason
Street: abc
I get just 'Jason'. But what I currently get is:
Jason
Street: abc
Obviously
Robert Sossomon wrote:
I was wondering if anyone knew of a way to log all GET and POST
information being passed to a log file?
Thanks,
Robert
$get = serialize($_GET);
$post = serialize($_POST);
and store the variables somewhere, eg. database
--
PHP General Mailing List (http://www.php.net/)
To
[EMAIL PROTECTED] wrote:
Phew!
However, While reading about php upgrades, I've got the impression that
version 5, will not support MySQL by default...
Does that mean that I'll have to ensure my hosts install an extra module,
or worse case senario, I'll have to re-write all my pages, to take new
Scott Fletcher wrote:
Um, I think I'll stick to file_exist instead and to unlock, I'll grab the IP
address in the text file and match it against the current browser of whoever
is using before deleting the file. That way, I'll know who is the guilty
party if the person doesn't finish whatever
You might also want to try mysql_unbuffered_query(),
Travis Low wrote:
select * from foo limit n, m
n == starting index, zero-based
m == maximum number of rows to return.
You probably shouldn't cross-post to different mailing lists.
cheers,
Travis
[EMAIL PROTECTED] wrote:
I need to grab a range of
How do you know it did not work? I guess you see some error messages.
Could you include them with your description?
Jacob Friis Larsen wrote:
I can only make it work, when not compiling php as
a module.
This works:
./configure --disable-all --with-mysqli=/usr/bin/mysql_config
More about your setup?
Try $_ENV['HTTPS'], or access phpinfo() page using https and see what
you get.
Jamie wrote:
Hi,
That code I sent is running on a Cobalt Linux server.
-Dan Joseph
Why does it work for you then and not for me on a rhl 9 setup?
On phpinfo I have:
SCRIPT_URI
Ed Lazor wrote:
I'm using PHP sessions for user tracking. My host provider's server is
dropping session data. He swears it's my scripts and says I should be using
cookies for better security. That goes completely opposite to my
understanding, so I'd like to run it by you guys. Which is more
Could it be that php files are not executed for POST method?
Michael T. Peterson wrote:
Per request, here are the two other source files that get executed prior to
the invocation of validate_member_login.php, index.php and init.php.
But first, here's a simple restatement of the problem:
(1) Direct
John Taylor-Johnston wrote:
I think my problem lies in usort. I have a big honker of an array which I usort.
$ausenquiry = e;
and
$ausenquiry = e;
give a separate result.
I want to conjoin them. Possible? The same would be true for a and à.
usort distinguishes between é and e. Any way around this?
John Taylor-Johnston wrote:
I'm having a similar problem here if I pass a numeral inside $searchenquiry
$searchenquiry = 1.0.1 Retrospective bibliographies and checklists / bibliographies et
répertoires rétrospectifs;
preg_replace ('/('.$searchenquiry.')/i' , b$1/b, $mydata-RB)
error: Unknown
John Taylor-Johnston wrote:
Like this?
td.preg_replace ('/('.preg_quote($searchenquiry).')/i' , b$1/b,
$mydata-JR).nbsp;/td
Still getting the unknown modifier error.
No, like this:
preg_quote($searchenquiry, '/')
so also the delimiter - /, is quoted
$searchenquiry = 1.0.1 Retrospective
from squinting at the monitor.
Thanks,
J
Marek Kilimajer wrote:
usort($authors, create_function('$a,$b','
$a = str_replace(array('é', 'à', ), array('e', 'a'), $a);
$b = str_replace(array('é', 'à', ), array('e', 'a'), $b);
return strcasecmp($a,$b);'));
--
PHP General
Harlequin wrote:
I did Jason but am reworking all the pages and tidying the syntax up and one
of the things I never sorted out was the fact that users logging in would be
taken to the logged in page although their user data was not displayed and
an error told them they logged in incorrectly.
This,
Please do not hijack threads.
bruce wrote:
hi...
if i create a site that hits a back mysql db...
i don't want to do a mysql_connect for every page that has to access the db.
so the question is where should the mysql_connect occur. also, if i were to
do it once when the app starts, is the
if ($_POST['calcentry'] == Calc Your Entry) {
Hull, Douglas D wrote:
Just to make it simple this is my whole page for now, when putting words in the textarea
zwords and hitting calc your entry it never goes into my if statement:
html
body
?
if ($_POST['$calcentry'] == Calc Your Entry) {
echo
.
How do I get my value(s) I entered in to work with?
Thanks
--
From: Marek Kilimajer
Sent: Friday, July 9, 2004 1:41 PM
To: Hull, Douglas D
Cc: Note To Php general List (E-mail)
Subject:Re: [PHP] after suubmitting, working with data on same page
if ($_POST['calcentry
Christophe Chisogne wrote:
Example: badly configured server, angry user john using mozilla
and knowing a single login/password on the server
(that login doesnt even have a valid shell, ex /bin/false)
In mozilla, john creates an IMAP account, choosing '/etc'
as directory folder, then 'subscribe' to
Lars Torben Wilson wrote:
Josh Close wrote:
So basically there is no easy way around this.
What I'm trying to do is have a page return to a page that was a
couple pages back with the same get info. On the second page I can do
$return_url = $_SERVER['HTTP_REFERER'];
to get the previous url. But
Shaun wrote:
Hi,
How can I check if a form has been submitted, I have seen a demo that uses
the following:
if(isset($HTTP_POST_VARS))
But I understand that $HTTP_POST_VARS is depricated...
Depricated or backward compatible, depends on your view. The hot new
way is to use $_POST superglobal array
Shaun wrote:
Hi Gerben,
Thanks for your reply, the site will be on one server - the idea is that
there will be two domain names pointing to the server:
http://www.domain_x.com/ and http://www.domain_y.com/. Both of these domains
will have a very different interface comprised of header.php,
Koyaan wrote:
Unfortunately I'm not well informed about php and everything that comes with
it.
My site is created by someone who is totally out of the picture at ther
moment and I have a problem
On my site it was possible to create aktueeltjes (newsflashes) and add
them on the aktueeltjes part of
kyle wrote:
Hi all,
Is there any simple, safe, and efficiency way to do file locking over NFS?
Thanks.
You can mysql locks (maybe it works in other databases too):
GET_LOCK(str,timeout);
RELEASE_LOCK(str);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
501 - 600 of 2207 matches
Mail list logo