-
Using Google Mobile Friendly test, but have a robots.txt file...
I'm currently creating a responsive site and want to check my staging site is mobile friendly as I go. I've got a robots file on the domain though to stop it appearing in Google index - but by having this, the mobile friendly test will not run. Is there any way around this. I've quickly taking the robots file off and run the test a couple of times, but would prefer a safer method. Somebody advised putting a 'nofollow' meta tag on the index page - will this work ok do you think? Thanks!
-
-
Reading associative arrays?
Thanks to both the replies, but this was brilliantly detailed and works spot on - thank you so much Yakindo for going into so much detail, really appreciate it!
-
-
-
Reading associative arrays?
Brilliant, thanks so much guys - will give this a go in the morning
-
Reading associative arrays?
Its late in the day and my mind is mushy!!! Basically, I need to add new "LineItem" arrays dynamically to the array below; $new_invoice = array( array( "Type"=>"ACCREC", "Contact" => array( "Name" => "Income" ), "Date" => "2013-12-31", "DueDate" => "2013-12-31", "Status" => "DRAFT", "LineAmountTypes" => "Exclusive", "LineItems"=> array( "LineItem" => array( array( "Description" => "Sales - Wet", "Quantity" => "1.0000", "UnitAmount" => "2500.00", "AccountCode" => "200" ), array( "Description" => "Sales - Pool Table", "Quantity" => "1.0000", "UnitAmount" => "325.25", "AccountCode" => "200" ) ) ) ) ); I have 2 questions; 1) How do I reference for example, the 2nd "LineItem" 'Description'? I've tried; echo $new_invoice['LineItems']['LineItem']['Description'] which obviously doesnt work - any tips on that please? 2) That leads on directly to point 2 here, which is I need to add similar arrays ("LineItem") into that $new_invoice array. So I was trying to find the path to where they are so I can try to array_push the items into it? At least as a starting point. Can anyone help me out here as I'm obviously drowning!!!! LOL Thanks, Paul
-
Tesco API and SFTP
Found a way to get the logs; <- 00000000 53:48:2d:32:2e:30:2d:4a:53:43:41:50:45:0d:0a SH-2.0-JSCAPE.. -> 00000000 53:48:2d:32:2e:30:2d:70:68:70:73:65:63:6c:69:62 SH-2.0-phpseclib 00000010 5f:30:2e:33:20:28:6d:63:72:79:70:74:2c:20:67:6d _0.3 (mcrypt, gm 00000020 70:29:0d:0a p).. <- NET_SSH2_MSG_KEXINIT (since last: 0.015, network: 0.0043s) 00000000 2d:95:5e:e1:7c:7d:34:96:eb:95:ef:1f:ac:81:00:94 -.^.|}4......... 00000010 00:00:00:1a:64:69:66:66:69:65:2d:68:65:6c:6c:6d ....diffie-hellm 00000020 61:6e:2d:67:72:6f:75:70:31:2d:73:68:61:31:00:00 an-group1-sha1.. 00000030 00:07:73:73:68:2d:72:73:61:00:00:00:15:62:6c:6f ..ssh-rsa....blo 00000040 77:66:69:73:68:2d:63:62:63:2c:33:64:65:73:2d:63 wfish-cbc,3des-c 00000050 62:63:00:00:00:15:62:6c:6f:77:66:69:73:68:2d:63 bc....blowfish-c 00000060 62:63:2c:33:64:65:73:2d:63:62:63:00:00:00:12:68 bc,3des-cbc....h 00000070 6d:61:63:2d:73:68:61:31:2c:68:6d:61:63:2d:6d:64 mac-sha1,hmac-md 00000080 35:00:00:00:12:68:6d:61:63:2d:73:68:61:31:2c:68 5....hmac-sha1,h 00000090 6d:61:63:2d:6d:64:35:00:00:00:04:7a:6c:69:62:00 mac-md5....zlib. 000000a0 00:00:04:7a:6c:69:62:00:00:00:00:00:00:00:00:00 ...zlib......... 000000b0 00:00:00:00 .... -> NET_SSH2_MSG_KEXINIT (since last: 0.0004, network: 0s) 00000000 2e:e7:0e:2a:6c:53:58:86:e5:ac:8f:25:a0:fa:28:0e ...*lSX....%..(. 00000010 00:00:00:36:64:69:66:66:69:65:2d:68:65:6c:6c:6d ...6diffie-hellm 00000020 61:6e:2d:67:72:6f:75:70:31:2d:73:68:61:31:2c:64 an-group1-sha1,d 00000030 69:66:66:69:65:2d:68:65:6c:6c:6d:61:6e:2d:67:72 iffie-hellman-gr 00000040 6f:75:70:31:34:2d:73:68:61:31:00:00:00:0f:73:73 oup14-sha1....ss 00000050 68:2d:72:73:61:2c:73:73:68:2d:64:73:73:00:00:00 h-rsa,ssh-dss... 00000060 f6:61:72:63:66:6f:75:72:32:35:36:2c:61:72:63:66 .arcfour256,arcf 00000070 6f:75:72:31:32:38:2c:61:72:63:66:6f:75:72:2c:61 our128,arcfour,a 00000080 65:73:31:32:38:2d:63:74:72:2c:61:65:73:31:39:32 es128-ctr,aes192 00000090 2d:63:74:72:2c:61:65:73:32:35:36:2d:63:74:72:2c -ctr,aes256-ctr, 000000a0 62:6c:6f:77:66:69:73:68:2d:63:74:72:2c:74:77:6f blowfish-ctr,two 000000b0 66:69:73:68:31:32:38:2d:63:74:72:2c:74:77:6f:66 fish128-ctr,twof 000000c0 69:73:68:31:39:32:2d:63:74:72:2c:74:77:6f:66:69 ish192-ctr,twofi 000000d0 73:68:32:35:36:2d:63:74:72:2c:61:65:73:31:32:38 sh256-ctr,aes128 000000e0 2d:63:62:63:2c:61:65:73:31:39:32:2d:63:62:63:2c -cbc,aes192-cbc, 000000f0 61:65:73:32:35:36:2d:63:62:63:2c:62:6c:6f:77:66 aes256-cbc,blowf 00000100 69:73:68:2d:63:62:63:2c:74:77:6f:66:69:73:68:31 ish-cbc,twofish1 00000110 32:38:2d:63:62:63:2c:74:77:6f:66:69:73:68:31:39 28-cbc,twofish19 00000120 32:2d:63:62:63:2c:74:77:6f:66:69:73:68:32:35:36 2-cbc,twofish256 00000130 2d:63:62:63:2c:74:77:6f:66:69:73:68:2d:63:62:63 -cbc,twofish-cbc 00000140 2c:33:64:65:73:2d:63:74:72:2c:33:64:65:73:2d:63 ,3des-ctr,3des-c 00000150 62:63:2c:6e:6f:6e:65:00:00:00:f6:61:72:63:66:6f bc,none....arcfo 00000160 75:72:32:35:36:2c:61:72:63:66:6f:75:72:31:32:38 ur256,arcfour128 00000170 2c:61:72:63:66:6f:75:72:2c:61:65:73:31:32:38:2d ,arcfour,aes128- 00000180 63:74:72:2c:61:65:73:31:39:32:2d:63:74:72:2c:61 ctr,aes192-ctr,a 00000190 65:73:32:35:36:2d:63:74:72:2c:62:6c:6f:77:66:69 es256-ctr,blowfi 000001a0 73:68:2d:63:74:72:2c:74:77:6f:66:69:73:68:31:32 sh-ctr,twofish12 000001b0 38:2d:63:74:72:2c:74:77:6f:66:69:73:68:31:39:32 8-ctr,twofish192 000001c0 2d:63:74:72:2c:74:77:6f:66:69:73:68:32:35:36:2d -ctr,twofish256- 000001d0 63:74:72:2c:61:65:73:31:32:38:2d:63:62:63:2c:61 ctr,aes128-cbc,a 000001e0 65:73:31:39:32:2d:63:62:63:2c:61:65:73:32:35:36 es192-cbc,aes256 000001f0 2d:63:62:63:2c:62:6c:6f:77:66:69:73:68:2d:63:62 -cbc,blowfish-cb 00000200 63:2c:74:77:6f:66:69:73:68:31:32:38:2d:63:62:63 c,twofish128-cbc 00000210 2c:74:77:6f:66:69:73:68:31:39:32:2d:63:62:63:2c ,twofish192-cbc, 00000220 74:77:6f:66:69:73:68:32:35:36:2d:63:62:63:2c:74 twofish256-cbc,t 00000230 77:6f:66:69:73:68:2d:63:62:63:2c:33:64:65:73:2d wofish-cbc,3des- 00000240 63:74:72:2c:33:64:65:73:2d:63:62:63:2c:6e:6f:6e ctr,3des-cbc,non 00000250 65:00:00:00:30:68:6d:61:63:2d:73:68:61:31:2d:39 e...0hmac-sha1-9 00000260 36:2c:68:6d:61:63:2d:73:68:61:31:2c:68:6d:61:63 6,hmac-sha1,hmac 00000270 2d:6d:64:35:2d:39:36:2c:68:6d:61:63:2d:6d:64:35 -md5-96,hmac-md5 00000280 2c:6e:6f:6e:65:00:00:00:30:68:6d:61:63:2d:73:68 ,none...0hmac-sh 00000290 61:31:2d:39:36:2c:68:6d:61:63:2d:73:68:61:31:2c a1-96,hmac-sha1, 000002a0 68:6d:61:63:2d:6d:64:35:2d:39:36:2c:68:6d:61:63 hmac-md5-96,hmac 000002b0 2d:6d:64:35:2c:6e:6f:6e:65:00:00:00:04:6e:6f:6e -md5,none....non 000002c0 65:00:00:00:04:6e:6f:6e:65:00:00:00:00:00:00:00 e....none....... 000002d0 00:00:00:00:00:00 ...... -> NET_SSH2_MSG_KEXDH_INIT (since last: 0.0014, network: 0s) 00000000 00:00:00:81:00:be:0f:7a:1b:39:24:8f:4e:47:c5:79 .......z.9$.NG.y 00000010 ed:79:ca:b1:c8:39:06:f0:09:c7:54:a1:7c:ce:97:3d .y...9....T.|..= 00000020 0d:b8:44:84:66:6d:3f:47:c6:52:d0:93:bf:3c:49:2f ..D.fm?G.R....I/ 00000030 b8:3a:17:ca:0e:e4:68:b1:a0:5c:6d:95:9a:96:ca:5e .:....h..\m....^ 00000040 12:8b:23:f5:3a:b9:4e:b6:25:f3:78:a7:b4:bd:71:74 ..#.:.N.%.x...qt 00000050 4b:8c:05:e0:cd:ee:c1:e3:4e:81:0c:92:e3:f6:26:3d K.......N.....&= 00000060 8c:76:c1:0c:40:dd:b7:93:d2:35:33:d5:a4:a6:30:20 .v..@....53...0 00000070 63:c5:a7:11:8a:d5:93:42:6a:6a:4b:8d:3f:3d:2e:22 c......BjjK.?=." 00000080 78:d0:1e:b0:cc x.... <- NET_SSH2_MSG_DISCONNECT (since last: 0.0027, network: 0.0026s) 00000000 00:00:00:03:00:00:00:15:4e:6f:20:63:6f:6d:6d:6f ........No commo 00000010 6e:20:61:6c:67:6f:72:69:74:68:6d:73:2e:00:00:00 n algorithms.... 00000020 02:65:6e .en
-
-
Tesco API and SFTP
Bit of a stretch this, but here goes! We are implementing a large ecom store into Tesco selling system. Its MASSIVELY convoluted and unnecessarily complex (I've integrated this site with quite a few BIG name online retailers), but thats an issue for another day! We have reached a real impasse now when trying to connect into their server to send and collect report files that are key to the whole process. I've used PHP to connect into SFTP servers before with little problem (using PHPSecLib). But just cannot get connected to Tesco at all, getting rejected with the error; SSH_MSG_DISCONNECT: NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED No common algorithms Which from what little info I can find, relates to the fact that the receiving server (i.e. Tesco) are expected a compressed connection and have the option to 'talk' with no compression disabled (which apparently is a simple server setting). Tesco are totally unwilling to get involved in this and their solution is to buy a separate Windows server and connect in using that, then transfer the files to the web server :-/ Honestly.... if anyone offers you a project that involves integrating into Tesco - AVOID, AVOID, AVOID. The whole thing besides this, is just a right mess. Anyways, anyone got any ideas on alternative methods of connecting into SFTP using PHP? I feel like I've exhausted every avenue and I've spent hours on it Thanks for any help. Regards, Paul
-
Recommend hosting with DDoS protection?
Thanks for the help guys, really appreciate it. Seems the attack has subsided,but we will still be looking for alternative hosts.
-
Recommend hosting with DDoS protection?
We are a medium sized web studio and our server has been subject to a DDoS attack for the last 24 hours. Rackspace are next to useless with their help and just want to sell us a £4000 'fix'. Is there any hosts (preferably UK based) that you can recommend that also have good DDoS protection? Thanks!
-
Update Facebook business page with PHP?
Just wasted flipping hours on this! None of the tutorials I can find work, Facebook's own code makes no sense and I just dont know if I'm totally wasting my time!? Basically, created a new Facebook page for a client and he wants his latest news and product information automatically sent to it when he updates his site (bespoke CMS). But I cant even manually get it to update the page. Using the latest SDK and examples, I can echo out what appears to be all the right information (i.e. its connecting using the AppId and Secret and returning the right userId for example), but the status never changes and there are no errors. The lack of errors or any sort of feedback is incredibly frustrating as I just cant see why its not working or how to fix it. Has anyone done this, or is it not possible?
- SSH Regex
-
SSH Regex
Hi all, Can anyone help with writing a regex command i can run (if its even possible). Basically, I need a script that will look through all image directories to check if there are any files that are NOT .jpg, .jpeg, .gif, .png or .bmp At the moment, I run a script via cron to specifically check for .php files in image folders, but think I need something that does the above now. Really appreciate any help! Thanks, Paul
-
-
Company stopping ex-employee approaching clients
Tis another good idea!
-
Company stopping ex-employee approaching clients
Yea its going to be awkward to leave on good terms without it. I suggested a compromise of a 6 month 'hands off' period and see how it goes. Dont know if he will use that though. Interesting though... dont know what I would do as an employer. Too be honest, I think it says a lot that they are worried, I think I'd have more confidence in my ability in keeping clients then worrying that they would go with a freelancer (if I'd given them good service as a company).
-
Company stopping ex-employee approaching clients
Yea kind of agree. As I say, he isnt going to approach them (well, thats his plan anyway) but some may want to stick with him. I dont think he should sign anything though - it wasnt in his contract and only reason they want him to sign it now is because they are nervous. But he under no obligation or law to sign it IMO??
-
Company stopping ex-employee approaching clients
I have a friend (just the one!) who has handed his notice in at a studio. They want him to sign a document to say he wont speak to any of their current clients. I doubt they have any legal hold like this - morally maybe, but not legal. It wasnt in his original contract, just something they are asking him to sign now before he leaves. He wants to leave on good terms, but isnt keen on signing this as he is going freelance and gets on well with a lot of the clients - though he wont aggressively approach them, there is a feeling they may follow him. Anyone been in this situation?