Is it possible to delete a blog from the "I read these blogs" list?
PHP web-programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

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

  Top users: 
  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Saturday, 31 May 2008
Session Question Boa Constructor 17:36:40
 Greetings all,

Now that my shopping cart is just about complete I've been working on the
rest of the order process.

I have got two pages before finally placing an order. The first page takes
address details and the next page prints them all out with the contents of
the shopping cart so the user can verify that they are correct. I have put
an "Edit" button on it so that the user can go back and change address
details.

The problem is this. I am using sessions to store the address details and
when the user clicks "Edit" the current details are printed out which is
expected. When the user changes any of these details they aren't recorded
in the session and so only the original values are recorded in the session
and aren't overwritten or changed.

I have got calls to session_register();­ for each variable on the address
details page and also on the confirmation page.

Any ideas?


Cheers,

Graeme :)­


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


comment 41 answer | Add comment
Tuesday, 27 May 2008
pass value to next page Wang Chen 21:08:43
 Hi ,

Newbie question, I have a form,

<form acttion="search.php­3" method="post">
input .....
input.......
...................­....
</form>

The search.php3 goes to query mysql database to see if the infomation is new
or existed, if new, will promt
two radio buttons ( Yes or No) to confirm if you like to enter the info
inot DB .The form will action="result.php"­
My question is how we can passwd the values which are entered in first page
to result.php page.

Thank you for your help
comment 7 answers | Add comment
Friday, 16 May 2008
Register Globals & is_upload_file Bill 19:55:07
 I'm converting old code to work with Register globals turned off in php.ini.
With it on, is_upload_file($fil­ename) works fine but when turned off doesn't
work at all.

What am I missing.. Help me please !!

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


comment 5 answers | Add comment
Saturday, 10 May 2008
JPGrapgh and GD Library SAMBAR server Christopher J. Crane 22:50:07
 I recently installed and got working the GD library under a Windows 2K
server running SAMBAR server as the web server. I got a simple test script
to try to be sure the GD Library was working and it is and I am able to
output images in PNG JPEG and GIF formats.

My problem is that I can not get the JPGraph scripts running correctly. I
get error messages such as:
Warning: Undefined index: gd2 in ../jpgraph.php on line 3418

Warning: Undefined index: gd2 in ../jpgraph.php on line 3343

Warning: Undefined index: gd2 in ../jpgraph.php on line 3343

Warning: Undefined index: gd2 in ../jpgraph.php on line 3343

Warning: Undefined index: gd2 in ../jpgraph.php on line 3343

Warning: Cannot add header information - headers already sent by (output
started at ../jpgraph.php:3418­) in ../jpgraph.php on line 4257
?PNG

I am not sure what I am doing wrong. I would like to use JPGraph because of
the nice graphs I have seen on his website. Any help would be great.



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


comment 3 answer | Add comment
Friday, 9 May 2008
PHP ImageCreateFrom.. malfunctioning in last PHP releases... M 11:26:26
 Hello people,

I use ImageCreateFromStri­ng PHP functions to resize (thumbnails and so)
dynamically my JPG images.

I use third party WEB hosting provider , so I have no control about new
releases and updates of server softwares.

I have not changed my images in last 3 years (they are used for virtual
stores), they appeared beautiful in these 3 years, but from some days
ago, they are appearing with terrible filter colors (all blue for
instance, some entirely black and so). When bypassing image PHP
functions, images again appear beautiful in my page, but site
performance to show product catalogs gets terrible, not to say
impossible for customers browse on it.

I wrote web provider to check what changed in their PHP environment, but
I am afraid they will answer none has changed.

I use the following sequence of commands to rebuild thumb images:

$orimage = ImageCreateFromStri­ng(string) to get original image
from opened JPG file
$thumb = ImageCreate(new-wid­th, new-height) to create empty new
thumbnail
ImageCopyResized($t­humb,$origame,....) to fill thumbnail
ImageJpeg($thumb) to show thumbnail

I checked by increasing 'quality' parameter ImageJpeg($thumb,''­,100)
but result continue to be wrong.

Is anobody else experiencing these problems lately?, how did you solve
it?

Thanks very much

(I would appreciate cc to meu@meucat.com if possible)

Mig

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


comment 1 answer | Add comment
Wednesday, 2 April 2008
Stopped working? James Hatridge 01:32:16
 HI all...

I just upgraded my SuSE system from 8.2 to 9.1 now the counters on my web
sites are not working right. I tracked it down to this line:

$cur_ip = $REMOTE_ADDR;

I believe that this has stopped working. The idea was my counter kept your
number so that you were only counted once. But now it's not getting the
number. Has this command changed in the past 2 SuSE version?

Thanks,

JIM

--
Jim Hatridge
Linux User #88484
"Lighting the fires of Liberty, one heart at a time!"
Badnarik for President
http://www.badnarik­.org
-------------------­--------------------­---------------
В В В В В В В В ВBayerWulf
ВВВВВВВВ В Linux System # 129656
В В В В ВThe Recycled Beowulf Project
В Looking for throw-away or obsolete computers and parts
В Вto recycle into a Linux super computer

WartHog Bulletin
Info about new German Stamps
http://www.fuzzybun­nymilitia.org/~hatri­dge/bulletin

Viel Feind -- Viel Ehr'
Anti-US Propaganda stamp collection
http://www.fuzzybun­nymilitia.org/~hatri­dge/collection

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


comment 4 answer | Add comment
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

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


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

see also:
Real CMR headaches pls help
Some classes refer to other classes…
pass tests:
Тест - бяка
see also:
Convert MXF files to VOB - How to…
Sony Vegas file to Youtube Converter…
How to convert JVC .mod files to…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .