fopen("file", "w")
-Original Message-
From: Thomas Franz [mailto:[EMAIL PROTECTED]]
Sent: 1. maaliskuuta 2002 9:55
To: [EMAIL PROTECTED]
Subject: [PHP] create a file
good morning,
i want to create a new file and save it in the current dir. I look in
the manual but only i found how to
This should do it:
Niklas
-Original Message-
From: Claudiu [mailto:[EMAIL PROTECTED]]
Sent: 4. maaliskuuta 2002 11:56
To: [EMAIL PROTECTED]
Subject: [PHP] stripslashes in web forms
Here is the ideea.. i have a string variable $test that contains let's
say : 17" No
Don't don't don't me.. ehehehehee... %P
Niklas
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 4. maaliskuuta 2002 12:20
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] keeping the dot
Don't don't me.
Regards,
if (eregi("^a", $author))
{
print "blah!";
}
Niklas
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: 5. maaliskuuta 2002 8:08
To: [EMAIL PROTECTED]
Subject: [PHP] case insenstive
I need to make this case insensitive. This seems
date("Y-m-d");
Niklas
-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: 5. maaliskuuta 2002 9:59
To: [EMAIL PROTECTED]
Subject: [PHP] How to get the local date formated like this: 2002-03-15
Y2K Problem
Hi there,
I am trying to find out how to get the local
Do you have manual at all? Download it from www.php.net.
The function ereg() is your answer.
Niklas
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: 5. maaliskuuta 2002 10:29
To: [EMAIL PROTECTED]
Subject: [PHP] exists?
It's late, I'm tired.
I wan
I've solved this kind of problems with three pages:
1. Form
2. Insert / Update data
3. Information about insert / update
Niklas
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 5. maaliskuuta 2002 15:34
To: [EMAIL PROTECTED]
Subject: [PHP] File Upload.
An option too:
SELECT * FROM table WHERE SURNAME LIKE 'a%' ORDER BY surname ASC
Niklas
-Original Message-
From: liljim [mailto:[EMAIL PROTECTED]]
Sent: 11. maaliskuuta 2002 11:09
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: A stupid question...
Hi chuck,
use left()
ass
Do you want to do this in mySQL or PHP?
Niklas
-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: 12. maaliskuuta 2002 12:30
To: 'Php-General'
Subject: [PHP] Hi How to convert the time from mysql(DATETIME) table to
the format DD/MM/ HH:MM AM or PM in
You have to parse your dates in anyway you like best to pieces, then use
mktime() and then date() function. :)
Niklas
-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: 12. maaliskuuta 2002 12:35
To: [EMAIL PROTECTED]; 'Php-General'
Subject: RE: [PHP]
Use two rand()'s.
$foo = rand(2);
if ($foo == 0)
rand(first_set);
else
rand(second_set);
Niklas
-Original Message-
From: Jeff Sittler [mailto:[EMAIL PROTECTED]]
Sent: 14. maaliskuuta 2002 7:50
To: [EMAIL PROTECTED]
Subject: Re: [PHP] rand()
the min and max
First of all, take that 'I want to know when you received my e-mail'
-thingie away. It's anoying.
But to the solution:
if ((x < A || x > B) && (y < A || x > B))
{
do something..
}
Niklas
-Original Message-
From: Balaji Ankem [mailto:[EMAIL
Last X should be Y.
Niklas
-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: 14. maaliskuuta 2002 14:05
To: Php-General
Subject: RE: [PHP] Hi some logic help is required!
First of all, take that 'I want to know when you received my e-mail'
-th
$array[0][1] is how you access multi-dimensional arrays.
Niklas
-Original Message-
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: 15. maaliskuuta 2002 15:18
To: [EMAIL PROTECTED]
Subject: [PHP] array within an array
I have an sql query which calls * rows from a table
Yes.
Niklas
-Original Message-
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: 15. maaliskuuta 2002 15:35
To: Php-General
Subject: RE: [PHP] array within an array (one more query)
can you therefore have $array[0][9][2][3]
if you had an array within an array within an array
microtime() function's manual entry tells you exactly what you want to
do. :)
Niklas
-Original Message-
From: Stig Kronback [mailto:[EMAIL PROTECTED]]
Sent: 18. maaliskuuta 2002 12:00
To: [EMAIL PROTECTED]
Subject: [PHP] Timing PHP
Dear ?
I need to see how long it takes for m
Just declare the link to have variable to be a number depending on point
where user clicks:
www.server.com/mypage.php?number=1
Now the variable $number is set to '1'.
Niklas
-Original Message-
From: Simon De Deyne [mailto:[EMAIL PROTECTED]]
Sent: 19. maaliskuuta 200
AFAK it's not possible since PHP is server-side and I guess your
JavaScript is client-side.
Niklas
-Original Message-
From: Marcel Besancon [mailto:[EMAIL PROTECTED]]
Sent: 19. maaliskuuta 2002 14:05
To: [EMAIL PROTECTED]
Subject: [PHP] Calling Javascript-function from php-s
Then you need to do it like this:
alert("DOH!");
But you can not make PHP call javascript functions directly.
Niklas
-Original Message-
From: Marcel Besancon [mailto:[EMAIL PROTECTED]]
Sent: 19. maaliskuuta 2002 14:20
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Calling
I think that the smartest way to insert data from Excel to mySQL is
saving Excel file as CSV and then inserting the whole file. This is
ofcourse only if you wan't to insert the whole file.
Niklas
-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: 20. maaliskuuta 2002
preg_match_all();
Niklas
-Original Message-
From: Stefen Lars [mailto:[EMAIL PROTECTED]]
Sent: 21. maaliskuuta 2002 7:28
To: [EMAIL PROTECTED]
Subject: [PHP] Returning mutliple matches of a regex with preg_match()
Hello all
I have been scratching my head for the last two days about
You could use these two functions:
array_unique(); and sort();
Niklas
-Original Message-
From: Vasoczki Ferenc [mailto:[EMAIL PROTECTED]]
Sent: 9. huhtikuuta 2002 11:26
To: Php Mailing List (E-mail)
Subject: [PHP] Soring an array
Hi!
I am new on this list, so i welcome everybody
What causes this:
I have a page getting variable $BackLink with string
"http://www.domain.com/my_page.php4";.
I accidentaly wrote and what I got out was
"—‹‹ÅÐЈˆˆÑ™–‘“ž‘›š‡‹ŒÑœ’Й™š
šŽŠšŒ‹ ™‘‹Ñ—Ë". What causes this? What does that ~ sign do
before a var
F... read it and got it! ;)
I had no idea what to look for..
Niklas
P.S. Thanks
-Original Message-
From: Tomy Wagner [mailto:[EMAIL PROTECTED]]
Sent: 22. lokakuuta 2001 15:16
To: Niklas Lampén; Php-General
Subject: Re: [PHP] Funny thing with variables
rtfm :o http
How about some code to see?
Niklas
-Original Message-
From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]]
Sent: 23. lokakuuta 2001 15:22
To: [EMAIL PROTECTED]
Subject: [PHP] Update Query - Urgent
Hi
I have a php script generate a sql update statement.
when i query the database
e=Form");
};
Hope this helps.
Niklas
-Original Message-
From: Jeff Kryvicky @ Collider [mailto:[EMAIL PROTECTED]]
Sent: 24. lokakuuta 2001 0:33
To: [EMAIL PROTECTED]
Subject: [PHP] mail() question
Hi all, I've got a question that I'm sure can be answered, but I'm a
l
mysql_data_seek();
Niklas
-Original Message-
From: Adam Douglas [mailto:[EMAIL PROTECTED]]
Sent: 23. lokakuuta 2001 21:48
To: PHP-DB (mailing list) (E-mail); PHP-General (mailing list) (E-mail)
Subject: [PHP-DB] Using A Query Results Multiple Times
I have an instance where I
What happens there is this:
$email = "1. row";
$email = "2. row";
$email = "3. row";
echo $email;
You really need to put echo $email inside the loop or use '.=' to set up
values to $email.
Niklas
-Original Message-
From: Richard Kurth [mailto
Funny, I quickly tried this:
";
print $date2."";
print date("Y-m-d", strtotime($date1))."";
print date("Y-m-d", strtotime($date2))."";
?>
And the result was this:
"
Wed Dec 12 2001
Sat Mar 1 2003
2001-12-12
2003-03-01
"
Great. :)
I've got PHP 4.0.6 on linux. You?
I think you should break the dates manually, it would be the most sure
way to do it.
Niklas
-Original Message-
From: John Clarke [mailto:[EMAIL PROTECTED]]
Sent: 2. marraskuuta 2001 9:11
To: [EMAIL PROTECTED]
Subject: Re: [PHP] year
works great when I run it in shell. What could cause this?
Niklas
"SELECT UCASE(Company) AS Company" works great, thanks!
Niklas
-Original Message-
From: Dimitris Kossikidis [mailto:[EMAIL PROTECTED]]
Sent: 2. marraskuuta 2001 11:11
To: 'Niklas Lamp¨¦n'
Cc: PHP General
Subject: RE: [PHP] mySQL problem
Try this
$Query = &
This time VERY non-php, but I trust you guys! ;)
Are Java applets stored automatically to cache? Can I prevent it
somehow?
Niklas
= 4) {
$test = "ereg_replace";
while(list($k, $v) = each($strtr_rep)) {
$data = ereg_replace($k, $v, $data);
}
}
}
print $timer->getElapsed() . " seconds with $test";
?>
/* ---8<- END SOURCE -8<--8<- */
--
Best Regards
Niklas
{
$test = "ereg_replace";
while(list($k, $v) = each($strtr_rep)) {
$data = ereg_replace($k, $v, $data);
}
}
}
print $timer->getElapsed() . " seconds with $test";
?>
/* ---8<- END SOURCE -8<--8<- */
--
Best Regards
Niklas Fondber
Your code runs more than 30 seconds.
Try using set_time_limit(n) function.
Niklas
-Original Message-
From: Rick [mailto:[EMAIL PROTECTED]]
Sent: 18. joulukuuta 2001 2:46
To: [EMAIL PROTECTED]
Subject: [PHP] php in free()
I'm running a script that times out durring a certian a
Hello,
is it meant that
session_register("test");
$GLOBALS['HTTP_SESSION_VARS']['test'] = 'Hello World!';
does not work properly (session variable test is not initialized with the
value 'Hello World!') if register_globals is turned on,
};
Hopefully this helps you out.
Niklas Lampen
-Original Message-
From: Darius Ivanauskas [mailto:[EMAIL PROTECTED]]
Sent: 16. elokuuta 2001 16:51
To: [EMAIL PROTECTED]
Subject: [PHP] How to resume session by id?
I'm getting session id neither from cookie, nor from GET/PO
Did you start the session like this:
$Session = array(
/* values to array */
);
session_start();
session_register("Session");
-Original Message-
From: Darius Ivanauskas [mailto:[EMAIL PROTECTED]]
Sent: 16. elokuuta 2001 18:14
To: Niklas Lampen
Cc: [EMAIL PROTECTED]
S
% works as a wildcard in mySQL.
Example:
"SELECT * FROM table WHERE Question LIKE '%life%'" would return all rows
with field Question containing string "life".
Niklas
-Original Message-
From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]
Sent: 20. eloku
This can be solved by building a function to split users entry to pieces so
that the query will be like
"SELECT * FROM table WHERE Question LIKE '%word1%' || Question LIKE
'%word2%' || Question."
if only one of the words have to match the Question field.
Niklas
Is it possible to create images on the fly, if my phpinfo says nothing about
GD? What I know is that ImageCreateFromPNG() says it's undefined.
If not, what do I need to install to php to make it possible?
Niklas Lampén
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
field LIKE ('%value1%' || '%value2%')"?
Niklas Lampén
Use $fp = fopen($file, "r+");
PHP Manual would have told you this.
Niklas
-Original Message-
From: Zenith [mailto:[EMAIL PROTECTED]]
Sent: 22. elokuuta 2001 12:39
To: [EMAIL PROTECTED]
Subject: [PHP] How can I insert the data into the begining of a text
file
I orgi
file = readdir($Handle)) {
if (substr($file, 0, 3) == "md_") {
$split = explode("_", $file);
if ((time() - $split[1]) > 300) {
unlink($file);
};
};
};
What this does is return a Internal Server Error! If add do
unlink("map/".$file); it returns file not found. What to do? What is wrong?
Niklas Lampén
Solved it by myself. :)
unlink($file); needs to be *exact* address to the file to be unlinked like
"/www/dir/map/$file".
Just in case if someone else meets this problem!
Niklas
-Original Message-----
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: 23. elokuuta 2001 15:
ernal Server Error (500). What
can cause this? Is there a solution?
Niklas
I'm sending a huge amount of mails with php. How can I send mail directly to
the smtp server? Right now I'm using pipe to send each mail to sendmail.
Works fine with about 35 000 mails, but it takes ages to run.
What would be the smartest way?
Thanks!
-Original Message-
From: Richard
You could do this if your $GrabStart and $GrabStop are ALLWAYS the same
(Like:
###START###
10pm
Blah
###STOP###
###START###
12pm
Blahblah
###STOP###
)
$file = file("url.txt");
$str = join("\n", $file); // You can use whatever to join the rows
$GrabStart = "###START###";
$GrabEnd = "###STOP###";
That file doesn't exist. Put it there again so I can take a look at it. And
pls notify me when it's there. :)
Niklas
-Original Message-
From: Ben Quinn [mailto:[EMAIL PROTECTED]]
Sent: 27. elokuuta 2001 11:41
To: Php-General
Cc: Niklas Lampén; [EMAIL PROTECTED]
Subject: Re:
tion, so I don't know the
exact length but it is VERY long. I also have to compare several words to
one field so I've done many of those "Field LIKE '%blah%'" for those too.
Is there any smarter way to do this?
Niklas Lampén
Internet Developer
PubliCo Oy
Ruoholahdenk
It just crossed my mind: I don't know what PHP stands for...so anyone? :)
Niklas
Funny that there is no meanin for the first P.
Niklas
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: 28. elokuuta 2001 13:57
To: 'Niklas Lampén'; Php-General
Subject: RE: [PHP] What does PHP stand for?
PHP Hypertext Preprocessor (yes, it's recu
So PHP stands for "Personal Home Pages Hypertext Preprocessor". What a nice
name! :)
Niklas
-Original Message-
From: Jon Farmer [mailto:[EMAIL PROTECTED]]
Sent: 28. elokuuta 2001 14:04
To: Niklas Lampén; Php-General
Subject: RE: [PHP] What does PHP stand for?
Well I guess
You can do this:
$i = 0;
$fp = fopen("list.txt", "r");
while (!feof($fp) && $i < 10) {
$i++;
$Text = fgets($fp, 4096); // Reads first 4096 characters from a row.
print "$Text\n";
};
Niklas
-Original Message-
From: T
Oops.. Forgot to close the file. Put as last line:
fclose($fp);
Niklas
-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: 28. elokuuta 2001 15:29
To: Tauntz; Php-General
Subject: RE: [PHP] How do I read the first n lines from a file?
You can do this:
$i = 0;
$fp
the lines in order last,
last-1, last-2
Niklas
-Original Message-
From: Tauntz [mailto:[EMAIL PROTECTED]]
Sent: 28. elokuuta 2001 15:00
To: php
Subject: Re: [PHP] How do I read the first n lines from a file?
hey.. thank you..
but is it possible to read the last lets say 10 lines
Is it possible to write this shorter:
if ($Var != "No1" && $Var != "No2" && $Var != "No3") {
code
};
Niklas
This helped me out (at least made my site look nicer :), but is there a way
set text area's width like this? Doesn't seem to work with same code. IE
however works great.
Why the hell there can not be just ONE standard?!?
Niklas
-Original Message-
From: * R&zE: [mailto:[E
If line 22 is '$message = blah!!' it should be '$message = "blah!!";' or
then you're missing a ';' from the end of previous line.
Niklas
-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]]
Sent: 4. syyskuuta 2001 23:19
To: [E
Which is faster (and/or smarter), using function mail() or doing it by
popen("/blah/sendmail")?
Niklas
If you wish $shoplist[$pid] have $price in it with $units, you have to make
$shoplist a multidimensional array which is simpple:
Try that out, it should give you the idea. You can make it even more
multidimensional if you need to.
Niklas
-Original Message-
From: Kristofer Thorssell
with me in same room and we have lost the session at the very same time
couple of times).
Niklas
rwise my sessions work great. :)
Niklas
Hmm.. How do I know how fast they timeout? And it seems that all of my users
drop at the same time, not sure about it thou.
session.cache_expire is set to 180.
session.cookie_lifetime is 0.
Maybe those do tell you something and you tell me more! :)
Niklas
-Original Message-
From
ve user to the login page with an error
code.
Niklas
-Original Message-
From: _lallous [mailto:[EMAIL PROTECTED]]
Sent: 11. syyskuuta 2001 14:35
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Sessions Getting Broken
Can't tell like that
No more ideasmaybe somecode wou
If a user enters a quota ( " ) to a form field and sends it, the page trying
to process values gets only a backslash ( \ ). No matter if I use GET or
POST. How to get the right kind of a value?
Niklas
t
I need to get quotas to the keyword-field, so I can create better search
engine. How to do that?
Niklas
-Original Message-
From: Adam [mailto:[EMAIL PROTECTED]]
Sent: 12. syyskuuta 2001 11:24
To: [EMAIL PROTECTED]
Subject: [PHP] Re: problem with form values
show us a snippet so we can
How to do anything to the strings in php BEFORE the form is sent?
Niklas
-Original Message-
From: James Holloway [mailto:[EMAIL PROTECTED]]
Sent: 12. syyskuuta 2001 11:28
To: Niklas lampén
Subject: Re: problem with form values
Hi Niklas,
use htmlentities() or htmlspecialchars() on
like
onSubmit="blah()".
Niklas
-Original Message-
From: James Holloway [mailto:[EMAIL PROTECTED]]
Sent: 12. syyskuuta 2001 12:01
To: Niklas Lampén
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re: problem with form values
Sorry,
I didn't mean it quite like that. After the user
In second example you can define which fields to insert, very usefull if you
have a lot of fields.
Niklas
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent: 13. syyskuuta 2001 10:59
To: [EMAIL PROTECTED]
Subject: [PHP] syntax?
HI,
I am new to this PHP thing.
I was
Heh, sure not related to PHP but one search engine in finland sends a
variable "e" with value "mc2". :)
Niklas
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: 14. syyskuuta 2001 8:59
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subjec
I'd use preg_match().
Something like should do the trick:
if ($file != ".htaccess" && $file != "." && $file != ".."&&
!preg_match("/(.*)\.php/i", $file))
Niklas
-Original Message-
From: --- [mailto:[EMAIL PRO
First of all, before header() or setcookie() can't be any outputing code
(like html).
And here if you do:
mailto:[EMAIL PROTECTED]]
Sent: 14. syyskuuta 2001 12:47
To: [EMAIL PROTECTED]
Subject: [PHP] another easy cookie question
Hi all,
This is what I have at the top of my php page (php-4.0.6
I think that ODBC is your solution.
Niklas
-Original Message-
From: A. op de Weegh [mailto:[EMAIL PROTECTED]]
Sent: 15. syyskuuta 2001 13:05
To: [EMAIL PROTECTED]
Subject: [PHP] Can I use Microsoft Access as a database?
Hi all,
for testing purposes in a school environment, I would
Code:
That results
"You have an error in your SQL syntax near 'Constructor='2001-09-17',
Enertec='2001-09-17', Seatec='2001-09-17'' at line 1".
What's wrong? I don't see anything that can be wrong! Am I blind once again?
Niklas
:) It just started to work. World's a strange place. Maybe someone was doing
something to the server/php/mysql, dunno.
Niklas
-Original Message-
From: _lallous [mailto:[EMAIL PROTECTED]]
Sent: 17. syyskuuta 2001 15:03
To: [EMAIL PROTECTED]
Subject: [PHP] Re: MySQL query
Try:
$odbcId = odbc_connect("phpodbc.dsn", "admin", "");
Niklas
-Original Message-
From: A. op de Weegh [mailto:[EMAIL PROTECTED]]
Sent: 18. syyskuuta 2001 10:57
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Can I use Microsoft Access as a data
How big difference does it make in speed in these:
or
So actually I'm asking how much more/less it takes time to do the comparing
against mysql_num_rows() insted of comparing against a variable.
Niklas
A very good point.
Niklas
-Original Message-
From: Anton Stroganov [mailto:[EMAIL PROTECTED]]
Sent: 19. syyskuuta 2001 21:00
To: Wee Chua
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP Email Handler
My friend. I'm not quite sure I understand you correctly. Are you asking
_us_
If nothing is beeing sent to output on the page then use header() else you
need to use javascript.
Niklas
-Original Message-
From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
Sent: 21. syyskuuta 2001 15:51
To: php
Subject: [PHP] Quickie
How do i send the user on to another page at the
You might mean \n.
Line:
$str = "This\nis a\nsample"
would output:
This
is a
sample
Did it help?
Niklas
-Original Message-
From: Nikola Weber [mailto:[EMAIL PROTECTED]]
Sent: 22. syyskuuta 2001 0:35
To: php forum
Subject: [PHP] file problem
Hi !
Thanks for the quick
Read chapter: LXXVIII. Session handling functions
Niklas
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent: 22. syyskuuta 2001 8:19
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Quickie
Hi,
I am trying to redirect the user to another page after user
Output has started at variables.php on line 321.
Niklas
-Original Message-
From: Tom Nickels [mailto:[EMAIL PROTECTED]]
Sent: 22. syyskuuta 2001 13:20
To: [EMAIL PROTECTED]
Subject: [PHP] Cannot add header information - headers already sent by
Hi everybody!
I installed php 4.06 on
That won't do if the list is 'R001,23,"2,5"'.
I'd break that to parts with preg_match_all().
Niklas
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 3. lokakuuta 2001 15:08
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject
Urlencode() and urldecode() should help you out.
Niklas
Sagar C Nannapaneni wrote:
Hi folks..
I'm using a form to send data from one page to another.
one of the input fields in the form has a quotation mark
Ex.: samsung 15" monitor
in the next page i cant get the text after the "
First of all, I'd use something like this:
-- CODE --
.
Foo
-- END --
But the actual error is in the echo. You're having quotation marks
inside it. You need to do it my way, or write the form like
echo "...";
?>
Niklas
Logan Moore wrote:
I am cur
First:
Post the error code when you get one.
Second:
Split the code into pieces/rows to find errors.
-- CODE --
-- END --
Easier to spot the error? md5() tag is not closed.
Niklas
Logan Moore wrote:
heres the code, but im getting an error
This time I dont have a clue whats happening
--
PHP
I vote for the first option. xD
Niklas
Jason Wong wrote:
On Monday 20 September 2004 10:11, Afan Pasalic wrote:
I have right now on my server php 4.3.4 without GD2 support. Actually,
doesn't have GD support at all (nothing on phpinfo(); ).
How can I "turn it on"? :)
You can tr
is in
the cart allready.
Niklas
Justin French wrote:
I have an array that looks something like this:
$cart => Array
(
[0] => Array
(
[id] => LT4697
[qty] => 1
is no need for a new list. Spread the word of OO coding and
the world will be a better place. :)
Niklas
Gerard Samuel wrote:
Just wondering.
With the advent of php5 with its OO capabilities, is php-general too
*general* for advanced php5 users?
For me, I've learned quite a lot from
s file in projects that has to be
portable and include that file to every single page of the project.
Niklas
Bogdan Ribic wrote:
Hello all,
I am having problems with cleint's webserver and its open_basedir
settings. open_basedir is set to folder where all my php files are, but
when I i
I think my solution will get you rid of the error messages.
Alternatively you can use to disable errors.
Niklas
Bogdan Ribic wrote:
Thanx, but the script works fine with this include structure. I just
need to get rid of the warnings.
Niklas lampén wrote:
Is the situation this:
/home/a.php
only get the table once per page load but I must be able to
filter the table to get the data that I want.
I am looking for some similar code to get me started or other ideas on how
to make less queries to the database.
/Niklas Ojala
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
s database.
So, I need a sqlmanger that I cant write and execute sqlcode and don't have
the access, and where a can view the result nicely.
Hope you understand, my English isn't on top :-)
// Niklas
Niklas Karlsson wrote:
> Hello everyone
>
>
>
> I need a good sql-editor where I can write sqlcode. The problem is that I
> don't have rights to list tables, functions and so on. Now I use EMS Sql
> Manger 2005, and if I want to write and execute sqlcode I need acc
"Europe/Stockholm", and all
dates that is saved into the database is timestamp with time zone (using
PostgreSQL).
So a wonder who to handle different time zones? Have any of your experience
of this?
Cheers
Niklas Karlsson
Thanks for good answers.
Okay, so I should set the default time zone to central GMT time, and then
save GMT offset for every user. This sounds realistic, because I don't think
that I need to correct the time for users that doesn't login.
So, if I now have the GMT offset for every user, how do I di
into urlencode() I was thinking somewhere along the lines
$func=&urlencode;
$tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"$func(\\1)\"",$this->dataToBeParsed);
Cheers
Niklas Saers
--
PHP General Mailing List (http://www.php.net/)
into urlencode() I was thinking somewhere along the lines
$func=&urlencode;
$tmpParsing=eregi_replace("href=(\")([^*]*)(\")","href=\"$func(\\1)\"",$this->dataToBeParsed);
Cheers
Niklas Saers
--
PHP General Mailing List (http://www.php.net/)
101 - 200 of 203 matches
Mail list logo