Hi..
I made the following PHP script.. And every time I try it, it shows an error
message... I think there is a wrong with ($LogoutTime - $RightLoginTime'). So please
try to fix the error..
What I want to do is to insert a logout time and if (LogoutTime - LoginTime = 20) for
example.. then
Radwan Aladdin wrote:
... I think there is a wrong with ($LogoutTime - $RightLoginTime'). So please try to fix the error..
...
$query4 = INSERT INTO accounts (Distance) ('$LogoutTime - $RightLoginTime');
This line should be:
$query4 = INSERT INTO accounts (Distance) VALUES ('$LogoutTime -
Here's another question, possibly easier. Possibly even bone-headed.
What kind of checking/filtering/changing do I need to do on a
user-submitted string before I can feel comfortable using it to name a
new directory in the web root on Linux/Apache? Anybody have a quick
Regular Expression they
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers.
I am getting this error and I can't figure out what is causing the problem.
If I hit refresh on the broswer, the page loads just fine. Any ideas???
Thanks,
Dale
NOTE:
RUNNING IIS 6.0 WITH MSSQL
Hi all,
I use a HTML menu that is created from multiple database queries. This is powerfull
and very extendable.
The problem is that the queries have to be executed on every new page or request.
Moreover, the menu won't change very often for the users.
So I would like to 'cache' the HTML code
Vincent Dupont [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
At the moment, I store the HTML code to display the menu in the
$_SESSION['menu_cache']['menu_id'] var. And this works well! The pages are
displayed faster when the menu is in the cache, which is the expected
result!
On Wed, 28 Jan 2004 10:26:09 +0100
rush [EMAIL PROTECTED] wrote:
Do you see any other way to 'cache' some content?
Take a look at pear::cache or pear::cache_lite and pearweb. pearweb use
cache_lite to cache whole pages (when possible). To cache part of a page
(or whatever). pear::cache is maybe
The only other way I can think of doing this without sessions is to use
$_SERVER['HTTP_REFERER'] to check if page request is coming from an existing
page within your site or not. But I don't think this method will work 100%
of times.
Another approach would probably be to use single entry point
On 27 January 2004 15:52, [EMAIL PROTECTED] wrote:
I am trying to find a reliable method to clean out all session
variables and start clean.
Running PHP 4.3.1 on Win2K developing a web app to run on Linux.
Session cookies are enabled, register globals is off. I access all
session
On 27 January 2004 16:20, [EMAIL PROTECTED] wrote:
On 27 Jan 2004 Stuart wrote:
In that case, try this...
foreach (array_keys($_SESSION) as $key)
unset($_SESSION[$key]);
Yes, I had tried that but forgot to mention it. It does work.
However, I'm still mystified as to why
Pierre-Alain Joye [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
ps: Rush can you use quotes in reply?
until this morning I was pretty certain that I can, however this last reply
and OE proved me wrong :)
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List
Mike Joey, et al --
...and then Mike Migurski said...
%
% What kind of checking/filtering/changing do I need to do on a
% user-submitted string before I can feel comfortable using it to name a
...
% appreciative. Or is this just a Terrible Idea That Should Never Be
% Contemplated?
In general,
[snip]
Its all good, it's like inline braces versus dropped braces and every
other coding style debate :) There's no winner.
pfft. Inline braces wins hands down ;p
It's on now. Somebody set up the ring for the cage match. Last brace
standing at the end wins. ;)
[/snip]
I think that you
On 28-Jan-2004 Joey Manley wrote:
Here's another question, possibly easier. Possibly even bone-headed.
What kind of checking/filtering/changing do I need to do on a
user-submitted
string before I can feel comfortable using it to name a new directory
in the
web root on Linux/Apache?
Im a little confused with these functions. How I here
you ask. Well I thought I understood what they were for:
Escaping characters that might cause
a problem when you enter your data into a database query. i.e. \
Anyway what is confusing me is, say I have a string which contains
an
Will wrote:
I'm a little confused with these functions. How I here you ask. Well I
thought I understood what they were for:
Escaping characters that might cause a problem when you enter your data
into a database query. i.e. \ '
Anyway what is confusing me is, say I have a string which
Great and it's free.
http://phpedit.net
John Jensen wrote:
Hello everyone. I am new to PhP and MySQL. I was wondering what a good (Or
Free) Php Editor is?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Will,
On 28 Jan 2004 at 12:31, Will wrote:
However recently I encrypted some data which I stored in the database.
The string contained a \ which I added slashes to when entered in to
the database. But as the database appears to strips the first slash
off the double slash automatically.
from google http://www.google.com/webmasters/facts.html
Fiction:
Sites are not included in Google's index if they use ASP (or some other
non-html file-type.)
Fact:
At Google, we are able to index most types of pages and files with very
few exceptions. File types we are able to index include:
Shouldn't unset($_SESSION) work?
No. The following Caution appears in the manual (at
http://www.php.net/manual/en/ref.session.php#session.examples):
Caution Do NOT unset the whole $_SESSION with unset($_SESSION) as
this will disable the registering of session variables through the
is that it tends to avoid or downgrade URI's with parameters tacked
onto
the end.
Does that go for internal links in your site then ???
news.php?start=10 etc ??? Could be tricky writing dyamic pages then.
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media creative
_ _ _ _ _ _ _ _ _ _ _ _
Hello John,
On 28 Jan 2004 at 0:10, John Jensen wrote:
Hello everyone. I am new to PhP and MySQL. I was wondering what a good
(Or Free) Php Editor is?
If you want something nice and simple to start with, try WinSyntax
(http://www.winsyntax.com).
If you want a very nice and configurable
Jon Bennett wrote:
is that it tends to avoid or downgrade URI's with parameters tacked onto
the end.
Does that go for internal links in your site then ???
news.php?start=10 etc ??? Could be tricky writing dyamic pages then.
Some spiders will not visit URLs with query strings, some will. Those
Mike Migurski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have PHP installed on Apache and Unix with several vhosts so each vhost
has its own user account on Unix. Now when accessing a webpage, Apache
runs with user httpd.. but I want it to run as the user of the vhost
is there any function that will always replace a with a amp in a
string?
--
--
Diana Castillo
Global Reservas, S.L.
C/Granvia 22 dcdo 4-dcha
28013 Madrid-Spain
Tel : 00-34-913604039
Fax : 00-34-915228673
email: [EMAIL PROTECTED]
Web : http://www.hotelkey.com
http://www.destinia.com
--
Hi all,
i'm trying to crypt and decrypt password with the code below but i get many warnings
Warning: mcrypt_get_iv_size(): Module initialization failed in
/web/htdocs/www.automationsoft.biz/home/invio_mail.php on line 36
Warning: mcrypt_create_iv(): Can not create an IV with size 0 or smaller
Diana --
...and then Diana Castillo said...
%
% is there any function that will always replace a with a amp in a
% string?
You are looking for a function ... A function that will replace an HTML
special character ... A PHP function to do this. I shall consult the
Great Programmer.
Something
str_replace(, amp, $text);
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]
Sent: January 28, 2004 9:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] amp
is there any function that will always replace a with a amp in
a
string?
--
--
Diana Castillo
Global
Diana Castillo wrote:
is there any function that will always replace a with a amp in a
string?
$string = str_replace('', 'nbsp;', $string);
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Htmlspecialchars() should do it :)
http://www.php.net/manual/en/function.htmlspecialchars.php
- anders
-Opprinnelig melding-
Fra: Diana Castillo [mailto:[EMAIL PROTECTED]
Sendt: 28. januar 2004 15:27
Til: [EMAIL PROTECTED]
Emne: [PHP] amp
is there any function that will always replace
Stuart wrote:
Diana Castillo wrote:
is there any function that will always replace a with a amp in a
string?
$string = str_replace('', 'nbsp;', $string);
Forgot to mention the htmlentities and htmlspecialchars functions, but
they do more than you asked for.
--
Stuart
--
PHP General Mailing
Stuart, et al --
...and then Stuart said...
%
% Diana Castillo wrote:
% is there any function that will always replace a with a amp in a
% string?
%
% $string = str_replace('', 'nbsp;', $string);
Clearly I must need more coffee, because I completely fail to see how
this will satisfy her
[snip]
is there any function that will always replace a with a amp in
a
string?
$string = str_replace('', 'nbsp;', $string);
[/snip]
Shouldn't this be
$string = str_replace('', 'amp;', $string);
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
David T-G wrote:
Stuart, et al --
...and then Stuart said...
%
% Diana Castillo wrote:
% is there any function that will always replace a with a amp in a
% string?
%
% $string = str_replace('', 'nbsp;', $string);
Clearly I must need more coffee, because I completely fail to see how
this will
David T-G wrote:
Stuart, et al --
...and then Stuart said...
%
% Diana Castillo wrote:
% is there any function that will always replace a with a amp in a
% string?
%
% $string = str_replace('', 'nbsp;', $string);
Clearly I must need more coffee, because I completely fail to see how
this will
On 28 January 2004 12:31, Will wrote:
I'm a little confused with these functions. How I here you
ask. Well I thought I understood what they were for:
Escaping characters that might cause a problem when you enter
your data into a database query. i.e. \ '
Anyway what is confusing me is, say
Good morning fella,
Is there something like __autoload() of PHP5 in PHP4?
After using PHP5 for a month, I just can't stand writing those never-ending
includes and requires. Any ideas how to simulate an __autoload()? I am not
afraid of a little overhead.
For those who don't know - if PHP does not
Hi, I want to replace a string a:[whatever] with a
href=[something][whatever].
[whatever] may be what ever substring possible... ie. I want to replace
all occurences that exists being [whatever] a variable expression...
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To
On Wednesday 28 January 2004 09:32 am, Stuart wrote:
Diana Castillo wrote:
is there any function that will always replace a with a amp in a
string?
$string = str_replace('', 'nbsp;', $string);
Just a heads up on using the above method.
If there are more than one in the string it will
Hi, first time poster here.
Having some trouble with a line that used to work, but doesn't now.
$pg = fopen(http://$ip/mypage;, r);
Gets me:
Warning: fopen(http://10.1.1.233/mypage): failed to open stream: HTTP
request failed!
And then it spits out the data from that page anyways. What's
[snip]
[snip]
is there any function that will always replace a with a amp in
a
string?
$string = str_replace('', 'nbsp;', $string);
[/snip]
Shouldn't this be
$string = str_replace('', 'amp;', $string);
?
[/snip]
I tried this and amazingly it worked! The robustness of php defies all
logic
Gerard Samuel wrote:
On Wednesday 28 January 2004 09:32 am, Stuart wrote:
Diana Castillo wrote:
is there any function that will always replace a with a amp in a
string?
$string = str_replace('', 'nbsp;', $string);
Just a heads up on using the above method.
If there are more than
Gerard Samuel wrote:
On Wednesday 28 January 2004 09:32 am, Stuart wrote:
Diana Castillo wrote:
is there any function that will always replace a with a amp in a
string?
$string = str_replace('', 'nbsp;', $string);
Just a heads up on using the above method.
If there are more than one in the
On Wed, 2004-01-28 at 08:34, Jon Bennett wrote:
is that it tends to avoid or downgrade URI's with parameters tacked
onto
the end.
Does that go for internal links in your site then ???
news.php?start=10 etc ??? Could be tricky writing dyamic pages then.
mod_rewrite is your friend
From: Pietuka Krustins [EMAIL PROTECTED]
Is there something like __autoload() of PHP5 in PHP4?
After using PHP5 for a month, I just can't stand writing those
never-ending
includes and requires. Any ideas how to simulate an __autoload()? I am not
afraid of a little overhead.
For those who
Jay Blanchard wrote:
I think that you meant to its already been broughten!, didn't you? Did
you know that you will find that bracing style has been debated since
the days of FORTRAN?
Oh! Fortran 77! I remember those times! =) And I still think inline
braces wins hands down!!!
Cesar
--
PHP
Hi all,
I'm having some trouble here and I hope you can help. I'm writing a class
for PHP to help track includes in a c++ source file. My class has 3
member variables:
a filename
file contents
array of files that file includes
The class definition looks like this
Hi,
I think this is a bit off topic, but i'm sure some of you guys must be
running ensim so might be able to help me.
We reciently took a dedicated server to work with, it came with ensim
installed, its a Linux machine P4 2.6 running Apache.
Problem:
1)As I go to the IP address assigned to our
[EMAIL PROTECTED] wrote:
snip
Here's the problem. In ParseFile I call the function:
array_push($this-$includedFiles, $ifName);
Here you have it ending in an 's'
where $ifName is the name of an include file I found in the code. However,
I get an error stating the first argument must be an
From: [EMAIL PROTECTED]
class clsfTreeNode
{
//member variables
var $fName;
var $fData;
var $includedFiles;
//constructor
function clsfTreeNode( $fileName )
{
$this-$fName = $fileName;
$this-$fData = file_get_contents($this-$fName);
$this-ParseFile();
You have an extra $ sign
Title: chunk_split();
Hi,
I am using the chunk_split(); function to separe a long long text on differents pages.
At this time, I can split the string into x sections of 2000 characters.
Now I need to show only the first 2000 .
when user click on page #2, its reloading and show the next
John W. Holmes wrote:
snip
You have an extra $ sign in your variables names.
$this-fName instead of $this-$fName
Not sure if that'll solve all your problems, but it's a start.
---John Holmes...
Oh, sure. Point out what I missed in my eval. ;)
--
By-Tor.com
It's all about the Rush
First, let me apologize for this not being a specific PHP question, but
I can't find the answer and I'm hoping someone else here has run into
this. Maybe I'm just blind, blond or stupid today. :)
In Zend Studio (Zend Development Environment) for Windows (on Windows
2000 fyi), when I hit the ESC
maybe its better to use fread() and fseek()
2000 bytes should be 2000 characters in a textfile
g. tinu
Wed, 28 Jan 2004 11:20:32 -0500 Benjamin Trpanier
[EMAIL PROTECTED]:
Hi,
I am using the chunk_split(); function to separe a long long text on
differents pages.
At this time, I can split the
Googlebot visits my site occasionally and follows a lot of my PHP links
with long query strings...
-Mike
__
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me
spread!
__
On Jan 28, 2004, at 8:34 AM, Jon Bennett wrote:
Does that
On 28 January 2004 15:52, Cesar Cordovez wrote:
Jay Blanchard wrote:
I think that you meant to its already been broughten!, didn't
you? Did you know that you will find that bracing style has been
debated since the days of FORTRAN?
Oh! Fortran 77! I remember those times! =)
Wed, 28 Jan 2004 11:41:56 -0500 Benjamin Trépanier
[EMAIL PROTECTED]:
On 28/01/04 11:29, Martin Luethi [EMAIL PROTECTED] wrote:
maybe its better to use fread() and fseek()
2000 bytes should be 2000 characters in a textfile
g. tinu
Wed, 28 Jan 2004 11:20:32 -0500 Benjamin Trépanier
[EMAIL
On Wed, Jan 28, 2004 at 11:51:06 -0500, Michael Mulligan wrote:
Googlebot visits my site occasionally and follows a lot of my PHP links
with long query strings...
same here, google has been indexing my php site for over 3 years now :)
--
A Pope has a Water Cannon.
Hello all..
This is the PHP code :
?php
include(Config.php);
$link = mysql_connect($user_hostname, $user_username, $user_password);
mysql_select_db($user_database, $link);
$UserName = $_GET['UserName'];
$Password = $_GET['Password'];
$LogoutTime = date(U);
$query1 = UPDATE accounts SET
[snip]
So where are the errors?
[/snip]
Good question. You have not shown us the error message. Please show us
and we can help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] wrote:
Hi all,
i'm trying to crypt and decrypt password with the code below but i get many warnings
Warning: mcrypt_get_iv_size(): Module initialization failed in /web/htdocs/www.automationsoft.biz/home/invio_mail.php on line 36
Warning: mcrypt_create_iv(): Can not create an IV
chunk_split();From: Benjamin Trépanier
I am using the chunk_split(); function to separe a
long long text on differents pages.
At this time, I can split the string into x sections of
2000 characters.
Now I need to show only the first 2000 .
when user click on page #2, it's reloading and
From: Radwan Aladdin [EMAIL PROTECTED]
So where are the errors?
In your code or database, I'm sure of it.
In other words, why don't you tell us what error message your getting, the
line number, etc.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hehehehehe :) sorry I forgot that :)
Query error: You have an error in your SQL syntax near '0') WHERE UserName=
AND Password=)' at line 1
Also when I put the right UserName and Password.. the same error!!
So also there are sme other errors.. please see the whole script..
What I'm trying to do
At 12:08 PM 1/28/2004, Radwan Aladdin wrote:
Hello all..
This is the PHP code :
?php
include(Config.php);
$link = mysql_connect($user_hostname, $user_username, $user_password);
mysql_select_db($user_database, $link);
$UserName = $_GET['UserName'];
$Password = $_GET['Password'];
$LogoutTime =
Thank for your reply..
But I'm not trying to echo these queries.. What I'm trying to do is :
To UPDATE a value in the database (Login_Time and Logout_Time) and then
caculate the distance between them and put it in (Distance) field.. then
after that program the PHP file and put in it a
On Wednesday 28 January 2004 10:23 am, Stuart wrote:
Not from where I'm sitting [PHP 4.3.3RC1 (cli) (built: Jun 21 2003
23:40:27) on FreeBSD built from ports]. Code...
Hey, as least we can agree with something. FreeBSD :)
print str_replace('', 'amp;', 'Here is one and here is another
Correct Radwan, you are NOT trying to echo the queries to the screen.
However, what David is trying to teach you is simply debugging
techniques.
By echoing the actual query that the PHP pareser is using, you can see
if it is indeed what you want it to be.
This way, you can debug the code yourself,
Try this for a generic fix if it is the globals issue:
Place this somewhere to set to TRUE or FALSE when needed
$GLOBAL_FIX = TRUE;
use an include on every script:
if($GLOBAL_VARS_FIX) {
if( phpversion() = '4.2.0' ) {
extract($_POST);
extract($_GET);
extract($_SERVER);
I made that.. but there is something strange!!
I SELECTED field from the database.. but it is not showing what it contains!!
This is what is shown on the screen :
UPDATE accounts SET LogoutTime=1075313199SELECT LoginTime,Distance,LessonNumber FROM
accounts WHERE UserName='' AND
Hi,
Heres a totally weird problem, I created some folders on our server (which
we are accessing only via ip as the domain has not been resolved) but I get
an error when i try to access the folder(s)!
eg:
(I created this folder)
ryan
and i try to access it like this:
http://208.234.29.220/ryan/
Yes, I have used a .htaccess file in a Web Directory to prevent http
access to its contents.
Thanks again !!
-Pushpinder Singh
On Saturday, January 24, 2004, at 12:59 AM, Jason Wong wrote:
On Saturday 24 January 2004 05:46, Pushpinder Singh wrote:
I tried to keep a .htaccess file in the
Hey Andrew,
First, note that that is an apache problem, not PHP.
Yep, thats why I put the Ot in the subject line but since you cant
have PHP
without a webserver and apache is the most popular on the list or the
net...I was
hopeing someone else had this problem and could guide me
In
I assume you are using another page with a form to enter the username and
password?
If so:
add as the first line of your script right after the ?PHP
phpinfo();
Run your application, scroll to the bottom and look at the php variables
and make sure that your are asking for $_GET[Username] and
From: Gerard Samuel [EMAIL PROTECTED]
You're absolutely correct. I jumped the gun way too early.
My experience with replacing with amp; is that if the content already
contains entity content, for example nbsp;
Running str_replace will mess them up.
Depends how you define mess them up... If
I'm using the GET method..
And it is right.. it shows the correct GET method.. the problem in is in the Destance
value.. it is not updating this value to the database.. or it is wrong.. every time = 0
So what is the error?
Regards..
- Original Message -
From: David OBrien [EMAIL
From: Radwan Aladdin [EMAIL PROTECTED]
I made that.. but there is something strange!!
It's strange you can't follow instructions...
I SELECTED field from the database.. but it is not showing what it
contains!!
This is what is shown on the screen :
UPDATE accounts SET
In your script you have
$RightLoginTime = 'LoginTime';
$Distance = 'Distance';
$LessonNumber = 'LessonNumber';
$LessonsTimeLimit = 30;
So $Distance is a string equaling Distance and $LessonNumber = LessonNumber
How are you performing math on a string?
-Dave
At 01:42 PM 1/28/2004, Radwan Aladdin
On Wed, 28 Jan 2004 [EMAIL PROTECTED] wrote:
in php you have to access a member variable (or methods) with:
$this-varname (without the $)
e.g.: $this-includedFile = array();
hope this helps
AHA! I think that's it. The comment someone sent to me (Sorry, i'm awful
with names) about
But I mean by $RightLoginTime = 'LoginTime';
the selected field from the database (LoginTime).. First I selected the
LoginTime from the database and now I'm trying to name a variable for it to
use it..
So what is the correct code?
Regards..
--
I believe I'd start here
http://www.php.net/manual/en/function.mssql-fetch-row.php
You get the db result from your script but you do nothing with it in your
script
A whole lot more reading and coding you need to accomplish.
Good Luck
-Dave
At 01:54 PM 1/28/2004, Radwan Aladdin wrote:
But I
$var = 0x8180;
How do I send $var to the browser as it is? In other words, if sniffing on
the wire, I should see 8180, not 38 31 38 30.
Thanks for your help.
Khoa
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 02:03 PM 1/28/2004, Khoa Nguyen wrote:
$var = 0x8180;
How do I send $var to the browser as it is? In other words, if sniffing on
the wire, I should see 8180, not 38 31 38 30.
I think
http://www.php.net/manual/en/function.strval.php
would work here
-Dave
Thanks for your help.
Khoa
--
PHP
From: Radwan Aladdin [EMAIL PROTECTED]
But I mean by $RightLoginTime = 'LoginTime';
the selected field from the database (LoginTime).. First I selected the
LoginTime from the database and now I'm trying to name a variable for it
to
use it..
So what is the correct code?
You end up with
Thanks for the info Dave, but I still can't make it work:
?php
$var = 0x10; // decimal 16
echo $var; // case 1
echo strval($var); // case 2
?
In both cases, I see 3136 (ASCII encoded of string 16) on the wire :-(
Any ideas?
Khoa
-Original Message-
From: David
On Wednesday 28 January 2004 01:35 pm, John W. Holmes wrote:
Depends how you define mess them up... If you want to display nbsp;
literally on a web page, then you need to write amp;nbsp; in the source.
So this may not be messing things up but rather preparing them to be shown
on a web page,
--- Ralph Guzman [EMAIL PROTECTED] wrote:
Take a look at jpgraph:
http://www.aditus.nu/jpgraph/
Great! That's exactly what I want. Now, after I read
the installation instruction for JPGraph, I notice I
must have built PHP with GD support to use the
functionality. The problem is that my PHP
Radwan Aladdin wrote:
snip
So where are the errors?
Waiting your help please..
Regards..
What's the error message???
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
David OBrien wrote:
I believe I'd start here
http://www.php.net/manual/en/function.mssql-fetch-row.php
Or here even
http://www.php.net/manual/en/function.mysql-fetch-row.php
;)
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
I'm planning to use a very large multidimensional array to store data
for grouping quantities of Products. This information needs to be
carried from page to page in a session. Here's a part of the array's
hierarchy for an example:
grouping (array)
- owner = 'name'
- message = 'text'
-
Now I fixed the error message.. but the problem is in Distance = 0
always.. because the LoginTime is a string.. I fetch it but the same thing!!
This is the new script :
?php
phpinfo();
include(Config.php);
$link = mysql_connect($user_hostname, $user_username, $user_password);
hi,
i have problem with writing a reading to file
i want to write emails in files. like this
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
etc..
this is how I write to the file
$handle = fopen($filename, a);
fwrite($handle,$email\n,128);
fclose($handle);
ok it writes everything
replace
?php
$handle = fopen ($filename, r);
do {
$data = fread($handle, 128);
if (strlen($data) == 0) {
break;
}
print ($databr);
} while (true);
fclose($handle);
?
with this
?php
$handle = fopen ($filename, r);
do {
Did you try file(); ?
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
Tony [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
hi,
i have problem with writing a reading to file
i want to write emails in files. like this
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL
Did you consider following?
$var=\x10; ? Or dechex();?
--
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
Khoa Nguyen [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
Thanks for the info Dave, but I still can't make it work:
?php
$var = 0x10; // decimal 16
At 02:45 PM 1/28/2004, Radwan Aladdin wrote:
Now I fixed the error message.. but the problem is in Distance = 0
always.. because the LoginTime is a string.. I fetch it but the same thing!!
This is the new script :
?php
phpinfo();
include(Config.php);
$link = mysql_connect($user_hostname,
I'm new to php,
and i tried file() no luck
$lines = file('$filename');
foreach ($lines as $line_num = $line) {
print (option value=\$line\$line/option);
}
thanx for the help
Dvdmandt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Did you try file(); ?
--
// DvDmanDT
MSN:
At 02:17 PM 1/28/2004, Khoa Nguyen wrote:
Thanks for the info Dave, but I still can't make it work:
?php
$var = 0x10; // decimal 16
echo $var; // case 1
echo strval($var); // case 2
$var = 0x . dechex(strval($var));
is about the only way I could get it to show 0x10 instead
Hi John
If you have a large number of Users using this system, your save map for
sessions will grow in space, using some resources
If it's very large pieces of information, i would advise you to store this
info in a database. That's doomed to be more effective.
Eric
John Schulz [EMAIL
Hey All,
Thanks to everyone who replied, the problem was indexes were not defined as
Andrew pointed out
(and solved my problem).
*Main* problem I think was, that I never installed apache totally from the
start, I always depended on
the big bangs where you just run one .exe file and it installs
1 - 100 of 150 matches
Mail list logo