Can I hide a part of the text by a "More..." link?
PHP web-programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > PHP web-programmingGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:
Sunday, 23 March 2008
Why parent::construct not called? Michel 'Ziobudda' Morelli 01:03:23
 Hi, why if I have

class B extends A {
}

the only way to call in automatic the A::__construct() is to not write
the B::__construct() ?

Ok, this is the design of PHP. But why ?

tnx

--
michel 'ziobudda' morelli <michel@ziobudda.ne­t>


--
PHP Development Mailing List <http://www.php.net­/>
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 7 answers | Add comment
Thursday, 13 March 2008
Templates Darren Young 04:02:25
 
I'm looking around for some options on using templates with PHP. I've
used several Perl solutions in the past, but never tried it in PHP.
Digging on the web yields several options so I'd love some thoughts or
comments. The real driver is that the basic site design could change
over time and I'd like to have the basic HTML in the templates, and the
real logic in the PHP code.

Thanks in advance,

Darren Young


--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 87 answers | Add comment
Friday, 15 February 2008
Date-format Tommi Virtanen 21:52:00
 Hi!

I have web-form, which has field (10 chars), there I enter date (format
dd.mm.yyyy). Then data saves to database (date-field type is date).

So everything works, but not fine. When I enter date in format ex.
31.12.2002 and save form, then I'll check what are in db (there are
2031-12-20).

Is there any chance to correct this problem.

I have (in clause which insert to db):

GetSQLValueString($­HTTP_POST_VARS['date'], "date")

gustavus



--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 73 answer | Add comment
Tuesday, 1 January 2008
Forms... Mark Benson 09:32:00
 Does anyone know if it is possible to have 'checkbox' elements in a
form appear 'checked' or 'unchecked' when a page loads data from a
MySQL data source? Can I use an attribute in the <input> tag to switch
that?
--
Mark Benson

AIM - SilValleyPirate
MSN - mark.benson@hot-toa­st.com
Visit FlatPackMacs online: <http://fpm.68kmac.­com>
Visit my Homepage: <http://homepage.ma­c.com/markbenson>

"Introducing Macintosh Classic II - pick one out on your way past the
trash!"

--
PHP Database Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 143 answer | Add comment
Sunday, 16 December 2007
string Natividad Castro 09:22:20
 Hi to all,
how can I evaluate a variable?
For example
$test = "test1";
then I want to evaluate if $test contains 1 at the end.
Is there any way to evaluate that variable to see if the number 1 is at the
end?
Thanks
Nato


--
PHP Database Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 37 answers | Add comment
Wednesday, 12 December 2007
[PHP-DEV] Web services Guest 20:49:47
 Can someone give me some info about PHP5 and web services

tnx


--
Morelli Michel
ZioBudda.net Coordinator
michel@ziobudda.net­



--
PHP Development Internals - Developing the PHP Runtime Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 9 answers | Add comment
Sunday, 9 December 2007
asynchronous PHP to PHP call James 04:45:10
 I have a PHP script running on server 1. I want it to call another
script on server 2 to clean up some files. There may be tons of
files and I don't want to wait until the second script is finished.

Is there a way to asynchronously call the second PHP script?

Right now I'm using fopen() to call the script on the second server.
--
-James

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 3 answer | Add comment
Saturday, 8 December 2007
automatic login.. Ganu 15:19:50
 hi,

I created one site , and i implemented the concept of mypage same like as google or yahoo
or excite.com,

now my problem is i just want to put a line{href} in my mypge as set as home page so when
the user will click on that , so it will set this page as default page..

And next time he/she will come then no need of login the mypage will open automatically,
I think i hv to track the cookies and store the ip into
the table or something like that,,,,,

plz any body can help me and gv some hint , for how it is possible...

any logic or ideas,

thnx..
Open Source Ki Jai..
~ ganu maharaj..

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 4 answer | Add comment
Tuesday, 27 November 2007
Date Calculation Mike Tuller 19:30:03
 I have a shell script that inserts the unix date and time that the
script ran into a MySql database. For example Thu Oct 28 13:41:33 CDT
2004. I would like to have my web page do the math so that it displays
the time since the script ran. How can I do the math so that the web
page will display something like the script ran 1500 seconds ago.


Thanks,

mike

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 24 answer | Add comment
Tuesday, 13 November 2007
syntax help Bob Pilly 22:08:40
 Hi all

I have a problem that is probably just a lack of php
syntax knowledge on my part and hopefully someone can
help me out.

I have an array and i want to query a database for
each value in that array. I then want to store that
result as a new variable called $array[value]total.

see code below

$array=array("Flyer­","Email","Phone");
$array_len=count($a­rray);
for($i=0;$i<$array_­len;$i++){
$query="select count(score) from test_table
where source = '$array[$i]'";
$result=mssql_query­($query,$numero);
$row=mssql_fetch_ro­w($result);
$array[$i].total=$row[0];<­-- problem here
}


so for the above code i would like to create three
variable $flyertotal,$emailt­otal & $phonetotal and
have the result of the count(score) query stored in
them. Any help or pointing to documentation would be
greatly appreciated!

Cheers

Bob

___________________­____________________­____________________­_____________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger­.yahoo.com/download/­index.html

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 19 answers | Add comment
Saturday, 10 November 2007
Who is on line? Mst 18:11:08
 I try to check "who is on line" in my php script.
How I can do it?


mst



--
PHP Windows Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 10 answers | Add comment
Friday, 2 November 2007
xmlspecialchars Richard Lynch 15:22:09
 I'm creating some XML data, but not using any of the built-in PHP XML
functions, as they are not necessarily available on all servers.

I need to encode Data (CDATA) such as URLs etc.

htmlspecialchars() works on all my test cases so far, but is it
"right"?...

Please cc: me on replies -- I'm way behind on PHP General reading... :-(­

--
Like Music?
http://l-i-e.com/ar­tists.htm

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 1 answer | Add comment
Tuesday, 30 October 2007
Extending the MySQLi_Result object? Joe Bandenburg 12:33:40
 Hi there,

It's my first post here, so go gentle.

I have run into a problem when trying to extend the MySQLi_result object
because the MySQLi object's method "query" always returns a
MySQLi_result and, to my knowledge, it is impossible to make it do
otherwise. So, my question is, how do I alter the "query" method to
return my new MySQLi_result object instead of the base object? Or, is
there another/better way of achieving what I'm looking for? Am I missing
something very obvious here? :)­

Thanks,
Joe Bandenburg

--
PHP Database Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 1 answer | Add comment
Thursday, 11 October 2007
SQL ? Tyler Durdin 21:46:22
 SELECT *, IF (answer = 'a', TRUE, FALSE) AS Answer-A

What does the As Answer-A mean and what does it do?



___________________­____________________­____________________­______
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.­com


--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 61 answer | Add comment
Monday, 8 October 2007
[PHP-DEV] mail problems Serban Gh. Ghita 08:16:13
 hello

tested some messages to my internal mail and i get mail loop error:

This message was created automatically by the mail system (ecelerity).

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
zamolxe@php.net (reading confirmation): 554 mail loop detected

------ This is a copy of the headers of the original message. ------

Return-Path: <webmasters@k.ro>
Received: from ([194.102.255.23:48327])
by sp1.php.net (ecelerity HEAD) with SMTP
id BF/45-31925-16BDFD0­4; Mon, 28 Jun 2004 01:48:34 -0700
Received: from k.ro (www@localhost [127.0.0.1])
by k.ro (8.12.10/8.12.9) with ESMTP id i5S90mlf017184
for <zamolxe@php.net>; Mon, 28 Jun 2004 12:00:48 +0300
Received: (from www@localhost)
by k.ro (8.12.10/8.12.9/Sub­mit) id i5S90kO7017173;
Mon, 28 Jun 2004 12:00:46 +0300
Date: Mon, 28 Jun 2004 12:00:46 +0300
Message-Id: <200406280900.i5S90­kO7017173@k.ro>
From: "S. Cremene" <webmasters@k.ro>
X-Mailer: Super-Mail@k.ro http://mail.k.ro/
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Sender-IP: 194.153.239.66
To: zamolxe@php.net
Subject: test


