On Thursday 05 August 2004 11:33 pm, CD Baby wrote:
> > I'm writing an xml parser.
>
> Gerard -
>
> All of that stuff has already been taken care of for you. Hundreds of
> hours have gone into developing GREAT xml parsers!
>
> http://www.php.net/dom
> and
> http://www.php.net/simplexml
>
> They ta
Yeah I was at a friends house tonight and we telnetted (if that's a
word) into the server and found that it was set for read only not
execute and so I could see the directory listing but wasn't able to load
the file in the browser. I figured it was something like this last
night, but with out the
On Fri, Aug 06, 2004 at 12:32:19AM -0400, Phil Stracchino wrote:
> Note that the only change is the addition of --with-gd. After
> installing php-4.3.8 and restarting Apache, all of the mod_perl registry
> CGIs are dying at various points with SEGVs. Each one dies in a
> consistent way at a consi
hi
i have 2 pages on my site one is index.php and other
is join.php on index page there is link of join now
when somee one comes to join now page i want to know
from where it comes i means i want to know the
referral page . iam using
$HTTP_SERVER_VARS['HTTP_REFERER'] or
$_SERVER['HTTP_REFERER'] bu
I have a strange PHP problem.
I'm running Apache-1.3.28, with mod_perl-1.29, mod_ssl-2.8.15, and PHP4,
on a Slackware-based custom Linux installation. Up until today, I was
running php-4.3.3, configured as follows:
./configure --with-mysql=/opt/mysql
--with-db4=/usr/local/BerkeleyDB.4.1/ --with
> -Original Message-
> Its odd, i've yet to get one of those. Either the spammers dns
> doesn't resolve proper (cause my server rejects those) or if its
> due to the fact I only reply-to-list.
>
> I'm assuming its a dns issue at this point.
Hrm. But my email server rejects those also?
-E
* Thus wrote Ergin Aytac:
> We made a test for only 20 min. and got our website online. The result
> was 200.000.000 (!!) lines in apache error log with the following:
>
> httpd in free(): warning: chunk is already free.
> httpd in free(): warning: page is already free.
> httpd in free(): warning
* Thus wrote CHAN YICK WAI:
> if a project is worked by a small team of developers, is there a tool for source and
> version management for php source code? e.g. check which part of source is modified!
>
Either cvs or subversion are good tools to use.
Curt
--
First, let me assure you that this
* Thus wrote Ed Lazor:
> Gawd this stuff sucks.
>
> Nothing like a spammer posing as the list itself and farming email addresses
> from members.
Its odd, i've yet to get one of those. Either the spammers dns
doesn't resolve proper (cause my server rejects those) or if its
due to the fact I only r
* Thus wrote Shaun:
> Hi,
>
> I seem to have problems redirecting pages when I view my site using my
> laptop, the only difference is that my laptop has Norton Firewall installed,
> can this interfere with the $HTTP_REFERER variable and if so is there a more
> reliable alternative?
The reliable w
* Thus wrote Brian Dunning:
> Developing on a Windows server to be deployed on Linux. I get "SMTP
> server response: 501 Bad address syntax." Here's my code:
>
> $mail_from = 'My Name <[EMAIL PROTECTED]>';
> $mail_server = 'mail.servername.com'; // This is hosted externally
> ini_set("SMTP",
> I'm writing an xml parser.
Gerard -
All of that stuff has already been taken care of for you. Hundreds of
hours have gone into developing GREAT xml parsers!
http://www.php.net/dom
and
http://www.php.net/simplexml
They take care of the utf-8 decoding and all of that.
--
PHP General Mailing
if a project is worked by a small team of developers, is there a tool for source and
version management for php source code? e.g. check which part of source is modified!
Thanks for information.
Regards, Yw
* Thus wrote Josh Acecool M:
> You dont understan..
Not anymore. Honestly I haven't had a clue what was going on till
Justin pushed you into the right direction.
>
> Say the template is:
>
> Blah
> {CONTENT}
> adasdasd
>
> I want to preg_replace("/{CONTENT}/", include("blah.php"), $text);
th
On Fri, 6 Aug 2004 04:24:25 -0700, Josh Acecool M
<[EMAIL PROTECTED]> wrote:
> You dont understan..
>
> Say the template is:
>
> Blah
> {CONTENT}
> adasdasd
>
> I want to preg_replace("/{CONTENT}/", include("blah.php"), $text);
>
> blah.php contains Hello!
>
> This is what appears
>
> Hello!
Josh Acecool M wrote:
You dont understan..
Say the template is:
Blah
{CONTENT}
adasdasd
I want to preg_replace("/{CONTENT}/", include("blah.php"), $text);
blah.php contains Hello!
This is what appears
Hello!
Blah
adasdasd
That's exactly what's supposed to happen. PHP encounters your
preg_replace l
You dont understan..
Say the template is:
Blah
{CONTENT}
adasdasd
I want to preg_replace("/{CONTENT}/", include("blah.php"), $text);
blah.php contains Hello!
This is what appears
Hello!
Blah
adasdasd
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote Jo
Gawd this stuff sucks.
Nothing like a spammer posing as the list itself and farming email addresses
from members.
-Ed
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 05, 2004 11:54 AM
> To: [EMAIL PROTECTED]
> Subject: IMPORTANT: Please
Mark Collin wrote:
I'm having problems with my file upload code. If I start to upload
files larger than a approx 400k the page seems to time out and I get a
page cannot be displayed error.
I have checked the php.ini on the server and max file size is 2Mb and
max Post size is 8Mb.
This is ty
* Thus wrote Mark Cooke:
> Hi,
>
> I'm writing a few scripts that allows users to download files,
> some around 45MB+.
> ...
> I've tried using readfile and fread, to access the files, yet both seem
> to take the same amount of time, it would seem like they are getting
> buffered, or maybe read
* Thus wrote Josh Acecool M:
>
> but, I am doing this.
>
> $text = file_get_contents('templateFile.php');
> $text = preg_replace('/something/', file_get_contents("something.php"),
> $text);
> eval("?>" . $text . "http://php.net/preg_quote
Curt
--
First, let me assure you that this is not one o
I'm having problems with my file upload code. If I start to upload
files larger than a approx 400k the page seems to time out and I get a
page cannot be displayed error.
I have checked the php.ini on the server and max file size is 2Mb and
max Post size is 8Mb.
I initially thought that the scr
On Fri, 06 Aug 2004 00:57:32 +0200, Jordi Canals <[EMAIL PROTECTED]> wrote:
> Brian Dunning wrote:
>
> > Developing on a Windows server to be deployed on Linux. I get "SMTP
> > server response: 501 Bad address syntax." Here's my code:
> >
> > $mail_to = "$first_name $last_name <$email>";
>
> On W
* Thus wrote Ace:
> Gabriel Birke kontor4.de> writes:
>
> >
> > Hello!
> >
> > The following PHP code:
> > > $a = array("1"=>"First Element", "2"=>"Second Element");
> > $v = &$a['3'];
> > print_r($a);
> > ?>
> > has this result:
> >
> > Array(
> > 1 => First Element,
> > 2 => Second
Hi
Sometimes, some clients just want a few scripts. sometimes to fix or to add
some features in sites or apps already in production and that need to be
something easy to install. kind of upload and go. They don't want a bundle
of scripts with dependencies, they don't want configuring paths, etc, et
I am running PHP 4.03 on O'Reilly website 2.5
I have specified the content and associations as directed in O'Reilly's
online support (what little of it exists anyway). I am running into an
issue where all requests to any PHP page causes a termination of PHP.exe on
the server. I have seen a coupl
Brian Dunning wrote:
Developing on a Windows server to be deployed on Linux. I get "SMTP
server response: 501 Bad address syntax." Here's my code:
$mail_to = "$first_name $last_name <$email>";
On Windows Platform, You cannot use the TO address in the form "Name
" As it fails because the mail() f
On Thu, 5 Aug 2004 23:13:32 +0100, Harlequin
<[EMAIL PROTECTED]> wrote:
> It appears that I am unable to output the data to a directory because
> although my user has sufficient privileges on the database to execute the
> query the user in question does not have file privileges.
>
> As I am relia
It appears that I am unable to output the data to a directory because
although my user has sufficient privileges on the database to execute the
query the user in question does not have file privileges.
As I am reliant on my host I'm looking for other ways to achieve this. Could
I possibly set a p
"Aaron Todd" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> So far I have made this work. But now I have to ask...what about a pdf
> file? I cant add php code to it so what do I do. I need to be able to
> restrict the pdf so a user can only get to it during a current session.
>
>
"Pt2002" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thank you for your suggestion.
> I've had already browse pear classes but didn't want to use them.
> I've found some tips and now I can show the tree but I also need to have
all
> the data in an array and that's the problem now.
Justin,
We are using apache 1.3.31 (
From the original post "production server to php5.0.0 running on apache
1.3.31 on SUSE9.1")
Jon Bertsch
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I tried the C code below and I get post data from Apache fine.
Now I tried to test that php gets data on stdin and that appears to
fail. Maybe I tested wrong, can anyone verify if this test should
work?
Step 1: Set 'post_max_size = 1' in php.ini
Step 2: Send html form post to this code:
STRLEN
On Thu, 5 Aug 2004 22:32:54 -0700, Josh Acecool M
<[EMAIL PROTECTED]> wrote:
> IF I do this:
>
> $text = file_get_contents('templateFile.php');
> $text = preg_replace('/something/', include("something.php"), $text);
> then it gets put ON TOP of the file, not where "something" is...
>
> see what I
So far I have made this work. But now I have to ask...what about a pdf
file? I cant add php code to it so what do I do. I need to be able to
restrict the pdf so a user can only get to it during a current session.
Thanks again for all the previous posts. You all directed me to a good
place. My
OK I've established that I have to go to server side cookie management
since all ten terminals are using the one copy of browser on the
Terminal Server. OR is this because the log on to terminals server is
generic. Would the problem be solved if the users have to log into
Terminal Server every
On Thu, 5 Aug 2004 10:35:47 -0500 (CDT), Bing Du <[EMAIL PROTECTED]> wrote:
> I really appreciate everyone who responded taking your valuable time
> looking into my problem.
>
> Now back to my problem. Changing the condition to "if($_SERVER['HTTPS']
> != 'on')" did not make any difference unfortu
On Thu, 05 Aug 2004 12:35:59 +0200, Jordi Canals <[EMAIL PROTECTED]> wrote:
> John Holmes wrote:
>
> >> $uservar = htmlspecialchars(strip_tags($uservar));
> >
> > You don't need to use strip_tags _and_ htmlspecialchars()... unless you
> > want strip_tags to get rid of such malicious and deadly con
IF I do this:
$text = file_get_contents('templateFile.php');
$text = preg_replace('/something/', include("something.php"), $text);
then it gets put ON TOP of the file, not where "something" is...
see what I am saying?
but, I am doing this.
$text = file_get_contents('templateFile.php');
$text =
On Thu, 5 Aug 2004 21:42:58 -0700, Josh Acecool M
<[EMAIL PROTECTED]> wrote:
> 5.0.0
>
> Include WORKS, but using INCLUDE with PREG_REPLACE does NOT work, the text
> you want to replace gets deleted and the INCLUDE includes on the top of the
> page...
You're not making senseyou're saying that
Im writing an xml parser. Most of the documents Im parsing, is written by
someone else, so have no control over the validity of the xml file.
Im running into problems with parsing a few documents where the author uses
"exotic" characters such as "é".
Characters like this kill the parser. Ok.
Im
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi together,
I have a question about regular expressions. I want to get from
following text...
test: abc
def
ghi
...following...
abc
def
ghi
Can anybody tell me why preg_match("/test([.\n]*)/",...) does not work?
And who is it done properly?
Thank
On Thu, 5 Aug 2004 14:27:56 +0200, Nicklas Bondesson <[EMAIL PROTECTED]> wrote:
> The Zend Optimizer only caches the compiled PHP output (HTML content) that
> should be sent to your client. You can always try it but I don't think you
> will gain that much on using it. It's worth trying though.
Act
On Thu, 05 Aug 2004 07:21:35 -0700, Jon Bertsch <[EMAIL PROTECTED]> wrote:
> Curt and Justin,
>
> Thanks for the ideas. I resolved this by removing the str_replace() call
> from within a function that I was calling and running it in-line in the
> code. Since the html string was less than 500 char
5.0.0
Include WORKS, but using INCLUDE with PREG_REPLACE does NOT work, the text
you want to replace gets deleted and the INCLUDE includes on the top of the
page...
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 5 Aug 2004 09:51:10 -0700, Josh Acecool M
> <[
On Thursday 05 August 2004 14:03, John W. Holmes offered up the following
tid-bit of information :
> You'd have to know what elements are in the form. You wouldn't actually
> fill out the form, just create the appropriate request to the page that
> does the form processing. As simple as a URL if i
On Friday 06 August 2004 02:50, Sarah Gray wrote:
> I am having a periodic problem that I cannot duplicate and wonder if
> anyone has suggestions.
>
> Once a sale is completed a record is written to a log file on the
> server.
>
> $filename = $dir. "/". $logType."_".$today.".txt";
> $fp = fopen("$
From: "Sarah Gray" <[EMAIL PROTECTED]>
> Once a sale is completed a record is written to a log file on the
> server.
>
> $filename = $dir. "/". $logType."_".$today.".txt";
> $fp = fopen("$filename", "a+");
> fputs($fp, $logEntryStr);
> fclose($fp);
Consider this:
1. User A completes a transactio
From: "Jason Wong" <[EMAIL PROTECTED]>
> On Friday 06 August 2004 01:47, John W. Holmes wrote:
>
> > Sounds like you just need to write a wrapper for mysql_query() that logs
> > what's going on.
> >
> > function my_mysql_query($query)
> > {
> > log_query($query);
> > return mysql_query($que
From: "John Nichel" <[EMAIL PROTECTED]>:
> > You can use cURL or one of the PEAR classes to have your PHP script fill
> > out the form on the remote computer... will take some work, but it's
> > possible.
> >
> > Actually, you could just simulate a POST / GET request to the file that
> > handles th
[snip]
I am having a periodic problem that I cannot duplicate and wonder if
anyone has suggestions.
Once a sale is completed a record is written to a log file on the
server.
$filename = $dir. "/". $logType."_".$today.".txt";
$fp = fopen("$filename", "a+");
fputs($fp, $logEntryStr);
fclose($fp);
On Friday 06 August 2004 01:47, John W. Holmes wrote:
> Sounds like you just need to write a wrapper for mysql_query() that logs
> what's going on.
>
> function my_mysql_query($query)
> {
> log_query($query);
> return mysql_query($query);
> }
>
> and use my_mysql_query() everywhere instead
[snip]
had no success on the apache list. apache logs also errors with
sister-projects like php. I think this is not an apache issue but php.
if you have errors like this it is always very difficult to locate the
real source of the problem.
Any other hints?
[/snip]
Why do you think that this i
On Thursday 05 August 2004 13:43, John W. Holmes offered up the following
tid-bit of information :
> You can use cURL or one of the PEAR classes to have your PHP script fill
> out the form on the remote computer... will take some work, but it's
> possible.
>
> Actually, you could just simulate a
Hello,
I am having a periodic problem that I cannot duplicate and wonder if
anyone has suggestions.
Once a sale is completed a record is written to a log file on the
server.
$filename = $dir. "/". $logType."_".$today.".txt";
$fp = fopen("$filename", "a+");
fputs($fp, $logEntryStr);
fclose($fp);
From: "CHAN YICK WAI" <[EMAIL PROTECTED]>
> I'm writing an application that requires log every transactions users
done,
> e.g. update which record, delete which record, something like that.
>
> I guess one way is whenever I issue a mysql_query(), I also insert this
> query in whole into another ta
From: "Brian Dunning" <[EMAIL PROTECTED]>
> Developing on a Windows server to be deployed on Linux. I get "SMTP
> server response: 501 Bad address syntax." Here's my code:
>
> $mail_from = 'My Name <[EMAIL PROTECTED]>';
> $mail_server = 'mail.servername.com'; // This is hosted externally
> ini
- Original Message -
From: "Amanda Hemmerich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 05, 2004 12:39 PM
Subject: [PHP] filling out HTML forms
> So, we are trying to design an account management page that allows users
> to manage all of their computer accounts
From: "CHAN YICK WAI" <[EMAIL PROTECTED]>
> How about if this $student is actually a text field, when this html
> generated by php script, it has no value, so the onClick line is
> ...url?student=<$student without value>, when I click, it reads nothing,
how
> should I do?
Javascript.
---John Hol
Lester Caine wrote:
I am using
$_SERVER["REMOTE_ADDR"]
to get address of the browser accessing the system and then using
gethostbyaddr() to get the machine name.
This worked great until I came to a site using M$ Terminal Server to
provide the terminals. We still need to know what machine we are ta
On Thursday 05 August 2004 12:39, Amanda Hemmerich offered up the following
tid-bit of information :
> So, we are trying to design an account management page that allows users
> to manage all of their computer accounts in one place. We want to allow
> them to change their passwords for all of the
From: "Daniel Guerrier" <[EMAIL PROTECTED]>
> I am using PHP to dynamically create real audio links.
> The question is I was creating one .ram file for each
> real media file that I wanted to stream. The .ram
> files need to have absolute urls (which I do not
> like). I saw a few sites that use
On Friday 06 August 2004 01:05, Ed Lazor wrote:
> Why are you specifying the To field twice? I'd try removing the extra
> formatting around the email addresses for troubleshooting.
I would say strip the whole thing down to the bare minimum that illustrates
the problem.
--
Jason Wong -> Gremlin
Thank you for your suggestion.
I've had already browse pear classes but didn't want to use them.
I've found some tips and now I can show the tree but I also need to have all
the data in an array and that's the problem now.
Greetings
pt2002
"Pt2002" <[EMAIL PROTECTED]> escreveu na mensagem
news:[E
On Thu, 5 Aug 2004 09:51:10 -0700, Josh Acecool M
<[EMAIL PROTECTED]> wrote:
> The files that are evaled work perfectly without being evaled.
>
> I dont think eval was meant for large files etc.
>
> Whats on that like: a preg_match that looks for \$variable = something;
>
> and thats the like it
Why are you specifying the To field twice? I'd try removing the extra
formatting around the email addresses for troubleshooting.
> -Original Message-
> From: Brian Dunning [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 05, 2004 8:43 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Why do I
Shaun,
Jason is suggesting that you turn Norton off to help troubleshoot the
problem. In other words, verify that Norton is the problem.
Also, people are suggesting that the display of your web pages not depend so
significantly on the HTTP_REFERRER variable. Perhaps we can help you come
up with
I sent Bing specific code that will work:
If (!IsSet($_SERVER["HTTPS"]))
Header("Location: https://"; . $_SERVER["HTTP_HOST"] .
$_SERVER["REQUEST_URI"]);
Manually go to the URL specified.
https://computing.eng.iastate.edu/mambo/index.php?option=content&task=view&i
d=159&Itemid=162
I
On 05 August 2004 17:18, Shaun wrote:
> Hi,
>
> I seem to have problems redirecting pages when I view my site using my
> laptop, the only difference is that my laptop has Norton
> Firewall installed,
> can this interfere with the $HTTP_REFERER variable
Not only can, does! Other firewalls or pro
On 05 August 2004 17:12, Ford, Mike [LSS] wrote:
> (1) Your browser requests
> https://computing.eng.iastate.edu/mambo/index.php?option=conte
> nt&task=view&i d=159&Itemid=162
Bother! Sorry, that should, of course, be http:// in step (1)!
Cheers!
Mike
--
So, we are trying to design an account management page that allows users
to manage all of their computer accounts in one place. We want to allow
them to change their passwords for all of their accounts in one place,
unfortunately, we don't have access to one of the machines to change their
passwor
> Why would Apache log an error on a db dump? Or are you talking about
> the execution of the scripts after you import the data? If the latter
Execution of scripts, post import.
> For .htaccess :
> php_value error_reporting "E_ALL"
Tried it.. no difference.
Not sure whether or not this affe
Hi Jason,
Thanks for your reply, but really I need a solution that will allow me to
let users view the site without having to worry about any firewalls they
might have installed!!!
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Its possible norton firewall OR your
* Thus wrote PHPDiscuss - PHP Newsgroups and mailing lists:
> I noticed php://input but that's going to be changed to php://filter, but
> i have never tried using that before either. So i have no idea how it
> works.
The only time php://input will have the data sent from the client
is if php does
Shaun wrote:
Hi,
I seem to have problems redirecting pages when I view my site using my
laptop, the only difference is that my laptop has Norton Firewall installed,
can this interfere with the $HTTP_REFERER variable and if so is there a more
reliable alternative?
Many firewalls and proxies can f
had no success on the apache list. apache logs also errors with
sister-projects like php. I think this is not an apache issue but php.
if you have errors like this it is always very difficult to locate the
real source of the problem.
Any other hints?
Jay Blanchard schrieb:
[snip]
We made a test
Its possible norton firewall OR your browser is altering the headers.
how are you redirecting, norton may not allow for some kind of
redirects either. Try turning norton off, and visiting the page :)
Jason
"Shaun" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I seem to have problems redirecting p
Daniel Guerrier wrote:
I am using PHP to dynamically create real audio links.
The question is I was creating one .ram file for each
real media file that I wanted to stream. The .ram
files need to have absolute urls (which I do not
like). I saw a few sites that use one .ram file but
pass it a vari
Hi,
I seem to have problems redirecting pages when I view my site using my
laptop, the only difference is that my laptop has Norton Firewall installed,
can this interfere with the $HTTP_REFERER variable and if so is there a more
reliable alternative?
Thanks for your help
--
PHP General Mailing
On 05 August 2004 16:36, Bing Du wrote:
> I really appreciate everyone who responded taking your valuable time
> looking into my problem.
>
> Now back to my problem. Changing the condition to
> "if($_SERVER['HTTPS']
> != 'on')" did not make any difference unfortunately. So the result was
> stil
Will you have that kind of experience? How can I do it comprehensively, e.g.
no too big additional coding effort, easy to manage, reliable, etc.
Do you want to hire me or did you just mistakingly press "Reply"
instead of "compose new mail" :)
Anyway, what you suggest is OK while testing & d
Actually, I just did this last night with great success. Here is my
code, I'm sure you can adapt it to your own. PHP was not needed, this
was all done as part of the client-side validation JavaScript. Use
JavaScript in the submit button's onClick to set the JavaScript
variable with the valu
[snip]
We made a test for only 20 min. and got our website online. The result
was 200.000.000 (!!) lines in apache error log with the following:
Any hints or links?
[/snip]
Here's a hint...send this to the Apache list.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
We made a test for only 20 min. and got our website online. The result
was 200.000.000 (!!) lines in apache error log with the following:
httpd in free(): warning: chunk is already free.
httpd in free(): warning: page is already free.
httpd in free(): warning: recursive call.
the requests were on
Developing on a Windows server to be deployed on Linux. I get "SMTP
server response: 501 Bad address syntax." Here's my code:
$mail_from = 'My Name <[EMAIL PROTECTED]>';
$mail_server = 'mail.servername.com'; // This is hosted externally
ini_set("SMTP", $mail_server);
ini_set("sendmail_from",
Hi,
I'm writing an application that requires log every transactions users done,
e.g. update which record, delete which record, something like that.
I guess one way is whenever I issue a mysql_query(), I also insert this
query in whole into another table together with the user name, so I can log
a
I really appreciate everyone who responded taking your valuable time
looking into my problem.
Now back to my problem. Changing the condition to "if($_SERVER['HTTPS']
!= 'on')" did not make any difference unfortunately. So the result was
still the URL in the Address box of the browser changed to
h
How about if this $student is actually a text field, when this html
generated by php script, it has no value, so the onClick line is
...url?student=<$student without value>, when I click, it reads nothing, how
should I do?
thanks again, Yw
- Original Message -
From: "John W. Holmes" <[E
I am using PHP to dynamically create real audio links.
The question is I was creating one .ram file for each
real media file that I wanted to stream. The .ram
files need to have absolute urls (which I do not
like). I saw a few sites that use one .ram file but
pass it a variable http://url.ram?id=
Unless student is set somewhere else that wont work.. you need the form
to submit before the text field 'student' sets a var named student.
One way to do such, without all the window formating is to just submit
the form to the page you want. and target=_new in the form tag.
other than that, you
On 05 August 2004 15:15, Jay Blanchard wrote:
> [snip]
> if($ans_three[$qzid] === 'None of the above' || $ans_three[$qzid] ===
>'All of the above'){ if($ans_four[$qzid] === 'None of the above'
> || $ans_four[$qzid] === 'All of the above'){
> $answers = rand(6,8);
>
>}
>
On Thursday 05 August 2004 10:42, Aaron Todd offered up the following
tid-bit of information :
> The direction I need is how do I go about restricting access to the
> members only pages? I have been reading up on sessions, which I think
> will be a cool addition to this site, but I still havent
On Thursday 05 August 2004 08:58, Jay Blanchard offered up the following
tid-bit of information :
> [snip]
> How many records can be in a MyIsam table?
> [/snip]
>
> Bazillions. Only limited by your storage capacity and ability to manage
> large sets of records.
Now wait a minute, my table hit a
Aaron,
The way to do it is to have an authentication page where users log in. A
successful login starts the session, on each subsequent page test for the
session and if it is not present, redirect to the login page. This test is
just one line at the top of each page you want to protect.
This w
[snip]
Anyone can tell if, inside php script, I can pass form variable to the
javascript window.open() call?
That is,
in the form, for example, i have
and http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Aaron Todd" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I am trying to build up a members only site, but I need some direction.
So
> far I have written a page that will let a user register for access. That
> script emails me their info so I can validate it, sends them
From: "CHAN YICK WAI" <[EMAIL PROTECTED]>
> in the form, for example, i have
>
> and
> It seems to me not working.
Define "not working" because that's how you do it. Well, actually, you need
to echo $student, unless this whole thing is already in an echo
---John Holmes...
--
PHP General
> I have been reading up on sessions, which I think will be a
cool addition to this site, but I still havent found much on restrictin
access without a username and password.
Sounds like you need to use cookies, check php manual if you don't know
what they are.
Boban
--
Please answer to the list
Hi,
Anyone can tell if, inside php script, I can pass form variable to the
javascript window.open() call?
That is,
in the form, for example, i have
and http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: "Jordi Canals" <[EMAIL PROTECTED]>
> John Holmes wrote:
>
> >> $uservar = htmlspecialchars(strip_tags($uservar));
> >
> > You don't need to use strip_tags _and_ htmlspecialchars()... unless you
> > want strip_tags to get rid of such malicious and deadly content such as
> > and . Just use htm
1 - 100 of 140 matches
Mail list logo