Wednesday, 2 May 2007
|
| Displaying images Robert Stermer-Cox 15:44:15 |
| | Greetings, All,
I'm a newbe to php and am trying to develop a routine to display artwork on my wife's site. I want to load from a flat file information about the artwork and image file names of the pieces. Then using the image file name, I want to display the image to the browser. I've figured out how to load the data from the file, but I could only find ("PHP and MySQL Web Development", Welling & Thomson) two functions to display the images: ImageCreateFromxxx or Imagexxx. Neither one works. In fact, Dreamweaver MX doesn't even show them as valid php functions.
Any suggestions would be greatly appreciated....
Robert
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 6 answers | Add comment |
Tuesday, 24 April 2007
|
| Online HTML editor Todd Cary 19:47:36 |
| | I want to create an email application in PHP for my client so they can produce email text with different fonts and styles just using a browser. Are there any classes that would provide the means to do the editing?
Todd
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 8 answers | Add comment |
Monday, 23 April 2007
|
| News Feeds.... Brian McGarvie 15:08:46 |
| | Hi....
I'd like to get some news from any reputable news site, bbc.co.uk... yahoo.co.uk etc etc....
UK news would be best, if not then some hints to how to go about it would be much appreciated!
TIA...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 3 answer | Add comment |
|
| test Brad Chow 09:54:13 |
| | test
|
| | 9 answers | Add comment |
Tuesday, 17 April 2007
|
| [SMARTY] Smarty and Internet Explorer issue Peggy Schatz 07:29:53 |
| | Hello,
I've built a complex site (using various included templates) with form fields and data coming from various database tables.
One drop-down-field is causing problems in IE6. It contains about 17.000 values (I know, that's not very fancy). IE is capable of dynamically creating and displaying this drop-down-list by using smarty's built-in function {html_options} or a customized function as follows:
function smarty_function_make_options($params, &$smarty) { $options = '<select name="' . $params['name'] . '" class="' . $params['class'] . '" style="' . $params['style'] .'" onchange="' . $params['onchange'] . '">'; $options .= '<option>' . join('</option><option>',$params['options']) . '</option>'; $options .= '</select>'; $options = str_replace(">". $params['selected']," selected>" . $params['selected'], $options); echo $options; }
But combined with all the other selects and features smarty won't load the page in IE. Firefox loads quick and withaut fault. I've cached the options-array using PEAR::CACHE_Lite, but this makes no difference in IE.
If I try to display the options as array {$pn_options}, no problem. But neither way of manipulating an assigned array (of that size) in order to get the select-box works, nor does writing the entire string (<select>...</select>) in PHP and assigning as is...
I also checked wheter the size of the resulting page would be to big for that certain browser by loading it in Firefox and saving as html-file. This way I could open it in IE.
That's why I assume it is a smarty-related problem...
Thanks for any advise, Peggy
-- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 1 answer | Add comment |
Thursday, 12 April 2007
|
| File Upload Problem David Freeman 13:51:49 |
| | Hi All
I'll start by saying that I've checked the online manual (and comments) as well as having done a Google search on this with no success.
My problem is that files uploaded through a form are increasing in size. For example, I upload an image that is 7658 bytes and the uploaded version is 7685 bytes, or upload 11106 bytes and it's 11133 bytes when uploaded. Images uploaded through my form are broken in the process and no longer display.
This is only happening on my production server (RH Linux-based). My development environment is Win XP with Apache and PHP and the exact same code works perfectly.
I've checked through /etc/php.ini for anything related without success. I use move_uploaded_file() to handle the uploaded file once it's on the server.
Can anyone suggest where else I should be looking to resolve this?
Thanks, Dave
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 15 answers | Add comment |
Monday, 9 April 2007
|
| Performance Question Patrick Teague 15:03:28 |
| | What's the difference in performance between
print( file_get_contents("myfile.html") );
and
include("myfile.html");
is there any particular reason for using one over the other?
Patrick
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 52 answer | Add comment |
|
| СИСТЕМНЫЙ ПОДХОД К УПРАВЛЕНИЮ 7-8 ноября 2006 года 09:55:02 |
| | СИСТЕМНЫЙ ПОДХОД К УПРАВЛЕНИЮ
7-8 ноября 2006 года, Москва
(495) 74l-96-84
СОВЕРШЕНСТВОВАНИЕ РАБОТЫ СТРУКТУРНЫХ ПОДРАЗДЕЛЕНИЙ НА ОСНОВЕ РАЗРАБОТКИ КЛЮЧЕВЫХ ПОКАЗАТЕЛЕЙ ЭФФЕКТИВНОСТИ (BSC / KPI)
Программа семинара специально разработана для руководителей и специалистов структурных подразделений компании, ответственных за разработку и внедрение KPI (d).
Вы сможете получить:
* Стандартизированную методику проектирования карты целей и показателей
* Моделирование стратегии BSC/KPI и выделение приоритетов в развитии на 2007 г.
* Создать/верифицировать KPI структурных подразделений
В программе:
Учебная сессия. Цель - передача знаний, передача методологии: Внедрение системы сбалансированных показателей (BSC) на уровень подразделения. Управление по целям. Система сбалансированных показателей (BSC/KPI). Cтратегическая карта (Strategic Map), счетная карта (Scorecard). Стандартизированный подход к проектированию стратегической карты. "Вечные" и не вечные цели подразделения. Декомпозиция стратегических целей в показатели на местах. Стратегическое соответствие сверху донизу. Ключевые показатели результативности (KPI). Иерархия показателей. Cколько должно быть показателей: KPI(c) и KPI(d). Запаздывающие и опережающие показатели. Примеры KPI для предприятий с различным типом стратегии: стратегия "операционного совершенства", стратегия лидерство в разработке продуктов", "тесная связь с клиентом". Определение KPI в привязке к ключевым факторам успеха (КФУ). Декомпозиция корпоративной счетной карты на счетные карты нижних уровней управления. Кейс 1: "Анализ соответствия целей бизнес-единицы целям бизнеса в целом. Анализ корректности выбора показателя "поиск клиента". Кейс 2: "Производство и реализация. Анализ корректности выбора показателей KPI(d) для различных подразделений/проектов". Разработческая сессия. Цель - проектирование сбалансированной системы показателей для структурных подразделений - KPI (d)
* Выделение, ранжирование и оценка ключевых факторов успеха
* Создание/верификация модели стратегии BSC/KPI для пенсионного бизнеса в целом
* Проектирование системы целей и показателей структурных подразделений - KPI (d) - в привязке к стратегическим целям бизнеса.
Автор и ведущий: Специалист по стратегическому планированию, управленческому консультированию и управлению персоналом, имеет степень МВА. Стажировалась в Германии и США. Преподаватель Академии народного хозяйства при правительстве РФ. Имеет опыт собственного бизнеса и опыт работы на руководящих должностях в компаниях " Avis - rent - a - car ", корпорации "Мир", American Express . Ее клиентами являются: "Почта России", "РОСНО", банк "Первое О.В.К.", Международный московский банк ("ММБ"), "Альфа-банк", "Ростелеком", Unilever , Mag Consulting , Akzo Nobil , Aventis Pharma , ICN , предприятия угольной промышленности. Участвовала в качестве консультанта в проектах по совершенствованию системы управления в российских компаниях: холдинг "Гурман", "АСБ-Рейтинг", "АЛАР-2", многопрофильный холдинг "Статус", Новолипецкий Металлургический комбинат ДФ (г.Владивосток), дистрибутор продуктов питания в Приморье и на Дальнем Востоке, OTIS , "РусАл" - проведение 1-ой управленческой конференции по стратегии РусАла до 2013 г. в г. Москве и аналогичной конференции на Николаевском глиноземном заводе.
Стоимость участия составляет 12800 рублей.
Зарегистрироваться и получить дополнительную информацию Вы можете по тел.: (495) 74l-96-84
лзг меутеувк рдасе ятеьы аоелкзсббт кнаун мтелувеае
|
| | 1 answer | Add comment |
Wednesday, 4 April 2007
|
| display errors using iniset Elja 21:56:49 |
| | Hi,
I want to set up my php.ini with the display_errors setting off, and put in my script a iniset('display_errors',"1"); so i will only see errors of the script that i'am working on.
I can't get it to work. It seems (when i call phpinfo() after the iniset) that i changed the local value but i don't see any errormessages. When i adjust the setting in the php.ini file it will show the error (ofcourse).
Does anybody know what i'am doing wrong? (got a apache and php 4.3.1)
Elja
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 7 answers | Add comment |
Tuesday, 3 April 2007
|
| Re: Test David Robley 15:33:38 |
| | Sheena Mullally wrote:
test Sorry, you failed.
Cheers -- David Robley
This tag is devoid of any humor. Today is Boomtime, the 58th day of Bureaucracy in the YOLD 3172.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 4 answer | Add comment |
Wednesday, 28 March 2007
|
| FTP Error Eddie Schnell 23:48:19 |
| | Description: ------------ Warning: ftp_put(): php_connect_nonb() failed: No route to host (65)
I get this error with the reproduce code. it also says Warning: ftp_put(): Type set to I.
It is not uploading the file correctly.
i have php 4.4.1 on iPowerWeb's server, so no upgrade is possible.
Thanks in Advance
Reproduce code: --------------- $conn_id = ftp_connect("ftpServer"); $login_result = ftp_login($conn_id, "userName", "passWord"); ftp_pasv($conn_id, true); if ((!$conn_id) || (!$login_result)) { echo "FTP connection has failed!"; echo "Attempted to connect to stp server for user username"; exit; } else { echo "Connected to ftp server, for user user"; } $upload = ftp_put($conn_id, "bgd.txt", "bgdlocal.txt", FTP_BINARY); if (!$upload) { echo "FTP upload has failed!"; } else { echo "Uploaded $source_file to $ftp_server as $destination_file"; } // close the FTP stream ftp_close($conn_id);
Expected result: ---------------- Uploaded $source_file to $ftp_server as $destination_file
Actual result: -------------- Warning: ftp_put(): php_connect_nonb() failed: No route to host (65) in /home/beachgla/public_html/catalog/update/index.php on line 475
Warning: ftp_put(): Type set to I. in /home/beachgla/public_html/catalog/update/index.php on line 475
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 2 answer | Add comment |
Saturday, 24 March 2007
|
| upload image Nikolay Valentinov 02:45:57 |
| | i have problem with image upload on freeBSD server. My question is: what must be address, where to upload file? i use "$uploadpath = $DOCUMENT_ROOT.'/xxx/photos/'" this works on Apache/Win98. Where is the problem? excuse me for my english Thanx!
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 12 answers | Add comment |
Saturday, 17 March 2007
|
| Set Locale Saci 17:05:03 |
| | For example
setlocale(LC_ALL, "De"); setlocale(LC_ALL, 'nl_NL');
Where I can found a table with all locale strings available ?
What is the string to set locale to Brazilian locale ?
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 5 answers | Add comment |
|
| Variable Help. Randum Ian 05:54:35 |
| | Hi all,
I want to link to a page like this:
http://www.danceportal.co.uk/charts.php?wk0001-fri-18-jan-2002
How do I get the information into a script?
Cheers, Ian. --- Randum Ian DJ / Reviewer / Webmaster, DancePortal (UK) Limited ian@danceportal.co.uk http://www.danceportal.co.uk DancePortal.co.uk - Global dance music media
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 9 answers | Add comment |
Friday, 16 March 2007
|
| New Windows user having trouble with Apache and PHP Sunburned Surveyor 17:45:54 |
| | Windows/PHP Users,
I'm new to PHP and I had a question about getting PHP and Apache set up on Windows. I've installed both PHP and Apache on my computer per the install instructions. I have successfully started the Apache server, after I changed the port from 80 to 8080.
However, when I try to test my Apache/PHP by directing my browser to http://localhost/phpinfo.php I receive the following error:
"The connection was refused when attempting to contact localhost."
I'm pretty sure that Apache is up and running, so I'm a little confused by this warning. Could it be a firewall setting on my computer or a configuration setting on my browser?
I would really appreciate a place to start looking, or any ideas on where I can look to get this fixed.
Thanks,
The Sunburned Surveyor
P.S. - I'm running Windows 2000 on a Dell Precision 530. Mozilla Firefox is my browser. I'm using the latest stable releases of both PHP and Apache.
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 4 answer | Add comment |
Thursday, 15 March 2007
|
| Form Problem? Jason Witten 00:40:18 |
| | how can i get form data on the next page if i dont have a submit feild? like if i have <input type="image" src="blah.gif"> instead of the submit button???? would i just make the image a link to "mypage.php?myvar=1" ? Thanks for the help in advance.
Jason
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 27 answers | Add comment |
Sunday, 11 March 2007
|
| address book import/export Mulehall 07:08:28 |
| | I am having problems importing and exporting. The forms where you browse for the files to upload do not do anything but refresh the page. Same with single vcard. Can't export either. Is this functionality known to not work? Is it a bug, or do I have a configuration problem. apache_1.3.19.tar php-4.2.0 and phpgroupware-0.9.14.RC3.tar.gz
Can my php.ini and file uploading be a problem?? ie safemode I tried Version-0_9_14-branch and got a wierd error saying this version was no longer being used. Thanks for any suggestions
__________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/
|
| | 5 answers | Add comment |
Thursday, 22 February 2007
|
| Form Processor? Guest 13:51:10 |
| | Hey all,
Does anyone have any recomendations for a GOOD PHP Form Processor software?
Kind of in a bind and don't want to reinvent the wheel if I don't have to.
Sorry for thr O/T.
TIA!
A
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 7 answers | Add comment |
Monday, 19 February 2007
|
| Thumbnails Miguel Brбs 07:49:50 |
| | Hi there gents,
i looked all web for a good script to create a image thumbnail at the time I make the upload to server and DB.
I mean, i have a form with some fields. One of it is the imagepath. I store here the image path so i can display the full image on a third page. Now what i want is to create a thumbnail, save it on the server and also save the path on DB so i can get it on a query on the second page before displaying the full image.
Any script or tip out there? Thx Miguel |
| | 16 answers | Add comment |
Tuesday, 13 February 2007
|
| Signature Bob Crandell 14:05:56 |
| | Hi,
Attach signature seems to be controlled on the Compose screen. What would it take to set the default (On or Off) in Email/Preferences?
The situation is a user sends most email in house. She wants to be able to check "Attach signature" for outside email.
Thanks
-- Bob Crandell, CNS Assured Computing, Inc. When you need to be sure. http://www.assuredcomp.com/ P.O. Box 40814 Eugene, OR 97404 Voice - 541-868-0331 FAX - 541-463-1627
|
| | 2 answer | Add comment |
Saturday, 10 February 2007
|
| Frontpage- help! JJ in MD_USA 21:18:01 |
| | All I want to do is have MS Frontpage 2000 be able to interpret the php3 files. Does this mean that I have to install a server on my Win98 OS? I have downloaded and installed PHP.exe and all that, and also the rocket addin from MS knowledgebase, but it still doesn't seem to interpret.
Thanks for any help, JJ
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 9 answers | Add comment |
Thursday, 1 February 2007
|
| [PHP-DEV] Re: text Guest 12:55:18 |
| | Your document is attached.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php |
| | 6 answers | Add comment |
Sunday, 28 January 2007
|
| Can a class instance a property of another class Ken Kixmoeller -- reply to ken@kixmoeller.com 00:38:30 |
| | Hey - -- -
Here I am again. Anybody still working on a Friday?
I would like to have a class instance be the property of another class, like can be done in other languages. For example: I would like to have a "Connections" class which contains all of the database connection logic and query results. There are advantages to having this type of utility class be local to a data or business class. (I know that I could have a generic "include" with functions outside of the class hierarchy.)
So, in the __construct method of a business or data class, for example, one could:
include_once("connection_classes.kbk"); $this->connection_class = new connection_class;
This syntax fails, so I know this isn't right, but I hope you get the idea.
Can it be done?
TIA, again
Ken
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 9 answers | Add comment |
Saturday, 27 January 2007
|
| My objects eats too much (and weird!) memory Francisco M. Marzoa Alonso 23:46:43 |
| | Hello!
I'm new here, so I do not know if attachments are allowed, so I put my code below.
I've written this to check memory consumption of PHP5 objects, because I'm having memory problems with an OO XMLParser that I've written.
When I execute the code from cli, I get:
$ php MemTest.php Obj1 uses 208 bytes Obj2 uses 168 bytes Obj3 uses 200 bytes Obj4 uses 200 bytes Obj5 uses 200 bytes Obj6 uses 200 bytes
I understand that first instance may be bigger than next ones because method allocation and other things of that kind, but I do not understand why second instance is smaller than third
So, my first question is: Why third object is a 16% smaller than third and nexts?
In any case, my second question is: Isn't too much memory 200 bytes for a so simply object??
And the third: Is there any manner to get more compact objects in PHP5?
Thanks a lot in advance.
------- <?php
class dummy { protected $a;
public function __construct ( $a ) { $this->a = $a; } }
$before=0; $memdiff=0;
$before = memory_get_usage(); $obj1 = new dummy (0); $memdiff = memory_get_usage()-$before; echo "Obj1 uses $memdiff bytes\n";
$before = memory_get_usage(); $obj2 = new dummy (0); $memdiff = memory_get_usage()-$before; echo "Obj2 uses $memdiff bytes\n";
$before = memory_get_usage(); $obj3 = new dummy (0); $memdiff = memory_get_usage()-$before; echo "Obj3 uses $memdiff bytes\n";
$before = memory_get_usage(); $obj4 = new dummy (0); $memdiff = memory_get_usage()-$before; echo "Obj4 uses $memdiff bytes\n";
$before = memory_get_usage(); $obj5 = new dummy (0); $memdiff = memory_get_usage()-$before; echo "Obj5 uses $memdiff bytes\n";
$before = memory_get_usage(); $obj6 = new dummy (0); $memdiff = memory_get_usage()-$before; echo "Obj6 uses $memdiff bytes\n";
?>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
|
| | 3 answer | Add comment |
|