i modified my new e-mail for redirect in the management panel. can someone
guide me with this?

thanks

Serban Ghita
zamolxe@php.net
sasa@verasys.ro
PHP.net manual

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 30 answers | Add comment
Tuesday, 2 October 2007
SQL Error Daniel 11:41:55
 Please help. I have a basic scipt:

$connection_id=odbc­_connect("$DSN","$us­er","$pass");
$sql="select * from whatever";
$stmt=odbc_prepare(­$connection_id,$sql)­;
$result=odbc_execut­e($connection_id,$st­mt);

this script used to work on RH-7.3 with php-4.1.2
the script will not work anymore when i installed RH-8 using php-4.2.2
the connection IS successful, but when i try anything after that i get this
error:

Warning: SQL error: [unixODBC][IBM][iSeries Access ODBC Driver]Error in host
server data stream., SQL state S1000 in SQLPrepare

i can connect,prepare and execute statements from c++ so it must be php
specific?
please help!!




--
PHP Database Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 30 answers | Add comment
Wednesday, 26 September 2007
Session bug ? Tom Vrana 00:59:07
 Hi everybody,

I just encountered a very strange problem - I'm running Apache 2.0.36 +
PHP 4.2.1 - for couple months already. Yesterday I upgraded my system -
SuSE 7.3 to 8.0. Apache and PHP was left untoeched, but sessions stopped
working .... no files are saved to the temporary directory - and I get
this message whe debugging:

Warning: open(/tmp/sess_4a16­ecf3a438538a71530971­c6ccf2bb, O_RDWR)
failed: Invalid argument (22) in Unknown on line 0

Just in case you wonder, access rights are OK....

Can anybody help pls ? I'm desperate....

Tom

P. S. As I figured out form a strace of httpd, the params of open () are
in a wrong order, so no file gets created .....


--
PHP Development Mailing List <http://www.php.net­/>
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 3 answer | Add comment
Friday, 21 September 2007
file upload Sally Tirchett 22:46:49
 

From: "sally tirchett" <sally_tirchett@hot­mail.com>>To: php-general@lists.p­hp.net>CC: sally_tirchett@hotm­ail.com>Date: Tue, 30 Jul 2002 21:07:05 +0000>
Hello,>
I would like some help with uploading a text file from c:\temp\trial.txt >(pc with windows 2000 installed) and import it to a pc (red hat linux 6 >installed) ip 164.130.160.89 and save it into an sql database 'production'.>Can you please help?>
If the above is not possible how can i run from php a prog found >ex.c:temp\db1.mdb.­>
Thanks>
Sally>




___________________­____________________­____________________­______
Chat with friends online, try MSN Messenger: http://messenger.ms­n.com


--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 56 answers | Add comment
Wednesday, 19 September 2007
ASP to PHP Chuck PUP Payne 22:14:25
 I got a strange request from a client. He wants to be able to take his ASP
pages and move them over to PHP so that he can run them on apache on his
linux server. I saw a tool yesterday ASP2PHP, but I am wanting to know does
it work, how much is lost, is it easy to use? Is there another way to change
ASP file to PHP with out a lot of re-writes?

Chuck Payne


--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 24 answer | Add comment
Tuesday, 11 September 2007
Converting a string Jay Blanchard 16:18:26
 I think that we did this before, but I cannot find my notes or in the
archive because I am not sure what we called it.

