jazzman1
Staff Alumni-
Posts
2,713 -
Joined
-
Last visited
-
Days Won
12
Everything posted by jazzman1
-
I'm wishing you a wonderful Christmas and a happy New Year
-
@Stefi, I have good knowledges in cakephp, but.....I'm suggesting you to start with Symfony2.
-
Hi guys, this thread is already solved! If someone wants to see what's going on, please send me PM to provide her/him a real userName and password ( Christian, I was thinking about you ) Thanks for taking the time to help me about this. #!/bin/bash NAME='your Name' PASS='your Password' HIDDEN=`date '+%s'` TIME=`date '+%Y%m%d'` curl --cookie-jar cjar --output /dev/null 'http://www.djtacho.com/member/plugins/protect/new_rewrite/login.php?v=-any&url=/members/' curl --cookie cjar --cookie-jar cjar --data 'amember_login='${NAME} --data 'amember_pass='${PASS} --data 'login_attempt_id='${HIDDEN} --location \ 'http://www.djtacho.com/member/plugins/protect/new_rewrite/login.php?v=-any&url=/members/' curl --verbose --cookie cjar --output ~/televizia.html 'http://www.djtacho.com/members/televizia.php' grep -o 'mms://video.djtacho.com/onlineBTV\-hq?token=[a-zA-Z0-9]*' televizia.html > tvFile.txt while read line; do mplayer -dumpstream -dumpfile ${TIME}.wmv $line # or whaterver you want to do with the $line variable sleep 300 done < tvFile.txt
-
How To Get Submit Input Element Value In Curl (Bash Or Php)
jazzman1 replied to jazzman1's topic in PHP Coding Help
O, Jesus, I've got a wrong logic since the very begining. That's one it's correct! Solved: #!/bin/bash NAME='jazzman' PASS='password' HIDDEN=`date '+%s'` curl --cookie-jar cjar --output /dev/null 'http://www.djtacho.com/member/plugins/protect/new_rewrite/login.php?v=-any&url=/members/' curl --cookie cjar --cookie-jar cjar --data 'amember_login='${NAME} --data 'amember_pass='${PASS} --data 'login_attempt_id='${HIDDEN} --location \ 'http://www.djtacho.com/member/plugins/protect/new_rewrite/login.php?v=-any&url=/members/' curl --cookie cjar --output ~/newFile.htm http://www.djtacho.com/members/center.htm -
How To Get Submit Input Element Value In Curl (Bash Or Php)
jazzman1 replied to jazzman1's topic in PHP Coding Help
My mistake! The default name of the submit element is not - "Submit" My post above is not completely correct. I'm still struggling in that issue. Sorry about that. -
How To Get Submit Input Element Value In Curl (Bash Or Php)
jazzman1 replied to jazzman1's topic in PHP Coding Help
In fact, after few days research on the web, I've got nothing about this issue. I've solved that quite accidentally. I must share my code with you! When there is no name embed to submit element the default name is "Submit" with capital "S" @Christian, take a look at bash, if you want it. #!/bin/bash NAME='jazzman' PASS='password' TIME=136765423 SUBMIT='%20%20%20Вход%20%20%20' curl --cookie-jar cjar --output /dev/null http://www.djtacho.com/member/plugins/protect/new_rewrite/login.php?v=-any&url=/members/ curl --cookie cjar --cookie-jar cjar --data 'amember_login='$NAME --data 'amember_pass='$PASS --data 'login_attempt_id='$TIME --data 'Submit='$SUBMIT --location http://www.djtacho.com/member/plugins/protect/new_rewrite/login.php?v=-any&url=/members/ curl --cookie cjar --output ~/newFile.html http://www.djtacho.com/members/ -
How To Get Submit Input Element Value In Curl (Bash Or Php)
jazzman1 replied to jazzman1's topic in PHP Coding Help
Christian,the code is written in Bash Scripting Language. The only way that I see to do this, is to substitute a html form with javascript giving it a name attribute to the submit element. -
Wow..... I've got it guys, linux is amazing and the people of that community, too I needed to add that string to mplayer's config file. For example: vim ~/.mplayer/config // add this prefer-ipv4=yes If you want it, you can try using my token to this particular streaming file, to check what's going on. mplayer -dumpstream -dumpfile '2012.12.19 -Wednesday- (18-00).wmv' 'mms://67.159.54.219/vod/onlineBTV/[bTV] 2012.12.19 -Wednesday- (18-00).wmv?token=aea1884748fa97f6672c089db7eb92e0' Now the question is, how to login via BASH to get the generating token to this particular account? I'm thinking myself about CURL ?
-
I cannot help you, sorry about that.
-
I think that now() is not a php function is a sql one.
-
What kind of DB are you using, MySQL or MSSQL ? EDIT: Check this out -> http://social.msdn.microsoft.com/Forums/en-US/sqldriverforphp/thread/1389b199-4cdd-4e98-8363-ea5b819954c4
-
That one is wrong too: http://dev.mysql.com...rting-rows.html "SELECT * FROM u_usergroup ORDER BY groupDesc"
-
Hi Andreea115, when you send a post data to the server I recommend you to use a object litteral like this: data {} Take a look at this for a minute, how you to make a very simple test in ajax: Create two new files, named - index.php and debug.php, to be located in the same directory (folder) In an index.php file copy/paste this code: <script type="text/javascript" src="// link to jquery "></script> <script type="text/javascript"> var name = 'testajax'; var email = 'jazzman@jazzman.com'; var url = 'debug.php'; data = { name: name, email: email } function processResponse(data, status) { if(status == 'success') { // alert(true) // console.log(data); } else { alert (false) } } $.post(url, data,processResponse); </script> In the debug.php, just create an array contains a post data comming from $.post() function. <?php echo '<pre>'.print_r($_POST, 1).'</pre>'; If you install firebug in firefox(recommend you) and open a console, you can see this result: <pre>Array ( [name] => testajax [email] => jazzman@jazzman.com ) </pre> That means that the data has been successfully sent to the server and returned back to the client (browser). In the processResponse function you can apply styling to the output. This is a very basic principle how ajax works - nothing special.
-
EDIT: on the top of joint_reg_ajaxversion.php, put it this code and alert(data) echo '<pre>'.print_r($_POST, 1).'</pre>'; exit;
-
@Andreea115, the basic structure of a post() function is: $.post(url, data, callback). Just make a simple test for me: Replace yours $.ajax() method with next code and tell me what results you get: data = { name: "testajax", email: "testajax@yahoo.com", cat: "E", country_log: 3, honypot: "http://example.com", humancheck: "true" } function processResponse(data, status) { if(status=='success') { alert(true) } else { alert(false) } $.post('cms/views/jobs/joint_reg_ajaxversion.php', data, processResponse) PS. console is a tool from firebug, have you ever heard about firebug?
-
Could you post a result of the string: // alert(dataStrings) // console.log(dataStrings)
-
How Do I Get $Salt When It's In The Config.php File?
jazzman1 replied to ChayaCooper's topic in PHP Coding Help
I think your directories looks good. Make a simple test for me> Create a new file in directory- "/home4/clickfi4/public_html/demo" and named it - debug.php. On the top of your config.php file put it - echo 'test'. A config.php must locate in "/home4/clickfi4/public_html/demo/secure_folder" In a debug.php file copy/paste next code: <?php error_reporting(E_ALL); require_once 'secure_folder/config.php';- 10 replies
-
- salt
- config.php
-
(and 3 more)
Tagged with:
-
Wow....... fabulous Sorry for that, it woks perfectly for me...... thanks again my friend! EDIT: I have to spend a time learning more about recursive functions in php.
-
How Do I Get $Salt When It's In The Config.php File?
jazzman1 replied to ChayaCooper's topic in PHP Coding Help
Ok, put it echo getcwd() . "\n"; on the top of the files - config.php and the parent one and give us results.- 10 replies
-
- salt
- config.php
-
(and 3 more)
Tagged with:
-
The best way to learn more about curl is to understand bash script language and the unix/linux systems. I've naver used curl in php, but they have a great tutorial in php.net, I think.
-
How Do I Get $Salt When It's In The Config.php File?
jazzman1 replied to ChayaCooper's topic in PHP Coding Help
Where are you? echo getcwd() . "\n";- 10 replies
-
- salt
- config.php
-
(and 3 more)
Tagged with:
-
Hm...it's getting more and more complicate for me If I'm using the code below, Barand's function failed, because it needs this id to be a part of an array: displayHierarchy($arr, [b]$rec['id'][/b], $indent+1); while (list($id, $name, $parent, $number) = mysql_fetch_row($res)) { $data[$parent][$id] = array('name'=>$name, 'number'=>$number,'total'=>0); } If I try to change it like that, the old result is displaying: while (list($id, $name, $parent, $number) = mysql_fetch_row($res)) { $data[$parent][$id] = array('id'=>$id,'name'=>$name, 'number'=>$number,'total'=>0); }
-
@PFMaBiSmAd, I don't wanna bother you, but my data comming from DB looks exactly like this: $data[null][0] = array('name'=>'Europe', 'number'=>0,'id'=>1); $data[1][0] = array('name'=>'BG', 'number'=>8,'id'=>2); $data[2][0] = array('name'=>'Sofia', 'number'=>5,'id'=>3); $data[2][0] = array('name'=>'Varna', 'number'=>2,'id'=>4); $data[3][0] = array('name'=>'Mladost', 'number'=>4,'id'=>5); $data[4][0] = array('name'=>'Chaika', 'number'=>9,'id'=>6); Is it possible to get the same result like yours ? When you have a time, please take a look at this. Thank you, jazz.