{"id":26,"date":"2004-02-12T10:19:09","date_gmt":"2004-02-12T10:19:09","guid":{"rendered":"http:\/\/idiolect.truth.posiweb.net\/notes\/?p=26"},"modified":"2004-02-12T10:19:09","modified_gmt":"2004-02-12T10:19:09","slug":"photo-galleries-working","status":"publish","type":"post","link":"https:\/\/idiolect.org.uk\/notes\/2004\/02\/12\/photo-galleries-working\/","title":{"rendered":"Photo Galleries working"},"content":{"rendered":"<p>I finally managed to get the PHP for <a href=\"http:\/\/www.idiolect.org.uk\/pics\">my photo gallery<\/a> working. Seems that PHP 4.2.0 and higher have a different default value &#8216;register_globals&#8217; (it&#8217;s now set to &#8216;off&#8217;) meaning that you need to explicitly pass variables between functions. All i did was add $_REQUEST[&#8216;var&#8217;]; in two places and it started working again.<\/p>\n<p>It also means that I can host my friend Hugh&#8217;s <a href=\"http:\/\/www.idiolect.org.uk\/hugh\">photos<\/a> and feel very jealous of his Nepal-Thailand trip.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I finally managed to get the PHP for my photo gallery working. Seems that PHP 4.2.0 and higher have a different default value &#8216;register_globals&#8217; (it&#8217;s now set to &#8216;off&#8217;) meaning that you need to explicitly pass variables between functions. All i did was add $_REQUEST[&#8216;var&#8217;]; in two places and it started working again. It also [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[7],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-misc"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5KQtW-q","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/posts\/26"}],"collection":[{"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":0,"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"wp:attachment":[{"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idiolect.org.uk\/notes\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}