Let us say that that I have a form item (I'll leave out clutter);

<input name="psFirstName">­

It arrives in processing as $_POST['psFirstName']

Now, I have one of these for each form item, each with a different name.
In my error script I want to say

"Cannot leave First Name blank"

I need to convert psFirstName to First Name. I tried preg_split, but it
cuts away the capital letters. Can someone point me in the right
direction again? Thanks!

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 23 answer | Add comment
Authorize.net David Johansen 16:14:20
 I know that this is way off topic, but I was wondering if someone could help
me. I couldn't think of anywhere else to look for info. So here are my
questions. If someone could help me out or point me in the direction of a
good resource I would be very grateful. But here goes.
I just started setting everything up with Authorize.net. I've set it up to
send all of the information correctly to Authorize.net, but I had some
questions about the relay script that recieves the information. How am I
supposed to handle the times when x_Response_Code doesn't equal 1? How do I
get it so that the input fields reappear? On most sites they pop back up if
an invalid credit card number is entered or any other error, but on mine it
doesn't. Do I have to set up the fields myself or is there something I can
do to make it reput them all back on the page? Also when it's approved and
goes through the user can keep hitting refresh and it charges them multiple
times and sends them an email each time. Is this just because I'm in test
mode or is there something I can do to prevent this? Thanks a ton,
Dave



--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 12 answers | Add comment
Friday, 7 September 2007
RE: mail() + attachment Boaz Yahav 14:32:04
 Class for sending mail with MIME attachments in multipart format using
external send mail, mime code and zip
http://www.weberdev­.com/index.php3?GoTo­=get_example.php3?co­unt=336

Class to send a file as an attachment with the php mail() function.
http://www.weberdev­.com/index.php3?GoTo­=get_example.php3?co­unt=1583

How-to send e-mail with attachments ( with some corrections )
http://www.weberdev­.com/index.php3?GoTo­=get_example.php3?co­unt=1260

Sincerely

berber

Visit http://www.weberdev­.com/ Today!!!
To see where PHP might take you tomorrow.



-----Original Message-----
From: Wolf-Dietrich von Loeffelholz [mailto:wloeffelholz@xh9.net]
Sent: Saturday, April 20, 2002 10:44 PM
To: php-general@lists.p­hp.net
Subject: [PHP] mail() + attachement


Is it possible to send with mail an attachment .. if yes, how ???

Greetings
wolf


--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 4 answer | Add comment
Wednesday, 5 September 2007
Zend Optimizer not installed Ox 12:23:10
 Hey All,

Does anyone know of a hosting company that will provide Zend Optimizer
v2.1.0 or later on a VIRTUAL hosting package. (preferably in the UK)

I have been helping a guy out who has had a development done and the
developers kindly didnt tell me that they use Zend Optimizer to encode
their pages, and the hosting package even after they said it was
"perrfect" is now not working cause it doesnt have Zend Optimizer on
it :\

Thanks
Ox

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 6 answers | Add comment
upload file Daniel Guerrier 11:26:00
 This should be very simple but it isn't working.

upload.html has this:
<form action="upload2.php­" method="POST"
enctype="multipart/­form-data">

<input type="file" name="userfile">
<input type="submit" name="submit" value="submit">
</form>

and

upload2.php has this:
<?php

echo("in post");

echo($_POST['userfile]);

?>


Where is the file??

Thanks


___________________­____________________­___________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yaho­o.com

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 21 answer | Add comment
Thursday, 30 August 2007
include files Todd 00:12:19
 Hi,

Is it possible under PHP4 to get the name of the file that a function was
called from? To clarify, here's an example of what I'd like to do:

--- main.php ---
<?php
include('include.ph­p');
function foo(){
$include_file=file_­that_called_foo();
printf($include_fil­e);
}
?>

--- include.php ---
<?php
foo();
?>

Does anyone know of a way to do this? I've tried several different things,
including to constant '__FILE__ ', but they all return the current file, I
am needing the included filename.

--
PHP General Mailing List (http://www.php.net­/)
To unsubscribe, visit: http://www.php.net/­unsub.php


comment 12 answers | Add comment

Add new topic:

How:  Register )
 
Логин:   Пароль:   
Комментировать могут: Премодерация:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > PHP web-programmingGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
Interpreter Optimizations
link to PSD imgs -- want them to start…
[Fwd: Bug#149056: postgresql: should…
пройди тесты:
see also:
Greetings to all!
it's my brother and my band
Harvest your surprise on Thanksgiving…

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .