- react related contents
- academind / react-complete-guide-code
- azat-co / react
- cathy0807 / react
- facebook / create-react-app
- facebook / react
- hackyourfuture / react
- internshala-online-trainings / react
- jedwatson / react-select
- kdchang / reactjs101
- leilihuang / react
- marmelab / react-admin
- omergulcicek / react
- phosphor-icons / react
- primer / react
- react-boilerplate / react-boilerplate
- react-redux-antd-es6 / react
- reactivecocoa / reactivecocoa
- reactiveui / reactiveui
- reactjs / react.dev
- reduxjs / react-redux
- streamich / react-use
- sudheerj / reactjs-interview-questions
- typescript-cheatsheets / react
- ui-router / react
- vercel / next.js
- werein / react
- wesbos / react-for-beginners-starter-files
- xzlaptt / react
- ysymyth / react
- Дальномер
- Indexing Category in php file Undefined inde
- 2 Answers
- php — Custom URL Rewriting with parametres
- Answer
- Solution:
- Answer
- Solution:
- Share solution ↓
- Additional Information:
- Didn’t find the answer?
- Similar questions
- Write quick answer
- About the technologies asked in this question
- PHP
- Welcome to programmierfrage.com
- Get answers to specific questions
- Help Others Solve Their Issues
react related contents
academind / react-complete-guide-code
5.7K 5.7K 12.9K react, Code snapshots and materials for our «React — The Complete Guide» course (https://acad.link/reactjs) From organization academind
azat-co / react
246.0 246.0 134.0 react, Examples for the React Quickly book. From user azat-co Home Page: https://www.manning.com/books/react-quickly
cathy0807 / react
facebook / create-react-app
100.4K 100.4K 26.6K react, Set up a modern web app by running one command. From organization facebook Home Page: https://create-react-app.dev
facebook / react
210.9K 6.6K 44.2K react, The library for web and native user interfaces From organization facebook Home Page: https://react.dev
hackyourfuture / react
284.0 284.0 634.0 react, This repository contains all the material for the HackYourFuture module «React.js: Building dynamic UIs with modern JavaScript» From organization hackyourfuture
internshala-online-trainings / react
jedwatson / react-select
26.4K 26.4K 4.1K react, The Select Component for React.js From user jedwatson Home Page: https://react-select.com/
kdchang / reactjs101
4.2K 232.0 1.2K react, 從零開始學 ReactJS(ReactJS 101)是一本希望讓初學者一看就懂的 React 中文入門教學書,由淺入深學習 ReactJS 生態系 (Flux, Redux, React Router, ImmutableJS, React Native, Relay/GraphQL etc.)。 From user kdchang Home Page: https://www.gitbook.com/book/kdchang/react101/details
leilihuang / react
marmelab / react-admin
22.6K 22.6K 5.0K react, A frontend Framework for building B2B applications running in the browser on top of REST/GraphQL APIs, using ES6, React and Material Design From organization marmelab Home Page: http://marmelab.com/react-admin
omergulcicek / react
505.0 505.0 91.0 react, 🌀 React kütüphanesinin Türkçe çevirisi From user omergulcicek Home Page: https://turkcedokuman.com/
phosphor-icons / react
743.0 743.0 36.0 react, A flexible icon family for React From organization phosphor-icons Home Page: https://phosphoricons.com
primer / react
2.5K 2.5K 471.0 react, An implementation of GitHub’s Primer Design System using React From organization primer Home Page: https://primer.style/react
react-boilerplate / react-boilerplate
29.2K 29.2K 6.2K react, :fire: A highly scalable, offline-first foundation with the best developer experience and a focus on performance and best practices. From organization react-boilerplate Home Page: https://www.reactboilerplate.com
react-redux-antd-es6 / react
reactivecocoa / reactivecocoa
20.0K 20.0K 3.6K react, Cocoa framework and Obj-C dynamism bindings for ReactiveSwift. From organization reactivecocoa
reactiveui / reactiveui
7.6K 364.0 1.1K react, An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application. From organization reactiveui Home Page: https://www.reactiveui.net
reactjs / react.dev
9.9K 9.9K 7.2K react, The React documentation website From organization reactjs Home Page: https://react.dev/
reduxjs / react-redux
22.9K 22.9K 3.4K react, Official React bindings for Redux From organization reduxjs Home Page: https://react-redux.js.org
streamich / react-use
sudheerj / reactjs-interview-questions
30.7K 597.0 7.5K react, List of top 500 ReactJS Interview Questions & Answers. Coding exercise questions are coming soon!! From user sudheerj
typescript-cheatsheets / react
41.7K 41.7K 3.8K react, Cheatsheets for experienced React developers getting started with TypeScript From organization typescript-cheatsheets Home Page: https://react-typescript-cheatsheet.netlify.app
ui-router / react
472.0 14.0 116.0 react, 🔼 UI-Router for React From organization ui-router Home Page: https://ui-router.github.io/react/
vercel / next.js
werein / react
263.0 263.0 91.0 react, Extremely simple boilerplate, easiest you can find, for React application including all the necessary tools: Flow | React 16 | redux | babel 6 | webpack 3 | css-modules | jest | enzyme | express + optional: sass/scss From organization werein Home Page: https://wereinhq.com/guides/react
wesbos / react-for-beginners-starter-files
2.8K 2.8K 2.6K react, Starter files for learning React.js with React for Beginners From user wesbos Home Page: https://ReactForBeginners.com
xzlaptt / react
ysymyth / react
697.0 697.0 84.0 react, [ICLR 2023] ReAct: Synergizing Reasoning and Acting in Language Models From user ysymyth
Дальномер
У меня Суммитар подошел к Зоркому(50г,в) и к Зоркому-4к без проблем и регулировок. Хороший объектив. Резкий на открытой диафрагме. У меня, правда, ранний, без просветления..а их существует как минимум три версии. Единственная проблема может быть- цена за хороший экземпляр. В боке крутит немножко, но это не проблема. Боке красивое
Думаю, если для того чтоб снимать- задорого брать не стоит. Особых потрясений не будет. Удобства в использовании в силу конструкции мало. Это больше легенда, наверно как и вся продукция лейца того времени. Хороший юпитер рулит! http://rangefinder.ru/glr/showphoto.php . puser/1849 http://rangefinder.ru/glr/showphoto.php . puser/1849
Последний раз редактировалось FM 23 авг 2009, 19:55, всего редактировалось 1 раз.
Дальнимер в порядке. Сравнивал с К-4 и Ф-3, а так же с Бликом. Метром не мерял. На бесконечности сходится. Тем более фотоаппарат был на профилактике у Товарища Михельсона. И-61 был куплен в состоянии — «новый» 89 года выпуска. В связи с этим даже нет предположений, почему так получается.
Да дальномер может быть в порядке ,а ОБЪЕКТИВ на бесконечности
НЕ ВЫСТАВЛЕН.
И чё ? И то, что Вы дальномером фокусируетесь, а объектив НЕ в ФОКУСЕ!
Еще раз говорю- проверьте на 1 м, на 3 м и на бесконечности
ПО МАТОВОМУ стеклу.., сильным 7-10 крат увеличением-
полностью все увидите сами!
Фокусируйте на выдержке В с открытым затвором и
на полностью открытой диафрагме , а ПОТОМ смотрите
в «правильный» дальномер . Если пятно НЕ сходится- см выше.
это точно!
Indexing Category in php file Undefined inde
I am trying to figure out where I should be indexing category in my php files and how.
: Undefined index: category in /home/treehouse/workspace/inc/functions.php on line 18
Matthew Brock
Matthew Brock
Can you show us the code in question that you have?
2 Answers
Daniel Cudney
Daniel Cudney
i found it, it was »’php $times»’ not »’php $time»’
Daniel Cudney
Daniel Cudney
Thank you so much for your time.
I am learning and adapting to my own site.
booking.php main page loaded
$pageTitle = "Booking Schedule"; $selection = "booking"; include("inc/data.php"); include("inc/functions.php"); include("inc/header.php"); ?> echo $pageTitle; ?> include("inc/shop.php"); ?> include("inc/footer.php"); ?>
$catalog = []; $catalog[100] = [ "title" => "60 Minute Massage", "img" => "http://i1.wp.com/www.tranquilinc.com/wp-content/uploads/2015/08/ID-10038310.jpg?resize=150%2C150", "duration" => "1 Hour", "value" => "$100", "cost" => "$50", "description" => "Get a hour massage from Tranquil Embodiment Massage in San Diego, CA. Comes complete with hot towels, aromatherapy, and your time doesnt start until your massage does.", "time" => 60]; $catalog[150] = [ "title" => "90 Minute Massage", "img" => "img/90m.png", "duration" => "1 Hour and a Half", "value" => "$150", "cost" => "$75", "description" => "Get a ninety minute massage from Tranquil Embodiment Massage in San Diego, CA. Comes complete with hot towels, aromatherapy, and your time doesnt start until your massage does.", "time" => 90]; $catalog[200] = [ "title" => "2 Hour Massage", "img" => "img/120m.png", "duration" => "1 Hour", "value" => "$100", "cost" => "$50", "description" => "Get a two hour massage from Tranquil Embodiment Massage in San Diego, CA. Comes complete with hot towels, aromatherapy, and your time doesnt start until your massage does.", "time" => 120, ]; if (isset($_GET["cat"])) if ($_GET["cat"] == "60") $pageTitle = "60 Minute Massage"; $selection = "60"; > Else if ($_GET["cat"] == "90") $pageTitle = "90 Minute Massage"; $selection = "90"; > Else if ($_GET["cat"] == "120") $pageTitle = "Two Hour Massage"; $selection = "120"; > > ?>
functionget_item_html($id,$item)$output="
"."
".$item["value"]."".$item["cost"].""."View Details
"."";return$output;>functionarray_category($catalog,$time)$output=array();foreach($catalogas$id=>$item)if($time==nullORstrtolower($time)==strtolower($item["time"]))$sort=$item["title"];$sort=ltrim($sort,"A ");$sort=ltrim($sort,"The ");$sort=ltrim($sort,"And ");$output[$id]=$sort;>>asort($output);returnarray_keys($output);>?>
php — Custom URL Rewriting with parametres
localhost/sdpisdtv2014/play/show.php?cat=rc&id=573
localhost/sdpisdtv2014/play/show/rc/573
My .htaccess code is (but not working)
Options +FollowSymLinks RewriteEngine on RewriteRule show/cat/(.*)/id/(.*)/ show.php?cat=$1&id=$2 RewriteRule show/cat/(.*)/id/(.*) show.php?cat=$1&id=$2
Mode_rewrite is on and also checked for redirecting a website and it is perfectly working
Answer
Solution:
RewriteEngine On RewriteRule show/cat/([^/]*)/([^/]*)$ show.php?cat=$1&id=$2
Answer
Solution:
Right off the bat, I can see that the result you want is missing the «cat» parameter. The other thing I notice is that .* is usually greedy quantifier: it will consume everything, so nothing after it will match. I don’t remember offhand exactly what Apache’s regex flavor does, but I would guess you need to either qualify the characters to match, or make the quantifier reluctant. The first way might look like this:
RewriteRule show/cat/([^\/]*)/id/([^\/]*)/ show.php?cat=$1&id=$2
And the second would look like:
RewriteRule show/cat/(.*?)/id/(.*?)/ show.php?cat=$1&id=$2
However, I hope you realize that the URL you gave, localhost/sdpisdtv2014/play/show/rc/573 , doesn’t match this pattern: it’s missing the «cat» and «id» string. For it to match, you would need something like:
localhost/sdpisdtv2014/play/show/cat/rc/id/573/
Also, it is usually a good idea to anchor your rewrite rules, so they don’t get applied unexpectedly. Something like:
RewriteRule ^/sdpisdtv2014/play/show/cat/([^\/]*)/id/([^\/]*)/ show.php?cat=$1&id=$2
(assuming «localhost» is the domain name, and not part of the path).
Share solution ↓
Additional Information:
Didn’t find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.
About the technologies asked in this question
PHP
PHP (from the English Hypertext Preprocessor — hypertext preprocessor) is a scripting programming language for developing web applications. Supported by most hosting providers, it is one of the most popular tools for creating dynamic websites. The PHP scripting language has gained wide popularity due to its processing speed, simplicity, cross-platform, functionality and distribution of source codes under its own license.
https://www.php.net/
Welcome to programmierfrage.com
programmierfrage.com is a question and answer site for professional web developers, programming enthusiasts and website builders. Site created and operated by the community. Together with you, we create a free library of detailed answers to any question on programming, web development, website creation and website administration.
Get answers to specific questions
Ask about the real problem you are facing. Describe in detail what you are doing and what you want to achieve.
Help Others Solve Their Issues
Our goal is to create a strong community in which everyone will support each other. If you find a question and know the answer to it, help others with your knowledge.