Авторегистрация в каталогах
[info]sergiusx wrote in [info]ru_php
Здраствуйте, подскажите пожалуйста как это работает

есть сайты с авторегистрацией в каталогах, мне стало интересно как они работают
1) регистрируют ли такие сайты в каталогах, запрашивающихзх капчу. если да, то как они её обходят?
2) как один скрипт может добавлять в тысячи каталогов? ведь на разных каталогах названия полей пишутся по разному.. наверно в скрипте указаны всевозможные названия полей и он пробует их все
то есть может отправить методом POST название сайта как SITE, если не получится то SITE_ADDRESS или как SITE_NAME например, я правильно понимаю?

Drupal Behaviors and jQuery plugins
[info]tactful_cactus wrote in [info]webdev
Okay, you Drupal devel experts: I need some assistance here. Disclaimer: I have rarely touched the code in Drupal (except to create new themes and insert PHP) and I don't understand a whole lot about the backend of Drupal. What I need to do is fairly simple. Once someone can explain it clearly enough to me, it'll be a breeze, but I can't find documentation that's complete enough for me anywhere.

I'm just trying to figure out how to use the "Drupal.behaviors.myBehavior" to call a jquery plugin. Please see my post at the bottom of this thread.

I'm seriously at my wits end trying to nail this down. I just can't seem to figure it out.

01/25/09 Homepage Spotlight
[info]ljspotlight wrote in [info]lj_spotlight
[info]stepstomarrow
When granddaughter, Jada, was born with leukemia, a donor-match was located and Jada made a miraculous recovery. In honor of her grandaughter's health, Jeanna has decided to walk across the country (in the dead of winter) to raise awareness and build support for the bone marrow registry (all that's required is a cheek swab). Follow Jeanna's remarkable journey as she travels the United States by foot.

OpenSolaris vs. Solaris
[info]technonick wrote in [info]itprofessionals
I have some software that does some translation from UTF-8. In Solaris the product has always run fine, but in OpenSolaris I see an error:

ld.so.1: someprogram: fata: relocation error: file someprogram: symbol_iconv_open: referenced symbol not found

Now, from what I have found out is that Solaris used a system call called: _iconv_open
and most Linux use a similar system call in libc called: iconv_open

But apparently there is a slight difference between Solaris and OpenSolaris, which causes this issue.

Does any have ANY knowledge of this? Somewhere I can look to confirm this hypothesis?

Thanks

Меню с бесконечной вложенностью
[info]kecal_koatl wrote in [info]ru_php
Товарищи-друзья-коллеги! Помогите пожалуйста, с решением насущной проблемы. Пытаюсь сделать менюшку с бесконечной вложенностью элементов. Родительские ветки не должны захлапываться при открытии ребенка (дочернего элемента). Который день. Мозг скоро взорвется. Код - подкатом, не поленитесь взглянуть.
Код )

Помогите с выбором
[info]gv0zdik wrote in [info]ru_cms
Подскажите пожалуйста с выбором, существует ли в природе такая CMS система в которой можно создавать любую структуру документов , т.е. без ограничений на количество вложенных категорий. Добавлять к документам дополнительные параметры, подобно TV-параметрам в MOdx или CCK модулю в Drupal и соответственно отображать списки документов учитывая логику доп. параметров. И что бы была поддержка многоязычности на сайте. В данный момент пользуюсь Modx , можно было даже смириться с его не высокой производительностью , но у него нет нормального решения для многоязыковых сайтов. В Drupal'е есть все ))) , но он мега тормозной , особенно с включенным модулем CCK и Views, так что тоже не вариант.

I make really, REALLY simple websites...
[info]stumblingrose wrote in [info]webdev
A lot of the posts I have perused in this community are VERY advanced compared to my skills. I have limited knowledge on how to build websites, but I like to think they are mostly functional for what I build them for.

I am a roleplay geek, and make websites for an online MUD I play, so a small, free website is all I really need for guilds and stuff, and well...I've come across a problem. No one else that I know in the game or elsewhere has been able to help me, so I figured since it is such a simple problem (a matter of html and some css), maybe someone here could tell me where I went wrong.

The website link is: http://theassemblyofjudges.webs.com

My problem? When I click on the image map in firefox, it works and the text shows up just fine in the iframe. When someone tries to access it in IE, they click the links on the image map and it says it is loading, but the text never shows up.

I am completely baffled, and any help would be greatly appreciated!

A Question on Domains...
[info]elveneyes wrote in [info]webdev
This is more of a question concerning the actual domain registering process versus website development itself, but I assume most of the people in this community are somewhat familiar with getting a domain for a client or themselves so I thought I would ask here.

I am not new to purchasing and transferring domains; I have around a dozen at the moment. While the majority of my domains are the common .com, .org, or .net endings, I have a few others that are not so common. Though they seemed like good ideas at the time, my purchases have really come back to bite me.

In the past 2 years, I have registered four .nu domain names (via GoDaddy and NameCheap), and one .us domain name (via NameCheap). When I registered these domains, I had every intention of actually putting them to use. Two of the .nu domains were for very "niche" websites, and the .us name was going to be for freelance work. Unfortunately, I got hit with two heart surgeries and a minor stroke in 2008, and now am possibly facing surgery and/or radiation. Thus, I had to completely drop my ambitions for the two .nu sites and the .us site early this year.

So I was stuck with two .nu domains and a .us domain that I had no use for. The .us domain was not a "big" purchase at $8.88 from NameCheap. However, each .nu was substantially more. I bought one via NameCheap at around $59 ($28.88 x 2 years), and the other three at about $45 (two year registrations for each) using GoDaddy coupon codes. I know people sell their domains via marketplace or auction, and luckily I was able to sell the NameCheap .nu to a friend even though it was for a great loss. The GoDaddy .nu names, though, are a totally different situation.

Apparently, you cannot transfer .nu domains between any registrar (except to the official .nu register at NuNames). Another big problem is that WhoisGuard protection cannot be applied to any .nu domain name. The third issue is that GoDaddy charges a separate subscription fee to use their online marketplace/auctions for domains. I have one, maybe three maximum, names to sell; I don't really want to pay a year's worth of subscription fees for something I am only going to use in maybe only a month.

As you can see, I am in a confusing situation with all of my .nu domains. I am using two of the domains actively because the sites were established a long time ago. The other .nu is currently sitting as a redirect to another domain. However, all of them have my personal information listed publicly on their WHOIS lookups. One of the .nu domains expires in May 2010; the others do not expire until late 2011.

I don't really know what on earth to do with these names. Obviously I would prefer to sell them in some way, but it would probably be more costly in the long run with GoDaddy auction subscriptions. I originally would have redirected them to other domains, but the WHOIS information is a concern because it's still out there.

Am I stuck with these domains until they expire? Is there no other way to protect my personal information until the domains run out?

Sorry for the extremely long post! Any suggestions or advice would be greatly appreciated.

12/14/09 Homepage Spotlight
[info]ljspotlight wrote in [info]lj_spotlight
[info]taste_buds
Holidays provide a built-in excuse for indulgent entertaining. This all-purpose foodie community covers everything from homemade hangover cures to dinner party menus. Need quick advice? Get five-minute snack suggestions, low-fat ingredient substitutes, and even measurement conversions. Delicious recipes garnished with humorous advice. Yum.

12/14/09 Homepage Spotlight
[info]ljspotlight wrote in [info]lj_spotlight
[info]naturesbeauty
Always on the lookout for compelling images, we were delighted to discover this flourishing community of artists who share a love of nature. Honoring the subject with photographs, paintings, sketches, prose, poetry, and other creative works, you'll be simultaneously riveted to your monitor and inspired to run helter skelter towards the nearest wooded dale.

(no subject)
[info]master_zvon wrote in [info]ru_php
Такая проблема. Есть штук семь сайтов, построенных на одном движке. Если находится какой-то баг или добавляется фича на одном из них, нужно обновлять скрипты и на всех остальных. Хотелось бы сделать это как-то автоматически. Сейчас я заливаю каждый файл вручную по FTP.

Но исправленные скрипты, как правило, лежат не в одной директории, а раскинуты по многочисленным папкам (админка, шаблоны, js, конфиги, библиотеки и т.д.), поэтому запросто могу забыть переписать часть из них. Синхронизацию в FTP-клиенте делать слишком долго.

В принципе, можно каждый раз писать скриптик, типа патча, который всё куда нужно раскидает. Но полностью это не поможет, потому что некоторые файлы на разных сайтах отличаются. Может есть готовые решения? Или какие-то другие идеи. Что можно на эту тему почитать?

В НОВЫЙ ГОД - С НОВОЙ ФЛЕЙТОЙ!
[info]mnogo_neb wrote in [info]zhiva_voda

возможно, ламерский вопрос про запуск gnash в "своем" окне
[info]aureliano_b wrote in [info]ru_cpp
Друзья, вот какой у меня к вам вопрос. Есть задача, запустить AS приложение (swf) в standalone режиме с gnash в fullscreen (а в конечном итоге, реализовать использование внешних функций). Я, соответсвенно, решил сделать небольшую "обертку" на Си. Рассудил я следующим образом:
- gnash имеет опцию "-x ID" где ID -- собсвтенно номер окна.
- в си есть exec, которым я запущу gnash как отдельную ветку и укажу номер окна.

поскольку я ранее не имел дело с оконными интерфейсами (в т/ч KDE), я нашел документацию и решил попробовать

------------------
int main( int argc, char *argv[] ){

int pid;
GtkWidget *window;

// if( !(pid = fork())){
// sleep(2);
// argv[0]="ls"; argv[1]="test.swf"; argv[2]="-x"; argv[3]="0"; argv[4]=NULL;
// execv("/usr/bin/gnash", argv);
// }

gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (destroy), NULL);
Window xwin = GDK_WINDOW_XWINDOW (window);
gtk_widget_show (window);
printf("xwin: %d\n", xwin);
argv[0]="ls"; argv[1]="test.swf"; argv[2]="-x"; argv[3]=(char *)xwin; argv[4]="-j"; argv[5]="100"; argv[6]="-k"; argv[7]="100"; argv[8]=NULL;
execv("/usr/bin/gnash", argv);
gtk_main();

return 0;
};
------------------

в общем, и окно открывается и gnash запускается, и в fork режиме и вместо текущего процесса, но вот в окно! в окно у меня никак не получается вставить вывод gnash. буду признателен, если более сведующие и компетентные товарищи подскажут что-нибудь дельное.

заранее признателен всем откликнувшимся.

Данные в POST без ключа
[info]zanozzza wrote in [info]ru_php
Удалённая сторона в HTTP запросе методом POST передаёт в теле запроса данные в виде строки (не в виде пары ключ=значение&...) при этом, удалённая сторона не определяет Content-Type.

Скрипт на отвечающей стороне сервера не видит эти данные ни в одном суперглобальном массиве.

Проблему можно воспроизвести примерно так (но тут PHP выставляет Content-Type в application/x-www-form-urlencoded):

// посылаем данные
 $Curl_Session = curl_init('http://host/');
 curl_setopt ($Curl_Session, CURLOPT_POST, 1);
 curl_setopt ($Curl_Session, CURLOPT_POSTFIELDS, 'string of data');
 curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);
 curl_exec ($Curl_Session);
 curl_close ($Curl_Session);


// принимаем данные, но ничего не видим
print_r ($GLOBALS);


Прошу подсказать, можно ли как-то вытащить данные в этом случае?
Как себя ведёт Apache при отсутствующем Content-Type (правильно ли я понимаю, что считает по-умолчанию x-www-form-urlencoded)?

Заставить удалённую сторону что-то менять у себя проблематично.

Надеюсь на помощь [info]phorror. Ну, или пусть нафиг пошлёт, если вопрос дурацкий. :D

UPDATE: Спасибо, парни - сэкономил кучу времени:

always_populate_raw_post_data = On (php.ini)
$HTTP_RAW_POST_DATA


MySQL dump error
[info]tactful_cactus wrote in [info]webdev
Help! I'm getting so frustrated here. Database admin is not my thing. But I'm just trying to do a dump of a Drupal database into the MySQL database on a new server, and I keep getting the following error in shell:

ERROR 1064 (42000) at line 26: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"access" (
"aid" int(11) NOT NULL AUTO_INCREMENT,
"mask" varchar(255) NOT NU' at line 1


Here's the corresponding text in the dump:
-- --------------------------------------------------------

--
-- Table structure for table `access`
--

CREATE TABLE "access" (
"aid" int(11) NOT NULL AUTO_INCREMENT,
"mask" varchar(255) NOT NULL DEFAULT '',
"type" varchar(255) NOT NULL DEFAULT '',
"status" tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY ("aid")
) AUTO_INCREMENT=1 ;

--
-- Dumping data for table `access`
--


-- --------------------------------------------------------

I exported this from a MySQL 5.1.37 database
The server's database is MySQL 5.0.81

Any ideas?

12/14/09 Homepage Spotlight
[info]ljspotlight wrote in [info]lj_spotlight
[info]backpacking
Want to embrace your wanderlust on the cheap? If you're tall on adventurous spirit, but short on funds, this community can help you plan a trip to anywhere. Offering plentiful tips on how to travel light, you can post about bargain hotels and hostels if you're into urban exploration or discuss camping gear and mosquito netting for the great outdoors. Hitch your backpack, pitch your tent, and carpe diem!

Возвращение назад
[info]nikolay_brest wrote in [info]ru_php
Вызываю скрипт через "ПОСТ" и в конце пытаюсь вернуться назад следующей строкой:
header ('location:($_POST[$adr])');
в переменной $adr урл куда надо вернуться.
Но не работает.
Как правильно реализовать возвращение или кто-нибудь знает, чего здесь не хватает?
спасибо

Заработок в интернете
[info]area_vitae wrote in [info]freelancers
Регистрируйся и зарабатывай дополнительных 90 рублей в день потратив на это 5 мин.

http://Exwork.ru/?ref=1145379

Home